@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #fbfaf7;
  --sand: #f3eee4;
  --sand-deep: #e8e0d1;
  --paper: #ffffff;
  --ink: #0b2557;
  --ink-2: #3d4a66;
  --ink-3: #5d6880;
  --line: #e4ded2;
  --go: #0f7a36;
  --go-deep: #0b6129;
  --go-tint: #e3f2e8;
  --go-bright: #a8ecc0;
  --damage: #c41f29;
  --damage-tint: #fbe7e7;
  --damage-ink: #8c141c;
  --go-ink: #0f7a36;
  --deep: #0e3b26;
  --tape: #f2b007;
  --tape-ink: #14213d;
  --font-data: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px rgba(11, 37, 87, 0.06), 0 4px 12px -4px rgba(11, 37, 87, 0.1);
  --shadow-lg: 0 2px 6px rgba(11, 37, 87, 0.06), 0 30px 60px -24px rgba(11, 37, 87, 0.32);
  color-scheme: light;
}

/* Dark theme: follows the system unless the visitor picks one (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1526; --sand: #131d32; --sand-deep: #22304d; --paper: #17223a;
    --ink: #edf1f7; --ink-2: #b9c2d3; --ink-3: #939eb3; --line: #27344f;
    --go-tint: #163a27; --go-ink: #5fd38a; --damage: #ff6b72; --damage-tint: #3a1b23; --damage-ink: #ffb8bb;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px -4px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 30px 60px -24px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1526; --sand: #131d32; --sand-deep: #22304d; --paper: #17223a;
  --ink: #edf1f7; --ink-2: #b9c2d3; --ink-3: #939eb3; --line: #27344f;
  --go-tint: #163a27; --go-ink: #5fd38a; --damage: #ff6b72; --damage-tint: #3a1b23; --damage-ink: #ffb8bb;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px -4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 30px 60px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: var(--sand-deep) var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--go-tint); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--go); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 720; }
h3 { font-size: 1.1875rem; font-weight: 680; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 10px; border: 1.5px solid var(--ink);
  font-weight: 640; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn-go { background: var(--go); border-color: var(--go); color: #fff; box-shadow: var(--shadow-sm); }
.btn-go:hover { background: var(--go-deep); border-color: var(--go-deep); }
.nav-cta { background: var(--go); border-color: var(--go); color: #fff; white-space: nowrap; padding: 12px 20px; }
.nav-cta:hover { background: var(--go-deep); border-color: var(--go-deep); }
.btn-light { background: #fff; border-color: #fff; color: var(--deep); }
.btn-light:hover { background: #e3e9f3; border-color: #e3e9f3; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 640; text-decoration: none; color: var(--ink); padding: 12px 4px; }
.link-arrow svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 32px; min-height: 72px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 760; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.brand b { color: var(--go-ink); font-weight: 760; }
.navlinks { display: flex; gap: 28px; margin-left: auto; }
.navlinks a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 560; font-size: 0.9375rem; line-height: 1; white-space: nowrap; color: var(--ink-2); transition: color 0.15s, background-color 0.15s; }
.navlinks a:hover { color: var(--ink); background: var(--sand); }
.menu { display: none; }
.theme-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.brand + .theme-toggle { margin-left: auto; }
.theme-toggle:hover { background: var(--sand); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon, :root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] img.mark { content: url("assets/snapclaim-mark-dark.png"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
  :root:not([data-theme="light"]) img.mark { content: url("assets/snapclaim-mark-dark.png"); }
}
.menu > button { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); padding: 0; font: inherit; }
.menu > button:hover { background: var(--sand); }
.menu ul[hidden] { display: none; }
.menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 32px));
  background: var(--paper); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px;
}
.menu li a { display: block; padding: 12px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.menu li a:hover { background: var(--sand); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; padding-block: 72px 104px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); background: var(--sand); padding: 6px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 3px var(--go-tint); }
.hero h1 { margin-top: 24px; font-size: clamp(3rem, 6.4vw, 5.25rem); font-weight: 780; line-height: 0.98; letter-spacing: -0.035em; }
.lede { margin-top: 24px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--ink-2); max-width: 34ch; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }
.assurances { margin-top: 40px; display: grid; gap: 10px; font-size: 0.9375rem; color: var(--ink-2); }
.hero-proof { margin-top: 20px; font-size: 0.9375rem; color: var(--ink-2); max-width: 40ch; }
.hero-proof b { font-family: var(--font-data); font-weight: 700; color: var(--ink); }
.assurances li { display: flex; align-items: center; gap: 10px; }
.assurances svg, .checked svg, .mini-ok svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--go-ink); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

.phone-stage { margin: 0; display: grid; justify-items: center; gap: 16px; position: relative; padding: 40px 0 0; }
.phone-stage::before { content: ""; position: absolute; inset: 0 0 36px; background: var(--sand); border-radius: 28px; z-index: -1; }
.phone {
  width: min(340px, 100%); padding: 10px; border-radius: 50px; background: #111827;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2b3446;
  margin-bottom: -40px;
}
.screen { border-radius: 40px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.shot { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; }
.shot img, .step-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tag {
  position: absolute; left: 58%; top: 42%;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--tape); color: var(--tape-ink);
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem; font-weight: 700;
  padding: 5px 9px; border-radius: 7px; box-shadow: var(--shadow-sm); white-space: nowrap;
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--damage); }
.result { padding: 16px 18px 20px; display: grid; gap: 14px; }
.result-head { display: flex; justify-content: space-between; align-items: center; }
.checked { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; font-weight: 640; color: var(--go-ink); }
.measures { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border: 1px solid var(--line); border-radius: 12px; }
.measures div { padding: 10px 12px; }
.measures div + div { border-left: 1px solid var(--line); }
.measures dt { font-size: 0.75rem; color: var(--ink-3); }
.measures dd { margin: 0; white-space: nowrap; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
/* Instrument voice: every number on the page is a measurement, set in mono */
.measures dd, .mini-row i:last-child, .stats-grid dd, .screen .eyebrow {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}
.screen .eyebrow { letter-spacing: 0.04em; }
/* Tape-marker hero thesis */
.marker {
  background-image: linear-gradient(100deg, transparent 0.5%, var(--tape) 3%, var(--tape) 97%, transparent 99.5%);
  background-repeat: no-repeat;
  background-size: 100% 0.32em;
  background-position: 0 88%;
}
.fake-btn { display: grid; place-items: center; min-height: 44px; border-radius: 10px; background: var(--go); color: #fff; font-weight: 640; font-size: 0.9375rem; }
.fake-btn.fake-dark { background: var(--ink); color: var(--bg); }
.phone-stage figcaption { font-size: 0.8125rem; color: var(--ink-3); margin-top: 48px; text-align: center; }

/* Case study (rendered from assets/case-study/case-study.json; hidden until published) */
[hidden] { display: none !important; }
.case-study { padding-block: 24px 112px; }
.case-study .status { margin-bottom: 20px; }
.case-study .sub { margin-top: 16px; max-width: 62ch; }
.cs-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; align-items: start; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; margin-top: 36px; align-items: start; }
.cs-grid > div > h3.doc-sec:first-child { margin-top: 0; }
.cs-photos figure { margin: 0; }
.cs-photos img { border-radius: 16px; width: 100%; height: auto; background: var(--sand); }
.cs-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.cs-stat { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; background: var(--paper); }
.cs-stat small { font-size: 0.75rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.cs-stat b { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.cs-stat span { font-size: 0.8125rem; color: var(--ink-2); }
.cs-pdf { margin-top: 16px; }
.cs-pages { display: grid; gap: 24px; margin-top: 8px; }
.cs-pages img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); }
.cs-pdfview { display: block; width: 100%; height: min(78vh, 720px); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); margin-top: 8px; }
.cs-photos figcaption { font-size: 0.8125rem; color: var(--ink-3); margin-top: 8px; }
.case-study table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.9375rem; }
.case-study th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 10px 0; border-bottom: 1px solid var(--line); }
.case-study td { padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line); font-weight: 680; white-space: nowrap; }
.case-study thead th { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; }
.case-study td:last-child { text-align: right; }
.case-study .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.8125rem; }

