/* Magenta landing page — editorial minimal
   Ivory / charcoal / dusty magenta. No framework, no build step. */

/* Self-hosted fonts (SIL Open Font License 1.1; license texts in /assets/fonts) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/assets/fonts/newsreader-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/newsreader-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ivory: #F6F2EA;
  --paper: #EEE8DC;
  --ink: #23211F;
  --ink-soft: #5B564F;
  --rule: #D8D0C2;
  --magenta: #8E3B5E;        /* 6.4:1 on ivory — safe for small text */
  --magenta-soft: #C9A0B2;   /* decorative only */
  --charcoal: #1F1D1C;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(56px, 7.5vw, 104px);
  --head-gap: clamp(32px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--magenta); color: var(--ivory); }

:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 2px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ── Type ─────────────────────────────────────────── */
.eyebrow {
  font: 500 .6875rem/1.4 var(--sans);
  letter-spacing: .2em; text-transform: uppercase; color: var(--magenta);
}
.display {
  font: 400 clamp(2.6rem, 6.4vw, 5.25rem)/1.03 var(--serif);
  letter-spacing: -.02em; text-wrap: balance;
}
.display em { font-style: italic; color: var(--magenta); }
.display--hero { font-size: clamp(2.25rem, 4.5vw, 3.9rem); line-height: 1.06; }
.display--hero em { display: block; }
.title {
  font: 400 clamp(1.9rem, 3.8vw, 3.1rem)/1.1 var(--serif);
  letter-spacing: -.015em; text-wrap: balance;
}
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; color: var(--ink-soft); max-width: 34em; }
.body { color: var(--ink-soft); max-width: 36em; }

/* ── Buttons & links ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 26px; min-height: 48px;
  background: var(--ink); color: var(--ivory);
  font: 500 .875rem/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  border-radius: 2px;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.btn:hover { background: var(--magenta); }
.btn__arrow { transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--small { padding: 12px 18px; min-height: 44px; font-size: .8125rem; }
.btn--light { background: var(--ivory); color: var(--ink); }
.btn--light:hover { background: var(--magenta-soft); color: var(--charcoal); }

.text-link, .site-nav a, .site-footer nav a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .4s var(--ease), color .3s;
}
.text-link { font-size: .9375rem; background-size: 100% 1px; }
.text-link:hover { color: var(--magenta); }
.site-nav a:hover, .site-footer nav a:hover { background-size: 100% 1px; }

/* ── Header ───────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ivory) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.wordmark {
  display: inline-block; padding-block: 14px;
  font: 500 .8125rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; text-decoration: none;
}
.site-nav { display: flex; gap: 34px; font-size: .875rem; color: var(--ink-soft); }
.site-nav a:hover { color: var(--ink); }

/* ── Hero ─────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(28px, 4.5vw, 64px) var(--section); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: center; min-height: clamp(460px, 62vh, 640px); }
.hero__copy > * + * { margin-top: 28px; }
.hero__copy .display { margin-top: 22px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 40px !important; }
.hero__actions { align-items: flex-start; }
.hero__actions > .text-link { margin-top: 13px; }
.hero__fine, .closing__fine { margin-top: 12px; font-size: .8125rem; letter-spacing: .01em; color: var(--ink-soft); }
.hero__note { font: italic 400 1.05rem/1.4 var(--serif); color: var(--ink-soft); padding-top: 26px; border-top: 1px solid var(--rule); max-width: 22em; margin-top: 44px !important; }

/* The visual is a layer of the hero, not a card inside it. */
.hero__visual { position: absolute; top: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none; }
.hero__visual img, .hero__visual video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__visual video { opacity: 0; transition: opacity .4s linear; }
.hero__visual video.is-playing { opacity: 1; }

