:root {
  --bg: #f6f7fb; --surface: #fff; --surface-2: #f1f3f8; --border: #e3e6ee;
  --text: #141821; --muted: #5a6272; --brand: #2f5bea; --brand-ink: #fff; --brand-soft: #e9eefe;
  --accent: #0d9488; --grad: linear-gradient(135deg, #3b5bfd 0%, #0fb5a3 100%);
  --glow: radial-gradient(60% 60% at 50% 0%, rgba(59,91,253,.14), transparent 70%), radial-gradient(40% 50% at 85% 10%, rgba(15,181,163,.12), transparent 70%);
  --high: #c2352b; --high-soft: #fbeceb; --medium: #a86200; --medium-soft: #fdf3e2;
  --low: #5a6272; --low-soft: #eef0f4; --good: #1a7f46; --good-soft: #e5f4ec;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.07);
  --shadow-lg: 0 10px 30px -12px rgba(16,24,40,.18);
  --header-bg: rgba(255,255,255,.82);
  --radius: 12px; color-scheme: light;
}
/* Dark theme: follows the system unless the visitor picked Light or Dark in the header. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1016; --surface: #151922; --surface-2: #1c212c; --border: #2a303d;
    --text: #e8ebf1; --muted: #9ba4b4; --brand: #7b93ff; --brand-ink: #0d1016; --brand-soft: #1c2647;
    --accent: #2dd4bf; --glow: radial-gradient(60% 60% at 50% 0%, rgba(123,147,255,.16), transparent 70%), radial-gradient(40% 50% at 85% 10%, rgba(45,212,191,.10), transparent 70%);
    --high: #ff7a6e; --high-soft: #3a1c1a; --medium: #f0ad4e; --medium-soft: #3a2b14;
    --low: #9ba4b4; --low-soft: #242a35; --good: #4cc48a; --good-soft: #15301f;
    --shadow: none; --shadow-lg: 0 10px 30px -12px rgba(0,0,0,.6); --header-bg: rgba(17,20,26,.82); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1016; --surface: #151922; --surface-2: #1c212c; --border: #2a303d;
  --text: #e8ebf1; --muted: #9ba4b4; --brand: #7b93ff; --brand-ink: #0d1016; --brand-soft: #1c2647;
  --accent: #2dd4bf; --glow: radial-gradient(60% 60% at 50% 0%, rgba(123,147,255,.16), transparent 70%), radial-gradient(40% 50% at 85% 10%, rgba(45,212,191,.10), transparent 70%);
  --high: #ff7a6e; --high-soft: #3a1c1a; --medium: #f0ad4e; --medium-soft: #3a2b14;
  --low: #9ba4b4; --low-soft: #242a35; --good: #4cc48a; --good-soft: #15301f;
  --shadow: none; --shadow-lg: 0 10px 30px -12px rgba(0,0,0,.6); --header-bg: rgba(17,20,26,.82); color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }
/* Plain text the server puts in the page for search engines; the app replaces it as soon as it loads. */
.prerender { padding: 48px 0; color: var(--muted); }
.prerender h1 { color: var(--text); }
.prerender h2, .prerender h3 { color: var(--text); font-size: 1.05rem; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Header & footer */
.topbar { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: var(--header-bg); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; gap: 9px; align-items: center; font-weight: 780; color: var(--text); text-decoration: none; font-size: 1.08rem; letter-spacing: -.01em; }
.brand-mark { display: block; flex: none; border-radius: 8px; }
.brand .wm b { color: var(--brand); font-weight: inherit; }
.nav { display: flex; gap: 4px; align-items: center; flex: 1; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 550; font-size: .92rem; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.nav-right { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.cur-select { width: auto !important; padding: 5px 8px !important; font-size: .82rem !important; }
.btn.menu-btn { display: none; }
@media (max-width: 960px) {
  .btn.menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 12px 12px; }
  .nav.open { display: flex; }
  .menu-btn { display: inline-flex; }
  .nav-right .hide-sm { display: none; }
}
.footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--surface); padding: 24px 20px; font-size: .85rem; color: var(--muted); }
.footer-inner { max-width: 1080px; margin: 0 auto; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.footer a { color: var(--muted); }
.footer-inner > div:first-child { display: flex; flex-wrap: wrap; gap: 6px 16px; }

main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; outline: none; }
.narrow { max-width: 720px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.actions-bar { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.section { margin-top: 56px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 22px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 9px 16px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: transparent; box-shadow: 0 1px 2px rgba(16,24,40,.12), inset 0 1px 0 rgba(255,255,255,.14); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--high); }
.btn.lg { padding: 12px 22px; font-size: 1rem; }
.btn.sm { padding: 5px 10px; font-size: .82rem; border-radius: 8px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.selected { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.btn.block { width: 100%; }

/* Forms */
label.field { display: block; }
label.field > span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
textarea { min-height: 64px; resize: vertical; }
input[type=color] { padding: 2px; height: 40px; }
input[type=radio], input[type=checkbox] { width: auto; }
.form-error { color: var(--high); font-size: .88rem; min-height: 1.2em; }
.radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio-card input { margin-top: 4px; }

/* Landing */
.hero { text-align: center; padding: 44px 0 16px; position: relative; }
.hero::before { content: ""; position: absolute; top: -24px; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--glow); z-index: -1; pointer-events: none; }
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 .hl { background: linear-gradient(135deg, #8ea2ff, #2dd4bf); -webkit-background-clip: text; background-clip: text; } }
:root[data-theme="dark"] .hero h1 .hl { background: linear-gradient(135deg, #8ea2ff, #2dd4bf); -webkit-background-clip: text; background-clip: text; }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin: 0 auto 24px; }
.hero-badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; color: var(--muted); }
.feature, .price-card, .grid-4 > .card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature:hover, .price-card:hover, .grid-4 > .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) { .feature, .price-card, .grid-4 > .card { transition: none; } .feature:hover, .price-card:hover, .grid-4 > .card:hover { transform: none; } }
.feature .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 700; margin-bottom: 10px; }
.feature b { display: block; margin-bottom: 4px; }
.privacy { display: flex; gap: 12px; align-items: flex-start; background: var(--good-soft); border-color: transparent; }
.privacy svg { flex: none; color: var(--good); margin-top: 2px; }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: 8px; color: var(--muted); }
.cta-band { background: var(--grad); color: #fff; border-radius: 18px; padding: 36px 24px; text-align: center; }
.cta-band .btn { background: #fff; color: #1f3fd6; border-color: transparent; }

/* Pricing */
.price-card { display: flex; flex-direction: column; gap: 10px; }
.price-card.featured { border: 2px solid var(--brand); }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 4px 0 8px; font-size: .92rem; }
.ticks li { padding: 4px 0 4px 24px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }

/* Steps */
.stepper { display: flex; gap: 6px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); padding: 4px 10px; border-radius: 99px; }
.step b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2); font-size: .72rem; border: 1px solid var(--border); }
.step.done b { background: var(--good); color: #fff; border-color: transparent; }
.step.active { color: var(--text); font-weight: 600; background: var(--surface); box-shadow: var(--shadow); }
.step.active b { background: var(--brand); color: var(--brand-ink); border-color: transparent; }
@media (max-width: 600px) { .step:not(.active) span { display: none; } }
.choice { text-align: left; cursor: pointer; border: 2px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 16px; font: inherit; color: inherit; }
.choice:hover { border-color: var(--brand); }
.choice.selected { border-color: var(--brand); background: var(--brand-soft); }
.choice b { display: block; }
.note { background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; font-size: .9rem; }
.note.warn { background: var(--medium-soft); }
.note.good { background: var(--good-soft); }

/* Platforms */
.platform { display: flex; flex-direction: column; gap: 10px; }
.platform-head { display: flex; gap: 10px; align-items: center; }
.pf-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #fff; font-weight: 700; font-size: .8rem; flex: none; }
.pf-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.pf-facebook { background: #1877f2; }
.pf-x { background: #111; }
.pf-tiktok { background: #111; box-shadow: inset 2px 0 #25f4ee, inset -2px 0 #fe2c55; }
.pf-linkedin { background: #0a66c2; }
.pf-mini { width: 22px; height: 22px; border-radius: 6px; font-size: .62rem; }
.status-ok { color: var(--good); font-weight: 600; font-size: .85rem; }
details summary { cursor: pointer; font-size: .85rem; color: var(--brand); }
details ol { margin: 8px 0 0; padding-left: 20px; font-size: .85rem; color: var(--muted); }
input[type=file] { padding: 6px; font-size: .85rem; }

/* Scan */
.scan-wrap { text-align: center; padding: 40px 0; }
.progress { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 18px 0; }
.progress > div { height: 100%; background: var(--brand); width: 0; transition: width .25s ease; }
.scan-log { text-align: left; font-size: .9rem; color: var(--muted); max-width: 460px; margin: 0 auto; }
.scan-log div { padding: 3px 0; }
.scan-log div::before { content: "✓ "; color: var(--good); font-weight: 700; }

/* Results */
.score-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
@media (max-width: 600px) { .score-card { grid-template-columns: 1fr; justify-items: center; text-align: center; } .score-card .counts { justify-content: center; } }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { transform: rotate(-90deg); }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val strong { font-size: 2.4rem; line-height: 1; display: block; }
.ring .val span { font-size: .78rem; color: var(--muted); }
.band { display: inline-block; padding: 3px 12px; border-radius: 99px; font-weight: 700; font-size: .85rem; }
.band.good { background: var(--good-soft); color: var(--good); }
.band.warn { background: var(--medium-soft); color: var(--medium); }
.band.bad { background: var(--high-soft); color: var(--high); }
.counts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.count { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: .85rem; }
.count strong { font-size: 1.15rem; display: block; }
.count.high strong { color: var(--high); }
.count.medium strong { color: var(--medium); }
.count.good strong { color: var(--good); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 24px 0 14px; overflow-x: auto; }
.tab { border: 0; background: none; font: inherit; padding: 10px 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 600; white-space: nowrap; }
.tab.active { color: var(--text); border-bottom-color: var(--brand); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters select { width: auto; padding: 6px 10px; font-size: .85rem; }
.flag { border-left: 4px solid var(--low); }
.flag.sev-high { border-left-color: var(--high); }
.flag.sev-medium { border-left-color: var(--medium); }
.flag.resolved { opacity: .62; }
.flag-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.pill { padding: 2px 9px; border-radius: 99px; font-weight: 600; font-size: .75rem; white-space: nowrap; }
.pill.high { background: var(--high-soft); color: var(--high); }
.pill.medium { background: var(--medium-soft); color: var(--medium); }
.pill.low { background: var(--low-soft); color: var(--low); }
.pill.cat { background: var(--surface-2); color: var(--text); }
.pill.boost, .pill.brand { background: var(--brand-soft); color: var(--brand); }
.pill.status, .pill.good { background: var(--good-soft); color: var(--good); }
blockquote { margin: 0 0 12px; padding: 10px 14px; background: var(--surface-2); border-radius: 9px; font-size: .95rem; overflow-wrap: anywhere; }
mark { background: var(--medium-soft); color: inherit; border-bottom: 2px solid var(--medium); padding: 0 1px; }
.img-label { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.why { font-size: .9rem; }
.why b { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: block; }
.flag-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.locked { position: relative; overflow: hidden; }
.locked .blur { filter: blur(6px); user-select: none; pointer-events: none; }
.lock-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 55%, transparent); text-align: center; padding: 20px; }
.note-list { list-style: none; padding: 0; margin: 0; }
.note-list li { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); margin-bottom: 8px; font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; }
.note-list li.action { background: var(--medium-soft); }

/* Media findings & translations */
.media-block { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.thumb { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; flex: none; background: var(--surface-2); }
.thumb.video { height: 140px; width: 80px; }
.thumb.ph { display: grid; place-items: center; color: var(--muted); font-size: 1.6rem; }
.media-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.media-info blockquote { margin: 2px 0 0; }
.seg-label { font-size: .78rem; font-weight: 650; color: var(--muted); }
.nowrap { white-space: nowrap; }
.gloss { background: var(--brand-soft); border-radius: 9px; padding: 8px 12px; font-size: .88rem; margin-bottom: 12px; }
.gloss b { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); display: block; }
@media (max-width: 520px) { .media-block { flex-direction: column; } }

/* Tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.tbl th, table.tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl th { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }
.stat { padding: 16px; }
.stat strong { display: block; font-size: 1.6rem; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .85rem; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(10,12,16,.55); display: grid; place-items: center; z-index: 40; padding: 16px; overflow-y: auto; }
.modal { max-width: 460px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; position: relative; }
.modal.wide { max-width: 760px; }
.modal-close { position: absolute; top: 10px; right: 10px; }
.pay-opt { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; margin-bottom: 8px; background: var(--surface); width: 100%; font: inherit; color: inherit; text-align: left; }
.pay-opt.selected { border-color: var(--brand); background: var(--brand-soft); }
.demo-banner { background: var(--medium-soft); color: var(--medium); padding: 8px 12px; border-radius: 9px; font-size: .82rem; font-weight: 600; margin-bottom: 14px; }
.breakdown { font-size: .92rem; border-top: 1px solid var(--border); padding-top: 10px; margin: 10px 0 14px; }
.breakdown div { display: flex; justify-content: space-between; padding: 2px 0; }
.breakdown .total { font-weight: 800; font-size: 1.05rem; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; }

/* Report */
.report section { margin-top: 22px; }
.report .compare { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.report .big { font-size: 2.6rem; font-weight: 800; }
.report ul { padding-left: 20px; }
.report li { margin-bottom: 8px; }
.disclaimer { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 26px; }
.shared-banner { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--brand-soft); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: .9rem; }
.badge-canvas { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); display: block; }
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Partner join */
.brand-strip { height: 6px; border-radius: 99px; margin-bottom: 18px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-size: .9rem; z-index: 60; max-width: calc(100vw - 32px); }

@media print {
  .topbar, .footer, .no-print, .toast, .stepper { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ccc; background: #fff; color: #000; }
  main { padding: 0; }
}

/* Theme toggle */
.theme-btn { width: 34px; height: 30px; padding: 0 !important; }
.theme-btn svg { display: block; }

/* Sample scan banner */
.sample-banner { border: 1px dashed var(--medium); background: var(--medium-soft); }
.sample-banner .pill { background: var(--surface); color: var(--medium); }

/* Small phones: logo mark only and tighter header, so everything fits in 360px */
@media (max-width: 560px) {
  .topbar { padding: 10px 12px; gap: 8px; }
  .nav-right { gap: 4px; }
  .brand .wm { display: none; }
  .nav-right .cur-select { max-width: 92px; }
}

/* ---------------------------------------------------------------- Landing page */
/* Jump links (How it works, FAQ…) land below the sticky header instead of under it. */
html { scroll-padding-top: 76px; }
[id] { scroll-margin-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.hero.split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; text-align: left; padding: 48px 0 24px; }
.hero.split .lead { margin: 0 0 24px; }
.hero.split h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.03em; }
.hero-cta { justify-content: flex-start; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .9rem; }
.hero-points li { display: flex; gap: 7px; align-items: center; }
.hero-points svg { color: var(--good); }

.hero-visual { position: relative; padding: 8px 8px 24px; }
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 6px color-mix(in srgb, var(--brand) 7%, transparent); padding: 16px; display: grid; gap: 12px; transform: rotate(1.2deg); }
.mock-bar { display: flex; gap: 6px; align-items: center; font-size: .78rem; color: var(--muted); font-weight: 600; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.mock-bar span { margin-left: 6px; }
.mock-score { display: flex; gap: 16px; align-items: center; padding: 6px 4px; }
.mock-flag { border: 1px solid var(--border); border-left: 4px solid var(--low); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; justify-items: start; background: var(--surface); }
.mock-flag.sev-high { border-left-color: var(--high); }
.mock-flag.sev-medium { border-left-color: var(--medium); }
.mock-flag p { margin: 0; font-size: .9rem; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); color: var(--muted); }
.mock-flag .row { gap: 6px; }
.float-chip { position: absolute; left: -6px; bottom: 6px; display: inline-flex; gap: 6px; align-items: center; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); padding: 8px 12px; border-radius: 99px; font-size: .82rem; font-weight: 600; }
.float-chip svg { color: var(--good); }

.platform-strip { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 18px 0 4px; }
.platform-strip .pf-badge { width: 32px; height: 32px; font-size: .78rem; }

.section-head .eyebrow { display: block; margin-bottom: 6px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; top: 54px; left: 16%; right: 16%; border-top: 2px dashed var(--border); z-index: 0; }
.step-card { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); text-align: center; }
.step-card h3 { margin: 14px 0 6px; }
.step-card p { margin: 0; }
.step-icon { position: relative; display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(59,91,253,.55); }
.step-icon b { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: var(--surface); color: var(--text); border: 1px solid var(--border); }

