/* Primato — dark "answer box" design system (Prakhar, 19 Oct)
   Near-black, warm off-white, one red. Serif for claims, sans for reading, mono for data and provenance. */

:root {
  --bg: #0b0b0c;
  --bg-2: #141416;    /* tinted sections, cards */
  --bg-3: #1c1c1f;    /* meters, inputs */
  --fg: #f2efe8;      /* 17:1 on bg */
  --fg-2: #b5b0a6;    /* 9.1:1 */
  --fg-3: #948f86;    /* 6.1:1 — smallest text floor */
  --rule: #2c2c31;
  --rule-strong: #4a4a52;
  --red: #ff5a4a;     /* 6.4:1 on bg; text on red is --bg (6.4:1). The old #b3241b was 2.8:1 on black. */
  --red-deep: #ff7b6e;
  --on-red: #0b0b0c;
  --focus: #7aa2ff;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.1vw, 2.3rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.2vw, 3.5rem);
  --step-4: clamp(2.6rem, 1.7rem + 4.2vw, 5.4rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.6 var(--sans);
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { color: var(--red); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.1; }
h4 { font: 600 var(--step-0)/1.4 var(--sans); margin: 0 0 0.4em; }
em, i { font-style: italic; }
.mono { font-family: var(--mono); font-size: var(--step--1); letter-spacing: 0.01em; }
.small { font-size: var(--step--1); color: var(--fg-2); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 64ch; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--fg-2); max-width: 58ch; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--fg); color: var(--bg); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }
.todo { background: #fff3a8; color: #111; padding: 0 0.3em; }

/* ---------- Header ---------- */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead__in {
  max-width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px;
  font: 500 0.78rem/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 10px var(--gutter); color: var(--fg-2);
}
.masthead span:first-child { text-transform: none; letter-spacing: 0.01em; color: var(--fg); }
.masthead__say { white-space: nowrap; }
.bar {
  max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand__word { font: 400 1.9rem/1 var(--serif); letter-spacing: -0.01em; }
.site-header nav { margin-left: auto; }
.nav-inline { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-inline a, .menu a { text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-inline a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -2px 0 var(--red); padding-bottom: 4px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font: 500 0.9rem/1 var(--sans); padding: 10px 12px; border: 1px solid var(--rule-strong); }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: calc(100% + 8px); background: var(--bg); border: 1px solid var(--rule-strong); list-style: none; margin: 0; padding: 8px 0; min-width: 210px; z-index: 5; }
.menu li a { display: block; padding: 12px 16px; }
/* Phones hide the header button, so the menu carries it */
.menu li a.btn { display: flex; justify-content: center; margin: 8px 12px 4px; font-weight: 600; }
.site-header { border-bottom: 1px solid var(--rule-strong); }

@media (max-width: 860px) {
  .nav-inline { display: none; }
  .menu { display: block; }
  .masthead__say { display: none; }
  .bar { gap: 12px; }
  .bar .btn--sm { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 0 22px; background: var(--red); color: var(--on-red); border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; border: 1px solid var(--red); cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.text-link { font-weight: 500; text-underline-offset: 0.3em; }
.actions { align-items: center; column-gap: 24px; }
.promise { flex-basis: 100%; margin: 4px 0 0; max-width: 46ch; font-size: 0.92rem; color: var(--fg-2); }
.btn .arr { font-family: var(--mono); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
.eyebrow {
  display: flex; gap: 12px; align-items: baseline; margin: 0 0 18px;
  font: 500 0.78rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2);
}
.eyebrow b { color: var(--red); font-weight: 500; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--fg-2); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }
.tint { background: var(--bg-2); }
.inverse { background: var(--bg-2); border-top: 1px solid var(--rule); }
.inverse .eyebrow, .inverse .small, .inverse .lede { color: var(--fg-2); }
.inverse .eyebrow b { color: var(--red); }
.inverse a:hover { color: var(--red); }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero h1 { margin-bottom: 0.35em; }
.blank { display: inline-block; min-width: 3.2ch; border-bottom: 2px solid var(--red); color: var(--red); text-align: center; font-style: italic; line-height: 1.05; }
.hero h1 .say { display: block; font: 500 0.85rem/1.4 var(--mono); letter-spacing: 0.04em; color: var(--fg-2); margin-top: 18px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Layers / three-col text ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }
.card { border-top: 1px solid var(--rule-strong); padding-top: 18px; }
.card .tag { font: 500 0.74rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }

/* ---------- Quote ---------- */
.quote { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 920px; }
.quote blockquote { margin: 0; padding-left: clamp(18px, 3vw, 32px); border-left: 4px solid var(--red); font: 400 clamp(1.45rem, 1.1rem + 1.3vw, 2.15rem)/1.3 var(--serif); }
.quote blockquote p { margin: 0 0 0.6em; }
.quote figcaption { padding-left: clamp(22px, 3vw, 36px); font: 500 0.82rem/1.4 var(--mono); color: var(--fg-2); }
.inverse .quote figcaption { color: var(--fg-2); }

/* ---------- Deliverables / tables ---------- */
.deliverables { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); counter-reset: d; }
.deliverables li { counter-increment: d; display: grid; grid-template-columns: 64px minmax(0, 4fr) minmax(0, 7fr); gap: clamp(12px, 3vw, 36px); padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.deliverables li::before { content: counter(d, decimal-leading-zero); font: 500 0.85rem/1 var(--mono); color: var(--red); }
.deliverables h3 { font-size: var(--step-1); margin: 0; line-height: 1.25; }
.deliverables p { margin: 0; color: var(--fg-2); }
@media (max-width: 760px) { .deliverables li { grid-template-columns: 40px 1fr; } .deliverables p { grid-column: 2; } }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; border-top: 1px solid var(--rule-strong); }
caption { text-align: left; font: 500 0.78rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); padding: 0 0 12px; caption-side: top; }
th, td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); }
thead th { font: 500 0.76rem/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); border-bottom: 1px solid var(--rule-strong); }
tbody th { font-weight: 600; }
td.num, th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Phones: let every column fit rather than scroll a column off-screen.
   ponytail: fits from 360px up; at 320px the pricing table still scrolls inside .table-wrap. Stack rows if that matters. */