/* Atmospheric fade: wide, soft, dissolving into the page on the left and bottom */
.hero__visual {
  width: 68%; opacity: .9;
  -webkit-mask-image: linear-gradient(to right, transparent 4%, #000 62%), linear-gradient(to top, transparent 0, #000 34%);
          mask-image: linear-gradient(to right, transparent 4%, #000 62%), linear-gradient(to top, transparent 0, #000 34%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero__visual img, .hero__visual video { object-position: 60% 50%; }

/* ── Sections ─────────────────────────────────────── */
.section { padding-block: var(--section); border-top: 1px solid var(--rule); }
.section--paper { background: var(--paper); }
.section__head { max-width: 46rem; }
.section__head > * + *, .split__head > * + * { margin-top: 22px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.split--even { align-items: center; }

/* numbered list */
.numbered li {
  display: flex; align-items: baseline; gap: 28px;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
  font: 400 clamp(1.2rem, 1.8vw, 1.5rem)/1.3 var(--serif);
}
.numbered li:first-child { border-top: 1px solid var(--rule); }
.numbered__n, .flow__n, .column__n {
  font: 500 .6875rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--magenta);
}

/* four-step flow */
.flow { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: var(--head-gap); padding-top: 34px; }
.flow::before, .flow::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 100%; }
.flow::before { background: var(--rule); }
.flow::after { background: var(--magenta); transform-origin: left; transition: transform 1.8s var(--ease) .25s; }
.js .flow.reveal:not(.is-in)::after { transform: scaleX(0); }
.flow li { position: relative; }
.flow li::before {
  content: ""; position: absolute; left: 0; top: -38px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--magenta);
}
.flow h3 { font: 400 1.6rem/1.2 var(--serif); margin: 16px 0 10px; }
.flow p { color: var(--ink-soft); font-size: .9375rem; max-width: 17em; }
.flow--three { grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.flow--three h3 { font-size: 1.45rem; }
.flow--three p { max-width: 22em; }

.ask { margin-top: clamp(28px, 3.5vw, 44px); font: italic 400 1.2rem/1.4 var(--serif); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
.ask .eyebrow { font-style: normal; }
.aside { margin-top: clamp(26px, 3vw, 40px); font: italic 400 1.05rem/1.5 var(--serif); color: var(--ink-soft); max-width: 40em; }

/* three columns */
.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: var(--head-gap); }
.column { position: relative; padding-top: 28px; border-top: 1px solid var(--rule); }
.column::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--magenta); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.column:hover::before { transform: scaleX(1); }
.column h3 { font: 400 1.75rem/1.2 var(--serif); margin: 18px 0 10px; }
.column p { color: var(--ink-soft); font-size: .9375rem; }
.column ul { margin-top: 22px; }
.column li { padding: 11px 0; border-top: 1px solid var(--rule); font-size: .9375rem; }

/* ticks */
.ticks { margin-top: 30px !important; }
.ticks li { position: relative; padding: 11px 0 11px 26px; border-top: 1px solid var(--rule); font-size: .9375rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.25em; width: 10px; height: 1px; background: var(--magenta); }

/* illustrative ledger */
.ledger__card { background: var(--ivory); border: 1px solid var(--rule); border-radius: 3px; padding: 6px 26px 10px; box-shadow: 0 30px 60px -40px rgba(35, 33, 31, .35); }
.ledger__bar, .ledger__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ledger__label { margin: 16px 0 0; display: inline-block; padding: 6px 10px; border: 1px solid var(--magenta); border-radius: 2px; font: 500 .625rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); }
.ledger__bar { padding: 18px 0; font: 500 .6875rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.ledger__row { padding: 18px 0; border-top: 1px solid var(--rule); }
.ledger__row strong { display: block; font: 400 1.15rem/1.25 var(--serif); }
.ledger__row small { font-size: .8125rem; color: var(--ink-soft); }
.tag { font-size: .75rem; padding: 6px 11px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-soft); white-space: nowrap; }
.tag--accent { border-color: var(--magenta); color: var(--magenta); }
.ledger figcaption { margin-top: 16px; font-size: .75rem; line-height: 1.5; color: var(--ink-soft); max-width: 42em; }