.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.check-card { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.check-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.check-card b { display: block; margin-bottom: 2px; }
.check-card p { margin: 0; }
.check-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; }
.tone-high .check-icon { background: var(--high-soft); color: var(--high); }
.tone-medium .check-icon { background: var(--medium-soft); color: var(--medium); }
.tone-brand .check-icon { background: var(--brand-soft); color: var(--brand); }
.tone-high:hover { border-color: color-mix(in srgb, var(--high) 40%, var(--border)); }
.tone-medium:hover { border-color: color-mix(in srgb, var(--medium) 40%, var(--border)); }
.tone-brand:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }

.privacy-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; background: var(--good-soft); border-radius: 20px; padding: 28px; }
.privacy-lead { display: flex; gap: 16px; align-items: flex-start; }
.privacy-lead h2 { margin-bottom: 6px; }
.privacy-lead p { margin: 0; }
.privacy-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--good); color: #fff; }
.privacy-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.privacy-points li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.privacy-points svg { flex: none; color: var(--good); margin-top: 2px; }
.privacy-points .small { color: var(--muted); }

.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .18s ease, box-shadow .18s ease; }
.faq-item[open] { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: var(--shadow-lg); }
.faq-item summary { list-style: none; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 18px; font-weight: 650; font-size: .98rem; color: var(--text); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { flex: none; position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; background: var(--brand); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .2s ease; }
.faq-item summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

.final-cta { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px 28px; border-radius: 18px; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 2px solid transparent; }
.final-cta h2 { margin-bottom: 4px; }

/* Scan step: say why the button is waiting */
.scan-hint { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--muted); max-width: 520px; }
.pending-file { color: var(--medium); font-weight: 600; font-size: .85rem; }

@media (max-width: 880px) {
  .hero.split { grid-template-columns: 1fr; text-align: center; gap: 28px; padding-top: 32px; }
  .hero.split .lead { margin: 0 auto 22px; }
  .hero-cta, .hero-points { justify-content: center; }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; }
  .mock { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .step-card { text-align: left; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; }
  .step-card .step-icon { grid-row: span 2; width: 52px; height: 52px; }
  .step-card h3 { margin: 2px 0 4px; }
  .privacy-band { grid-template-columns: 1fr; padding: 22px; }
  .faq-grid { grid-template-columns: 1fr; }
  .final-cta { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .check-card, .faq-item, .faq-item summary i::after { transition: none; } .check-card:hover { transform: none; } }