@media (max-width: 640px) { table { font-size: 0.9rem; } th, td { padding: 12px 8px 12px 0; } td.num, th.num { white-space: normal; } }
/* Pricing: the price is the figure the visitor came for. Phones keep body size so the table fits;
   the answer-first line above it already carries both prices. */
@media (min-width: 641px) { .prices td.num strong { font: 400 var(--step-2)/1.1 var(--serif); letter-spacing: -0.01em; } }

/* ---------- Price block ---------- */
.price { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--rule-strong); background: var(--bg-2); }
.price__fig { padding: clamp(24px, 4vw, 44px); border-right: 1px solid var(--rule-strong); }
.price__fig .amt { font: 400 clamp(3.4rem, 2.4rem + 4vw, 6rem)/0.9 var(--serif); letter-spacing: -0.02em; display: block; }
.price__fig .unit { font: 500 0.8rem/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); }
.price__terms { padding: clamp(24px, 4vw, 44px); }
.price__terms ul { margin: 0 0 1em; padding: 0; list-style: none; }
.price__terms li { padding: 8px 0 8px 22px; position: relative; border-bottom: 1px solid var(--rule); }
.price__terms li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 2px; background: var(--red); }
@media (max-width: 760px) { .price { grid-template-columns: 1fr; } .price__fig { border-right: 0; border-bottom: 1px solid var(--rule-strong); } }

/* ---------- Q&A blocks (answer-first, extractable) ---------- */
.qa > article:first-child { border-top: 1px solid var(--rule-strong); }
.qa .quote { margin-top: 8px; }
.qa .quote blockquote { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); line-height: 1.38; }
.qa article { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 56px); padding: 30px 0; border-bottom: 1px solid var(--rule); }
.qa h2, .qa h3 { font-size: var(--step-2); margin: 0; line-height: 1.12; }
.qa .answer > p:first-child { font-size: var(--step-1); line-height: 1.45; color: var(--fg); }
.qa .answer p { color: var(--fg-2); }
@media (max-width: 860px) { .qa article { grid-template-columns: 1fr; } }

/* ---------- Timeline ---------- */
.weeks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.week { padding: 22px 24px 8px 0; border-right: 1px solid var(--rule); }
.week + .week { padding-left: 24px; }
.week:last-child { border-right: 0; }
.week .wk { font: 500 0.78rem/1 var(--mono); color: var(--red); letter-spacing: 0.08em; text-transform: uppercase; }
.week h3 { font-size: var(--step-1); margin: 12px 0 8px; line-height: 1.2; }
.week p { color: var(--fg-2); font-size: 0.97rem; }
@media (max-width: 860px) { .weeks { grid-template-columns: 1fr; } .week, .week + .week { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--rule); } }

