:root { --sp: #059669; --sp-dark: #065f46; --sp-soft: #ecfdf5; --sp-line: #a7f3d0; }

.sp-hero { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); padding: 52px 0 44px; border-bottom: 1px solid var(--sp-line); }
.sp-hero h1 { color: #064e3b; font-size: 2.35rem; font-weight: 800; letter-spacing: -.5px; }
.sp-hero .lead-copy { max-width: 700px; font-size: 1.08rem; color: #475569; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 100px; background: #fff; border: 1px solid #6ee7b7; font-size: .82rem; font-weight: 600; color: var(--sp); }

.tool-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; box-shadow: 0 4px 24px rgba(15,23,42,.06); padding: 26px; max-width: 880px; margin: -28px auto 0; position: relative; }
.url-row { display: flex; gap: 10px; }
.url-row .form-control { height: 52px; border-radius: 12px; font-size: 1rem; border-color: #cbd5e1; }
.url-row .form-control:focus { border-color: var(--sp); box-shadow: 0 0 0 .2rem rgba(5,150,105,.15); }
.btn-sp { background: var(--sp); border-color: var(--sp); color: #fff; font-weight: 700; border-radius: 12px; padding: 0 22px; white-space: nowrap; }
.btn-sp:hover, .btn-sp:focus { background: var(--sp-dark); border-color: var(--sp-dark); color: #fff; }
.btn-sp:disabled { background: #94a3b8; border-color: #94a3b8; }
.tool-sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: .8rem; color: #64748b; }
.tool-sub a { color: var(--sp); text-decoration: none; font-weight: 600; }
.tool-sub a:hover { text-decoration: underline; }

/* Results */
#results { max-width: 880px; margin: 24px auto 0; transition: opacity .2s; }
#results.is-loading { opacity: .45; }
.res-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 22px; margin-bottom: 18px; }
.res-card h2 { font-size: 1.15rem; font-weight: 800; color: #0f172a; margin: 0 0 14px; }
.sum-verdict { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; }
.sum-verdict i { font-size: 1.4rem; }
.sum-good { color: #047857; } .sum-warn { color: #b45309; } .sum-bad { color: #b91c1c; }
.sum-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.chip { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.chip-error { background: #fee2e2; color: #991b1b; } .chip-warning { background: #fef3c7; color: #92400e; } .chip-info { background: #e0f2fe; color: #075985; }
.sum-meta { font-size: .8rem; color: #64748b; word-break: break-all; }

.pv-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pv-tab { border: 1px solid #e2e8f0; background: #f8fafc; color: #334155; font-weight: 600; font-size: .85rem; padding: 6px 12px; border-radius: 10px; }
.pv-tab i { margin-right: 4px; }
.pv-tab.active { background: var(--sp); border-color: var(--sp); color: #fff; }
.pv-stage { background: #f1f5f9; border-radius: 14px; padding: 22px 16px; display: flex; justify-content: center; }
.pv-note { font-size: .8rem; color: #64748b; margin: 10px 0 0; }
.img-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: #334155; margin-top: 10px; }
.pv-title { font-weight: 700; color: #111b21; font-size: .92rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.pv-desc { color: #54656f; font-size: .82rem; line-height: 1.35; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.pv-desc.one { -webkit-line-clamp: 1; }
.pv-dom { color: #667781; font-size: .76rem; margin-top: 3px; word-break: break-all; }
.pv-dom-up { color: #65676b; font-size: .72rem; letter-spacing: .02em; word-break: break-all; }
.pv-noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #e2e8f0; color: #94a3b8; font-size: .75rem; text-align: center; }
.pv-noimg i { font-size: 1.4rem; }

/* WhatsApp-style */
.pv-wa { width: 100%; max-width: 360px; background: #efeae2; border-radius: 12px; padding: 14px; }
.pv-wa-bubble { background: #d9fdd3; border-radius: 10px; padding: 4px 4px 6px; margin-left: auto; max-width: 320px; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.pv-wa-card { background: rgba(0,0,0,.05); border-radius: 7px; overflow: hidden; }
.pv-wa-img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; display: block; }
.pv-wa-row { display: flex; gap: 8px; align-items: stretch; }
.pv-wa-thumb { width: 84px; min-height: 84px; object-fit: cover; flex-shrink: 0; }
.pv-wa-text { padding: 7px 9px; min-width: 0; }
.pv-wa-link { color: #027eb5; font-size: .85rem; padding: 6px 6px 0; word-break: break-all; }
.pv-wa-time { text-align: right; font-size: .68rem; color: #667781; padding: 0 6px; }
.pv-wa-time i { color: #53bdeb; }

/* Facebook-style */
.pv-fb { width: 100%; max-width: 500px; background: #fff; border: 1px solid #dadde1; border-radius: 4px; overflow: hidden; }
.pv-fb-img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; display: block; }
.pv-fb-img.pv-fb-sq { aspect-ratio: 1 / 1; max-height: 260px; }
.pv-fb-text { background: #f0f2f5; padding: 10px 12px; }
.pv-fb-text .pv-title { font-size: 1rem; color: #050505; -webkit-line-clamp: 2; }

/* LinkedIn-style */
.pv-li { width: 100%; max-width: 500px; background: #fff; border: 1px solid #e0dfdc; border-radius: 8px; overflow: hidden; }
.pv-li-img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; display: block; }
.pv-li-body { display: flex; gap: 10px; padding: 10px 12px; background: #eef3f8; align-items: center; }
.pv-li-thumb { width: 80px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }

/* X-style */
.pv-x { width: 100%; max-width: 500px; }
.pv-x-imgwrap { position: relative; border: 1px solid #cfd9de; border-radius: 16px; overflow: hidden; }
.pv-x-img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; display: block; }
.pv-x-overlay { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: rgba(0,0,0,.77); color: #fff; font-size: .8rem; padding: 2px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-x-from { font-size: .8rem; color: #536471; margin-top: 4px; }
.pv-x-small { display: flex; border: 1px solid #cfd9de; border-radius: 16px; overflow: hidden; background: #fff; }
.pv-x-thumb { width: 120px; min-height: 120px; object-fit: cover; flex-shrink: 0; border-right: 1px solid #cfd9de; }
.pv-x-text { padding: 12px; min-width: 0; align-self: center; }

/* Issues */
.issue { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; margin-bottom: 8px; border: 1px solid; }
.issue > i { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.issue strong { display: block; color: #0f172a; font-size: .92rem; word-break: break-word; }
.issue p { margin: 3px 0 0; font-size: .85rem; color: #475569; line-height: 1.55; word-break: break-word; }
.issue-tag { display: inline-block; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.issue-error { background: #fef2f2; border-color: #fecaca; } .issue-error > i, .issue-error .issue-tag { color: #dc2626; }
.issue-warning { background: #fffbeb; border-color: #fde68a; } .issue-warning > i, .issue-warning .issue-tag { color: #d97706; }
.issue-info { background: #f0f9ff; border-color: #bae6fd; } .issue-info > i, .issue-info .issue-tag { color: #0284c7; }
.issue-ok { background: var(--sp-soft); border-color: var(--sp-line); } .issue-ok > i { color: var(--sp); }

.tag-table { font-size: .85rem; margin: 0; }
.tag-table th { width: 34%; font-weight: 500; }
.tag-table td { word-break: break-word; color: #334155; }
.tag-table .missing { color: #94a3b8; font-style: italic; }
.code-box { position: relative; }
.code-box pre { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 16px; font-size: .78rem; line-height: 1.6; white-space: pre-wrap; word-break: break-all; margin: 0; }
.code-box .btn { position: absolute; top: 8px; right: 8px; }
.cache-box { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 14px; padding: 16px 18px; font-size: .88rem; color: #475569; }
.cache-box ul { margin: 8px 0 0; padding-left: 18px; }
.cache-box li { margin-bottom: 4px; }

/* Content */
.content-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 36px; margin-top: 32px; }
.content-card h2 { font-weight: 800; color: #064e3b; font-size: 1.6rem; margin-bottom: 14px; }
.content-card h3 { font-weight: 700; font-size: 1.1rem; color: #0f172a; margin-top: 22px; }
.content-card p, .content-card li { color: #475569; line-height: 1.75; }
.content-card code { background: #f1f5f9; color: #0f172a; padding: 1px 6px; border-radius: 5px; font-size: .88em; word-break: break-word; }
.content-card pre { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 16px; font-size: .8rem; overflow-x: auto; }
.step-list { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.step-list li { position: relative; padding: 0 0 18px 52px; }
.step-list li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--sp-soft); color: var(--sp); border: 1px solid var(--sp-line); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.example-box { background: var(--sp-soft); border: 1px solid var(--sp-line); border-radius: 14px; padding: 18px 20px; }
.example-box p:last-child { margin-bottom: 0; }
.tip-grid .tip { height: 100%; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; }
.tip-grid .tip h3 { margin-top: 0; font-size: 1rem; }
.tip-grid .tip p { font-size: .9rem; margin: 0; }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: linear-gradient(135deg,#ecfdf5,#d1fae5); border: 1px solid var(--sp-line); border-radius: 16px; padding: 20px 22px; margin-top: 22px; }
.cta-inline p { margin: 0; color: #064e3b; font-weight: 600; }
.related-links a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 14px; text-decoration: none; color: #1e293b; height: 100%; transition: border-color .15s, box-shadow .15s; }
.related-links a:hover { border-color: var(--sp); box-shadow: 0 4px 16px rgba(5,150,105,.12); }
.related-links i { font-size: 1.3rem; color: var(--sp); }
.related-links strong { display: block; font-size: .92rem; }
.related-links span { font-size: .8rem; color: #64748b; }
.accordion-button:not(.collapsed) { background: var(--sp-soft); color: #064e3b; box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(5,150,105,.2); }
.final-cta { background: linear-gradient(135deg,#064e3b,#047857); border-radius: 20px; padding: 40px 28px; text-align: center; color: #fff; margin-top: 32px; }
.final-cta p { color: #d1fae5; }

@media (max-width: 575px) {
  .sp-hero { padding: 36px 0 36px; }
  .sp-hero h1 { font-size: 1.7rem; }
  .tool-card { padding: 16px; border-radius: 16px; margin-top: -20px; }
  .url-row { flex-direction: column; }
  .btn-sp { height: 48px; }
  .res-card { padding: 16px; }
  .pv-stage { padding: 14px 8px; }
  .content-card { padding: 22px 18px; border-radius: 16px; }
  .content-card h2 { font-size: 1.35rem; }
  .tag-table th { width: 40%; }
}
