/* SubProof — editorial homepage (Swiss grid, paper + ink + one gold accent).
   Display: Cabinet Grotesk (Indian Type Foundry, ITF Free Font License, self-hosted from Fontshare).
   Text: Newsreader (Google Fonts, SIL OFL). Gold is a fill only, never text on paper. */

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/fonts/CabinetGrotesk-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Black by default on every device (no light theme). */
:root {
  --paper: #000000;
  --paper-2: #141414;
  --ink: #f2f0ea;
  --ink-2: #d6d2c8;
  --muted: #a8a49b;
  --rule: rgba(242, 240, 234, 0.18);
  --rule-strong: #f2f0ea;
  --accent: #ffcc33;
  --on-accent: #111111;
  --inverse-bg: #f2f0ea;
  --inverse-ink: #000000;
  --inverse-muted: #55524b;
  /* Logo bar: pure black, like the app (the logo has white and gold parts) */
  --bar: #000000;
  --bar-ink: #f9f8f6;
  --bar-muted: #b7b3aa;
  --bar-line: #2a2a2a;

  /* status marks (small squares only) */
  --s-verified: #1e7a3c;
  --s-waiting: #e0a800;
  --s-low: #d4621c;
  --s-missing: #c2261d;
  --s-invited: #8a867d;

  --display: "Cabinet Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "Newsreader", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(16px, 2vw, 28px);
  --edge: clamp(16px, 4.2vw, 64px);
  --max: 1480px;
  color-scheme: dark;
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 19px; line-height: 1.5;
  font-optical-sizing: auto; font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
p { margin: 0; }
html { overflow-x: clip; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: normal; hyphens: manual; }
.keep { white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; font-family: var(--display); font-weight: 700; z-index: 99; }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The 12-column page grid */
.grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  max-width: var(--max); margin-inline: auto; padding-inline: var(--edge);
}

.grid > * { min-width: 0; }
.letter .hdr span { overflow-wrap: anywhere; }

/* Labels: small, tracked, uppercase grotesk */
.label {
  font-family: var(--display); font-weight: 600; font-size: 12.5px; line-height: 1.3;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}
.label b { color: var(--ink); font-weight: 800; letter-spacing: 0.06em; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums lining-nums; }