/* ---------- Rules list (never / always) ---------- */
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.rules li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rules .k { font: 500 0.74rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.rules .k.no { color: var(--red); }
.inverse .rules { border-top-color: var(--fg); }
.inverse .rules li { border-bottom-color: var(--rule); }
.inverse .rules .k.no { color: var(--red); }

/* ---------- Facts (entity card) ---------- */
.facts { display: grid; grid-template-columns: minmax(150px, 3fr) minmax(0, 9fr); border-top: 1px solid var(--rule-strong); margin: 0; }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.facts dt { font: 500 0.76rem/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); padding-right: 16px; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* ---------- Form ---------- */
.form { display: grid; gap: 18px; max-width: 640px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-size: 0.86rem; color: var(--fg-2); margin-bottom: 8px; font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--fg);
  background: var(--bg-2); border: 1px solid var(--fg-3); border-radius: 0;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--fg); outline: 3px solid var(--focus); outline-offset: 1px; }

.form-status { margin: 0; padding: 12px 16px; border: 1px solid var(--rule-strong); border-radius: 10px; }
.form-status.is-ok { border-color: #5fd38a; color: #9ff0bb; }
.form-status.is-err { border-color: var(--red); color: var(--red); }

/* ---------- Source citations ---------- */
.src { font: 400 0.82em/1.4 var(--mono); color: var(--fg-2); white-space: normal; }
.src a { color: var(--fg-2); }
.liftable { font: 400 var(--step-2)/1.22 var(--serif); max-width: 32ch; margin: 0; }
.liftable em { color: var(--red); font-style: italic; }

/* ---------- CTA band ---------- */
.cta-band { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.cta-band h2 { margin: 0; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); color: var(--fg); border-top: 1px solid var(--rule); padding: 56px 0 28px; }
.site-footer a { color: var(--fg); }
.site-footer a:hover { color: var(--red); }
.site-footer .small { color: var(--fg-2); }
.site-footer .mark { color: var(--fg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font: 400 1.7rem/1 var(--serif); margin-bottom: 16px; }
.footer-string { font: 400 1.25rem/1.35 var(--serif); max-width: 30ch; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-nav a { text-decoration: none; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--fg-2); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding: clamp(44px, 6vw, 84px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--rule-strong); }
.page-head h1 { font-size: var(--step-4); max-width: 18ch; }
.page-head .answer-first { font-size: var(--step-1); line-height: 1.5; max-width: 60ch; color: var(--fg); }

/* ---------- Home ---------- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.h-wide { max-width: 22ch; margin-bottom: clamp(28px, 4vw, 52px); }

/* Scroll reveal (home.js adds .pre to blocks below the fold, then .in when they enter) */
.reveal.pre { transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.pre:not(.in) { opacity: 0; transform: translateY(28px); }

/* Hero: the answer engine illustration */
.engine { margin: 0; background: var(--bg-2); border: 1px solid var(--rule-strong); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(255, 90, 74, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.02); }
.engine__bar, .scorecard__head { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--rule-strong); font: 500 0.72rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.engine__dots { display: flex; gap: 5px; }
.engine__dots i { width: 9px; height: 9px; border: 1px solid var(--rule-strong); border-radius: 50%; }
.engine__dots i:first-child { background: var(--red); border-color: var(--red); }
.engine__run { margin-left: auto; color: var(--fg-2); }
.engine__run b { color: var(--red); font-weight: 500; }
.who { display: block; font: 500 0.68rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 10px; }
.engine__q { padding: 18px 18px 14px; border-bottom: 1px solid var(--rule); display: grid; justify-items: end; }
.engine__q p { background: var(--bg-3); border: 1px solid var(--rule-strong); border-radius: 16px 16px 4px 16px; padding: 12px 16px; max-width: 34ch; }
.engine__q p { margin: 0; font: 400 1.05rem/1.45 var(--sans); min-height: 2.9em; }
.is-live .engine__q p::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--red); animation: blink 1s steps(1) infinite; }
.engine__a { position: relative; padding: 14px 18px 16px; min-height: 250px; }
.engine__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: a; }
.engine__list li { counter-increment: a; display: flex; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); font-weight: 500; color: var(--fg-2); }
.engine__list li::before { content: counter(a) "."; width: 1.4em; font: 500 0.78rem/1 var(--mono); color: var(--fg-3); }
.engine__list li.is-you { background: var(--red); border-color: var(--red); color: var(--on-red); }
.engine__list li.is-you::before { color: var(--on-red); }
.is-live .engine__list li { animation: pop .35s ease-out both; }
.engine__think { display: none; gap: 6px; padding: 14px 4px; }
.engine__think i { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); animation: bob 0.9s ease-in-out infinite; }
.engine__think i:nth-child(2) { animation-delay: .15s; }
.engine__think i:nth-child(3) { animation-delay: .3s; }
.is-thinking .engine__think { display: flex; }
.engine__status { margin: 12px 0 0; min-height: 1.2em; font: 500 0.76rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; visibility: hidden; }
.engine__status.is-hit { visibility: visible; color: var(--red); }
.engine__status.is-miss { visibility: visible; color: var(--fg-2); }
.engine__status.is-hit::before { content: "✓ "; }
.engine__status.is-miss::before { content: "✗ "; }
.engine__tally { padding: 16px 18px 18px; border-top: 1px solid var(--rule-strong); background: var(--bg-2); }
.tally { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tally li { height: 30px; border: 1px solid var(--fg-3); transition: background .3s, border-color .3s; }
.tally li.hit { background: var(--red); border-color: var(--red); }
.tally li.miss { background: repeating-linear-gradient(135deg, transparent 0 4px, var(--rule) 4px 5px); }
.is-live .tally li.hit, .is-live .tally li.miss { animation: pop .35s ease-out both; }
.engine__sentence { margin: 0; font: 400 clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem)/1.3 var(--serif); }
.is-done .blank { animation: stamp .55s cubic-bezier(.2,1.6,.4,1) both; }
.engine figcaption, .scorecard figcaption { padding: 12px 18px; border-top: 1px solid var(--rule-strong); font-size: 0.84rem; line-height: 1.45; color: var(--fg-2); }