/* App-mirror: the phone shows the real Get-the-numbers screen */
.screen .eyebrow { display: flex; align-items: center; gap: 8px; padding: 16px 18px 0; font-size: 0.75rem; font-weight: 700; color: var(--go-ink); }
.screen .eyebrow .dashes { display: inline-flex; gap: 4px; }
.screen .eyebrow .dashes i { width: 20px; height: 4px; border-radius: 2px; background: var(--line); }
.screen .eyebrow .dashes i.on { background: var(--go); }
.shot .tag { left: 32%; top: 40%; }
.shot .chip { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; background: #fff; color: #0b2557; font-size: 0.75rem; font-weight: 700; padding: 6px 10px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.shot .chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--damage); }
.step-art .tag { left: auto; right: 14px; top: 14px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.pill-ok { background: var(--go-tint); color: var(--go-ink); }
.found { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.sevbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--damage-tint); color: var(--damage-ink); border-radius: 10px; padding: 10px 12px; font-weight: 800; font-size: 0.9375rem; }
.sevbar small { font-weight: 600; font-size: 0.75rem; opacity: 0.8; }
.doc-said span { display: block; font-style: normal; font-size: 0.75rem; font-weight: 640; color: var(--ink-3); margin-bottom: 2px; }
.doc-sec { font-size: 0.9375rem; font-weight: 760; margin: 18px 0 8px; }
.doc-said { font-size: 0.9375rem; font-style: italic; color: var(--ink-2); }
.doc-said span { display: block; font-style: normal; font-size: 0.75rem; font-weight: 640; color: var(--ink-3); margin-bottom: 2px; }
.doc-method, .doc-checks { font-size: 0.875rem; color: var(--ink-2); }

/* The tag rises once the photo is in view */
@media (prefers-reduced-motion: no-preference) {
  .shot .tag { animation: rise 0.6s 1.7s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Band */
.band { background: var(--deep); color: #fff; padding-block: 96px; }
.pull { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 560; line-height: 1.3; letter-spacing: -0.02em; max-width: 30ch; }
.pull em { font-style: normal; color: var(--go-bright); }

/* How it works */
.how { padding-block: 112px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.step-art { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--sand); margin-bottom: 24px; }
.corner { position: absolute; width: 28px; height: 28px; border: 3px solid #fff; }
.corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.hint { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); background: rgba(17, 24, 39, 0.82); color: #fff; font-size: 0.8125rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; white-space: nowrap; }
.step-doc { display: grid; place-items: center; padding: 24px; }
.mini-doc { width: min(260px, 100%); background: var(--paper); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 18px; display: grid; gap: 8px; font-size: 0.875rem; }
.mini-doc b { font-size: 1rem; margin-bottom: 4px; }
.mini-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.mini-row i { font-style: normal; }
.mini-row i:first-child { color: var(--ink-3); }
.mini-row i:last-child { font-weight: 680; }
.mini-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--go-ink); font-weight: 640; margin-top: 4px; }
.steps h3 { display: flex; align-items: center; gap: 12px; font-size: 1.375rem; }
.n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--go-tint); color: var(--go-ink); font-size: 0.9375rem; font-weight: 760; letter-spacing: 0; }
.steps p { margin-top: 10px; color: var(--ink-2); max-width: 36ch; }

/* Who it's for */
.who { background: var(--sand); padding-block: 104px; }
.who-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.who-list article { padding: 8px 40px 8px 0; }
.who-list article + article { padding-left: 40px; border-left: 1px solid var(--sand-deep); }
.who-icon { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.who-list p { margin-top: 10px; color: var(--ink-2); }

/* Subpages (how, faq): shared page header */
.page-head { padding-block: 56px 16px; }
.page-head h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.page-head .lede { margin-top: 16px; }
.nyt-kicker {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 16px;
}

/* Progress page: live stats, timeline */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 24px 0 8px; }
.stats-grid div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--paper); }
.stats-grid dt { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.stats-grid dd { margin: 4px 0 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.commits { display: grid; gap: 8px; margin-top: 12px; }
.commits li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--paper); font-size: 0.9375rem; }
.commits a { font-weight: 680; text-decoration: none; }
.commits a:hover { text-decoration: underline; }
.commits small { display: block; color: var(--ink-3); margin-top: 2px; }
.people { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.people li { list-style: none; }
.people a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 640; font-size: 0.9375rem; }
.people img { width: 32px; height: 32px; border-radius: 50%; }
.timeline { margin-top: 24px; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 28px 28px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--go); box-shadow: 0 0 0 3px var(--go-tint); }
.timeline time { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--go-ink); }
.timeline h3 { margin-top: 4px; }
.timeline p { margin-top: 4px; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* Page-open fade: every new page fades in on load */
@media (prefers-reduced-motion: no-preference) {
  main { animation: pagefade 0.45s ease both; }
}
@keyframes pagefade { from { opacity: 0; } to { opacity: 1; } }

/* FAQ */
.faq { padding-block: 32px 112px; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 640; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--go-ink); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 60ch; }