/* Gold highlighter under display words */
.hl {
  background: linear-gradient(transparent 0 56%, var(--accent) 56% 90%, transparent 90%);
  color: inherit; padding-inline: 0.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* On ink, gold works as the type colour itself */
.hl { background: none; color: var(--accent); }

/* The one action style: a flat gold slab, square corners */
.slab {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  background: var(--accent); color: var(--on-accent); text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em;
  padding: 18px 20px 18px 22px; min-height: 56px; border: 0;
  transition: background-color .18s ease, color .18s ease;
}
.slab .arr { font-weight: 500; transition: transform .18s ease; }
.slab:hover { background: var(--ink); color: var(--accent); }
.slab:hover .arr { transform: translateX(4px); }
.slab.small { font-size: 15px; padding: 10px 14px; min-height: 40px; gap: 14px; }
.textlink { font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 0.25em; }

/* Status squares */
.sq { width: 12px; height: 12px; display: inline-block; flex: none; background: var(--s-invited); }
.sq.verified { background: var(--s-verified); }
.sq.waiting { background: var(--s-waiting); }
.sq.low { background: var(--s-low); }
.sq.missing { background: var(--s-missing); }
.sq.expiring { background: linear-gradient(135deg, var(--s-verified) 0 50%, var(--s-low) 50% 100%); }

/* ───────── Header ───────── */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bar); color: var(--bar-ink);
  border-bottom: 1px solid var(--bar-line);
}
.top .grid { align-items: center; min-height: 72px; }
.top :focus-visible { outline-color: var(--accent); }
.brand { grid-column: 1 / span 4; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.brand img { height: 50px; width: auto; display: block; }
.mainnav { grid-column: 5 / span 5; display: flex; gap: clamp(16px, 2.2vw, 34px); }
.mainnav a { font-family: var(--display); font-weight: 600; font-size: 15px; text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.mainnav a:hover { border-bottom-color: var(--accent); }
.top-actions { grid-column: 10 / -1; justify-self: end; display: flex; align-items: center; gap: 20px; }
.signin { font-family: var(--display); font-weight: 600; font-size: 15px; text-decoration: none; }
.signin:hover { text-decoration: underline; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--bar-ink); background: transparent; color: var(--bar-ink); cursor: pointer; padding: 0; place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; margin: 2px auto; transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu { border-top: 1px solid var(--rule); background: var(--paper); }
.menu .grid { padding-block: 8px 24px; }
.menu a.m { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.025em; text-decoration: none; }
.menu a.m small { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.menu .menu-foot { grid-column: 1 / -1; display: grid; gap: 14px; padding-top: 20px; }

/* ───────── Hero ───────── */
.hero { padding-block: clamp(28px, 4vw, 56px) 0; }
.meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; padding-bottom: 14px; border-bottom: 1px solid var(--rule-strong); }
.meta .label:first-child { color: var(--ink); }
.hero h1 {
  grid-column: 1 / span 10; margin-top: clamp(32px, 4.2vw, 64px);
  font-size: clamp(50px, 8.8vw, 140px); line-height: 0.87; letter-spacing: -0.03em;
}
.hero-side { grid-column: 9 / -1; grid-row: 3; margin-top: clamp(28px, 3vw, 44px); display: grid; gap: 28px; align-content: start; }
.lede { font-size: clamp(20px, 1.65vw, 24px); line-height: 1.42; color: var(--ink-2); max-width: 34ch; }
.hero-act { display: grid; gap: 14px; justify-items: start; }
.hero-act .slab { min-width: min(100%, 330px); }
.fine { font-size: 16px; color: var(--muted); }
.fine a { color: var(--ink); }

/* Fig. 1 — the ledger */
.fig1 { grid-column: 1 / span 7; grid-row: 3; margin-top: clamp(28px, 3vw, 44px); align-self: end; }
.ledger { width: 100%; border-collapse: collapse; font-size: 17px; }
.ledger caption { caption-side: bottom; text-align: left; padding-top: 12px; }
.ledger th { text-align: left; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--rule-strong); }
.ledger td { padding: 15px 12px 15px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.ledger td.n { width: 3.2em; color: var(--muted); font-size: 14px; }
.ledger td.who { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; white-space: nowrap; }
.ledger td.note { color: var(--ink-2); }
.ledger td.st { white-space: nowrap; text-align: right; padding-right: 0; }
.ledger td.st span.s { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.ledger tr.flag td.who::after { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 8px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 800; transform: translateY(-2px); }

/* ───────── Sections ───────── */
.sec { padding-block: clamp(80px, 11vw, 168px) 0; }
.sec-head { row-gap: 18px; }
.rail { grid-column: 1 / span 3; padding-top: 14px; border-top: 1px solid var(--rule-strong); align-self: start; }
.rail .idx { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.rail .label { margin-top: 4px; display: block; }
.sec h2 { font-size: clamp(38px, 5.6vw, 90px); line-height: 0.92; letter-spacing: -0.025em; }
.sec-head h2 { grid-column: 4 / span 8; padding-top: 6px; }
.sec-head .intro { grid-column: 4 / span 6; font-size: clamp(19px, 1.5vw, 22px); color: var(--ink-2); max-width: 46ch; }

/* 01 — How it works: pinned certificate, scrolling steps */
.story { margin-top: clamp(48px, 6vw, 88px); align-items: start; }
.story-fig { grid-column: 1 / span 6; position: sticky; top: 104px; }
.steps { grid-column: 8 / -1; list-style: none; margin: 0; padding: 0; }
.step { min-height: 74vh; padding-block: 28px 56px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-content: start; }
.step:last-child { min-height: 58vh; }
/* Steps not yet reached: grey number and heading, text stays readable */
.step .sn, .step h3 { transition: color .3s ease; }
.step:not(.on) .sn, .step:not(.on) h3 { color: var(--muted); }
.no-js .step .sn, .no-js .step h3 { color: var(--ink); }
.step .sn { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 4.6vw, 72px); line-height: .82; letter-spacing: -0.03em; font-variant-numeric: tabular-nums lining-nums; }
.step .sn { align-self: start; padding-bottom: 12px; background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 3px no-repeat; background-size: 0 3px; transition: color .3s ease, background-size .35s ease; }
.step.on .sn, .no-js .step .sn { background-size: 100% 3px; }
.step h3 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1; letter-spacing: -0.03em; padding-top: 4px; }
.step p { grid-column: 2; margin-top: 14px; color: var(--ink-2); max-width: 36ch; }
.step .label { grid-column: 2; margin-top: 18px; }

.cert { background: var(--paper-2); border: 1px solid var(--rule-strong); padding: clamp(18px, 2.2vw, 30px); font-size: 16px; position: relative; }
.cert-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--rule-strong); }
.cert-title { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.05; letter-spacing: -0.015em; text-transform: uppercase; max-width: 16ch; }
.cert-status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 14px; white-space: nowrap; padding-top: 3px; }
.cert dl { margin: 0; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) 22px; }
.cert dt, .cert dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.cert dt { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-right: 12px; align-self: stretch; display: flex; align-items: center; }
.cert dd.v { font-family: var(--display); font-weight: 700; font-size: 16px; font-variant-numeric: lining-nums; display: flex; align-items: center; }
.cert dd.v span { transition: opacity .35s ease, background-size .45s ease; padding-bottom: 3px; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0% 2px; }
.cert dd.ok { display: flex; align-items: center; justify-content: flex-end; font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--s-verified); opacity: 0; transition: opacity .3s ease; }
.cert-foot { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; padding-top: 16px; min-height: 76px; }
.cert-foot .label { max-width: 30ch; }
.stamp { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; background: #111; color: #ffcc33; padding: 10px 12px; line-height: 1.15; transform: rotate(-3deg) scale(.9); opacity: 0; transition: opacity .3s ease, transform .35s cubic-bezier(.2,1.4,.4,1); }
.stamp small { display: block; font-weight: 600; font-size: 11px; letter-spacing: .1em; color: #f9f8f6; }

/* certificate states (data-step set by script; no-JS shows the finished record) */
.cert .st-txt { display: none; }
.cert[data-step="1"] .st-1, .cert[data-step="2"] .st-2, .cert[data-step="3"] .st-3, .cert[data-step="4"] .st-4 { display: inline; }
.cert[data-step="1"] dd.v span { opacity: .14; }
.cert[data-step="3"] dd.v span, .cert[data-step="4"] dd.v span { background-size: 100% 2px; }
.cert[data-step="3"] dd.ok, .cert[data-step="4"] dd.ok { opacity: 1; }
.cert[data-step="4"] .stamp { opacity: 1; transform: rotate(-3deg) scale(1); }
.cert .sq.dyn { background: var(--s-invited); }
.cert[data-step="2"] .sq.dyn, .cert[data-step="3"] .sq.dyn { background: var(--s-waiting); }
.cert[data-step="4"] .sq.dyn { background: var(--s-verified); }
.fig-cap { margin-top: 12px; }

/* 02 — The agent */
.agent { align-items: start; }
.agent .quote { grid-column: 1 / span 7; font-family: var(--display); font-weight: 800; font-size: clamp(56px, 10vw, 168px); line-height: .84; letter-spacing: -0.03em; }
.agent .quote q { quotes: "\201C" "\201D"; }
.agent .after { grid-column: 1 / span 6; margin-top: 28px; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.32; max-width: 26ch; }
.agent .body { grid-column: 8 / -1; grid-row: 1 / span 2; display: grid; gap: 22px; padding-top: clamp(8px, 2vw, 28px); }
.agent .body p { color: var(--ink-2); }
.agent .claim { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); border-left: 6px solid var(--accent); padding-left: 16px; }
.letter { margin-top: 10px; border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); padding-block: 18px 20px; font-size: 17px; display: grid; gap: 12px; }
.letter .hdr { display: grid; grid-template-columns: 4.5em 1fr; gap: 4px 10px; font-size: 15px; color: var(--muted); }
.letter .hdr b { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding-top: 3px; }
.letter .subj { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.answers { display: flex; flex-wrap: wrap; gap: 0; margin-top: 4px; border: 1px solid var(--rule-strong); }
.answers span { flex: 1 1 auto; text-align: center; padding: 11px 12px; font-family: var(--display); font-weight: 700; font-size: 15px; border-right: 1px solid var(--rule-strong); }
.answers span:last-child { border-right: 0; }
.answers span:first-child { background: var(--accent); color: var(--on-accent); }

/* 03 — Reminder schedule */
.sched { margin-top: clamp(40px, 5vw, 72px); }
.sched-wrap { grid-column: 4 / -1; min-width: 0; overflow-x: auto; }
.tl { min-width: 520px; }
.tl { display: grid; grid-template-columns: minmax(96px, 1.3fr) repeat(6, minmax(0, 1fr)); border-top: 2px solid var(--rule-strong); }
.tl [role=row] > * { border-bottom: 1px solid var(--rule); padding: 14px 0; display: flex; align-items: center; min-height: 58px; }
.tl .h { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 54px); letter-spacing: -0.025em; line-height: 1; align-items: flex-end; padding-top: 18px; font-variant-numeric: tabular-nums lining-nums; }
.tl .h small { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: 6px; padding-bottom: 4px; }
.tl .h.lapse { color: var(--s-missing); }
.tl .rl { font-family: var(--display); font-weight: 700; font-size: 16px; }
.tl .rl em { font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; }
.tl .rl { flex-direction: column; align-items: flex-start; justify-content: center; }
.tl .c i { width: 18px; height: 18px; display: block; background: var(--ink); }
.tl .c i.g { background: var(--accent); outline: 1px solid var(--ink); outline-offset: -1px; }
.tl .c i.o { background: transparent; border: 2px solid var(--ink); }
.sched-note { margin-top: 18px; color: var(--muted); font-size: 16px; max-width: 60ch; }