.engine__again { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: transparent; color: var(--fg); border: 1px solid var(--rule-strong); font: 600 0.95rem/1 var(--sans); cursor: pointer; }
.engine__again:hover { border-color: var(--fg); }
.actions .held { flex-basis: 100%; margin: 36px 0 0; }

/* We measured ourselves first */
.self { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.self li { border-top: 1px solid var(--rule-strong); padding-top: 18px; }
.self .fig { display: block; font: 400 clamp(4rem, 2.6rem + 5vw, 7.5rem)/0.9 var(--serif); letter-spacing: -0.03em; }
.self li:not(:first-child) .fig { color: var(--red); }
.self .k { font: 500 0.78rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); }
@media (max-width: 640px) { .self { grid-template-columns: 1fr; } }

/* Stats with meters */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.stats li { border-top: 1px solid var(--rule-strong); padding-top: 22px; }
.stats .fig { display: block; font: 400 clamp(4rem, 2.6rem + 5vw, 7.5rem)/0.85 var(--serif); letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.stats .fig small { font-size: max(0.36em, 0.9rem); letter-spacing: 0; }
.stats p { margin: 0 0 10px; font-size: var(--step-1); line-height: 1.35; }
.stats .prov { font: 400 0.76rem/1.4 var(--mono); color: var(--fg-2); }
.meter { display: block; height: 8px; margin: 20px 0 16px; background: var(--bg-3); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--v); min-width: 3px; background: var(--red); transition: width 1.3s cubic-bezier(.2,.7,.2,1) .15s; }
.pre:not(.in) .meter i { width: 0; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }

/* Three stages, drawn as a line that lights each stop */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; border-top: 2px solid var(--rule); }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--red); transform-origin: left; transition: transform 1.6s cubic-bezier(.6,0,.2,1); }
.flow.pre:not(.in)::before { transform: scaleX(0); }
.flow li { position: relative; padding: 40px 28px 0 0; }
.flow li + li { padding-left: 28px; }
.flow li::before { content: ""; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--red); border: 2px solid var(--red); transition: background .3s, border-color .3s; }
.flow li + li::before { left: 28px; }
.flow.pre:not(.in) li::before { background: var(--bg-2); border-color: var(--fg-3); }
.flow li:nth-child(2)::before { transition-delay: .7s; }
.flow li:nth-child(3)::before { transition-delay: 1.4s; }
.flow .n { display: block; font: 400 clamp(4rem, 3rem + 4vw, 7rem)/0.8 var(--serif); color: var(--red); letter-spacing: -0.03em; }
.flow .k { display: block; margin: 20px 0 10px; font: 500 0.76rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-2); }
.flow h3 { margin: 0 0 8px; }
.flow p { margin: 0; color: var(--fg-2); }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 36px; border-top: 0; }
  .flow::before { display: none; }
  .flow li, .flow li + li { padding: 36px 0 0; border-top: 1px solid var(--rule-strong); }
  .flow li + li::before { left: 0; }
}

