/* Design system: "Marker on a road sign". See DESIGN.md. Flat fields, no gradients, no shadows at rest,
   no hairlines: surfaces are separated by tone. Square corners everywhere. */
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/atkinson-next-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/atkinson-next-700.woff2") format("woff2"); }
/* Digits from Barlow: Atkinson Hyperlegible draws a slashed zero, which reads as "Ø". Same family name plus
   unicode-range, declared last, so only 0-9 switch and everything else stays Atkinson. */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/barlow-semi-condensed-latin-400-normal.woff2") format("woff2"); unicode-range: U+0030-0039; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0030-0039; }

:root {
  --ground: #ffffff;
  --step: #edf1f8;
  --step-2: #dfe6f3;
  --ink: #0b1230;
  --muted: #44506e;
  --blue: #0a3d91;
  --blue-deep: #082e6e;
  --on-blue: #ffffff;
  --on-blue-muted: #cfdbf5;
  --mark: #ffd23f;
  --on-mark: #0b1230;
  --btn: #0a3d91;
  --on-btn: #ffffff;
  --stop: #b3112b;     --stop-bg: #fbe3e7;
  --caution: #6d4a00;  --caution-bg: #ffefae;
  --go: #0b6b3a;       --go-bg: #daf2e4;
  --focus: #0a3d91;
  --display: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: "Atkinson Hyperlegible Next", "Segoe UI", Verdana, system-ui, sans-serif;
  /* spacing system: 4px base */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0a1028; --step: #121b40; --step-2: #1b2759; --ink: #eef2ff; --muted: #aab6d8;
    --blue: #123078; --blue-deep: #0d2461; --on-blue-muted: #bccaf0;
    --btn: #ffd23f; --on-btn: #0b1230;
    --stop: #ff93a3; --stop-bg: #3b1322; --caution: #ffd23f; --caution-bg: #382f08; --go: #74e3a4; --go-bg: #0f3424;
    --focus: #ffd23f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0a1028; --step: #121b40; --step-2: #1b2759; --ink: #eef2ff; --muted: #aab6d8;
  --blue: #123078; --blue-deep: #0d2461; --on-blue-muted: #bccaf0;
  --btn: #ffd23f; --on-btn: #0b1230;
  --stop: #ff93a3; --stop-bg: #3b1322; --caution: #ffd23f; --caution-bg: #382f08; --go: #74e3a4; --go-bg: #0f3424;
  --focus: #ffd23f; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 1.125rem/1.55 var(--text); }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.01em; line-height: .98; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 10.5vw, 5.75rem); }
h2 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h3 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); line-height: 1.05; }
p { margin: 0; max-width: 40rem; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
::selection { background: var(--mark); color: var(--on-mark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.field-blue :focus-visible, .hud :focus-visible, .dlg-bar :focus-visible { outline-color: var(--mark); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 78rem; margin: 0 auto; padding: 0 var(--s4); }
.muted { color: var(--muted); }
.skip { position: absolute; left: .5rem; top: -4rem; background: var(--mark); color: var(--on-mark); padding: .7rem 1rem; z-index: 60; font-weight: 700; }
.skip:focus { top: .5rem; }
.field-blue { background: var(--blue); color: var(--on-blue); }
.field-blue .muted { color: var(--on-blue-muted); }

/* highlighter mark: the identity device */
mark, .mk { background: var(--mark); color: var(--on-mark); padding: .12em .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl { background-color: transparent; padding: .12em .3em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* header, footer */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4) 0; }
.brand { display: inline-flex; align-items: center; gap: var(--s3); font-family: var(--display); font-weight: 700; font-size: 1.5rem; text-decoration: none; letter-spacing: -.005em; }
.brand-mark { width: 1.7rem; height: 1.7rem; flex: none; display: block; }
.nav { display: flex; align-items: center; gap: var(--s2); }
.nav a { padding: .55rem .7rem; text-decoration: none; font-weight: 700; display: none; }
.nav a:hover { background: var(--mark); color: var(--on-mark); }
.icon-btn { background: transparent; color: inherit; border: 2px solid currentColor; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--mark); color: var(--on-mark); border-color: var(--mark); }
.icon-btn svg { width: 1.2rem; height: 1.2rem; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.icon-btn:active svg { transform: rotate(-30deg) scale(.9); }
.icon-btn .i-sun { display: none; }
.icon-btn[data-mode="dark"] .i-sun { display: block; }
.icon-btn[data-mode="dark"] .i-moon { display: none; }
.site-footer { margin-top: var(--s9); background: var(--ink); color: var(--ground); padding: var(--s8) 0 var(--s7); }
.site-footer .big { font-family: var(--display); font-weight: 700; font-size: clamp(3.4rem, 16vw, 11rem); line-height: .85; letter-spacing: -.02em; overflow-wrap: anywhere; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s7); justify-content: space-between; margin-top: var(--s7); font-size: 1rem; }
.site-footer nav { display: flex; gap: var(--s5); flex-wrap: wrap; }
.site-footer a { color: var(--ground); }
.site-footer a:focus-visible { outline-color: var(--mark); }
.dev-banner { background: var(--mark); color: var(--on-mark); text-align: center; font-weight: 700; font-size: .95rem; padding: .5rem 1rem; }

/* buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); font: 700 1.1rem/1.2 var(--text); min-height: 3.25rem; padding: .7rem 1.4rem; border: 2px solid var(--btn); background: var(--btn); color: var(--on-btn); cursor: pointer; text-decoration: none; border-radius: 0; }
.btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ground); }
.btn-sm { min-height: 2.75rem; padding: .45rem 1rem; font-size: 1rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.field-blue .btn { background: var(--mark); border-color: var(--mark); color: var(--on-mark); }
.field-blue .btn:hover { background: #fff; border-color: #fff; color: var(--blue-deep); }
.field-blue .btn-ghost { background: transparent; color: var(--on-blue); border-color: var(--on-blue); }
.field { width: 100%; font: 1.15rem/1.3 var(--text); min-height: 3.4rem; padding: .7rem 1rem; border: 2px solid var(--ink); background: var(--ground); color: var(--ink); border-radius: 0; }
.field::placeholder { color: var(--muted); opacity: 1; }
.field[aria-invalid="true"] { border-color: var(--stop); outline: 2px solid var(--stop); }
select.field { min-height: 3.1rem; }
.scan-row { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s6); }
.scan-row .btn { min-height: 3.4rem; }
.scan-error { background: var(--stop-bg); color: var(--stop); font-weight: 700; padding: .6rem .9rem; margin-top: var(--s3); max-width: 40rem; }
.hint { color: inherit; opacity: .85; font-size: 1rem; margin-top: var(--s3); }
.advanced { margin-top: var(--s4); }
.advanced summary { cursor: pointer; font-weight: 700; padding: .4rem 0; display: inline-block; }
.advanced-body { display: grid; gap: var(--s2); margin-top: var(--s2); max-width: 26rem; }
.advanced-body label { font-weight: 700; }
.field-blue .field { border-color: #fff; }

/* hero */
.hero { padding-bottom: var(--s8); }
.hero-grid { display: grid; gap: var(--s7); padding-top: var(--s6); }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: var(--s5); font-size: 1.3rem; max-width: 34rem; }
.recent { margin-top: var(--s6); max-width: 36rem; }
.recent h2 { font-family: var(--text); font-weight: 700; font-size: 1rem; letter-spacing: 0; line-height: 1.3; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s2); }
.recent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.recent li a { display: flex; align-items: center; gap: var(--s3); padding: .65rem .75rem; text-decoration: none; background: color-mix(in srgb, var(--blue-deep) 70%, transparent); }
.recent li a:hover { background: var(--mark); color: var(--on-mark); }
.recent .host { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent .when { font-size: .9rem; opacity: .85; }
.chip { display: inline-grid; place-items: center; min-width: 2.6rem; padding: .5rem .6rem; font-weight: 700; background: var(--mark); color: var(--on-mark); }
.link-btn { background: none; border: 0; padding: .25rem; font: inherit; font-size: .95rem; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 2px; }

/* the AI-eye view: what a machine can read is marked */
.aiview { margin: 0; background: #fff; color: #0b1230; padding: var(--s5); max-width: 29rem; display: grid; gap: var(--s4); align-self: start; }
.aiview .shop { font-family: var(--display); font-weight: 700; font-size: 2rem; line-height: 1; }
.aiview p { max-width: none; font-size: 1.05rem; }
.aiview .blind { background: #d5dbe8; min-height: 7.5rem; display: grid; place-content: center; text-align: center; padding: var(--s3); font-weight: 700; color: #33405f; }
.aiview .blind small { display: block; font-weight: 400; font-size: .95rem; }
.aiview figcaption { font-size: .98rem; color: #33405f; background: var(--mark); color: var(--on-mark); padding: var(--s3) var(--s4); margin: var(--s2) calc(var(--s5) * -1) calc(var(--s5) * -1); }
.aiview .hl { animation: sweep .9s cubic-bezier(.2,.7,.2,1) forwards; }
.aiview p:nth-of-type(2) .hl { animation-delay: .5s; } .aiview p:nth-of-type(3) .hl { animation-delay: 1s; }
@keyframes sweep { to { background-color: var(--mark); } }

/* sections */
.section { padding-top: var(--s9); }
.section h2 + p { margin-top: var(--s4); color: var(--muted); font-size: 1.2rem; }
.split { display: grid; gap: var(--s6); }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6); }
.how li { display: grid; gap: var(--s2); }
.ic.how-i { width: 2rem; height: 2rem; color: var(--ink); }
.q-row h3 .q-icon, .prow h3 .q-icon { display: block; box-sizing: content-box; width: 1.6rem; height: 1.6rem; padding: .5rem; margin-bottom: var(--s3); background: var(--ground); color: var(--ink); }
.how li > strong { font-family: var(--display); font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.05; }
.how li > span { color: var(--muted); max-width: 32rem; }
.q-list { margin-top: var(--s6); display: grid; gap: var(--s2); }
.q-row { display: grid; gap: var(--s3); padding: var(--s5) var(--s4); background: var(--step); }
.q-row:nth-child(even) { background: var(--step-2); }
.q-row h3 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.q-row p { color: var(--muted); }
.q-row .share { display: flex; align-items: center; gap: var(--s3); font-weight: 700; }
.bar { height: .85rem; background: var(--ground); flex: 1; max-width: 14rem; }
.bar > i { display: block; height: 100%; background: var(--blue); transform-origin: left; animation: grow .6s calc(var(--k, 0) * .1s + .15s) cubic-bezier(.2,.7,.2,1) both; }
.rv:not(.in) .bar > i { animation-play-state: paused; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sample { background: var(--step); padding: var(--s5); display: grid; gap: var(--s5); }
.sample-top { display: grid; gap: var(--s5); }
.grade { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: center; }
.sign { background: var(--blue); color: var(--on-blue); width: 7.2rem; height: 7.2rem; display: grid; place-content: center; text-align: center; flex: none; }
.sign .num { font-family: var(--display); font-weight: 700; font-size: 3.6rem; line-height: .9; }
.sign .of { font-size: .85rem; color: var(--on-blue-muted); }
.plans { display: grid; gap: var(--s3); margin-top: var(--s6); }
.plan { background: var(--blue-deep); padding: var(--s5); display: grid; gap: var(--s4); align-content: start; }
.plan.feat { background: #fff; color: #0b1230; }
.plan .price { font-family: var(--display); font-weight: 700; font-size: 3.2rem; line-height: 1; }
.plan .price small { font-family: var(--text); font-size: 1rem; font-weight: 400; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s2); }
.plan li { display: flex; gap: var(--s3); align-items: flex-start; }
.plan li .ic { width: 1.2rem; height: 1.2rem; margin-top: .15em; color: var(--mark); }
.plan.feat li .ic { color: var(--blue); }
.plan.feat .btn { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
.plan.feat .btn:hover { background: #0b1230; border-color: #0b1230; color: #fff; }
.plan-note { margin-top: var(--s4); font-size: 1rem; }
.faq { margin-top: var(--s6); max-width: 46rem; display: grid; gap: 2px; }
.faq details { background: var(--step); }
.faq summary { cursor: pointer; padding: var(--s4); font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.ic.faq-i { width: 1.5rem; height: 1.5rem; }
.faq-i path:nth-child(2) { transform-box: fill-box; transform-origin: center; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.faq details[open] .faq-i path:nth-child(2) { transform: scaleY(0); }
.faq details[open] p { animation: rise .3s ease-out both; }
.faq details[open] summary { background: var(--mark); color: var(--on-mark); }
.faq details p { padding: var(--s4); color: var(--muted); max-width: none; }

/* scan view */
.scan-head { padding: var(--s6) 0 var(--s5); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); }
.scan-head h1 { font-size: clamp(2.2rem, 7vw, 4rem); overflow-wrap: anywhere; line-height: .95; }
#scan-title:focus { outline: none; }
.scan-head .meta { color: var(--muted); margin-top: var(--s2); }
.scan-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.panel { background: var(--step); padding: var(--s5); }
.browser { background: var(--step); }
.chrome { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--step-2); }
.lights { display: none; gap: .35rem; }
.lights i { width: .75rem; height: .75rem; background: var(--muted); opacity: .5; display: block; }
.addr { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s2); background: var(--ground); padding: .5rem .8rem; font-size: 1rem; }
.addr svg { flex: none; }
.addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewport { position: relative; height: min(58svh, 24rem); background: #fff; overflow: hidden; isolation: isolate; }
.vp-content { position: absolute; inset: 0; }
.vp-content img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
/* page turn: the new picture slides in from the right, the old one steps back and dims (transform and opacity) */
.vp-content .slide { position: absolute; inset: 0; transform: translateX(100%); transition: transform .6s cubic-bezier(.2,.75,.15,1); }
.vp-content .slide.on { transform: none; }
.vp-content .off { transition: transform .6s cubic-bezier(.2,.75,.15,1), opacity .6s ease; transform: translateX(-6%); opacity: .55; }
.skel { height: 100%; padding: 8% 7%; display: grid; align-content: start; gap: .9rem; background: #f3f5f9; }
.skel i { display: block; background: #dde3ee; height: .8rem; }
.skel .hero { height: 22%; } .skel .w60 { width: 60%; } .skel .w80 { width: 80%; } .skel .w40 { width: 40%; }
.skel .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; } .skel .cols i { height: 4rem; }
.overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* the scan line is a full-height layer moved with transform (no layout work); the line is its top edge */
.scan-line { position: absolute; inset: 0; animation: sweepy 3.4s ease-in-out infinite alternate; }
.scan-line::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--mark); outline: 1px solid rgb(11 18 48 / .35); }
@keyframes sweepy { from { transform: translateY(0); } to { transform: translateY(calc(100% - 4px)); } }
.mode-badge { position: absolute; top: var(--s3); right: var(--s3); font-size: .95rem; font-weight: 700; padding: .5rem .75rem; background: var(--mark); color: var(--on-mark); z-index: 2; }
.learn { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.learn li { font-size: 1rem; line-height: 1.35; padding: .6rem .8rem; background: var(--ground); color: var(--ink); animation: rise .35s ease both; overflow-wrap: anywhere; }
.learn li:last-child { background: var(--mark); color: var(--on-mark); font-weight: 700; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hud { padding: var(--s4); }
.pct-row { display: flex; justify-content: space-between; margin-bottom: var(--s2); font-weight: 700; font-size: 1.15rem; }
.pbar { height: .9rem; background: var(--blue-deep); }
.pbar > i { display: block; height: 100%; width: 100%; background: var(--mark); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.stages { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: .15rem; }
.stage { display: grid; grid-template-columns: 1.5rem 1fr; gap: var(--s3); align-items: start; padding: .25rem 0; opacity: .75; font-size: 1rem; }
.stage .dot { width: 1.2rem; height: 1.2rem; border: 2px solid currentColor; margin-top: .15rem; display: grid; place-items: center; }
.stage[data-state="done"] { opacity: 1; }
.stage[data-state="done"] .dot { background: var(--mark); border-color: var(--mark); }
.stage[data-state="done"] .dot::after { content: ""; width: .6rem; height: .32rem; border-left: 2px solid var(--on-mark); border-bottom: 2px solid var(--on-mark); transform: translateY(-1px) rotate(-45deg); }
.stage[data-state="active"] { opacity: 1; font-weight: 700; }
.stage[data-state="active"] .dot::after { content: ""; width: .5rem; height: .5rem; background: var(--mark); animation: blink 1s ease-in-out infinite; }
.stage[data-state="failed"] .dot { background: var(--stop); border-color: var(--stop); }
@keyframes blink { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
/* the one "working" sign: three squares that light up in turn (real loading states only) */
.loader { display: inline-flex; gap: .3rem; flex: none; }
.loader i { width: .7rem; height: .7rem; background: currentColor; animation: blink 1s ease-in-out infinite; }
.loader i:nth-child(2) { animation-delay: .15s; } .loader i:nth-child(3) { animation-delay: .3s; }
.frame-note { margin-top: var(--s3); color: var(--muted); font-size: 1rem; }

.failure { background: var(--stop-bg); color: var(--ink); }
.failure h2 { font-size: clamp(2rem, 6vw, 3rem); color: var(--stop); }
.ic.state-i { display: block; width: 2.5rem; height: 2.5rem; color: var(--stop); margin-bottom: var(--s3); }
.failure p { margin-top: var(--s3); }
.failure .code { font-size: .95rem; color: var(--muted); }
.failure .row { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }

/* result */
.score-block { background: var(--blue); color: var(--on-blue); padding: var(--s6) var(--s5); display: grid; gap: var(--s5); align-content: start; }
.score-line { display: flex; align-items: flex-end; gap: var(--s4); }
.score-big { font-family: var(--display); font-weight: 700; font-size: clamp(6rem, 22vw, 10rem); line-height: .8; letter-spacing: -.03em; }
.score-of { font-size: 1.1rem; padding-bottom: .4rem; }
.letter-sign { background: var(--mark); color: var(--on-mark); font-family: var(--display); font-weight: 700; font-size: 3.4rem; width: 4.6rem; height: 4.6rem; display: grid; place-items: center; line-height: 1; }
.score-sentence { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 4.5vw, 2.4rem); line-height: 1.05; max-width: 22ch; }
.score-sub { color: var(--on-blue-muted); max-width: 30rem; }
.legend { display: inline-block; width: .9rem; height: .9rem; margin-right: var(--s2); vertical-align: -.05em; }
.legend.red { background: var(--stop); } .legend.yellow { background: var(--mark); outline: 1px solid var(--ink); } .legend.green { background: var(--go); }
.pages-box { margin-top: var(--s6); background: var(--step); padding: var(--s5); display: grid; gap: var(--s4); }
.pages-box h2 { font-size: clamp(1.8rem, 4.6vw, 2.6rem); line-height: 1.02; max-width: 24ch; }
.compare { display: grid; gap: 2px; max-width: 40rem; }
.compare div { display: flex; justify-content: space-between; gap: var(--s4); background: var(--ground); padding: .6rem .9rem; }
.compare .on { background: var(--mark); color: var(--on-mark); font-weight: 700; }
.section-title { margin: var(--s8) 0 var(--s5); }
.section-title h2 { font-size: clamp(2rem, 5.5vw, 3.2rem); }
.section-title p { margin-top: var(--s3); color: var(--muted); }
.pillar-list { display: grid; gap: 2px; }
.prow { background: var(--step); padding: var(--s4); display: grid; gap: var(--s2) var(--s5); }
.prow:nth-child(even) { background: var(--step-2); }
.prow h3 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.prow .score { font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.prow .score small { font-family: var(--text); font-size: 1rem; font-weight: 400; margin-left: .3rem; }
.prow p { color: var(--muted); }
.verdict { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 700; }
.verdict .ic { width: 1.25rem; height: 1.25rem; }
.verdict.good { color: var(--go); } .verdict.mid { color: var(--caution); } .verdict.low { color: var(--stop); }
.prow .bar > i.low { background: var(--stop); } .prow .bar > i.mid { background: var(--mark); } .prow .bar > i.good { background: var(--go); }
.prow .bar { background: var(--ground); max-width: none; height: .8rem; }
.prow.rv:not(.in) .bar > i { animation-play-state: paused; }

.fix { background: var(--step); padding: var(--s5) var(--s4); display: grid; gap: var(--s4); margin-bottom: 2px; }
.fix-head { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: flex-start; }
.fix h3 { flex: 1 1 18rem; }
.sev { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 700; padding: .5rem .75rem; font-size: 1rem; line-height: 1.2; }
.sev::before { content: ""; width: .6rem; height: .6rem; background: currentColor; }
.sev-critical { background: var(--stop); color: #fff; } .sev-critical::before { transform: rotate(45deg); }
.sev-high { background: var(--mark); color: var(--on-mark); } .sev-high::before { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.sev-medium { background: var(--step-2); color: var(--ink); } .sev-medium::before { border-radius: 50%; }
.sev-low { background: var(--step-2); color: var(--ink); }
.fix dl { margin: 0; display: grid; gap: var(--s3); }
.fix dt { font-weight: 700; }
.fix dd { margin: 0; max-width: 42rem; }
.fix dd.todo { background: var(--mark); color: var(--on-mark); padding: .65rem .9rem; }
.tech { margin-top: var(--s1); }
.tech summary { cursor: pointer; font-size: 1rem; color: var(--muted); display: inline-block; padding: .3rem 0; }
.tech div { margin-top: var(--s2); font-size: .98rem; color: var(--muted); display: grid; gap: var(--s2); max-width: 44rem; }
.tech code { font-family: inherit; overflow-wrap: anywhere; }
.locked { position: relative; margin-top: var(--s3); overflow: hidden; background: var(--step); }
.locked .ghosts { padding: var(--s5); display: grid; gap: var(--s5); filter: blur(6px); opacity: .7; user-select: none; pointer-events: none; }
.ghost { display: grid; gap: var(--s2); } .ghost .sk { display: block; height: .8rem; background: var(--step-2); } .w90 { width: 90%; } .w75 { width: 75%; } .w55 { width: 55%; }
.locked .gate { position: absolute; inset: 0; display: grid; place-content: center; justify-items: start; gap: var(--s3); padding: var(--s5); background: color-mix(in srgb, var(--ground) 70%, transparent); }
.gate h3 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.gate p { max-width: 30rem; }
.passed-note { color: var(--muted); margin-top: var(--s4); }
.debug-json { margin-top: var(--s6); } .debug-json pre { overflow: auto; background: var(--step); padding: var(--s4); font-size: .85rem; max-height: 30rem; }
.enter { animation: rise .45s ease both; }
/* rows that arrive as they scroll into view (app.js reveal); the hidden state only exists while JS runs it */
.rv:not(.in) { opacity: 0; transform: translateY(14px); }
.rv.in { transition: opacity .45s ease var(--rd, 0s), transform .45s cubic-bezier(.2,.7,.2,1) var(--rd, 0s); }
/* score gauge on the blue field: yellow fill, marks where the letter changes */
.gauge { position: relative; height: .9rem; background: var(--blue-deep); }
.gauge-fill { position: absolute; inset: 0; background: var(--mark); transform: scaleX(var(--v)); transform-origin: left; animation: gauge .9s .1s cubic-bezier(.2,.7,.2,1) both; }
.gauge b { position: absolute; top: -.25rem; bottom: -.25rem; width: 2px; margin-left: -1px; background: var(--on-blue); opacity: .55; }
@keyframes gauge { from { transform: scaleX(0); } }
/* icons: ONE family (icons.js), 24 grid, 2px stroke, square caps, miter joins, currentColor */
.ic { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -.22em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.btn .ic { width: 1.2rem; height: 1.2rem; }
.btn .ic-arrow { transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.btn:hover .ic-arrow, .btn:focus-visible .ic-arrow { transform: translateX(3px); }
.btn.is-done .ic { animation: pop .3s ease both; }
.btn.is-busy .ic-download { animation: blink 1s ease-in-out infinite; }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.link-btn .ic { width: 1.1rem; height: 1.1rem; margin-right: .35rem; }
.ic.lab-i { width: 1.2rem; height: 1.2rem; margin-right: .4rem; }
.addr .ic { width: 14px; height: 14px; }
.dlg-note { display: flex; gap: .5rem; align-items: flex-start; } .dlg-note .ic { width: 1.2rem; height: 1.2rem; margin-top: .1em; }
.dlg-bar { position: relative; }
.dlg-x { position: absolute; top: var(--s3); right: var(--s3); width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: transparent; color: var(--on-blue); border: 2px solid transparent; cursor: pointer; }
.dlg-x:hover { border-color: var(--mark); color: var(--mark); }
.dlg-bar h2 { padding-right: 3rem; }
dialog[open] { animation: dlg-in .3s cubic-bezier(.2,.7,.2,1) both; }
dialog[open]::backdrop { animation: fade .3s ease both; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* dialogs */
dialog { border: 0; padding: 0; background: var(--ground); color: var(--ink); width: min(46rem, calc(100vw - 1rem)); max-height: calc(100svh - 1rem); overflow: auto; border-radius: 0; }
dialog::backdrop { background: rgb(5 10 30 / .72); }
.dlg-bar { background: var(--blue); color: var(--on-blue); padding: var(--s5) var(--s5) var(--s4); }
.dlg-bar h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1; }
.dlg-bar h2:focus { outline: none; }
.dlg-bar p { margin-top: var(--s2); color: var(--on-blue-muted); }
.dlg-in { padding: var(--s5); display: grid; gap: var(--s4); }
.dlg-in [data-step] { display: grid; gap: 0; }
.dlg-body { padding: var(--s5); display: grid; gap: var(--s4); }
.dlg-actions { display: flex; gap: var(--s3); flex-wrap: wrap; }
.dlg-note { background: var(--caution-bg); color: var(--caution); padding: .6rem .8rem; font-weight: 700; font-size: 1rem; max-width: none; }
.insight { background: var(--step); padding: var(--s4); display: grid; gap: var(--s3); }
.insight h3 { flex: 1 1 14rem; font-size: 1.5rem; }
.insight .head { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: flex-start; }
.insight p { max-width: none; }
.insight p strong { font-weight: 700; }
.insight .todo { background: var(--mark); color: var(--on-mark); padding: .6rem .8rem; }
.lead-grid { display: grid; gap: var(--s4); align-items: start; }
.lf { display: grid; gap: var(--s2); align-content: start; } /* don't stretch to the taller neighbour */
.lf label { font-weight: 700; }
.opt { font-weight: 400; color: var(--muted); }
.ferr { color: var(--stop); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { background: var(--step); padding: var(--s4); display: grid; gap: var(--s2); font-size: 1rem; }
.privacy p { max-width: none; }
.check-row { display: grid; grid-template-columns: 1.6rem 1fr; gap: var(--s3); align-items: start; }
.check-row input { width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; accent-color: var(--blue); }
.empty { padding: var(--s7) 0; }

.page-prose { max-width: 44rem; padding: var(--s7) 0 0; }
.page-prose h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); }
.page-prose h2 { font-size: 2rem; margin-top: var(--s7); }
.page-prose p, .page-prose ul { margin-top: var(--s3); }
.page-prose ul { padding-left: 1.2rem; display: grid; gap: var(--s2); }
.page-prose pre { background: var(--step); padding: var(--s4); overflow-x: auto; font-size: 1rem; }
.page-prose dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s5); margin: var(--s4) 0 0; }
.page-prose dt { font-weight: 700; } .page-prose dd { margin: 0; }

@media (min-width: 40rem) {
  .wrap { padding: 0 var(--s6); }
  .nav a { display: inline-block; }
  .scan-row { flex-direction: row; } .scan-row .field { flex: 1; } .scan-row .btn { min-width: 12rem; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .lights { display: flex; }
  .viewport { height: min(62svh, 34rem); }
  .lead-grid { grid-template-columns: 1fr 1fr; }
  .hud .stages { grid-template-columns: repeat(4, 1fr); gap: .25rem var(--s5); }
  .prow { grid-template-columns: minmax(16rem, 1.1fr) 2fr; align-items: center; }
  .prow .meter { grid-column: 2; }
  .q-row { grid-template-columns: minmax(16rem, 1fr) 1.6fr; align-items: start; gap: var(--s5); padding: var(--s5); }
  .q-row .share { grid-column: 1; } .q-row p { grid-column: 2; grid-row: 1 / span 2; }
  .sample-top { grid-template-columns: auto 1fr; align-items: center; }
}
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: 1.25fr 1fr; align-items: center; gap: var(--s8); padding-top: var(--s7); }
  .split { grid-template-columns: 1fr 1.2fr; gap: var(--s8); align-items: start; }
  .progress-wrap { margin: 0 -.5rem; }
    .viewport { height: min(66svh, 36rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hl { background-color: var(--mark); }
}
@media (forced-colors: active) { .btn { border-color: ButtonText; } mark, .mk { forced-color-adjust: none; } }

/* effort tag, AI table, share bar */
.effort .ic { width: 1.1rem; height: 1.1rem; margin-right: .4rem; }
.effort { display: inline-flex; align-items: center; font-weight: 700; padding: .5rem .75rem; line-height: 1.2; font-size: 1rem; background: var(--ground); color: var(--ink); }
.table-wrap { overflow-x: auto; }
.engines { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.engines th, .engines td { text-align: left; padding: var(--s3) var(--s4); vertical-align: top; }
.engines thead th { font-weight: 700; background: var(--ink); color: var(--ground); }
.engines tbody tr:nth-child(odd) { background: var(--step); }
.engines tbody tr:nth-child(even) { background: var(--step-2); }
.engines .eng { display: block; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.05; }
.engines .bots { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); margin-top: var(--s1); overflow-wrap: anywhere; }
.engines td { min-width: 9rem; }
.share-bar { margin-top: var(--s6); background: var(--step); padding: var(--s5); display: grid; gap: var(--s3); }
.share-bar h2 { font-size: 1.8rem; }
.share-bar p { max-width: 44rem; font-size: 1rem; overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .engines, .engines tbody, .engines tr, .engines th, .engines td { display: block; }
  .engines thead { position: absolute; left: -9999px; }
  .engines tbody tr { padding: var(--s3) 0; }
}

/* platform line, before/after, fix pack */
.before-after { margin-top: var(--s5); background: var(--mark); color: var(--on-mark); padding: var(--s5); display: grid; gap: var(--s2); }
.before-after p { max-width: none; }
.ba-num { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 10vw, 5rem); line-height: .9; }
.fixpack, .fixpack-locked { margin-top: var(--s8); }
.fixpack-locked { background: var(--blue); color: var(--on-blue); padding: var(--s6) var(--s5); display: grid; gap: var(--s4); }
.fixpack-locked h2 { font-size: clamp(2rem, 5.5vw, 3.2rem); max-width: 22ch; }
.fixpack-locked .btn { background: var(--mark); border-color: var(--mark); color: var(--on-mark); }
.fixpack-locked .muted { color: var(--on-blue-muted); }
/* Free account: the locked fixes, titles only (the server never sends their text). */
.fp-locked { background: var(--blue); color: var(--on-blue); padding: var(--s6) var(--s5); display: grid; gap: var(--s4); margin-top: var(--s6); }
.fp-locked h3 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); }
.fp-locked .btn { background: var(--mark); border-color: var(--mark); color: var(--on-mark); }
.fp-locked-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; max-width: 40rem; }
.fp-locked-list li { background: var(--blue-deep); padding: .55rem .8rem; display: flex; gap: var(--s3); align-items: flex-start; }
.fp-locked-list .ic { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .2em; color: var(--mark); }
/* A free re-check returned the stored result. */
.rescan-note { background: var(--mark); color: var(--on-mark); padding: var(--s5); display: grid; gap: var(--s3); margin-bottom: var(--s5); }
.rescan-note h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.rescan-note p { max-width: 44rem; margin: 0; }
.rescan-note .btn { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.rescan-note .btn:hover { background: var(--ground); color: var(--ink); }
.scan-error .link-btn { color: inherit; text-decoration: underline; }
.preview-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s2); max-width: 40rem; }
.preview-list li { background: var(--blue-deep); padding: .55rem .8rem; }
.preview-list li::before { content: ""; display: inline-block; width: .7rem; height: .7rem; background: var(--mark); margin-right: var(--s3); }
.fp-progress { display: grid; gap: var(--s2); max-width: 36rem; margin-bottom: var(--s5); }
.fp-count { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1; }
.fp-progress .bar { max-width: none; height: .9rem; background: var(--step-2); }
.fp-progress .bar > i { background: var(--go); transition: width .4s ease; }
.fp-platform { background: var(--step); padding: var(--s4); display: grid; gap: var(--s3); max-width: 36rem; margin-bottom: var(--s5); }
.fp-group { margin: var(--s7) 0 var(--s3); font-size: clamp(1.8rem, 4.5vw, 2.4rem); }
.fp-sub { font-family: var(--text); font-weight: 400; font-size: 1rem; color: var(--muted); }
.fp-card { background: var(--step); padding: var(--s5) var(--s4); display: grid; gap: var(--s3); margin-bottom: 2px; }
.fp-card.is-done { background: var(--go-bg); }
.fp-card.is-done h3 { text-decoration: line-through; text-decoration-thickness: 2px; }
.fp-card dl { margin: 0; display: grid; gap: var(--s2); } .fp-card dt { font-weight: 700; } .fp-card dd { margin: 0; max-width: 42rem; }
.fp-card dd.now { background: var(--step-2); padding: .6rem .8rem; overflow-wrap: anywhere; }
.copybox { margin: 0; background: var(--ink); color: var(--ground); padding: var(--s4); white-space: pre-wrap; overflow-wrap: anywhere; font: 1rem/1.5 var(--text); max-height: 22rem; overflow: auto; }
.fp-src { font-size: .95rem; color: var(--muted); max-width: 32rem; }
.need-list { margin: var(--s2) 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); }
.need-list li { background: var(--mark); color: var(--on-mark); padding: .5rem .75rem; font-weight: 700; font-size: .98rem; }
.fp-steps { background: var(--ground); padding: var(--s3) var(--s4); max-width: 44rem; }
.fp-done { display: flex; align-items: center; gap: var(--s3); font-weight: 700; }
.fp-done input { width: 1.5rem; height: 1.5rem; accent-color: var(--go); }
.fp-tools { margin-top: var(--s6); }

/* ---------- three-step flow ---------- */
.steps { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; counter-reset: none; }
.steps li { display: flex; align-items: center; gap: var(--s2); padding: .6rem .6rem; background: var(--step); font-weight: 700; font-size: .95rem; line-height: 1.15; color: var(--muted); }
.steps .n { flex: none; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; font-family: var(--display); font-size: 1.25rem; background: var(--ground); color: var(--ink); }
.steps li[data-state="active"] { background: var(--mark); color: var(--on-mark); }
.steps li[data-state="active"] .n { background: var(--on-mark); color: var(--mark); }
.steps li[data-state="done"] { color: var(--ink); }
.steps li[data-state="done"] .n { background: var(--go); color: var(--ground); }
.steps li[data-state="failed"] { background: var(--stop-bg); color: var(--stop); }
.steps li[data-state="failed"] .n { background: var(--stop); color: #fff; }
.steps-on-blue { margin-top: var(--s6); max-width: 36rem; }
.steps-on-blue li { background: var(--blue-deep); color: var(--on-blue-muted); }
.steps-on-blue li .n { background: transparent; color: var(--on-blue); outline: 2px solid currentColor; outline-offset: -2px; }
.steps-on-blue li[data-state="active"] .n { outline: 0; }
#flow-steps { margin-top: var(--s2); }

/* ---------- scanning: frame + live notes + counters ---------- */
.scan-stage { display: grid; gap: var(--s3); }
.chrome { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3) 0; background: var(--step-2); }
.chrome-2 { padding: var(--s2) var(--s3); background: var(--ground); }
.chrome-2 .addr { background: var(--step); }
.tab { display: inline-flex; align-items: center; gap: var(--s2); background: var(--ground); padding: .55rem .85rem; max-width: min(28rem, 75%); font-size: .95rem; font-weight: 700; min-width: 0; }
.tab span, .tab .tab-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-icon { flex: none; width: .9rem; height: .9rem; background: var(--blue); display: block; }
.tab-logo { flex: none; width: auto; height: 1.35rem; max-width: 4rem; display: block; background: #fff; padding: 2px; object-fit: contain; }
.notes { position: absolute; inset: 0; margin: 0; padding: var(--s3); list-style: none; pointer-events: none; z-index: 2; }
.note { position: absolute; max-width: min(22rem, 62%); background: var(--mark); color: var(--on-mark); padding: .6rem .8rem; display: grid; gap: .1rem; line-height: 1.25; animation: note-in .45s cubic-bezier(.2,.75,.15,1) both; outline: 3px solid var(--ink); }
.note b { font-family: var(--display); font-size: 1.15rem; letter-spacing: -.005em; }
.note span { font-size: .95rem; overflow-wrap: anywhere; }
.note.stop { background: var(--ink); color: var(--ground); outline-color: var(--stop); }
.note.slot-0 { top: 12%; left: 4%; } .note.slot-1 { top: 30%; right: 4%; } .note.slot-2 { bottom: 26%; left: 8%; } .note.slot-3 { bottom: 9%; right: 6%; }
@keyframes note-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.live { background: var(--step); padding: var(--s4); display: grid; gap: var(--s4); align-content: start; }
.counters { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.counters div { background: var(--ground); padding: var(--s3); }
.counters dt { font-size: .95rem; color: var(--muted); font-weight: 700; }
.counters dd.bump { animation: bump .35s ease-out; transform-origin: left bottom; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.counters dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 7vw, 3rem); line-height: 1; font-variant-numeric: tabular-nums; }
.counters dd small { font-family: var(--text); font-size: 1rem; font-weight: 400; color: var(--muted); }
.live-h { font-size: 1.5rem; }

/* ---------- result: proof hero ---------- */
#scan-title { max-width: 18ch; }
.proof { display: grid; gap: 2px; margin-top: var(--s2); }
.proof-frame { margin: 0; background: var(--step); display: grid; }
.proof-view { position: relative; background: #fff; aspect-ratio: 16 / 10; overflow: hidden; }
.proof-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.proof-empty { position: absolute; inset: 0; display: grid; place-content: center; padding: var(--s5); color: #44506e; background: #f3f5f9; max-width: none; text-align: left; }
.proof-frame figcaption { padding: var(--s2) var(--s3); font-size: .98rem; color: var(--muted); }
.addr-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score-block { padding: var(--s5); gap: var(--s4); }
.score-line { align-items: center; }
.score-of { font-weight: 700; line-height: 1.1; padding: 0; color: var(--on-blue-muted); }
.score-block .score-sub { color: var(--on-blue); font-family: var(--display); font-weight: 600; font-size: clamp(1.45rem, 3vw, 1.8rem); line-height: 1.1; max-width: 20ch; }
.cta-slot { display: grid; gap: var(--s3); justify-items: start; align-content: start; min-height: 3.25rem; }
.link-on-blue { color: var(--on-blue); font-weight: 700; font-size: 1rem; }
.link-btn.link-on-blue { padding: .4rem 0; }

/* ---------- result: what we saw ---------- */
.evidence .section-title { margin-top: var(--s7); }
.ledger { margin: 0; display: grid; gap: 2px; }
.ev-row { display: grid; gap: var(--s1) var(--s5); padding: var(--s3) var(--s4); background: var(--step); }
.ev-row:nth-child(even) { background: var(--step-2); }
.ev-row dt { font-weight: 700; }
.ev-row dd { margin: 0; overflow-wrap: anywhere; }
.ev-row mark { font-size: 1.1rem; line-height: 1.5; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips li { background: var(--ground); padding: .5rem .75rem; font-weight: 700; font-size: 1rem; }
.chips li.mid { color: var(--caution); } .chips li.low { color: var(--stop); }
.ps-h { margin: var(--s6) 0 var(--s3); font-size: 1.6rem; }
.page-strip { list-style: none; margin: 0; padding: 0 0 var(--s2); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 11rem); gap: var(--s2); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: var(--muted) var(--step); }
.ps-btn { width: 100%; display: grid; gap: .2rem; padding: 0 0 var(--s2); background: var(--step); color: var(--ink); border: 0; text-align: left; font: inherit; cursor: pointer; }
.ps-btn.no-shot { cursor: default; }
.ps-btn img, .ps-blank { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; background: var(--step-2); margin-bottom: var(--s1); }
.ps-path { font-weight: 700; font-size: .98rem; padding: 0 var(--s2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-words { font-size: .92rem; color: var(--muted); padding: 0 var(--s2); }
.ps-btn:not(.no-shot):hover { background: var(--step-2); }
.ps-btn[aria-pressed="true"] { background: var(--mark); color: var(--on-mark); }
.ps-btn[aria-pressed="true"] .ps-words { color: var(--on-mark); }

@media (min-width: 40rem) {
  .steps li { padding: .7rem .9rem; font-size: 1.05rem; }
  .ev-row { grid-template-columns: 13rem 1fr; align-items: baseline; }
}
@media (min-width: 62rem) {
  .scan-stage { grid-template-columns: minmax(0, 1fr) 21rem; gap: 2px; }
  .proof { grid-template-columns: minmax(0, 1.65fr) minmax(19rem, 1fr); }
  .proof-view { aspect-ratio: auto; height: min(50svh, 28rem); }
  .score-block { align-content: start; }
  #scan-title { font-size: clamp(3rem, 5.4vw, 4.6rem); }
}


@media (max-width: 39.99rem) {
  .scan-actions { gap: var(--s4); }
  .scan-actions .btn { min-height: 2.75rem; padding: .2rem 0; border: 0; background: none; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
  .scan-actions .btn:hover { background: var(--mark); color: var(--on-mark); }
  .scan-head { padding-top: var(--s5); }
}

/* lead notice (notice-lead-v1: information, not a consent box) */
.notice { background: var(--step); padding: var(--s4); font-size: 1rem; max-width: none; }
.notice a, .small-note a { font-weight: 700; }
.small-note { font-size: .95rem; }

.footer-link { color: var(--ground); font-size: 1rem; padding: 0; }
.site-footer .footer-link:focus-visible { outline-color: var(--mark); }
/* landing header is both .wrap and .site-header: keep the side gutter (the .site-header padding shorthand reset it) */
.wrap.site-header { padding-left: var(--s4); padding-right: var(--s4); }
@media (min-width: 40rem) { .wrap.site-header { padding-left: var(--s6); padding-right: var(--s6); } }

/* payment page (#/pay/<plan>): capture-only checkout. Mobile first: plan summary on top, then the card fields. */
.pay { display: grid; gap: var(--s5); padding-top: var(--s4); }
.pay-summary { padding: var(--s5); display: grid; gap: var(--s3); align-content: start; align-self: start; }
.pay-kicker { font-weight: 700; color: var(--on-blue-muted); }
.pay-summary h2 { font-size: clamp(2rem, 6vw, 2.8rem); }
.pay-price { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 9vw, 3.6rem); line-height: 1; }
.pay-price small { font-family: var(--text); font-weight: 400; font-size: 1.1rem; }
.pay-features { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--s1); }
.pay-lines { margin: var(--s2) 0 0; display: grid; gap: 2px; }
.pay-lines div { display: flex; justify-content: space-between; gap: var(--s4); padding: .55rem .75rem; background: var(--blue-deep); }
.pay-lines dt { font-weight: 400; } .pay-lines dd { margin: 0; font-weight: 700; }
.pay-lines .pay-total { background: var(--mark); color: var(--on-mark); }
.pay-tax { font-size: 1rem; color: var(--on-blue-muted); }
.pay-main { display: grid; gap: var(--s4); align-content: start; min-width: 0; }
.pay-main h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); }
.pay-main h1:focus, .pay-result h2:focus { outline: none; }
.pay-entry { display: grid; gap: var(--s4); }
.pay-row { display: grid; gap: var(--s4); }
.pay .ferr:empty { display: none; }
.pay-hint { font-size: 1rem; color: var(--muted); margin-top: -.25rem; }
.pay-mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.pay-brand { display: inline-block; margin-left: var(--s2); padding: 0 .45rem; font-size: .95rem; background: var(--step-2); color: var(--ink); }
.pay-brand:empty { display: none; }
.pay-actions { display: grid; gap: var(--s2); }
.pay-approve { width: 100%; min-height: 3.6rem; font-size: 1.2rem; }
.pay-approve .ic { width: 1.3rem; height: 1.3rem; }
.pay-processing { display: flex; align-items: center; gap: var(--s3); padding: var(--s5); background: var(--step); font-weight: 700; font-size: 1.2rem; }
.pay-processing { animation: rise .3s ease both; }
.pay-result { display: grid; gap: var(--s4); background: var(--stop-bg); color: var(--ink); padding: var(--s5); animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
.pay-result .state-i { margin-bottom: 0; }
.pay-result h2 { color: var(--stop); font-size: clamp(2rem, 6vw, 2.8rem); }
.pay-result p { max-width: 38rem; }
.pay-ref { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: .02em; background: var(--mark); color: var(--on-mark); padding: .05em .35em; }
.pay-who strong { color: var(--ink); }
@media (min-width: 40rem) {
  .pay-row { grid-template-columns: 1fr 1fr; }
  .pay-approve { width: auto; justify-self: start; min-width: 18rem; }
}
@media (min-width: 62rem) {
  .pay { grid-template-columns: minmax(0, 1.4fr) minmax(20rem, 1fr); gap: var(--s7); padding-top: var(--s5); }
  .pay-summary { order: 2; position: sticky; top: var(--s4); }
}
@media (prefers-reduced-motion: reduce) {
  .loader i, .stage[data-state="active"] .dot::after { opacity: 1; transform: none; }
  .loader i:nth-child(2) { opacity: .6; } .loader i:nth-child(3) { opacity: .3; }
  .vp-content .slide { transform: none; }
}

/* accounts: header state, Create account / Sign in switch, password and code fields */
.nav { min-width: 0; }
.site-header .brand { flex: none; }
.nav-acct { font-weight: 700; font-size: 1rem; min-height: 2.75rem; padding: .25rem .5rem; white-space: nowrap; }
.nav-acct:hover { background: var(--mark); color: var(--on-mark); }
.acct { display: flex; align-items: center; gap: var(--s1); min-width: 0; }
.acct-who { font-size: .95rem; min-width: 0; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-who strong { font-weight: 700; }
@media (max-width: 30rem) { .acct-pre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .acct-who { max-width: 6.5rem; } }
@media (min-width: 40rem) { .acct-who { max-width: 16rem; } }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); }
.auth-tab { font: 700 1.05rem/1.2 var(--text); min-height: 2.9rem; padding: .5rem .75rem; background: var(--ground); color: var(--ink); border: 0; cursor: pointer; }
.auth-tab[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.auth-tab[aria-pressed="false"]:hover { background: var(--mark); color: var(--on-mark); }
.pw-row { display: flex; gap: 0; }
.pw-row .field { flex: 1; min-width: 0; border-right: 0; }
.pw-toggle { min-height: 3.4rem; min-width: 5rem; padding: .5rem .9rem; font-size: 1rem; }
.forgot-link { justify-self: start; font-weight: 700; padding: .5rem 0; min-height: 2.75rem; }
.code-field { font-size: 1.9rem; letter-spacing: .35em; font-variant-numeric: tabular-nums; max-width: 14rem; text-align: left; }
.small-note.muted { color: var(--muted); }