/* 04 — What gets checked */
.checks { align-items: start; }
.checks .left { grid-column: 1 / span 5; position: sticky; top: 104px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.checks .left .rail { border-top: 1px solid var(--rule-strong); }
.checks .left h2 { font-size: clamp(38px, 5vw, 80px); }
.checks .left p { color: var(--ink-2); max-width: 34ch; }
.checklist { grid-column: 7 / -1; list-style: none; margin: 0; padding: 0; counter-reset: c; }
.checks .footnote { grid-column: 7 / -1; margin: 18px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.checklist li { counter-increment: c; display: grid; grid-template-columns: 3.4em minmax(0, 1fr); column-gap: 12px; padding: 22px 0 24px; border-top: 1px solid var(--rule); }
.checklist li:last-child { border-bottom: 1px solid var(--rule); }
.checklist li::before { content: counter(c, decimal-leading-zero); font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--muted); padding-top: 5px; font-variant-numeric: tabular-nums lining-nums; }
.checklist b { font-family: var(--display); font-weight: 800; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.1; letter-spacing: -0.02em; display: block; }
.checklist span { grid-column: 2; display: block; margin-top: 6px; color: var(--ink-2); font-size: 17px; }

/* 05 — Pricing: a price list, plans as rows */
.billing { grid-column: 4 / -1; margin-top: 28px; display: inline-flex; justify-self: start; border: 1px solid var(--rule-strong); }
.billing button { font: 700 15px/1 var(--display); color: var(--ink); background: transparent; border: 0; padding: 12px 18px; cursor: pointer; min-height: 44px; }
.billing button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.billing button .save { font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; background: var(--accent); color: var(--on-accent); padding: 3px 6px; }
.plans { margin-top: clamp(32px, 4vw, 56px); }
.plans-list { grid-column: 1 / -1; border-top: 2px solid var(--rule-strong); }
.plan-row { display: grid; grid-template-columns: minmax(0, 3fr) repeat(3, minmax(0, 2fr)) minmax(0, 2.6fr); column-gap: var(--gutter); align-items: center; padding-block: 26px; border-bottom: 1px solid var(--rule); position: relative; }
.plan-row.head { padding-block: 12px; }
.plan-row.head > * { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.plan-name { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 52px); line-height: .95; letter-spacing: -0.025em; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.plan-name .pop { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: 5px 7px; }
.plan-cell { font-family: var(--display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums lining-nums; }
.plan-cell small { display: none; }
.price { font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.03em; }
.price .per { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan-go { justify-self: end; }
.plan-go .slab { min-width: 196px; }
.plan-go .ghost { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 196px; min-height: 56px; padding: 0 20px; border: 1px solid var(--rule-strong); font: 800 19px/1 var(--display); text-decoration: none; }
.plan-go .ghost:hover { background: var(--ink); color: var(--paper); }
.plans-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 18px; font-size: 16px; color: var(--muted); }
.plans-foot b { font-weight: 500; color: var(--ink); }

/* 06 — Split: contractors | subcontractors */
.split { margin-top: clamp(96px, 12vw, 180px); display: grid; grid-template-columns: 7fr 5fr; border-top: 2px solid var(--rule-strong); }
.split a { text-decoration: none; display: grid; align-content: space-between; gap: 48px; min-height: clamp(340px, 34vw, 480px); padding: clamp(28px, 4vw, 64px) var(--edge); }
.split a:first-child { padding-left: max(var(--edge), calc((100vw - var(--max)) / 2 + var(--edge))); }
.split .who-c { background: var(--paper); }
.split .who-s { background: var(--inverse-bg); color: var(--inverse-ink); }
.split .who-s .label { color: var(--inverse-muted); }
.split h2 { font-size: clamp(40px, 5.2vw, 84px); line-height: .92; letter-spacing: -0.025em; max-width: 12ch; }
.split p { font-size: 19px; max-width: 34ch; margin-top: 16px; }
.split .who-c p { color: var(--ink-2); }
.split .go { font-family: var(--display); font-weight: 800; font-size: 20px; display: inline-flex; gap: 12px; align-items: center; }
.split .go::after { content: "\2192"; font-weight: 500; transition: transform .18s ease; }
.split a:hover .go::after { transform: translateX(6px); }
.split .who-s .go { background: var(--accent); color: var(--on-accent); padding: 14px 18px; justify-self: start; }
.split .who-c .go { border-bottom: 3px solid var(--accent); padding-bottom: 4px; justify-self: start; }

/* Closing */
.close { padding-block: clamp(96px, 12vw, 180px) clamp(72px, 9vw, 140px); }
.close h2 { grid-column: 1 / span 10; font-size: clamp(48px, 8.4vw, 136px); line-height: .88; letter-spacing: -0.03em; }
.close .act { grid-column: 8 / -1; margin-top: 36px; display: grid; gap: 14px; justify-items: start; }
.close .act .slab { min-width: min(100%, 330px); }

/* ───────── Footer ───────── */
.foot { border-top: 2px solid var(--rule-strong); padding-block: 36px 28px; }
.foot .cols { row-gap: 32px; }
.foot .about { grid-column: 1 / span 5; display: grid; gap: 10px; align-content: start; }
.foot .about p { font-size: 16px; color: var(--muted); max-width: 34ch; }
.foot .social { display: flex; gap: 10px; margin-top: 6px; }
.foot .social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--rule-strong); color: var(--ink); text-decoration: none; }
.foot .social a:hover, .foot .social a:focus-visible { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.foot nav { grid-column: span 2; display: grid; gap: 8px; align-content: start; }
.foot nav .label { margin-bottom: 4px; }
.foot nav a { font-family: var(--display); font-weight: 600; font-size: 15px; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot .logo-band { grid-column: 1 / -1; margin-top: clamp(40px, 6vw, 88px); background: var(--bar); padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot .logo-band img { width: clamp(220px, 32vw, 420px); height: auto; display: block; }
.foot .logo-band p { color: var(--bar-muted); font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.foot .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }

/* ───────── Tablet / phone ───────── */
@media (max-width: 1100px) {
  .mainnav { display: none; }
  .burger { display: grid; }
  .top-actions { grid-column: 7 / -1; gap: 14px; }
  .hero h1 { grid-column: 1 / -1; }
  .hero-side { grid-column: 1 / span 8; grid-row: auto; }
  .fig1 { grid-column: 1 / -1; grid-row: auto; }
  .plan-row { grid-template-columns: minmax(0, 2.4fr) repeat(3, minmax(0, 1.6fr)) auto; }
  .plan-go .slab, .plan-go .ghost { min-width: 0; }
}
@media (min-width: 1101px) { .menu { display: none !important; } }

@media (max-width: 860px) {
  body { font-size: 18px; }
  .grid > * { grid-column: 1 / -1 !important; }
  .top .grid { grid-template-columns: minmax(0, 1fr) auto; min-height: 60px; column-gap: 12px; }
  .brand { min-width: 0; gap: 10px; }
  .brand img { height: 42px; }
  .menu .signin-m { display: block; }
  .brand, .top-actions { grid-column: auto !important; }
  .top-actions .slab { display: none; }
  .hero h1 { font-size: min(13.6vw, 64px); }
  .hero-side { margin-top: 26px; }
  .meta { gap: 6px 18px; }
  .meta .label:nth-child(n+3) { display: none; }
  .fig1 { margin-top: 44px; }
  .ledger { font-size: 15px; }
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .ledger td { border: 0; padding: 0; }
  .ledger td.n { display: none; }
  .ledger td.who { font-size: 17px; white-space: normal; }
  .ledger td.note { grid-column: 1 / -1; grid-row: 2; margin-top: 3px; font-size: 15px; }
  .ledger td.st { grid-row: 1; grid-column: 2; }
  .rail { margin-bottom: 4px; }
  .sec-head h2 { padding-top: 0; }

  /* Phones: no pinned certificate. It sits above the steps, finished, and the steps read normally. */
  .story-fig { position: static; }
  .cert { padding: 14px 16px; font-size: 15px; }
  .cert-top { flex-wrap: wrap; gap: 4px 12px; padding-bottom: 10px; }
  .cert-title { font-size: 15px; max-width: none; }
  .cert dl { grid-template-columns: minmax(0, 1fr) 20px; }
  .cert dt { grid-column: 1 / -1; border-bottom: 0; padding: 8px 0 0; font-size: 11px; }
  .cert dd.v { padding-top: 2px; font-size: 15px; }
  .cert dd.ok { padding-top: 2px; }
  .cert dl > :nth-child(n+13) { display: none; }
  .cert-foot { justify-content: flex-end; min-height: 0; padding-top: 10px; }
  .cert-foot .label { display: none; }
  .stamp { font-size: 12px; padding: 7px 9px; }
  .stamp small { font-size: 9.5px; }
  .steps { margin-top: 28px; }
  .step { min-height: 0; padding-block: 22px 28px; opacity: 1; grid-template-columns: minmax(0, 1fr); }
  .step .sn, .step.on .sn { justify-self: start; font-size: 44px; padding-bottom: 10px; background-size: 100% 3px; }
  .step h3, .step p, .step .label { grid-column: 1; }
  .step h3 { margin-top: 10px; }

  .agent .body { grid-row: auto; margin-top: 36px; }
  .checks .left { position: static; }
  .checklist { margin-top: 32px; }
  .checklist li { grid-template-columns: 2.4em minmax(0, 1fr); column-gap: 8px; }
  .checklist b { font-size: clamp(20px, 6vw, 24px); }

  .tl { grid-template-columns: minmax(72px, 1.2fr) repeat(6, minmax(0, 1fr)); }
  .tl [role=row] > * { min-height: 50px; padding: 10px 0; }
  .tl .h { font-size: 24px; }
  .tl .h small { display: none; }
  .tl .rl { font-size: 14px; }
  .tl .rl em { display: none; }
  .tl .c i { width: 14px; height: 14px; }

  .billing { margin-top: 22px; }
  .plan-row.head { display: none; }
  .plan-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 14px; padding-block: 24px; }
  .plan-name { font-size: clamp(28px, 9vw, 40px); }
  .billing { flex-wrap: wrap; max-width: 100%; }
  .billing button { flex: 1 1 auto; }
  .plan-name { grid-column: 1 / -1; }
  .plan-cell small { display: block; font-family: var(--display); font-weight: 600; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .plan-cell.price-cell { grid-column: 1 / -1; order: -1; grid-row: 2; }
  .plan-go { grid-column: 1 / -1; justify-self: stretch; }
  .plan-go .slab, .plan-go .ghost { width: 100%; }

  .split { grid-template-columns: minmax(0, 1fr); }
  .split a { grid-template-columns: minmax(0, 1fr); }
  .split a, .split a:first-child { padding: 44px var(--edge); min-height: 0; }

  .close .act { margin-top: 28px; }
  .foot nav { grid-column: span 1 !important; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .about, .foot .logo-band, .foot .legal { grid-column: 1 / -1 !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .top, .burger, .menu, .billing { display: none !important; }
  .story-fig, .checks .left { position: static; }
  .step { min-height: 0; opacity: 1; }
}

/* Phones with large system text, or very narrow screens */
@media (max-width: 480px) {
  .top-actions .signin { display: none; }
  .brand img { height: 36px; }
  .burger { width: 40px; height: 40px; }
  .tl { min-width: 0; }
  .tl .h { font-size: 20px; }
  .tl .rl { font-size: 13px; }
  .ledger td.st span.s { font-size: 13px; }
  .plan-row { grid-template-columns: minmax(0, 1fr); }
  .plan-cell.price-cell { grid-row: auto; order: 0; }
  .foot .cols { grid-template-columns: minmax(0, 1fr); }
  .foot nav a { overflow-wrap: anywhere; }
  .answers span { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--rule-strong); }
  .answers span:last-child { border-bottom: 0; }
}
.menu .signin-m { display: none; }