/* Closer */
.closer { background: var(--deep); color: #fff; padding-block: 104px; }
.closer-in { display: grid; justify-items: center; text-align: center; }
.closer h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); max-width: 18ch; }
.closer .actions { justify-content: center; margin-top: 36px; }

/* Footer */
.foot { padding-block: 72px 32px; font-size: 0.9375rem; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { margin-top: 14px; color: var(--ink-2); max-width: 28ch; }
.foot h2 { font-size: 0.875rem; font-weight: 700; letter-spacing: 0; margin-bottom: 14px; }
.foot ul { display: grid; gap: 10px; color: var(--ink-2); }
.foot ul a { text-decoration: none; }
.foot ul a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-3); }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: 96px; }
.lost h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 780; letter-spacing: -0.035em; }
.lost p { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; }
.lost .actions { justify-content: center; }

/* Responsive */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 56px 88px; }
  .lede { max-width: 44ch; }
  .faq { grid-template-columns: 1fr; gap: 48px; }
  .cs-grid { grid-template-columns: 1fr; }
  .cs-photos { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .step-art { aspect-ratio: 16 / 10; }
  .who-list { grid-template-columns: 1fr; gap: 36px; }
  .who-list article, .who-list article + article { padding: 0; border: 0; }
}
@media (max-width: 900px) {
  .navlinks { display: none; }
  .menu { display: block; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav-cta { display: none; }
  .theme-toggle { margin-left: auto; }
  .nav { gap: 8px; }
  .nav { min-height: 64px; }
  .hero { padding-block: 40px 72px; }
  .assurances { margin-top: 32px; }
  .phone-stage { padding-top: 28px; }
  .phone { width: min(300px, 100%); }
  .band, .who, .closer { padding-block: 72px; }
  .how { padding-block: 80px; }
  .faq { padding-block: 16px 80px; }
  .foot-cols { grid-template-columns: 1fr; gap: 32px; }
  .closer .actions .btn { width: 100%; }
}

/* NYT design system — scoped to the case study only. Nothing below
   leaks out: every rule starts with #case-study. Cheltenham-like serif
   headlines and body, Franklin-like sans kickers and labels, hairline
   rules, black and white. The panel stays paper-white in dark mode,
   like a printed clipping. */
#case-study {
  font-family: Georgia, "Times New Roman", "Nimbus Roman", serif;
  color: #121212;
  background: #fff;
  border-top: 1px solid #121212;
  border-bottom: 1px solid #dfdfdf;
  padding-block: 48px 56px;
  padding-inline: clamp(20px, 5vw, 64px);
}
#case-study .nyt-kicker {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #121212;
  border-bottom: 1px solid #dfdfdf;
  padding-bottom: 12px; margin: 0 0 20px;
}
#case-study h2 {
  font-weight: 700; letter-spacing: 0;
  font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.04;
  max-width: 20ch; text-wrap: balance;
  margin: 0;
}
#case-study .sub {
  font-style: italic; font-size: 1.125rem; line-height: 1.5;
  color: #555; max-width: 44ch;
  margin-top: 12px;
}
#case-study .cs-photos { margin-top: 28px; }
#case-study .cs-photos img { border-radius: 0; }
#case-study .cs-photos figcaption {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.8125rem; line-height: 1.45; color: #666;
  border-bottom: 1px solid #dfdfdf;
  padding-bottom: 10px;
}
#case-study .cs-grid { margin-top: 32px; }
#case-study .doc-sec {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-top: 1px solid #121212;
  padding-top: 10px; margin: 28px 0 10px;
}
#case-study .cs-grid > div > h3.doc-sec:first-child { margin-top: 0; }
#case-study .doc-said {
  font-size: 1.375rem; font-style: normal; line-height: 1.4;
  color: #121212;
  border-top: 1px solid #dfdfdf;
  border-bottom: 1px solid #dfdfdf;
  padding: 16px 0; margin: 0;
}
#case-study .doc-said span {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #666;
}
#case-study .doc-method, #case-study .doc-checks,
#case-study .cs-grid p { color: #333; font-size: 1.0625rem; line-height: 1.65; }
#case-study .doc-method::first-letter {
  float: left; font-size: 3.4em; line-height: 0.85;
  padding-right: 8px; padding-top: 4px; font-weight: 700;
}
#case-study table { border-top: 2px solid #121212; margin-top: 4px; }
#case-study th, #case-study td {
  border-bottom: 1px solid #dfdfdf;
  padding: 10px 12px 10px 0;
  font-size: 0.9375rem;
}
#case-study thead th {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: #666;
}
#case-study td { font-variant-numeric: tabular-nums; white-space: nowrap; }
#case-study td:last-child { text-align: right; }
#case-study .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
#case-study .pill {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: none; color: #121212;
  border: 1px solid #121212; border-radius: 0;
  font-size: 0.6875rem; letter-spacing: 0.08em;
  padding: 3px 8px;
}
#case-study .cs-stat { border: 0; border-top: 1px solid #121212; border-radius: 0; padding: 10px 0 0; background: none; }
#case-study .cs-stat small {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #666;
}
#case-study .cs-stat b { font-size: 2rem; font-weight: 700; letter-spacing: 0; }
#case-study .cs-stat span { color: #555; font-size: 0.9375rem; }
#case-study .btn {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #121212; border-color: #121212; color: #fff;
  border-radius: 0; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700;
}
#case-study .btn:hover { background: #333; border-color: #333; }
#case-study .cs-pdfview { border: 1px solid #dfdfdf; border-radius: 0; background: #f7f7f5; }
#case-study .cs-pages img { border-color: #dfdfdf; }
#case-study .btn {
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #121212; border-color: #121212; color: #fff;
  border-radius: 0; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700;
}
#case-study .btn:hover { background: #333; border-color: #333; }