/* if / then pairs */
.pairs { margin-top: var(--head-gap); }
.pairs__head, .pair { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: baseline; }
.pairs__head { padding-bottom: 16px; font: 500 .6875rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); }
.pair { padding: 24px 0; border-top: 1px solid var(--rule); transition: padding .4s var(--ease); }
.pair:last-child { border-bottom: 1px solid var(--rule); }
.pair dt { font: 400 clamp(1.15rem, 1.7vw, 1.45rem)/1.3 var(--serif); }
.pair dd { font-weight: 500; font-size: .9375rem; }
.pair__arrow { color: var(--magenta); transition: transform .4s var(--ease); }
.pair:hover .pair__arrow { transform: translateX(8px); }

/* ── Closing ──────────────────────────────────────── */
.closing { background: var(--charcoal); color: var(--ivory); border-top: 0; }
.closing__inner > * + * { margin-top: 28px; }
.closing .eyebrow { color: var(--magenta-soft); }
.closing .lede { color: #CFC8BC; }
.closing .closing__fine { margin-top: 14px; color: #A39C90; }
.closing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; padding-top: 16px; }
.closing .text-link:hover { color: var(--magenta-soft); }
.closing__after { margin-top: clamp(40px, 5vw, 64px); padding-top: 26px; border-top: 1px solid #36322F; max-width: 40em; font: italic 400 1.05rem/1.5 var(--serif); color: #CFC8BC; }
.closing :focus-visible { outline-color: var(--magenta-soft); }

/* ── Footer ───────────────────────────────────────── */
.site-footer { background: var(--charcoal); color: #A39C90; border-top: 1px solid #36322F; font-size: .8125rem; line-height: 1.7; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 32px clamp(24px, 5vw, 72px); padding-block: 48px 30px; }
.site-footer .wordmark { color: var(--ivory); padding-top: 0; }
.site-footer__brand a:not(.wordmark) { display: inline-block; padding-block: 5px; color: var(--ivory); }
.site-footer__nav { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.site-footer__nav a { padding-block: 4px 3px; }
.site-footer nav a:hover { color: var(--ivory); }
.site-footer__legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid #36322F; font-size: .75rem; }
.site-footer :focus-visible { outline-color: var(--magenta-soft); }

/* ── Legal pages ──────────────────────────────────── */
.legal { padding-block: clamp(40px, 6vw, 80px) var(--section); }
.legal__inner { max-width: 760px; }
.legal__inner > .title { margin-top: 18px; }
.legal__meta { margin-top: 14px; font-size: .875rem; color: var(--ink-soft); }
.legal .lede { margin-top: 26px; max-width: none; }
.legal h2 { font: 400 1.5rem/1.25 var(--serif); margin: 44px 0 12px; }
.legal p + p, .legal ul + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal p a, .legal li a { color: var(--magenta); text-underline-offset: 3px; }
.draft-banner { margin-bottom: 36px; padding: 14px 18px; border: 1px solid var(--magenta); border-radius: 2px; font-size: .875rem; color: var(--ink); background: color-mix(in srgb, var(--magenta-soft) 22%, var(--ivory)); }
.confirm { display: inline; background: color-mix(in srgb, var(--magenta-soft) 38%, var(--ivory)); padding: 1px 6px; border-radius: 2px; font-size: .875em; }
.legal__review { margin-top: 56px; padding: 4px 24px 24px; border: 1px dashed var(--magenta); border-radius: 2px; }
.legal__review h2 { margin-top: 24px; font-size: 1.2rem; }

/* ── Questionnaire (/start) ───────────────────────── */
.start { padding-block: clamp(40px, 6vw, 88px) var(--section); }
.start__inner { max-width: 760px; }
.start h1:focus { outline: none; }
.start__title { margin-top: 20px; font-size: clamp(2.3rem, 5vw, 3.6rem); }
.start .lede { margin-top: 24px; }
.start__form .eyebrow + .start__set, .start .eyebrow + .title { margin-top: 18px; }
.start__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.start__set legend { padding: 0; width: 100%; }
.start__helper { margin-top: 12px; font-size: .9375rem; color: var(--ink-soft); max-width: 40em; }
.choices { display: grid; gap: 10px; margin-top: 28px; }
.choice {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 14px 18px;
  border: 1px solid var(--rule); border-radius: 3px; background: color-mix(in srgb, var(--ivory) 60%, #fff);
  cursor: pointer; transition: border-color .2s, background-color .2s;
}
.choice:hover { border-color: var(--ink-soft); }
.choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--magenta); }
.choice:has(input:checked) { border-color: var(--magenta); background: color-mix(in srgb, var(--magenta-soft) 18%, var(--ivory)); }
.choice:has(input:focus-visible) { outline: 2px solid var(--magenta); outline-offset: 3px; }
.choice input:focus-visible { outline: none; }
.start__field { margin-top: 22px; }
.start__field label { display: block; font-size: .9375rem; color: var(--ink-soft); }
.start__input {
  width: 100%; margin-top: 8px; padding: 13px 14px; min-height: 48px;
  border: 1px solid var(--ink-soft); border-radius: 3px; background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sans);
}
.start__error { min-height: 1.5em; margin-top: 14px; font-size: .9375rem; font-weight: 500; color: var(--magenta); }
.start__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }
.start .lede + .start__nav { margin-top: 36px; }
button.btn { border: 0; cursor: pointer; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-soft); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.start__direct { margin-top: clamp(40px, 6vw, 64px); padding-top: 22px; border-top: 1px solid var(--rule); font-size: .9375rem; color: var(--ink-soft); }
.start__direct a, .start__notice a { color: var(--magenta); text-underline-offset: 3px; display: inline-block; padding-block: 4px; }
.summary { margin-top: 28px; border-top: 1px solid var(--rule); }
.summary__row { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr) auto; gap: 6px 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.summary dt { font: 500 .6875rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.summary dd { overflow-wrap: anywhere; }
.summary__typed { display: block; margin-top: 4px; font-size: .9375rem; color: var(--ink-soft); }
.summary__edit {
  min-height: 32px; padding: 4px 2px; border: 0; background: none; cursor: pointer;
  font: 500 .875rem/1 var(--sans); color: var(--magenta); text-decoration: underline; text-underline-offset: 3px;
}
.start__suggestion { margin-top: 36px; padding: 24px 26px; background: var(--paper); border-left: 2px solid var(--magenta); border-radius: 2px; }
.start__suggestion > p:not(.start__helper) { margin-top: 12px; font: 400 clamp(1.2rem, 2vw, 1.45rem)/1.35 var(--serif); }
.start__suggestion + .start__nav { margin-top: 32px; }
.start__notice { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 3px; font-size: .9375rem; }
.start__notice p + p { margin-top: 12px; }
.start__typed { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 14px; background: #fff; border-radius: 2px; }
.start__status { font-size: .875rem; color: var(--ink-soft); }

/* ── Free audit (/free-audit) ─────────────────────── */
.audit { padding-block: clamp(36px, 6vw, 88px) var(--section); }
.audit__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.audit__copy { padding-top: clamp(0px, 2vw, 24px); }
.audit__copy > * + * { margin-top: 24px; }
.audit__title { font-size: clamp(2.4rem, 5vw, 4.1rem); }
.audit__title em { white-space: nowrap; }
.audit__benefits { max-width: 30rem; margin-top: 34px !important; }
.audit__benefits li { font: 400 1.15rem/1.4 var(--serif); padding-block: 13px; }
.audit__benefits li:last-child { border-bottom: 1px solid var(--rule); }
.audit__meta { font-size: .875rem; color: var(--ink-soft); }
.audit__card {
  background: color-mix(in srgb, var(--ivory) 55%, #fff); border: 1px solid var(--rule); border-radius: 3px;
  padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 30px 60px -44px rgba(35, 33, 31, .4);
  border-top: 2px solid var(--magenta);
}
.audit__card-title { font: 400 clamp(1.5rem, 2.4vw, 1.9rem)/1.2 var(--serif); letter-spacing: -.01em; }
.audit__card-lede { margin-top: 10px; font-size: .9375rem; color: var(--ink-soft); }
.audit__field { margin-top: 22px; }
.audit__field + .audit__field { margin-top: 16px; }
.audit__field label { display: block; font-size: .875rem; font-weight: 500; }
.audit__field .start__input[aria-invalid] { border-color: var(--magenta); box-shadow: inset 0 0 0 1px var(--magenta); }
.audit__field-error { min-height: 0; margin-top: 6px; font-size: .875rem; font-weight: 500; color: var(--magenta); }
.audit__field-error:empty { display: none; }
.audit__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.audit__consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.audit__consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--magenta); }
.audit__submit { width: 100%; justify-content: center; margin-top: 24px; }
.audit__submit[disabled] { opacity: .7; cursor: progress; }
.audit__status { margin-top: 14px; font-size: .9375rem; font-weight: 500; color: var(--magenta); }
.audit__status:empty { display: none; }
.audit__status a, .audit__fine a { color: var(--magenta); text-underline-offset: 3px; }
.audit__fine { margin-top: 16px; font-size: .8125rem; line-height: 1.55; color: var(--ink-soft); }
.audit__done:focus { outline: none; }
.audit__done .audit__card-title { margin-top: 14px; }
.audit__done .btn { margin-top: 26px; }
.audit__next { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: .9375rem; color: var(--ink-soft); }
.audit__next .text-link { display: inline-block; margin-top: 10px; color: var(--ink); }
.closing__after .text-link { font-style: normal; font-family: var(--sans); font-size: .9375rem; color: var(--ivory); }

@media (max-width: 900px) {
  .audit__grid { grid-template-columns: 1fr; }
  .audit__copy { padding-top: 0; }
}
@media (max-width: 420px) {
  .audit__done .btn { width: 100%; justify-content: space-between; }
}

/* ── Scroll reveals (only when JS is running) ─────── */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .flow.reveal:not(.is-in)::after { transform: none; }
  .flow::after, .column::before, .btn, .btn__arrow, .pair__arrow, .text-link, .site-nav a, .hero__visual video { transition: none; }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-nav { display: none; }
  .hero__grid, .split { grid-template-columns: 1fr; }
  .hero__grid { min-height: 0; }
  /* Mobile hero: the visual sits behind the lower part of the hero and dissolves on every side */
  .hero { padding-bottom: min(54vw, 400px); }
  .hero__visual {
    top: auto; left: -12%; right: -12%; bottom: 0; width: auto; height: min(98vw, 640px); opacity: .92;
    -webkit-mask-image: radial-gradient(ellipse 58% 46% at 54% 54%, #000 22%, transparent 100%);
            mask-image: radial-gradient(ellipse 58% 46% at 54% 54%, #000 22%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add;
  }
  .hero__visual img, .hero__visual video { object-position: 52% 50%; }
  .columns { grid-template-columns: 1fr; gap: 44px; }
  .flow { grid-template-columns: 1fr; gap: 0; padding-top: 0; padding-left: 30px; }
  .flow::before, .flow::after { width: 1px; height: 100%; transform-origin: top; }
  .js .flow.reveal:not(.is-in)::after { transform: scaleY(0); }
  .flow li { padding: 0 0 34px; }
  .flow li:last-child { padding-bottom: 0; }
  .flow li::before { left: -33px; top: 2px; }
  .flow h3 { margin-top: 10px; }
  .pairs__head { display: none; }
  .pair { grid-template-columns: 1fr; gap: 8px; }
  .pair__arrow { display: none; }
  .pair dd { color: var(--magenta); }
  .pair dd::before { content: "→  "; }
}
@media (max-width: 420px) {
  .site-header__inner { min-height: 64px; gap: 12px; }
  .wordmark { letter-spacing: .24em; font-size: .75rem; }
  .btn--small { padding: 12px 13px; font-size: .75rem; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .ledger__card { padding-inline: 18px; }
  .ledger__row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* Hero entrance: pure CSS so above-the-fold content never waits on JS.
   Base state is visible; the animation only plays when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 420px) {
  .hero__cta { width: 100%; }
}

@media (max-width: 560px) {
  .summary__row { grid-template-columns: minmax(0, 1fr) auto; }
  .summary dt { grid-column: 1 / -1; }
  .start__nav .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .choice { transition: none; }
}
