/* SearchNex.com — "cut the crap" dark theme.
   Palette is the SearchNex app brand: slate is the only dark surface,
   lime is the single accent (CTAs + data highlights only). */

/* Width-matched fallbacks: Arial scaled to the measured width of each web font, so text
   wraps the same before and after Google Fonts arrive (no layout shift on font swap). */
@font-face { font-family: "Grotesk Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 700; size-adjust: 100.6%; }
@font-face { font-family: "Grotesk Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400 500; size-adjust: 100.6%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400 500; size-adjust: 106.8%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 700; size-adjust: 101.5%; }

:root {
  --slate: #282D35;
  --slate-up: #2F353E;
  --slate-card: #343B45;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #FFFFFF;
  --text-2: #C9CED6;
  --muted: #9CA3AF; /* app grey-400; >= 4.5:1 on both slate and card surfaces */
  --lime: #CFFF04;
  --lime-hover: #B8E300;
  --ink: #1A1A1A;
  --loss: #FF7070; /* >= 4.5:1 on card surfaces */

  --font-head: "Space Grotesk", "Grotesk Fallback", system-ui, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(88px, 12vw, 168px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--slate);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--text);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}
h2 { font-size: clamp(38px, 5.6vw, 76px); }
h3 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
strong { color: var(--text); font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; border-top: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--lime); color: var(--ink); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* Local-review markers for content that is still missing. Remove before launch. */
.todo, .todo-link[href^="#todo"] {
  outline: 1px dashed var(--loss); outline-offset: 3px; border-radius: 2px;
}
.todo { color: var(--loss); font-family: var(--font-data); font-size: .8em; }

/* ---------- shared bits ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 28px;
}
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); max-width: 680px; }
.prose { margin-top: 28px; max-width: 600px; }
.prose p { font-size: clamp(17px, 1.4vw, 19px); }
.prose p + p { margin-top: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  padding: 20px 30px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--lime-hover); }
.btn:active { transform: translateY(1px); }
.btn .arrow { font-size: 1.1em; line-height: 1; }
.btn-sm { font-size: 15px; padding: 11px 18px; gap: 8px; }
.btn-lg { font-size: 20px; padding: 24px 38px; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(40, 45, 53, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform .25s ease, opacity .25s ease;
}
.nav.is-hidden { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo img { width: 46px; height: 30px; }
.wordmark {
  font-family: "Montserrat", var(--font-head);
  font-weight: 700; font-size: 25px; line-height: 1;
  letter-spacing: -0.01em; color: var(--text);
  position: relative; top: -2px; /* lowercase-only: optically centre the x-height on the mark */
}
.wordmark span { color: var(--lime); }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero { padding: clamp(72px, 10vw, 128px) 0 clamp(48px, 6vw, 80px); text-align: center; }
.hero h1 {
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 13ch;
  margin: 0 auto;
}
.hero .lede { margin: 32px auto 44px; max-width: 760px; }

/* Rotating headline word (Measure <-> Manage). Both words share one grid cell, so the
   slot is always as wide as "Measure": nothing else in the headline moves (no layout shift). */
.swap { color: var(--lime); white-space: nowrap; }
.swap-track { display: inline-grid; justify-items: center; }
.swap-word { grid-area: 1 / 1; opacity: 0; transform: translateY(0.35em); }
/* Alternate word is CSS-generated, so the headline's real text (SEO, screen readers) stays "Measure". */
.swap-word[data-word]::before { content: attr(data-word); }
.swap-word.is-active { opacity: 1; transform: none; }
.swap-word.is-leaving { opacity: 0; transform: translateY(-0.35em); }
@media (prefers-reduced-motion: no-preference) {
  .swap-word { transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
}
.hero-graphic { margin-top: clamp(56px, 7vw, 96px); }
.hero-graphic svg { width: 100%; height: auto; overflow: visible; }

.g-label { font-family: var(--font-data); font-size: 15px; letter-spacing: 0.12em; fill: var(--muted); }
.g-label.lime { fill: var(--lime); font-weight: 700; }
.g-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 8; }
.g-chaos { fill: none; stroke: var(--text); stroke-width: 1.6; opacity: .75; }
.g-chaos.alt { stroke: var(--muted); opacity: .9; }
.g-revenue { fill: none; stroke: var(--lime); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.6,.05,.3,1) forwards; }
  .draw.late { animation-duration: 1.1s; animation-delay: 1.2s; }
  .fade-late { opacity: 0; animation: fade .4s ease forwards 2.1s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- 1. the gap ---------- */

.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: center; }

