/* Self-hosted fonts (OFL). Variable files, latin subset, from Google Fonts. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/fraunces.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/inter.woff2") format("woff2"); }
/* Fallback metrics so the swap doesn't shift the layout. */
@font-face { font-family: "Inter Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); size-adjust: 103%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
/* Second Look — tokens and components. Light-first, dark via prefers-color-scheme.
   Roles: bg (page), surface (raised), line (hairlines), ink (text), ink-2 (secondary), ink-3 (captions only),
   accent (hero field, primary button, score numeral), field-ink (text on the accent field). */
:root {
  --bg: #ffffff; --surface: #f4f4f2; --line: #e3e3e0;
  --ink: #111214; --ink-2: #5b5e66; --ink-3: #6f727b;
  --accent: #2433d9; --accent-hover: #1c29b8; --field: #2433d9; --field-ink: #ffffff; --field-ink-2: rgba(255,255,255,.78);
  --focus: #2433d9;
  --blocker: #b3261e; --high: #b45f06; --medium: #2f5d8a;

  --font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --font-text: "Inter", "Inter Fallback", -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;

  /* scale 1.25, fluid */
  --text-sm: clamp(.875rem, .85rem + .1vw, .9375rem);
  --text-base: clamp(1rem, .95rem + .25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.05rem + .4vw, 1.375rem);
  --text-xl: clamp(1.375rem, 1.2rem + .8vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --text-display: clamp(2.5rem, 1rem + 4.4vw, 5.5rem);
  --text-score: clamp(5rem, 3rem + 10vw, 11rem);
  --leading-body: 1.6; --leading-tight: 1.25; --leading-display: .98;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 144px;
  --gutter: 24px; --content-max: 1120px; --measure: 62ch;
  --r-control: 4px; --r-panel: 8px;
  --dur-fast: 120ms; --dur-base: 200ms; --ease-out: cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1012; --surface: #17181b; --line: #2a2b30;
    --ink: #ececea; --ink-2: #a9abb3; --ink-3: #7d8089;
    --accent: #4a57f0; --accent-hover: #3340d0; --focus: #8d97ff; --field: #1d28a8;
    --blocker: #ff6b61; --high: #f0a84a; --medium: #7fb0e6;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1012; --surface: #17181b; --line: #2a2b30;
  --ink: #ececea; --ink-2: #a9abb3; --ink-3: #7d8089;
  --accent: #4a57f0; --accent-hover: #3340d0; --focus: #8d97ff; --field: #1d28a8;
}
@media (prefers-reduced-motion: reduce) { :root { --dur-fast: 1ms; --dur-base: 1ms; } }

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--text-base)/var(--leading-body) var(--font-text); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: inherit; text-underline-offset: .15em; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r-control); }
.wrap { max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--s-4); top: -100px; background: var(--ink); color: var(--bg); padding: var(--s-2) var(--s-4); z-index: 10; }
.skip:focus { top: var(--s-4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type */
.display { font-family: var(--font-display); font-weight: 500; font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1; letter-spacing: -.02em; line-height: var(--leading-display); text-wrap: balance; }
h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; letter-spacing: -.01em; line-height: var(--leading-tight); text-wrap: balance; max-width: 24ch; font-variation-settings: "SOFT" 50; }
h3 { font-size: var(--text-lg); font-weight: 600; line-height: var(--leading-tight); }
.lede { font-size: var(--text-lg); color: var(--ink-2); max-width: 52ch; text-wrap: pretty; }
.measure { max-width: var(--measure); text-wrap: pretty; }
.small { font-size: var(--text-sm); color: var(--ink-2); max-width: 68ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s-5); border: 1px solid transparent; border-radius: var(--r-control); font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { opacity: .9; }
.btn-ghost { background: transparent; border-color: var(--ink-3); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.field-btn { background: var(--field-ink); color: #2433d9; }
.field-btn:hover { background: #ecefff; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--field); color: var(--field-ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: var(--s-4); }
.brand { font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; text-decoration: none; letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.site-nav { display: flex; gap: var(--s-5); align-items: center; }
.site-nav a { text-decoration: none; color: var(--field-ink-2); font-size: var(--text-sm); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover { color: var(--field-ink); }
.site-nav a.btn { min-height: 44px; padding-inline: var(--s-4); color: #2433d9; }
.site-nav a.btn .short { display: none; }
@media (max-width: 640px) { .site-nav a.btn .full { display: none; } .site-nav a.btn .short { display: inline; } }
.site-nav a.btn:hover { color: #1c29b8; background: #ecefff; }
@media (max-width: 640px) { .site-nav a:not(.btn) { display: none; } }

/* hero: the one colour field */
.hero { background: var(--field); color: var(--field-ink); padding: var(--s-8) 0 var(--s-9); }
.hero h1 { font-size: var(--text-display); max-width: 24ch; }
.hero h1 .line { display: block; }
.hero h1 .line:nth-child(2) { padding-left: clamp(0px, 6vw, 96px); }
.hero h1 .line:nth-child(3) { padding-left: 0; }
@media (max-width: 640px) { .hero h1 .line { padding-left: 0 !important; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); align-items: start; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--s-8); } .hero h1 { font-size: min(var(--text-display), 4rem); } }
.hero-card { display: none; background: rgba(255,255,255,.08); color: var(--field-ink); border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-panel); padding: var(--s-5); text-decoration: none; margin-top: var(--s-3); transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.hero-card:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.12); }
@media (min-width: 1000px) { .hero-card { display: block; } }
.hero-card .small { color: var(--field-ink-2); }
.hero-card .score-num { color: var(--field-ink); margin-top: var(--s-2); }
.hero-card .score-num small { color: var(--field-ink-2); }
.hero-card img { display: block; width: 100%; height: auto; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r-control); margin-top: var(--s-4); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--surface); }
.hero-card .hc-finding { margin-top: var(--s-4); font-weight: 500; display: flex; gap: var(--s-2); align-items: center; }
.hero-card .hc-link { margin-top: var(--s-3); color: var(--field-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero-card .sev, .hero-card .sev.medium, .hero-card .sev.high, .hero-card .sev.blocker { color: var(--field-ink); border-color: rgba(255,255,255,.5); }
.hero .lede { color: var(--field-ink-2); margin-top: var(--s-6); max-width: 48ch; }
.hero .lede b { color: var(--field-ink); font-weight: 600; }

.score-form { margin-top: var(--s-7); max-width: 640px; }
.score-form label { display: block; font-size: var(--text-sm); font-weight: 500; color: var(--field-ink-2); margin-bottom: var(--s-2); }
.score-form .row { display: flex; gap: var(--s-2); }
.score-form input { flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 var(--s-4); border: 1px solid rgba(255,255,255,.45); border-radius: var(--r-control); background: rgba(255,255,255,.12); color: #fff; }
.score-form input::placeholder { color: rgba(255,255,255,.6); }
.score-form input:focus-visible { outline-color: #fff; background: rgba(255,255,255,.18); }
.score-form .btn { min-height: 52px; }
.score-form .note { margin-top: var(--s-3); font-size: var(--text-sm); color: var(--field-ink-2); }
@media (max-width: 520px) { .score-form .row { flex-direction: column; } .score-form .btn { width: 100%; } }

/* live result panel */
.result { margin-top: var(--s-5); border-radius: var(--r-panel); background: var(--bg); color: var(--ink); padding: var(--s-5); display: none; }
.result[data-state] { display: block; }
.result .status { display: flex; align-items: center; gap: var(--s-3); color: var(--ink-2); }
.result .spinner { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 800ms linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .result .spinner { animation: none; border-top-color: var(--line); } }
.result .score-line { display: flex; align-items: baseline; gap: var(--s-4); flex-wrap: wrap; }
/* score lockup, shared */
.score-num { font-family: var(--font-display); font-weight: 500; font-size: clamp(3.5rem, 2rem + 6vw, 6rem); line-height: .9; letter-spacing: -.03em; color: var(--accent); font-variation-settings: "opsz" 144; }
.score-num small { font-family: var(--font-text); font-size: var(--text-base); color: var(--ink-3); letter-spacing: 0; margin-left: var(--s-1); }
.hero-card .score-num { font-size: 4rem; }
.result .score-num { font-family: var(--font-display); font-weight: 500; font-size: clamp(3.5rem, 2rem + 6vw, 6rem); line-height: .9; letter-spacing: -.03em; color: var(--accent); font-variation-settings: "opsz" 144; }
.result .score-num small { font-family: var(--font-text); font-size: var(--text-base); color: var(--ink-3); letter-spacing: 0; margin-left: var(--s-1); }
.result .verdict { margin-top: var(--s-3); max-width: 60ch; text-wrap: pretty; }
.result ol { margin: var(--s-4) 0 0; padding-left: 1.25em; display: grid; gap: var(--s-2); }
.result .actions { display: flex; gap: var(--s-3); margin-top: var(--s-5); flex-wrap: wrap; }
.result .err { color: var(--blocker); }

/* sections */
section { padding: var(--s-9) 0; }
section + section { padding-top: 0; }
.hero + section { padding-top: var(--s-9); }
.section-head { margin-bottom: var(--s-6); }
.section-head p { margin-top: var(--s-3); }

/* sample report excerpt */
.sample { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7); align-items: start; }
.sample figure img { border: 1px solid var(--line); }
.sample figcaption { margin-top: var(--s-2); }
.sample .score-num { font-family: var(--font-display); font-weight: 500; font-size: 4.5rem; line-height: .9; letter-spacing: -.03em; color: var(--accent); font-variation-settings: "opsz" 144; }
.sample .score-num small { font-family: var(--font-text); font-size: var(--text-base); color: var(--ink-3); letter-spacing: 0; margin-left: var(--s-1); vertical-align: .5em; }
.finding { border-top: 1px solid var(--line); padding: var(--s-5) 0; display: grid; gap: var(--s-2); }
.finding:last-child { border-bottom: 1px solid var(--line); }
.finding .head { display: flex; gap: var(--s-3); align-items: baseline; flex-wrap: wrap; }
.sev { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border: 1px solid currentColor; border-radius: 3px; }
.sev.high { color: var(--high); } .sev.medium { color: var(--medium); } .sev.blocker { color: var(--blocker); }
.finding .fix { background: var(--surface); padding: var(--s-3) var(--s-4); border-left: 3px solid var(--ink); }
.finding p { max-width: 60ch; text-wrap: pretty; }
@media (max-width: 860px) { .sample { grid-template-columns: 1fr; } }

/* how it works: a real sequence, so numbers are allowed */
.steps { counter-reset: step; display: grid; gap: var(--s-5); max-width: 68ch; }
.steps li { list-style: none; display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s-4); }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-size: var(--text-xl); color: var(--ink-3); line-height: 1.2; }
.steps h3 { margin-bottom: var(--s-1); }
.steps p { color: var(--ink-2); text-wrap: pretty; }

/* pricing: tier cards on phone, one comparison table above */
.tiers { display: none; }
@media (max-width: 640px) {
  .tiers { display: grid; gap: var(--s-4); }
  .pricing { display: none !important; }
  .tier { border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s-5); }
  .tier.featured { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
  .tier h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: -.01em; }
  .tier .price { color: var(--ink-2); margin-top: var(--s-1); }
  .tier ul { margin: var(--s-4) 0 0; padding-left: 20px; }
  .tier li + li { margin-top: var(--s-1); }
  .tier .btn { margin-top: var(--s-4); width: 100%; }
}
/* pricing: one comparison table */
.pricing { width: 100%; border-collapse: collapse; }
.pricing th, .pricing td { text-align: left; vertical-align: top; padding: var(--s-4) var(--s-4) var(--s-4) 0; border-top: 1px solid var(--line); }
.pricing thead th { border-top: 0; padding-top: 0; }
.pricing thead .tier { display: block; font-size: var(--text-base); font-weight: 600; color: var(--ink-2); }
.pricing thead .price { display: block; color: var(--ink); font-family: var(--font-display); font-size: 2rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin-top: var(--s-1); font-variation-settings: "SOFT" 50, "opsz" 48; }
.pricing thead .price small { font-family: var(--font-text); font-size: var(--text-sm); font-weight: 400; color: var(--ink-2); letter-spacing: 0; margin: 0 .35em; }
.pricing tbody th { font-weight: 500; color: var(--ink-2); width: 22%; }
.pricing td { color: var(--ink); }
.pricing td .no { color: var(--ink-3); }
.pricing tfoot td { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.pricing .btn { width: 100%; max-width: 260px; }
@media (max-width: 760px) {
  .pricing thead { display: none; }
  .pricing, .pricing tbody, .pricing tr, .pricing td, .pricing th, .pricing tfoot { display: block; width: auto; }
  .pricing tbody tr { border-top: 1px solid var(--line); padding: var(--s-4) 0; }
  .pricing tbody th { border: 0; padding: 0 0 var(--s-2); }
  .pricing tbody td { border: 0; padding: var(--s-1) 0; }
  .pricing tbody td::before { content: attr(data-tier) ": "; color: var(--ink-3); }
  .pricing tfoot tr { display: grid; gap: var(--s-3); padding-top: var(--s-5); }
  .pricing tfoot td { border: 0; padding: 0; }
}

/* signed by */
.signed { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-6); align-items: start; max-width: 76ch; }
.mark { width: 96px; height: 96px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.mark svg { width: 56px; height: 56px; }
.signed p + p { margin-top: var(--s-3); }
@media (max-width: 520px) { .signed { grid-template-columns: 1fr; } .mark { width: 72px; height: 72px; } .mark svg { width: 42px; height: 42px; } }

/* recent reviews: real ones, listed, not carded */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.review { text-decoration: none; display: block; }
.review img { border: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.review .meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--s-3); gap: var(--s-3); }
.review .site { font-weight: 600; }
.review .num { font-family: var(--font-display); font-size: var(--text-xl); color: var(--accent); }
.review p { color: var(--ink-2); margin-top: var(--s-1); font-size: var(--text-sm); text-wrap: pretty; }
.review:hover .site { text-decoration: underline; }
@media (max-width: 760px) { .reviews { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 68ch; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: var(--s-4) 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); min-height: 44px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-size: 1.25rem; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: var(--s-4); color: var(--ink-2); text-wrap: pretty; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--s-6) 0 var(--s-8); color: var(--ink-2); font-size: var(--text-sm); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.site-footer nav { display: flex; gap: var(--s-4); }

.site-footer nav a { padding-block: 11px; display: inline-block; }
.section-head .lede, .measure, .faq p, .steps p { max-width: 64ch; }