/* Audit: price, deliverable chips, sample scorecard */
.audit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (max-width: 960px) { .audit-grid { grid-template-columns: 1fr; } }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin: 0 0 26px; }
.price-line .amt { font: 400 clamp(4rem, 3rem + 4vw, 6.5rem)/0.9 var(--serif); letter-spacing: -0.02em; color: var(--red); }
.price-line .mono { color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.06em; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: c; }
.chips li { counter-increment: c; padding: 9px 12px; border: 1px solid var(--rule-strong); background: var(--bg-2); font-size: 0.93rem; font-weight: 500; }
.chips li::before { content: counter(c, decimal-leading-zero); margin-right: 8px; font: 500 0.72rem/1 var(--mono); color: var(--red); }
.scorecard { margin: 0; background: var(--bg-2); border: 1px solid var(--rule-strong); box-shadow: 10px 10px 0 var(--bg-3); }
.scorecard__head { justify-content: space-between; }
.scorecard__head b { color: var(--red); font-weight: 500; }
.scorecard ol { list-style: none; margin: 0; padding: 8px 18px 10px; }
.scorecard li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 3em; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.scorecard li:last-child { border-bottom: 0; }
.scorecard .meter { margin: 0; height: 16px; }
.scorecard .meter i { background: var(--fg); }
.scorecard li:nth-child(2) .meter i { transition-delay: .25s; }
.scorecard li:nth-child(3) .meter i { transition-delay: .35s; }
.scorecard li:nth-child(4) .meter i { transition-delay: .45s; }
.scorecard li:nth-child(5) .meter i { transition-delay: .55s; }
.scorecard li.is-you { color: var(--red); font-weight: 600; }
.scorecard li.is-you .meter i { background: var(--red); }
.scorecard b { font: 500 0.9rem/1 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.scorecard figcaption { background: var(--bg-2); }

/* Quote, large */
.quote--big blockquote { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); line-height: 1.14; border-left-width: 6px; }

/* Always / never stamps; the strike draws across on reveal */
.stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stamps li { padding: 18px 18px 24px; border: 1px solid var(--rule-strong); background: var(--bg-2); }
.stamps .k { display: inline-block; margin-bottom: 18px; padding: 6px 8px; background: var(--red); color: var(--on-red); font: 500 0.72rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.stamps .ok .k { background: var(--fg); color: var(--bg); }
.stamps p { margin: 0; font: 400 var(--step-1)/1.3 var(--serif); }
.stamps s { text-decoration: none; color: var(--fg-2); background: linear-gradient(var(--red), var(--red)) no-repeat 0 58% / 100% 3px; transition: background-size .7s ease .3s; }
.stamps.pre:not(.in) s { background-size: 0 3px; }
.stamps li:nth-child(3) s { transition-delay: .6s; }
.stamps li:nth-child(4) s { transition-delay: .9s; }
@media (max-width: 960px) { .stamps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stamps { grid-template-columns: 1fr; } }

@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); opacity: .35; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes stamp { from { transform: scale(1.7) rotate(-8deg); opacity: 0; } }

/* ---------- Review build markers ---------- */
.review-bar { position: sticky; top: 0; z-index: 20; background: #fff3a8; color: #111; font: 400 0.82rem/1.4 var(--mono); padding: 8px var(--gutter); border-bottom: 1px solid var(--rule-strong); }
.held-swatch, .fresh-swatch { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-left: 8px; }
.held-swatch { border: 2px dashed var(--red); }
.fresh-swatch { background: #d9ecff; border: 1px solid #5b8fd6; }
.held { outline: 2px dashed var(--red); outline-offset: 6px; position: relative; margin: 44px 0 14px; }
.held__tag { position: absolute; top: -30px; left: -6px; background: var(--red); color: var(--on-red); font: 500 0.7rem/1 var(--mono); padding: 5px 8px; letter-spacing: 0.04em; text-transform: uppercase; max-width: calc(100% + 12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.held-inline { outline: 2px dashed var(--red); outline-offset: 2px; background: rgba(255, 90, 74, 0.1); }
.fresh { background: #d9ecff; color: #111; box-shadow: 0 0 0 2px #d9ecff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .site-header nav, .btn, .review-bar { display: none; } body { background: #fff; } }