.silo svg { width: 100%; height: auto; max-width: 480px; margin-left: auto; }
.silo .pillar { fill: var(--slate-card); stroke: var(--line-strong); }
.silo .row { stroke: var(--muted); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.silo .bracket { fill: none; stroke: var(--text); stroke-width: 1.5; }
.silo .leak { fill: var(--loss); }
.silo .pool { stroke: var(--loss); stroke-width: 2; }
.silo .loss-text { font-family: var(--font-data); font-weight: 700; font-size: 22px; fill: var(--loss); }

@media (prefers-reduced-motion: no-preference) {
  .silo .drip { animation: drip 3.2s linear infinite; transform-box: fill-box; }
  .silo .drip:nth-of-type(2n) { animation-duration: 2.6s; }
  .silo .drip:nth-of-type(3n) { animation-duration: 3.8s; }
}
@keyframes drip {
  0% { transform: translateY(-40px); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(150px); opacity: 0; }
}

/* ---------- 2. growth levers ---------- */

.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 900px; }
.levers { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.lever {
  display: grid;
  grid-template-columns: 56px 1fr 300px;
  gap: clamp(20px, 4vw, 56px);
  align-items: start; /* number and heading share a top line */
  padding: clamp(28px, 3.5vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}
.lever-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; color: var(--lime); letter-spacing: -0.02em; }
.lever-copy { padding-top: 0; }
.lever h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; }
.lever p { font-size: 17px; max-width: 560px; }
.lever-art {
  background: var(--slate-up); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; transition: border-color .2s ease;
  align-self: center;
}
.lever:hover .lever-art { border-color: var(--line-strong); }
.lever-art svg { width: 100%; height: auto; }

.wire { fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wire.dim { stroke: var(--muted); }
.wire.dash { stroke-dasharray: 4 5; }
.wire.lime { stroke: var(--lime); }
.wire.ring { stroke-dasharray: 78 100; }
.fill-lime { fill: var(--lime); }
.hatch-lime { fill: url(#hatch); stroke: var(--lime); stroke-width: 1.5; }
.wire-text { font-family: var(--font-data); font-size: 10px; fill: var(--muted); letter-spacing: .06em; }
.wire-text.lime { fill: var(--lime); font-weight: 700; }
.wire-text.big { font-size: 26px; font-family: var(--font-head); font-weight: 700; }

/* ---------- 3. scorecard ---------- */

.center-head { text-align: center; max-width: 900px; margin: 0 auto; }
.center-head .lede { margin: 28px auto 0; max-width: 760px; }

.board {
  margin-top: clamp(48px, 6vw, 80px);
  background: var(--slate-up);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.board-top { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.board-title { font-family: var(--font-head); font-weight: 700; color: var(--text); font-size: 16px; }
.sample { margin-left: auto; font-family: var(--font-data); font-size: 11px; letter-spacing: .1em; color: var(--muted); border: 1px dashed var(--line-strong); padding: 3px 8px; border-radius: 4px; }

.score { width: 100%; border-collapse: collapse; font-size: 15px; }
.score th, .score td { padding: 18px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.score tbody tr:last-child > * { border-bottom: 0; }
.score thead th {
  font-family: var(--font-body); font-weight: 500; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); padding-top: 14px; padding-bottom: 14px;
  white-space: normal; vertical-align: bottom; line-height: 1.35;
}
.score thead th span { text-transform: none; letter-spacing: 0; }
.score th:first-child, .score td:first-child { padding-left: 24px; }
.score th:last-child, .score td:last-child { padding-right: 24px; }
.score .num { text-align: right; font-family: var(--font-data); color: var(--text-2); white-space: nowrap; }
.score thead .num { font-family: var(--font-body); color: var(--muted); }
.score .q { font-family: var(--font-data); font-weight: 400; color: var(--text); font-size: 14px; min-width: 215px; text-wrap: balance; }
.score .vert { color: var(--muted); white-space: nowrap; }
.score .rev { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--lime); }
.score .rev.low { color: var(--muted); }

/* Paid vs organic blend: one bar per row, paid (white) fading into organic (grey),
   with a soft split so the two channels visibly run together. --p = paid share. */
:root { --paid: #FFFFFF; --organic: #6E7684; }
.mix { display: block; width: 128px; margin: 10px 0 0 auto; }
.mix .bar {
  display: block; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg,
    var(--paid) 0%, var(--paid) calc(var(--p) - 12%),
    var(--organic) calc(var(--p) + 12%), var(--organic) 100%);
}
.mix .split { display: flex; justify-content: space-between; margin-top: 5px; font-family: var(--font-data); font-weight: 400; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.key { display: inline-flex; gap: 10px; margin-top: 4px; text-transform: none; letter-spacing: 0; }
.key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.key .k-paid { background: var(--paid); }
.key .k-org { background: var(--organic); }
.score .loss { color: var(--loss); }
.score .rank1 { color: var(--lime); }
.score .dec { color: var(--text); width: 31%; min-width: 260px; line-height: 1.5; }
/* border-collapse is inherited from the table; reset it so the chip keeps its padding + radius */
.score .dec .chip { display: block; width: max-content; margin-bottom: 8px; border-collapse: separate; }

.chip { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.4; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap; }
.chip.scale { border-color: var(--lime); color: var(--lime); }
.chip.cut { border-color: var(--loss); color: var(--loss); }
.chip.build { border-color: var(--text); color: var(--text); }

/* ---------- 4. about ---------- */

.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.founder { margin: 0; }
/* Smoky concrete panel; the founder portrait (smoke baked in) covers it edge to edge. */
.portrait {
  position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius); border: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: center;
  background:
    radial-gradient(120% 80% at 20% 10%, #3D444F 0%, transparent 60%),
    radial-gradient(90% 90% at 90% 100%, #1F2329 0%, transparent 70%),
    #2B3038;
}
/* grain sits behind the photo (z-index 0) so the face stays clean */
.portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 -.25'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>");
  mix-blend-mode: overlay; opacity: .55;
}
.portrait picture { position: absolute; inset: 0; z-index: 1; display: block; } /* finished portrait fills the panel */
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder figcaption { display: grid; gap: 2px; margin-top: 18px; font-size: 15px; }
.founder figcaption b { font-family: var(--font-head); font-size: 20px; color: var(--text); letter-spacing: -0.01em; }
.founder figcaption span { color: var(--muted); }
.founder figcaption a { justify-self: start; margin-top: 8px; color: var(--lime); font-weight: 600; text-decoration: none; }
.founder figcaption a:hover { text-decoration: underline; }

/* ---------- 5. final CTA: the dead end ---------- */

.final {
  min-height: 86vh; display: grid; place-items: center; text-align: center;
  border-top: 1px solid var(--line); padding: var(--section-y) 0;
}
.final h2 { font-size: clamp(44px, 7.4vw, 108px); max-width: 14ch; margin: 0 auto; letter-spacing: -0.045em; line-height: .94; }
.final .lede { margin: 28px auto 48px; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* ---------- inner pages: book, thanks, privacy, 404 ---------- */

.page-nav .nav-inner { justify-content: space-between; }
.page-nav .back { font-size: 15px; color: var(--text-2); text-decoration: none; }
.page-nav .back:hover { color: var(--text); }
.page { padding: clamp(56px, 8vw, 112px) 0 var(--section-y); }
.page h1 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.04em; }
.page .lede { margin-top: 24px; }

.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.book-points { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.book-points li { display: grid; grid-template-columns: 36px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.book-points li span { font-family: var(--font-data); color: var(--lime); font-size: 14px; padding-top: 3px; }

.form-card { background: var(--slate-up); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field label { font-family: var(--font-head); font-weight: 700; color: var(--text); font-size: 16px; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--text);
  background: var(--slate); border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 14px 16px; min-height: 52px;
  transition: border-color .15s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus { outline: none; border-color: var(--lime); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--loss); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.form-note a { color: var(--text-2); }
.form-error { display: none; margin-bottom: 22px; padding: 12px 14px; border: 1px solid var(--loss); border-radius: 6px; color: var(--text); font-size: 15px; }
.form-error.show { display: block; }

.legal { max-width: 760px; }
.legal h2 { font-size: 26px; letter-spacing: -0.02em; margin: 48px 0 14px; }
.legal p, .legal li { font-size: 17px; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 22px; margin: 12px 0 0; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--lime); }
.legal .updated { font-family: var(--font-data); font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---------- reporting tool: access table, facts list ---------- */

.grant { width: 100%; border-collapse: collapse; font-size: 15px; }
.grant th, .grant td { padding: 18px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.5; }
.grant tbody tr:last-child > * { border-bottom: 0; }
.grant thead th {
  font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding-top: 14px; padding-bottom: 14px;
}
.grant th:first-child, .grant td:first-child { padding-left: 24px; }
.grant th:last-child, .grant td:last-child { padding-right: 24px; }
.grant tbody th { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--text); white-space: nowrap; }
.grant td { color: var(--text-2); }
.grant td:last-child { font-family: var(--font-data); font-size: 13px; color: var(--muted); width: 38%; }
.grant .how { display: block; }
.grant .how + .how { margin-top: 10px; }
.grant .how b {
  display: block; margin-bottom: 2px;
  font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text);
}
.grant .chip { display: block; width: max-content; margin-bottom: 8px; border-color: var(--lime); color: var(--lime); }

.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.facts li { display: grid; grid-template-columns: 44px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 17px; }
.facts li span { font-family: var(--font-head); font-weight: 700; color: var(--lime); }

.text-link { color: var(--lime); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .nav-links { display: none; }
  .split, .about-grid, .book-grid { grid-template-columns: 1fr; }
  .silo svg { margin: 0 auto; max-width: 380px; }
  .founder { max-width: 420px; }
  .lever { grid-template-columns: 56px 1fr; }
  .lever-art { grid-column: 2; max-width: 380px; }
}

/* Scorecard collapses to cards: query + decision stay prominent, numbers fold into a 2x2 grid. */
@media (max-width: 860px) {
  .score thead { display: none; }
  .score, .score tbody, .score tr, .score th, .score td { display: block; }
  .score tr {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px;
    padding: 20px; border-bottom: 1px solid var(--line);
  }
  .score tbody tr:last-child { border-bottom: 0; }
  .score th, .score td, .score th:first-child, .score td:first-child, .score th:last-child, .score td:last-child { padding: 0; border: 0; }
  .score .q { grid-column: 1 / -1; font-size: 15px; }
  .score .vert { grid-column: 1 / -1; order: -1; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
  .score .dec { grid-column: 1 / -1; order: 1; width: auto; min-width: 0; padding: 12px 0 4px; border-top: 1px dashed var(--line); margin-top: 4px; }
  .score .num { order: 2; text-align: left; font-size: 14px; }
  .score .num::before { content: attr(data-label); display: block; font-family: var(--font-body); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .score .rev { font-size: 16px; }
  .mix { margin-left: 0; }
  /* Access table collapses to one card per Google product. */
  .grant thead { display: none; }
  .grant, .grant tbody, .grant tr, .grant th, .grant td { display: block; }
  .grant tr { padding: 20px; border-bottom: 1px solid var(--line); }
  .grant tbody tr:last-child { border-bottom: 0; }
  .grant th, .grant td, .grant th:first-child, .grant td:first-child, .grant th:last-child, .grant td:last-child { padding: 0; border: 0; width: auto; }
  .grant td { margin-top: 10px; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .logo { gap: 8px; }
  .logo img { width: 37px; height: 24px; }
  .wordmark { font-size: 20px; top: -1px; }
  .nav .btn-sm { padding: 10px 14px; font-size: 14px; }
  .lever { grid-template-columns: 1fr; gap: 14px; }
  .lever-num { padding-top: 0; }
  .lever-art { grid-column: 1; max-width: none; }
  .btn-lg { font-size: 18px; padding: 20px 28px; }
  .g-label { font-size: 24px; }
}

/* Small phones: keep the full CTA label in the nav, show the mark without the wordmark. */
@media (max-width: 480px) {
  .nav .wordmark { display: none; }
  .btn-lg { white-space: normal; text-align: center; }
}
