/* CueClick — site styles, v2 (Nov 26 2026). Palette and fonts per the owner's v2 review; see DESIGN.md. */

/* ---------- Fonts ---------------------------------------------------------
   CueClick Display (v5.2, display/headlines): the site's own face. A modified font under the SIL Open Font
   License 1.1, based on Bricolage Grotesque by Mathieu Triay (instantiated at opsz 96), with custom C/c, G, Q,
   K/k and click-dot glyphs. "CueClick Display" is a Reserved Font Name (assets/fonts/OFL-CueClickDisplay.txt,
   FONT-LICENSE.md). It is not derived from Clash Display or Satoshi.
   Satoshi (body/UI) by Indian Type Foundry, from fontshare.com, ITF Free Font License
   (assets/fonts/FFL-ITF-Fontshare.txt). Self-hosted, used exactly as shipped (no subsetting or converting). */
@font-face {
  font-family: "CueClick Display";
  src: url("../fonts/CueClickDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CueClick Display";
  src: url("../fonts/CueClickDisplay-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CueClick Display";
  src: url("../fonts/CueClickDisplay-ExtraBold.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-VariableItalic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}
/* Metric-matched fallbacks (measured with fontTools: average advance and vertical metrics)
   so the swap barely moves text. The weight range stops the browser faking bold on Arial Bold. */
/* CueClick Fallback: Arial Bold scaled to CueClick Display SemiBold's average advance (90.08%, .tools/measure_v52.py);
   the overrides are divided by size-adjust (the spec scales them too) so the final ascent/descent are the
   face's own .93 / .27 em. */
@font-face {
  font-family: "CueClick Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica Bold");
  font-weight: 100 549;
  size-adjust: 89%;            /* Medium (500: the cue line, the guarantee statement) */
  ascent-override: 104.5%;
  descent-override: 30.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "CueClick Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica Bold");
  font-weight: 550 900;
  size-adjust: 90.1%;          /* SemiBold (600: every headline) */
  ascent-override: 103.2%;
  descent-override: 30%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Satoshi Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica");
  font-weight: 100 549;
  size-adjust: 98.8%;
  ascent-override: 102.2%;
  descent-override: 24.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Satoshi Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica Bold");
  font-weight: 550 900;
  size-adjust: 98.8%;
  ascent-override: 102.2%;
  descent-override: 24.3%;
  line-gap-override: 0%;
}

/* Caveat Brush by Impallari Type (Google Fonts), SIL Open Font License 1.1 (assets/fonts/OFL-CaveatBrush.txt).
   v3 scribble ACCENT face only: margin notes and annotations, never headings or body. */
@font-face {
  font-family: "Caveat Brush";
  src: url("../fonts/CaveatBrush-Regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Size-adjusted fallbacks (fontTools: average lowercase advance + vertical metrics vs Caveat Brush,
   ascent .96 / descent .30). Marker Felt Thin on Apple devices, then Arial everywhere else.
   No generic cursive / Comic Sans. */
@font-face {
  font-family: "Scribble Fallback Felt";
  src: local("Marker Felt Thin"), local("MarkerFelt-Thin");
  size-adjust: 93.1%;
  ascent-override: 103.1%;
  descent-override: 32.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Scribble Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 80.1%;
  ascent-override: 119.8%;
  descent-override: 37.5%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F3E6CF;        /* warm cream: page ground */
  --paper-2: #E9D6B6;      /* sand: frames, stand-ins, status panels */
  --card: #FFF8EC;         /* raised cream: inputs, secondary buttons, cards on colour */
  --ink: #0E1A2B;          /* deep ink navy: text, borders, hard shadows, footer */
  --ink-2: #1C2B44;        /* raised ink */
  --signal: #FF4D12;       /* hot signal orange: primary CTA fill, highlight band, close band, cursor mark */
  --cobalt: #2E46FF;       /* electric cobalt: numbers, labels, tags, test-month band */
  --muted: #5E5446;        /* secondary text on cream (6.0:1) */
  --muted-on-ink: #B9AE98; /* secondary text on navy (8.0:1) */
  --on-cobalt-2: #E8EBFF;  /* secondary text on cobalt (5.2:1) */
  --line: #7D705C;         /* input borders (4.6:1 on card) */
  --error: #AE2E08;        /* field errors (6.2:1 on card) */
  --rule: rgba(14, 26, 43, .18);
  --rule-strong: rgba(14, 26, 43, .42);
  --rule-on-ink: rgba(243, 230, 207, .2);
  --rule-on-cobalt: rgba(255, 255, 255, .34);
  /* v5.5: semantic tokens the dark theme swaps (light values are the v5.4 ones, so light renders the same).
     --ink / --cream / --cream-card stay the brand colours in both themes (navy surfaces, button text and edges,
     cream cards); --text is "ink on the page ground". */
  --cream: #F3E6CF;
  --cream-card: #FFF8EC;
  --text: var(--ink);
  --cobalt-text: var(--cobalt); /* cobalt used as text on the ground (4.96:1 on cream) */
  --cue-dim: #8C7A5B;           /* cue words before the fill */
  --slot-bg: rgba(233, 214, 182, .55);
  --header-bg: rgba(243, 230, 207, .96);
  --card-hi: #fff;              /* secondary button top highlight */
  --card-hover: #fff;
  --btn-rim: transparent;       /* dark only: a rim around the navy slab so it reads on a dark ground */
  --ground: var(--paper);       /* resolved here, so boxes that re-pin --paper (div.intro) still get the live ground */

  --font-display: "CueClick Display", "CueClick Fallback", system-ui, sans-serif;
  --font: "Satoshi", "Satoshi Fallback", system-ui, sans-serif;
  --font-scribble: "Caveat Brush", "Scribble Fallback Felt", "Scribble Fallback", sans-serif;
  --note-size: clamp(1.375rem, 1.15rem + .55vw, 1.625rem); /* 22px phone, 26px wide desktop */

  --wrap: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --gap: clamp(16px, 2vw, 28px);
  --space-section: clamp(88px, 12vw, 168px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius: 6px;
  --radius-btn: 10px;
  --radius-media: 16px;

  --media-shadow: 0 1px 0 rgba(14, 26, 43, .06), 0 22px 44px -30px rgba(14, 26, 43, .5);
  --media-shadow-lift: 0 1px 0 rgba(14, 26, 43, .06), 0 40px 70px -34px rgba(14, 26, 43, .6);

  color-scheme: light;
}

/* ---------- Base ---------- */
html, body { background: var(--paper); color: var(--text); }
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
/* Paper grain: a 3.7 KB tile, no live filters. v4: the layer is twice the viewport and jitters with
   transform steps (compositor only), so the grain reads as film grain; still under reduced motion. */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  background-image: url("../img/grain.png");
  background-size: 96px 96px;
  opacity: .36;
}
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: grain 1.1s steps(5) infinite; will-change: transform; }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2.5%, 1.5%); }
  40% { transform: translate(1.5%, -2.5%); }
  60% { transform: translate(-1.5%, -1%); }
  80% { transform: translate(2.5%, 2%); }
  100% { transform: translate(0, 0); }
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance;
}
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; border-radius: 4px; }
.on-ink :focus-visible, .band--cobalt :focus-visible { outline-color: #fff; }
button, a, summary, [role="button"], label, input[type="checkbox"] { touch-action: manipulation; }
button, .btn, summary { -webkit-user-select: none; user-select: none; }
.btn { -webkit-touch-callout: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--cream); padding: 12px 16px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; outline-color: var(--cobalt-text); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- Buttons: chunky, solid, 2px ink edge, hard offset shadow ----------
   The shadow is a solid ink slab (no blur). Hover lifts the button up-left by 2px while the slab
   grows by 2px, so the slab's footprint stays put; :active pushes it 3px into the slab. */
.btn {
  --btn-bg: var(--signal);
  --btn-fg: var(--ink);
  --btn-edge: var(--ink);
  --btn-slab: var(--ink);
  --btn-hi: rgba(255, 255, 255, .42);
  --slab: 5px; /* resting slab depth (also the reserved margin; never changes) */
  --d: var(--slab); /* live slab depth */
  --t: 0px;    /* travel */
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 24px 0 26px;
  font: 700 1.0625rem/1 var(--font); letter-spacing: 0;
  text-decoration: none; cursor: pointer;
  color: var(--btn-fg); background-color: var(--btn-bg);
  border: 2px solid var(--btn-edge); border-radius: var(--radius-btn);
  box-shadow: inset 0 2px 0 var(--btn-hi), var(--d) var(--d) 0 0 var(--btn-slab), var(--d) var(--d) 0 2px var(--btn-rim);
  transform: translate(var(--t), var(--t));
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s;
  margin: 0 var(--slab) var(--slab) 0; /* reserve the slab so it never touches neighbours */
}
.btn .cursor-mark { width: 18px; height: 18px; }
/* Hit pad over the slab footprint, so the 2px hover shift never drops :hover at the edges. */
.btn::after { content: ""; position: absolute; inset: -4px calc(-1 * var(--slab) - 4px) calc(-1 * var(--slab) - 4px) -4px; }
.btn:active { --t: 3px; --d: 2px; transition-duration: .07s; }
.btn:focus-visible { outline-offset: 5px; }

/* Secondary: raised cream with the same edge and slab. Clearly not the orange action. */
.btn--paper { --btn-bg: var(--card); --btn-hi: var(--card-hi); --btn-fg: var(--text); --btn-edge: var(--text); --mark: var(--text); }
/* Ink: for cream grounds where a dark action reads better. */
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--cream); --btn-hi: rgba(255, 255, 255, .16); --btn-slab: var(--signal); }
.btn--small { --slab: 4px; min-height: 46px; padding: 0 16px; font-size: .9375rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px;
  font-weight: 700; text-decoration: none; position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 1.4em; bottom: 10px; height: 2px;
  background: currentColor; transform-origin: left; transition: transform .3s var(--ease-out);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform .3s var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { --t: -2px; --d: calc(var(--slab) + 2px); }
  .btn:hover:active { --t: 3px; --d: 2px; }
  .btn--paper:hover { --btn-bg: var(--card-hover); }
  .link-arrow:hover::after { transform: scaleX(.4); }
  .link-arrow:hover svg { transform: translateX(3px); }
  .nav__links a:not(.btn):hover { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--signal); }
  .faq summary:hover .faq__q { text-decoration: underline; text-decoration-color: var(--cobalt); text-decoration-thickness: 2px; }
  .footer a:hover { color: var(--cream); }
}

/* Cursor-click mark (the motif). Ink arrow + ticks on light grounds, orange on ink. */
.cursor-mark { flex: none; overflow: visible; }
.cursor-mark .cm-arrow { fill: var(--mark, var(--ink)); }
.cursor-mark .cm-ticks { stroke: var(--mark, var(--ink)); }
.btn--ink .cursor-mark .cm-arrow, .on-ink .cursor-mark .cm-arrow { fill: var(--signal); }
.btn--ink .cursor-mark .cm-ticks, .on-ink .cursor-mark .cm-ticks { stroke: var(--signal); }
.brand .cursor-mark .cm-arrow { fill: var(--signal); stroke: var(--ink); stroke-width: 1.2px; stroke-linejoin: round; }
.on-ink .brand .cursor-mark .cm-arrow { stroke: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; min-height: 44px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.4375rem; letter-spacing: -0.02em;
}
.brand__dot { width: 19px; height: 19px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 28px); list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 600; display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: .35em; }
.nav__links a.btn { color: var(--ink); font-size: 1.0625rem; font-weight: 700; }
.nav > .btn { margin-block: 0; }
/* Audit page: the back button keeps its full accessible name but shows only "Back" on narrow phones. */
@media (max-width: 419px) { .back-btn .back-btn__more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav__links { display: none; }
  .nav-toggle ~ .btn { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; min-width: 44px; padding: 0 4px; background: none; border: 0; color: var(--text);
    font: 700 .9375rem var(--font); cursor: pointer;
  }
  .nav-toggle__bars { width: 22px; height: 10px; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s var(--ease-out); }
  .nav-toggle__bars::before { top: 0; }
  .nav-toggle__bars::after { bottom: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-4px) rotate(-45deg); }
  .site-header.menu-open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; inset: calc(76px + env(safe-area-inset-top, 0px)) 0 0 0;
    background: var(--paper); padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--rule); overflow-y: auto; overscroll-behavior: contain;
  }
  .site-header.menu-open .nav__links li { border-bottom: 1px solid var(--rule); }
  .site-header.menu-open .nav__links a:not(.btn) { font-family: var(--font-display); font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); min-height: 64px; width: 100%; }
  .site-header.menu-open .nav__links .nav__cta { display: flex; border: 0; padding-top: 28px; }
  .site-header.menu-open .nav__links .nav__cta .btn { flex: 1; min-height: 58px; }
  body.menu-locked { overflow: hidden; }
}
.nav__cta { display: none; }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--space-section); position: relative; }
.section + .section:not(.band):not(.after-band) { border-top: 1px solid var(--rule); }
.on-ink { background: var(--ink); color: var(--cream); }
.on-ink .muted { color: var(--muted-on-ink); }
.muted { color: var(--muted); }

/* Full-bleed colour bands. */
.band--cobalt { background: var(--cobalt); color: #fff; }
.band--cobalt .muted, .band--cobalt .sec-no { color: var(--on-cobalt-2); }
.band--cobalt ::selection { background: var(--paper); color: var(--ink); }
.band--orange { background: var(--signal); color: var(--ink); }
.band--orange ::selection { background: var(--ink); color: var(--paper); }

/* Numbered section head: number in the margin rail, heading beside it. */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-no {
  grid-column: 1 / span 2; padding-top: .7em;
  font-size: .9375rem; font-weight: 800; letter-spacing: .02em; color: var(--cobalt-text);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 10px;
}
.sec-no::after { content: ""; flex: 1; height: 2px; background: currentColor; max-width: 56px; }
.sec-head h2 { grid-column: 3 / span 9; font-size: clamp(2.25rem, 5vw, 4.25rem); }
.sec-head .sec-lead { grid-column: 3 / span 6; margin-top: 24px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); max-width: 34em; }
@media (max-width: 759px) {
  .sec-head { display: block; }
  .sec-no { padding: 0 0 18px; }
}

/* ---------- Media frames ----------
   Structure: [data-tilt] stationary wrapper (hover target) > .media-lift (CSS lift; the no-JS fallback) > figure.media (GSAP tilt).
   The hero adds .media-float outside for a slow idle float. Each layer owns one transform. */
.media {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: var(--ar, 4 / 3);
  background: var(--paper-2);
  border-radius: var(--radius-media);
  isolation: isolate;
  box-shadow: var(--media-shadow);
  transition: box-shadow .5s var(--ease-out);
}
.media picture, .media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.media img { object-fit: cover; z-index: 1; transition: transform .7s var(--ease-out); }
.media.is-missing picture { display: none; }
.media__stand-in { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.on-ink .media { background: var(--ink-2); }
.media-lift { transition: transform .5s var(--ease-out); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-tilt]:hover .media-lift { transform: translateY(-6px); }
  [data-tilt]:hover .media { box-shadow: var(--media-shadow-lift); }
  [data-tilt]:hover .media img { transform: scale(1.025); }
}
@media (prefers-reduced-motion: no-preference) {
  .media-float { animation: media-float 7s ease-in-out infinite alternate; }
}
@keyframes media-float {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

/* Clearly labelled proof/photo slots (brief: dashed, marked). */
.slot {
  border: 2px dashed var(--rule-strong); border-radius: var(--radius-media);
  display: grid; place-items: center; text-align: center; padding: 28px;
  color: var(--muted); font-size: .9375rem; font-weight: 500;
  background: var(--slot-bg);
}
.slot strong { display: block; color: var(--text); font-size: 1.0625rem; font-weight: 700; margin-bottom: 4px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: 0; }
.hero__grid { align-items: end; row-gap: 48px; }
.hero__copy { grid-column: 1 / span 7; padding-bottom: clamp(8px, 2vw, 40px); }
.hero__media { grid-column: 9 / span 4; }
.hero h1 {
  /* Sized so the longest set line fits the 7-column measure: v5.2 "against your best." is 7.31em in
     CueClick Display 600 at -0.02em (the old 8.10em Clash budget still holds). -0.02em, not tighter:
     the C's cursor-arrow needs room next to u / e. */
  font-size: clamp(2.75rem, 5.8vw, 5.5rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: .96;
  margin-bottom: clamp(28px, 3vw, 40px);
}
@media (max-width: 759px) { .hero h1 { font-size: clamp(2rem, 10.2vw, 3.25rem); } }
/* Mask for the entrance. Line box .96em, baseline at .81em (ascent .93 / descent .27 / half-leading -.12);
   CueClick Display's deepest descender ("g", "Q" tail) is -0.16em, so it ends at .97em inside the 1.10em clip.
   Click-dot periods (-0.03em) and the C arrow (cap height .67em) sit well inside. */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero h1 .line > span { display: block; }
/* v3: the hero's last line carries a hand-drawn squiggle instead of the flat band.
   The mask grows at the bottom for this line only so the stroke is not clipped. */
.hero h1 .line--squiggle { padding-bottom: .42em; margin-bottom: -.42em; }
.squiggle-word { position: relative; white-space: nowrap; }
.doodle--squiggle { position: absolute; left: -.02em; width: calc(100% + .04em); height: auto; bottom: -.3em; color: var(--signal); stroke-width: 5; }
/* Orange marker band; wrap-safe (each line fragment gets its own band). */
.hl {
  background: linear-gradient(var(--signal), var(--signal)) 0 90% / 100% .3em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: .04em;
}
.hl--cream { background-image: linear-gradient(var(--card), var(--card)); }
.hero__sub { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.5; max-width: 33em; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.hero__note { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.hero__note::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(255, 77, 18, .24); }
.hero__media .media { --ar: 1122 / 1402; }

.facts { margin-top: clamp(56px, 7vw, 104px); border-top: 2px solid var(--text); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.facts li { padding: 22px 24px 26px 0; font-size: .9375rem; font-weight: 600; display: flex; gap: 12px; align-items: baseline; }
.facts li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--cobalt-text); border-radius: 2px; transform: translateY(-1px); }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--rule); }

@media (max-width: 1099px) {
  .hero__copy { grid-column: 1 / span 7; }
  .hero__media { grid-column: 8 / span 5; }
}
@media (max-width: 759px) {
  .hero { padding-top: 28px; }
  .hero__copy, .hero__media { grid-column: 1 / -1; }
  .hero__media { max-width: 420px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: calc(100% - var(--slab)); }
  .facts ul { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 16px 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--rule); }
}

/* ---------- 01 Problems ---------- */
.problems { list-style: none; margin: 0; padding: 0; }
.problems li {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: clamp(22px, 2.6vw, 34px) 0; border-top: 1px solid var(--rule);
}
.problems li:last-child { border-bottom: 1px solid var(--rule); }
.problems .p-key { grid-column: 3 / span 1; font-family: var(--font-display); font-weight: 600; color: var(--cobalt-text); font-size: 1.25rem; padding-top: .2em; }
.problems h3 { grid-column: 4 / span 4; font-size: clamp(1.375rem, 2.3vw, 2rem); letter-spacing: -0.02em; line-height: 1.12; }
.problems p:not(.note) { grid-column: 8 / span 5; margin: 0; color: var(--muted); padding-top: .25em; max-width: 30em; }
@media (max-width: 899px) {
  .problems .p-key { grid-column: 1 / span 2; }
  .problems h3 { grid-column: 3 / span 10; }
  .problems p:not(.note) { grid-column: 3 / span 10; padding-top: 10px; }
}

/* ---------- 02 Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: start; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule);
}
.step:first-child { border-top: 0; padding-top: 0; }
.step__num {
  grid-column: 1 / span 3;
  font-family: var(--font-display);
  font-size: clamp(6rem, 13vw, 11.5rem); font-weight: 600; line-height: .78; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; color: var(--cobalt-text);
}
.step__num::after { content: ""; display: inline-block; width: .12em; height: .12em; background: var(--signal); border-radius: 50%; margin-left: .03em; }
.step__body { grid-column: 4 / span 4; padding-top: 6px; }
.step__body h3 { font-size: clamp(1.625rem, 2.6vw, 2.375rem); margin-bottom: 18px; }
.step__body p { color: var(--muted); max-width: 30em; }
.step__tag {
  display: inline-block; margin-top: 8px; font-size: .875rem; font-weight: 700;
  padding: 7px 12px; border-radius: 999px; background: var(--cobalt); color: #fff;
}
.step__media { grid-column: 9 / span 4; }
.step__media .media { --ar: 1448 / 1086; }
/* Rhythm: middle step flips media to the left of the text. */
.step--flip .step__media { grid-column: 4 / span 4; grid-row: 1; }
.step--flip .step__body { grid-column: 9 / span 4; }
@media (max-width: 899px) {
  .step, .step--flip { row-gap: 24px; }
  .step__num { grid-column: 1 / -1; }
  .step__body, .step--flip .step__body { grid-column: 1 / span 12; grid-row: auto; }
  .step__media, .step--flip .step__media { grid-column: 1 / span 12; grid-row: auto; max-width: 520px; }
}
@media (min-width: 760px) and (max-width: 899px) {
  .step__num { grid-column: 1 / span 3; grid-row: 1 / span 2; }
  .step__body, .step--flip .step__body { grid-column: 4 / span 9; grid-row: 1; }
  .step__media, .step--flip .step__media { grid-column: 4 / span 9; grid-row: 2; }
}

/* ---------- 03 Offer (full-bleed cobalt band) ---------- */
.offer .sec-head h2 { grid-column: 3 / span 8; }
.offer .sec-no::after { opacity: .7; }
.offer__grid { row-gap: 56px; }
.offer__list { grid-column: 3 / span 6; list-style: none; margin: 0; padding: 0; }
.offer__list li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 0 12px; padding: 22px 0; border-top: 1px solid var(--rule-on-cobalt); }
.offer__list li:last-child { border-bottom: 1px solid var(--rule-on-cobalt); }
.offer__list .o-no { color: #fff; font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.0625rem; padding-top: .15em; }
.offer__list h3 { font-size: 1.5rem; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 6px; }
.offer__list p:not(.note) { margin: 0; color: var(--on-cobalt-2); }
.offer__side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 40px; }
.offer__side h3 { font-family: var(--font); font-size: 1rem; letter-spacing: 0; font-weight: 800; margin-bottom: 12px; color: #fff; }
.offer__side p:not(.note), .offer__side li { color: var(--on-cobalt-2); }
.offer__side ul { margin: 0; padding: 0; list-style: none; }
.offer__side li { padding: 10px 0; border-top: 1px solid var(--rule-on-cobalt); display: flex; gap: 10px; }
.offer__side li::before { content: "+"; color: #fff; font-weight: 800; }
/* The pricing card: cream, ink edge and the same hard slab as the buttons, so the orange CTA sits on cream. */
.price-note {
  background: var(--cream); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius-media);
  box-shadow: 8px 8px 0 0 var(--ink);
  padding: 26px 26px 22px; margin: 0 8px 8px 0;
}
.offer__side .price-note p { color: var(--ink); font-size: 1.0625rem; font-weight: 500; }
.offer__side .price-note .muted { color: var(--muted); font-size: .9375rem; }
.price-note .btn { margin-top: 8px; width: calc(100% - var(--slab)); }
.price-note :focus-visible { outline-color: var(--ink); }
.price-note ::selection { background: var(--signal); color: var(--ink); }
@media (max-width: 1099px) {
  .offer__list { grid-column: 1 / span 7; }
  .offer__side { grid-column: 8 / span 5; }
  .offer .sec-head h2 { grid-column: 3 / span 10; }
}
@media (max-width: 759px) {
  .offer__list, .offer__side { grid-column: 1 / -1; }
}

/* ---------- 04 Guarantee ---------- */
.section.after-band { border-top: 0; }
.guarantee__statement {
  grid-column: 3 / span 10; margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 3.375rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12;
  text-wrap: pretty;
}
.guarantee__statement .hl { font-weight: 600; }
.guarantee__fine { grid-column: 3 / span 5; margin-top: 40px; color: var(--muted); max-width: 32em; }
@media (max-width: 759px) {
  .guarantee__statement, .guarantee__fine { grid-column: 1 / -1; }
}

/* ---------- 05 Why psychology (word-fill moment) ---------- */
.cue { grid-column: 3 / span 10; margin: 0 0 clamp(64px, 8vw, 120px); font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.875rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; text-wrap: pretty; }
.cue .w { color: var(--text); }
.js-motion .cue .w { color: var(--cue-dim); transition: color .5s cubic-bezier(.25, .46, .45, .94); } /* 3.4:1, large-text AA even before the fill */
/* Fill: main.js adds .is-lit word by word (.09s apart); the colour is always the current theme's text. */
.js-motion .cue .w.is-lit { color: var(--text); }
.pillars { list-style: none; margin: 0; padding: 0; grid-column: 3 / span 10; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.pillars li { border-top: 3px solid var(--text); padding-top: 20px; }
.pillars li:first-child { border-top-color: var(--cobalt); }
.pillars h3 { font-size: 1.5rem; letter-spacing: -0.015em; margin-bottom: 10px; line-height: 1.2; }
.pillars p { color: var(--muted); margin: 0; }
.local-note { grid-column: 3 / span 10; margin-top: 56px; font-size: .9375rem; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 12px; }
@media (max-width: 899px) {
  .cue, .pillars, .local-note { grid-column: 1 / -1; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 06 Founder ---------- */
.founder__grid { row-gap: 40px; align-items: start; }
.founder__photo { grid-column: 3 / span 4; }
.founder__photo .media { --ar: 4 / 5; box-shadow: none; }
.founder__photo .slot { position: absolute; inset: 0; }
.founder__note { grid-column: 8 / span 5; font-size: clamp(1.125rem, 1.45vw, 1.3125rem); line-height: 1.55; }
.founder__note p:not(.note) { max-width: 30em; }
.founder__sig { margin-top: 28px; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.founder__sig span { font-family: var(--font); color: var(--muted); font-weight: 500; font-size: .9375rem; }
.proof-slot { grid-column: 3 / span 10; min-height: 200px; margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 899px) {
  .founder__photo { grid-column: 1 / span 5; }
  .founder__note { grid-column: 6 / span 7; }
  .proof-slot { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  .founder__photo, .founder__note { grid-column: 1 / -1; }
  .founder__photo { max-width: 360px; }
}

/* ---------- 07 FAQ ---------- */
.faq { grid-column: 3 / span 10; border-bottom: 1px solid var(--rule); }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__q { font-size: clamp(1.1875rem, 1.8vw, 1.5rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; text-underline-offset: .2em; }
.faq__icon { flex: none; width: 32px; height: 32px; position: relative; border: 2px solid var(--text); border-radius: 50%; transition: background-color .2s, border-color .2s, color .2s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease-out); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq__icon { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.faq details[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { padding: 0 0 28px; max-width: 44em; color: var(--muted); }
.faq__a p:last-child { margin-bottom: 0; }
@media (max-width: 899px) { .faq { grid-column: 1 / -1; } }

/* ---------- Close (full-bleed orange band) ---------- */
.close { padding-block: clamp(96px, 13vw, 184px); overflow: clip; } 
.close__title { grid-column: 1 / span 10; font-size: clamp(3rem, 7.6vw, 6rem); font-weight: 600; letter-spacing: -0.02em; line-height: .95; }
.close__body { grid-column: 7 / span 6; margin-top: clamp(40px, 5vw, 64px); }
.close__body p:not(.note) { color: var(--ink); font-size: 1.125rem; font-weight: 500; max-width: 30em; }
.close__actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.close__actions .hero__note { margin: 0; color: var(--ink); }
.band--orange .hero__note::before { background: var(--ink); box-shadow: 0 0 0 3px var(--card); }
@media (max-width: 759px) {
  .close__title, .close__body { grid-column: 1 / -1; }
  .close__actions .btn { width: calc(100% - var(--slab)); }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--muted-on-ink); padding: 44px 0 calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; align-items: flex-start; }
.footer .brand { color: var(--cream); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; transition: color .15s; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--rule-on-ink); }

/* ---------- v3 scribble layer: margin notes + hand-drawn doodles ----------
   Notes are real text in Caveat Brush (navy on cream/orange, white on cobalt; never orange text).
   Doodles are inline SVG strokes, decorative: aria-hidden, no pointer events, drawn by default
   (no JS / reduced motion = fully drawn). main.js draws them in with stroke-dashoffset. */
.note {
  font-family: var(--font-scribble); font-weight: 400;
  font-size: var(--note-size); line-height: 1.2; letter-spacing: .01em;
  color: var(--text); margin: 0;
  display: flex; align-items: flex-start; gap: 6px;
  transform: rotate(-2deg); transform-origin: left center;
  text-wrap: balance;
}
.band--cobalt .note { color: #fff; }
.band--orange .note { color: var(--ink); }
.doodle {
  display: block; overflow: visible; pointer-events: none; max-width: none;
  fill: none; stroke: currentColor; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Every doodle path is pathLength="1"; a dash of 1 and a gap of 2 covers it, and an offset just past 1
   hides it with no round-cap dot left at either end. */
.doodle path { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.note__arrow { flex: none; width: 2em; height: auto; color: var(--signal); margin-top: -.1em; }
.band--cobalt .note__arrow { color: #fff; }
.band--orange .note__arrow { color: var(--ink); }
.doodle--ink { stroke: var(--text); }

/* Hero note: under the primary CTA, its arrow pointing up at it.
   Desktop: its own row under the buttons. Phone (stacked): between the two buttons, so it still points at the primary. */
.note--cta { order: 3; flex-basis: 100%; padding-left: 14px; margin-top: 2px; }
.note--cta .note__arrow { width: 1.9em; }
@media (max-width: 759px) {
  .note--cta { order: 0; padding-left: 10px; margin: -2px 0 4px; }
}

/* Sparks next to the cursor in the hero render (inside figure.media, so they tilt with it). */
.doodle--sparks { position: absolute; z-index: 2; left: 63%; top: 50%; width: 26%; height: auto; color: var(--signal); stroke-width: 4.5; }

/* Rail notes: in the empty left rail (cols 1-2) on wide screens, pointing right at the item; in flow below. */
.note--rail .note__arrow--rail { display: none; }
.note--problems { grid-column: 3 / -1; margin-top: 16px; }
.note--offer { margin-top: 14px; }
@media (min-width: 900px) and (max-width: 1099px) {
  .note--problems { grid-column: 8 / -1; }
}
@media (min-width: 1100px) {
  .note--rail .note__arrow--rail { display: block; margin-top: .2em; }
  .note--rail { flex-direction: column; align-items: flex-end; gap: 0; text-align: right; transform: rotate(-4deg); transform-origin: right center; }
  .note--problems { grid-column: 1 / span 2; grid-row: 1; align-self: start; margin-top: -.15em; padding-right: 4px; }
  .offer__list li.has-note { position: relative; }
  .note--offer { position: absolute; right: calc(100% + var(--gap)); top: 18px; width: max-content; max-width: 6.5em; margin: 0; }
}

/* Guarantee: beside the fine print on wide screens, arrow up toward "free."; in flow on phones. */
.note--guarantee { grid-column: 9 / span 4; grid-row: 2; margin-top: 36px; align-self: start; }
@media (max-width: 759px) {
  .note--guarantee { grid-column: 1 / -1; grid-row: auto; margin-top: 28px; }
}

/* Founder: under the signature, arrow up at the name. */
.note--founder { margin-top: 10px; }

/* Close: the circled "free" in the title, and a note with a curved arrow down to the CTA. */
.circled { position: relative; display: inline-block; }
.doodle--circle { position: absolute; left: -.3em; top: -.12em; width: calc(100% + .6em); height: auto; color: var(--ink); stroke-width: 4; }
.note--close { margin-top: 8px; align-items: flex-end; }
.note--close .note__arrow { width: 1.8em; margin: 0 0 -.9em 2px; }
.note--close + .close__actions { margin-top: 26px; }

/* ---------- Audit page ---------- */
.audit-page { padding-top: clamp(40px, 6vw, 88px); }
.audit__grid { row-gap: 56px; align-items: start; }
.audit__intro { grid-column: 1 / span 5; position: sticky; top: 108px; }
.audit__intro h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); letter-spacing: -0.02em; line-height: .98; margin-bottom: 28px; }
.audit__intro .lead { font-size: 1.1875rem; max-width: 28em; }
.audit__gets { list-style: none; margin: 32px 0 0; padding: 0; border-top: 2px solid var(--text); }
.audit__gets li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 2.75rem 1fr; font-weight: 500; }
.audit__gets b { color: var(--cobalt-text); font-family: var(--font-display); font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums; padding-top: .05em; }
.audit__form { grid-column: 7 / span 6; }
@media (max-width: 899px) {
  .audit__intro { grid-column: 1 / -1; position: static; }
  .audit__form { grid-column: 1 / -1; }
}

.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 599px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: .9375rem; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--text);
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-btn);
  padding: 13px 14px; min-height: 54px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 124px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%230E1A2B' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; border-color: var(--text); box-shadow: 4px 4px 0 0 var(--cobalt); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
/* Invalid: the error edge plus an inner bar and an icon on the message, so it never rests on colour alone. The
   focused rule keeps the error edge (it would otherwise lose to the focus rule above). */
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 4px 0 0 0 var(--error); }
.field [aria-invalid="true"]:focus-visible { border-color: var(--error); box-shadow: inset 4px 0 0 0 var(--error), 4px 4px 0 0 var(--cobalt); }
.field__error { display: flex; align-items: flex-start; gap: 6px; color: var(--error); font-size: .875rem; font-weight: 600; min-height: 0; margin: 0; }
.field__error::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; background: currentColor;
  -webkit-mask: var(--icon-alert) center / contain no-repeat; mask: var(--icon-alert) center / contain no-repeat;
}
.field__error:empty { display: none; }
.field__hint { color: var(--muted); font-size: .875rem; font-weight: 500; }
.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
@media (max-width: 599px) { .form__submit .btn { width: calc(100% - var(--slab)); } }
.form__status { border-radius: var(--radius-btn); padding: 18px 20px; background: var(--paper-2); font-size: .9375rem; }
.form__status:empty { display: none; }
.form__status a { font-weight: 700; }
/* Busy and done share one reserved height (the "Got it." panel with its 3-line body and back link on a phone, ~219px),
   so the panel's arrival doesn't push the line below. */
.form__status--busy, .form__status--panel { min-height: 14rem; }

/* v5.5 error summary: the status panel's shape with an error bar. Text stays --text (readable in both themes). */
:root { --icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm-1 4v5h2V4zm0 6.5v2h2v-2z'/%3E%3C/svg%3E"); }
.form__errors {
  border-radius: var(--radius-btn); padding: 18px 20px 18px 18px; background: var(--paper-2); color: var(--text);
  border-left: 6px solid var(--error); font-size: .9375rem;
}
.form__errors:empty { display: none; }
.form__errors:focus { outline: none; }
.form__errors:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
.form__errors-title { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-weight: 700; }
.form__errors-title::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: var(--error);
  -webkit-mask: var(--icon-alert) center / contain no-repeat; mask: var(--icon-alert) center / contain no-repeat;
}
.form__errors-list { margin: 8px 0 0; padding: 0 0 0 26px; display: grid; gap: 2px; }
.form__errors-list a, .form__errors-actions a { color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.form__errors-list a { display: inline-block; padding-block: 8px; } /* 44px-ish rows for thumbs */
.form__errors-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 14px 0 0; }
.form__errors-actions .btn { margin-block: 0; }
.form__errors-actions a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Busy submit: aria-disabled keeps focus on it; it reads as pressed in, without a spinner. */
.btn[aria-disabled="true"] { cursor: progress; --t: 2px; --d: 3px; opacity: .85; }

/* v5.5 success panel: a card with the 2px edge and the hard slab, the site's card language in both themes. */
.form__status--panel { padding: 0; background: none; border-radius: 0; }
.form-done {
  position: relative; padding: 22px 22px 20px 78px; margin: 0 8px 8px 0;
  background: var(--card); color: var(--text); border: 2px solid var(--text); border-radius: var(--radius-media);
  box-shadow: 6px 6px 0 0 var(--ink), 6px 6px 0 2px var(--btn-rim);
}
.form-done > * { margin: 0; }
.form-done > * + * { margin-top: 8px; }
.form-done__mark { position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.form-done__mark circle { stroke: var(--text); stroke-width: 2; }
.form-done__mark path { stroke: var(--signal); stroke-width: 4; }
@media (prefers-reduced-motion: no-preference) {
  .form-done__mark path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: form-check .3s var(--ease-out) .05s backwards; }
}
@keyframes form-check { from { stroke-dashoffset: 1; } }
.form-done__title { font: 600 1.375rem/1.2 var(--font-display); padding-top: 7px; }
.form-done__title:focus { outline: none; }
.form-done__title:focus-visible { outline: 3px solid var(--text); outline-offset: 4px; }
.form-done a, .form-done__copy { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.form-done__again a, .form-done__copy { display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; }
.form-done__copy { padding: 0; margin: 0; border: 0; background: none; font: inherit; font-weight: 700; cursor: pointer; }
.form-done strong { overflow-wrap: anywhere; } /* a long typed email must wrap, not overflow the card */
.form__privacy { margin: 0; }
.form-done__note:empty { display: none; }
.form-done__note { color: var(--muted); font-weight: 600; }
.form-done__text { width: 100%; font: 400 .875rem/1.4 var(--font); color: var(--text); background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-btn); padding: 10px 12px; }
.form-done__back a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (max-width: 599px) { .form-done { padding: 76px 18px 18px; } }

/* v5.5 CC.confirm: the same card language, centred. Theme tokens, not the section tone (it floats over every tone). */
html.modal-open { overflow: hidden; scrollbar-gutter: stable; }
.cc-confirm {
  --focus: var(--text);
  width: min(480px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible;
}
.cc-confirm::backdrop { background: rgba(14, 26, 43, .42); }
html[data-theme="dark"] .cc-confirm::backdrop { background: rgba(0, 0, 0, .62); }
.cc-confirm--fallback { position: fixed; inset: 0; z-index: 400; width: auto; max-height: none; display: grid; place-items: center; padding: 16px; background: rgba(14, 26, 43, .42); }
.cc-confirm--fallback[hidden] { display: none; }
.cc-confirm--fallback .cc-confirm__panel { width: min(480px, 100%); }
.cc-confirm__panel {
  background: var(--card); color: var(--text); border: 2px solid var(--text); border-radius: var(--radius-media);
  box-shadow: 8px 8px 0 0 var(--ink), 8px 8px 0 2px var(--btn-rim);
  padding: 24px 24px 20px; margin: 0 8px 8px 0; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
}
.cc-confirm__title { margin: 0 0 10px; font: 600 1.625rem/1.15 var(--font-display); }
.cc-confirm__body { font-size: 1rem; }
.cc-confirm__body p { margin: 0; }
.cc-confirm__dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 16px 0 0; padding: 14px 16px; background: var(--paper); border-radius: var(--radius-btn); }
.cc-confirm__dl dt { color: var(--muted); font-weight: 600; font-size: .875rem; padding-top: 1px; }
.cc-confirm__dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cc-confirm__actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 22px; }
.cc-confirm__actions .btn { margin-block: 0; }
@media (max-width: 479px) { .cc-confirm__actions .btn { width: calc(100% - var(--slab)); } }
@media (prefers-reduced-motion: no-preference) {
  .cc-confirm[open] .cc-confirm__panel, .cc-confirm--fallback.is-open .cc-confirm__panel { animation: cc-confirm-in .16s var(--ease-out); }
  .cc-confirm[open]::backdrop { animation: search-fade .16s ease-out; }
}
@keyframes cc-confirm-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.form__todo { font-size: .8125rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 16px; margin: 8px 0 0; }

/* Start pose for the hero entrance; set by an inline head script only when motion is allowed.
   v5.3: the H1 is the LCP and is never masked, moved or delayed: it paints in its final place on the first frame.
   Only the sub-line, actions and note settle 12px (transform only, never hidden). Hero doodles wait undrawn. */
.motion-pending [data-hero] { transform: translateY(12px); }
.motion-pending .doodle--hero path { stroke-dashoffset: 1.05; }

/* =====================================================================================
   v4 (Nov 27 2026): immersive layer. Everything below is additive; without the head script's
   "js" class the v3 page (static section grounds) is what renders.
   ===================================================================================== */

/* ---------- Theme engine ----------
   One state on <html data-tone> drives the page ground AND every themed text colour together,
   so text always sits on the ground it was designed for (also at scrollY 0, where Lighthouse audits).
   Registered properties let the whole set crossfade in .6s (a timed fade, never scrubbed); browsers without @property just snap. */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #F3E6CF; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #0E1A2B; }
@property --fg-2 { syntax: "<color>"; inherits: true; initial-value: #5E5446; }
@property --acc { syntax: "<color>"; inherits: true; initial-value: #2E46FF; }
@property --doodle { syntax: "<color>"; inherits: true; initial-value: #FF4D12; }
@property --rule-c { syntax: "<color>"; inherits: true; initial-value: rgba(14, 26, 43, .18); }
@property --focus { syntax: "<color>"; inherits: true; initial-value: #0E1A2B; }

html.js {
  /* cream (default) — navy 14.18, muted 6.01, cobalt 4.96 */
  --bg: #F3E6CF; --fg: #0E1A2B; --fg-2: #5E5446; --acc: #2E46FF; --doodle: #FF4D12;
  --rule-c: rgba(14, 26, 43, .18); --focus: #0E1A2B;
  transition: --bg .6s ease, --fg .6s ease, --fg-2 .6s ease, --acc .6s ease, --doodle .6s ease, --rule-c .6s ease, --focus .6s ease;
}
/* v5.5 dark: the cream tone becomes warm ink-brown (must match CREAM_THEME.dark in src/scene/config.js). Before the tone
   rules on purpose (same specificity): navy, cobalt and orange keep their grounds in both themes.
   cream 15.1, #A99B83 6.8, #8C9BFF 7.3 (plain cobalt is 2.4 here, so the accent is a light cobalt). */
html.js[data-theme="dark"][data-tone="cream"], html.js[data-theme="dark"]:not([data-tone]) {
  --bg: #17120D; --fg: #F3E6CF; --fg-2: #A99B83; --acc: #8C9BFF; --doodle: #FF4D12;
  --rule-c: rgba(243, 230, 207, .16); --focus: #F3E6CF;
}
/* navy — cream 14.18, #B9AE98 7.97, orange 5.26 (cobalt on navy is only 2.86, so accents go orange here) */
html.js[data-tone="navy"] { --bg: #0E1A2B; --fg: #F3E6CF; --fg-2: #B9AE98; --acc: #FF4D12; --doodle: #FF4D12; --rule-c: rgba(243, 230, 207, .2); --focus: #F3E6CF; }
/* cobalt — white 6.11, #E8EBFF 5.17 */
html.js[data-tone="cobalt"] { --bg: #2E46FF; --fg: #FFFFFF; --fg-2: #E8EBFF; --acc: #FFFFFF; --doodle: #FFFFFF; --rule-c: rgba(255, 255, 255, .34); --focus: #FFFFFF; }
/* orange — navy 5.26 for everything */
html.js[data-tone="orange"] { --bg: #FF4D12; --fg: #0E1A2B; --fg-2: #0E1A2B; --acc: #0E1A2B; --doodle: #0E1A2B; --rule-c: rgba(14, 26, 43, .3); --focus: #0E1A2B; }
@media (prefers-reduced-motion: reduce) { html.js { transition: none; } }

html.js, html.js body { background-color: var(--bg); color: var(--fg); }
/* The ground lives on <html> only: a body background would paint above the z-index:-1 WebGL canvas. */
html.js body { background-color: transparent; }
/* Desktop hero without the live scene: the cream poster stays behind the copy, so the hero keeps
   cream-tone colours even while the next (navy) section owns the page. Keyed on .hero-live (the hero
   concept has started forming), not on scene-live: the poster stays up if the hero never forms. */
@media (min-width: 760px) {
  html.js:not(.hero-live) .hero {
    --fg: #0E1A2B; --fg-2: #5E5446; --acc: #2E46FF; --doodle: #FF4D12; --rule-c: rgba(14, 26, 43, .18); --focus: #0E1A2B;
    color: var(--fg);
  }
  /* Dark: the still is framed in the slot (see "Dark theme"), so the copy sits on the dark ground; cream text
     also reads on navy if the next section owns the page first. */
  html.js[data-theme="dark"]:not(.hero-live) .hero {
    --fg: #F3E6CF; --fg-2: #A99B83; --acc: #8C9BFF; --doodle: #FF4D12; --rule-c: rgba(243, 230, 207, .16); --focus: #F3E6CF;
  }
}
/* Footer follows the theme like every section (it may never reach mid-screen on tall screens). */
html.js .footer { background: transparent; color: var(--fg-2); }
html.js .footer .brand { color: var(--fg); }
html.js .footer__meta { border-top-color: var(--rule-c); }
html.js .on-ink :focus-visible { outline-color: var(--focus); }
@media (hover: hover) and (pointer: fine) { html.js .footer a:hover { color: var(--fg); } }
/* No sideways scroll from decorative overflow (marquee, outline word, grain). clip, unlike hidden, keeps sticky working. */
body { overflow-x: clip; }
html.js .section, html.js .band--cobalt, html.js .band--orange { background: transparent; color: var(--fg); }
html.js .section + .section:not(.band):not(.after-band) { border-top-color: var(--rule-c); }
html.js :focus-visible, html.js .band--cobalt :focus-visible { outline-color: var(--focus); }
html.js .price-note :focus-visible { outline-color: var(--ink); }

html.js .muted, html.js .band--cobalt .muted { color: var(--fg-2); }
/* The pricing card is a cream island: its muted line keeps the cream --muted, not the page tone's --fg-2. */
html.js .price-note .muted, html.js .band--cobalt .price-note .muted { color: var(--muted); }
html.js .sec-no, html.js .band--cobalt .sec-no, html.js .problems .p-key, html.js .step__num { color: var(--acc); }
html.js .step__num::after { background: var(--fg); }
html.js .problems p:not(.note), html.js .step__body p, html.js .guarantee__fine, html.js .pillars p,
html.js .local-note, html.js .founder__sig span, html.js .faq__a, html.js .hero__note, html.js .slot { color: var(--fg-2); }
html.js .slot strong { color: var(--fg); }
html.js .slot { border-color: var(--rule-c); background: transparent; }
html.js .problems li, html.js .step, html.js .faq, html.js .faq details, html.js .facts li + li { border-color: var(--rule-c); }
html.js .facts { border-top-color: var(--fg); }
html.js .pillars li { border-top-color: var(--fg); }
html.js .pillars li:first-child { border-top-color: var(--acc); }
html.js .offer__list .o-no, html.js .offer__side h3, html.js .offer__side li::before { color: var(--fg); }
html.js .offer__list p:not(.note), html.js .offer__side > div:not(.price-note) p, html.js .offer__side li { color: var(--fg-2); }
html.js .offer__list li, html.js .offer__side li { border-color: var(--rule-c); }
html.js .note, html.js .band--cobalt .note, html.js .band--orange .note { color: var(--fg); }
html.js .note__arrow, html.js .band--cobalt .note__arrow, html.js .band--orange .note__arrow { color: var(--doodle); }
html.js .doodle--circle { color: var(--fg); }
html.js .faq__icon { border-color: var(--fg); }
html.js .close__body p:not(.note), html.js .close__actions .hero__note { color: var(--fg); }
html.js .band--orange .hero__note::before { background: var(--fg); }

/* Header follows the theme: same ground (slightly see-through), same ink. */
html.js .site-header { background: var(--bg); background: color-mix(in srgb, var(--bg) 94%, transparent); color: var(--fg); }
html.js .site-header.is-scrolled { border-bottom-color: var(--rule-c); }
html.js .nav__links a { color: var(--fg-2); }
html.js .nav__links a.btn { color: var(--ink); }
html.js .nav-toggle { color: var(--fg); }
@media (hover: hover) and (pointer: fine) {
  html.js .nav__links a:not(.btn):hover { color: var(--fg); text-decoration-color: var(--doodle); }
}
@media (max-width: 899px) {
  html.js .site-header.menu-open .nav__links { background: var(--bg); border-top-color: var(--rule-c); }
  html.js .site-header.menu-open .nav__links li { border-bottom-color: var(--rule-c); }
  html.js .site-header.menu-open .nav__links a:not(.btn) { color: var(--fg); }
}

/* ---------- WebGL layer ----------
   One fixed full-screen canvas behind the page (opaque, its clear colour follows --bg). It fades in
   once the first frame is drawn (html.scene-live). Decorative: aria-hidden, no pointer events. */
.scene-canvas {
  position: fixed; inset: 0 auto auto 0; z-index: -1; width: 100%; height: 100vh; height: 100lvh; /* lvh: URL-bar changes never resize it */
  display: block; pointer-events: none; opacity: 0; transition: opacity .9s var(--ease-out);
}
html.scene-live .scene-canvas { opacity: 1; }

/* ---------- Pill buttons with a dot (v4), keeping the v2 edge + hard slab and the v3 press ---------- */
.btn { border-radius: 999px; padding: 0 24px 0 20px; }
.btn--small { padding: 0 16px 0 14px; }
.btn::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: currentColor; transition: transform .35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: scale(1.6); }
}
.btn:active::before { transform: scale(.6); }

/* Micro click: squash + ring + spark ticks, added by main.js on press. Absolute, inside the button:
   nothing outside the button moves. */
.btn.is-clicked { animation: btn-squash .32s var(--ease-out); }
@keyframes btn-squash { 0% { scale: 1 1; } 30% { scale: 1.035 .9; } 65% { scale: .985 1.03; } 100% { scale: 1 1; } }
.btn-fx { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: visible; }
.btn-ring {
  position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border: 2px solid var(--text); border-radius: 50%; animation: btn-ring .55s var(--ease-out) forwards;
}
@keyframes btn-ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(8); opacity: 0; } }
.btn-spark {
  position: absolute; left: var(--x); top: var(--y); width: 3px; height: 10px; margin: -5px 0 0 -1.5px;
  border-radius: 2px; background: var(--text); animation: btn-spark .5s var(--ease-out) forwards;
}
.btn-spark:nth-child(odd) { background: var(--signal); }
@keyframes btn-spark {
  from { transform: rotate(var(--a)) translateY(-12px) scaleY(1); opacity: 1; }
  to { transform: rotate(var(--a)) translateY(-34px) scaleY(.2); opacity: 0; }
}

/* ---------- Hero (v4): poster full-bleed, outline word, 3D slot ---------- */
.hero { overflow: clip; min-height: calc(100svh - 76px); display: flex; flex-direction: column; justify-content: center; padding-bottom: 0; }
.hero__copy, .hero .facts { position: relative; z-index: 2; }
.hero__slot { grid-column: 8 / span 5; min-height: clamp(320px, 54vh, 600px); }
.hero__poster { position: absolute; inset: 0; z-index: 0; transition: opacity 1s var(--ease-out); pointer-events: none; }
.hero__poster picture, .hero__poster img { width: 100%; height: 100%; }
/* v5.3 still: a real capture of the live scene, composed for the hero (empty cream left for the copy, cursor + button
   + stream on the right; phones: the 4:5 stacked framing). Centred. The v4 fallback keeps its own 74% crop. */
.hero__poster img { object-fit: cover; object-position: 50% 50%; }
.hero__poster.is-v4 img { object-position: 74% 50%; }
/* Desktop/tablet: the poster fills the hero (full bleed) but stops above the facts row. The hero still has a
   navy button base along its bottom edge (~47-71% x, bottom ~22%); the facts' navy text must never sit on it.
   104px = the facts row at up to two lines (2 x 24px + 48px padding + 2px rule) plus a little air. */
@media (min-width: 760px) { .hero__poster { bottom: 104px; } }
.hero__poster.is-missing { display: none; }
/* v5.3: on the motion path (html.scene) the still is never rendered, so it is never fetched (loading="lazy") and never
   competes with the H1 for LCP. If the scene fails, CC.fail removes html.scene and the still loads as the fallback. */
html.scene .hero__poster { display: none; }
/* Each slot hands over to the scene on its own (.is-live, set when its concept starts forming). */
html.scene-live .hero__slot.is-live .hero__poster { opacity: 0; }
.outline-word { position: absolute; inset: 0; z-index: 1; overflow: clip; pointer-events: none; display: flex; align-items: flex-start; padding-top: clamp(12px, 4vh, 48px); }
.outline-word svg { width: 116%; max-width: none; height: auto; margin-left: -3%; flex: none; }
/* 175px (was 150 for Clash): CueClick Display is narrower (CUECLICK 4.41em vs 5.17em), so textLength stretches it
   about as much as before (~30%). Cap height .674em -> top at y 14 of the 160 viewBox. */
.outline-word text { font-family: var(--font-display); font-weight: 600; font-size: 175px; fill: none; stroke: var(--text); stroke-opacity: .12; stroke-width: 1.3; }
.hero .facts { margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 1099px) { .hero__slot { grid-column: 8 / span 5; } }
@media (max-width: 759px) {
  .hero { min-height: 0; display: block; }
  .hero__slot { grid-column: 1 / -1; position: relative; aspect-ratio: 4 / 5; min-height: 0; margin: 8px calc(-1 * var(--gutter)) 0; }
  .outline-word svg { width: 150%; }
}

/* Corner UI: "Scroll" bottom-left of the hero, section counter bottom-right of the viewport. Decorative. */
.corner {
  font: 700 .75rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px; color: var(--fg);
}
.corner--scroll { position: absolute; z-index: 2; left: max(14px, calc(var(--gutter) / 2 - 6px)); bottom: 28px; writing-mode: vertical-rl; transform: rotate(180deg); transition: opacity .4s; }
.corner__line { width: 1px; height: 44px; background: currentColor; transform-origin: bottom; }
@media (prefers-reduced-motion: no-preference) { .corner__line { animation: corner-line 1.8s var(--ease-out) infinite; } }
@keyframes corner-line { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
html.is-scrolled-away .corner--scroll { opacity: 0; }
@media (max-width: 899px) { .corner--scroll { display: none; } }
.corner--progress {
  position: fixed; z-index: 45; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  padding: 9px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; letter-spacing: .08em;
  background: color-mix(in srgb, var(--bg, #F3E6CF) 88%, transparent); border: 1px solid var(--rule-c, rgba(14,26,43,.18));
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease-out);
}
.corner--progress .corner__now { color: var(--fg); }
.corner--progress .corner__sep { opacity: .5; margin-inline: 3px; }
html.has-progress .corner--progress { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: clip; background: var(--signal); color: var(--ink); border-block: 2px solid var(--ink); padding-block: clamp(14px, 1.6vw, 22px); position: relative; z-index: 1; }
.marquee__track { display: flex; width: max-content; }
.marquee__track span {
  /* v5.2: sentence case, not uppercase, so CueClick Display's lowercase c arrow, k and click-dots on i / j read. */
  flex: none; white-space: nowrap; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.75rem, 5.2vw, 4.75rem); line-height: 1; letter-spacing: -0.015em; padding-right: .35em;
}
.marquee__track i { font-style: normal; color: var(--cream-card); -webkit-text-stroke: 2px var(--ink); padding-inline: .15em; }

/* ---------- Stage blocks (v5: normal-height sections, nothing pinned or scrubbed) ----------
   Each block is a stage line + sub and a 4:3 slot. The 3D concept in the slot plays by itself when the
   slot enters view. Layout never depends on WebGL: the still render holds the slot, and only its opacity
   changes when the scene takes that slot over (.stage-slot.is-live). */
.stage { position: relative; }
.stage__inner { padding-bottom: clamp(56px, 7vw, 96px); }
.stage__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; }
.stage__copy { grid-column: 1 / span 6; position: relative; z-index: 1; }
.stage__line {
  margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: .96;
  font-size: clamp(2.5rem, 6.2vw, 6rem); text-wrap: balance;
}
.stage__sub { margin: clamp(18px, 2vw, 28px) 0 0; max-width: 26em; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--fg-2, var(--muted)); }
.stage__slot { grid-column: 7 / span 6; position: relative; aspect-ratio: 4 / 3; }
.stage__still { position: absolute; inset: 0; border-radius: var(--radius-media); overflow: hidden; box-shadow: var(--media-shadow); transition: opacity .9s var(--ease-out); }
.stage__still img { width: 100%; height: 100%; object-fit: cover; }
.stage__still.is-missing { display: none; }
html.scene-live .stage-slot.is-live .stage__still { opacity: 0; }
@media (max-width: 759px) {
  .stage__grid { grid-template-columns: 1fr; row-gap: 28px; }
  .stage__copy, .stage__slot { grid-column: 1 / -1; }
  .stage__line { font-size: clamp(2.25rem, 10.5vw, 3.25rem); }
}

/* v5.1 hook-machine notes: Caveat Brush labels + doodle arrows over the stage-2 slot (src/scene/hooklabels.js).
   Decorative (aria-hidden; one visually hidden sentence in .stage__copy says the same). Placed by transform
   from the 3D anchors, clamped inside the slot. Text is --fg (cream on navy, 14:1) with a ground-coloured halo
   so it stays legible over the render; 18 px minimum. The note of the current beat grows a little and redraws
   its arrow. */
.hook-notes { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease-out); }
html.scene-live .stage-slot.is-live .hook-notes.is-on { opacity: 1; }
.hook-note {
  position: absolute; left: 0; top: 0; margin: 0; gap: 2px; white-space: nowrap; text-wrap: nowrap;
  font-size: clamp(1.125rem, .95rem + .45vw, 1.375rem); line-height: 1.1;
  text-shadow: 0 0 6px var(--bg, #0E1A2B), 0 0 3px var(--bg, #0E1A2B), 0 1px 1px var(--bg, #0E1A2B);
  transform-origin: left bottom; will-change: transform;
}
.hook-note--bl { align-items: flex-end; }
.hook-note--tl { align-items: flex-start; }
.hook-note--r { align-items: center; }
.hook-note__arrow { width: 1.45em; margin: 0; }
.hook-note--r .hook-note__arrow { width: 1.6em; }
.hook-note--bl .hook-note__t { padding-bottom: .5em; }
.hook-note--tl .hook-note__t { padding-top: .55em; }
.hook-note__t { display: inline-block; transition: transform .45s var(--ease-out); transform-origin: left center; }
.hook-note--r .hook-note__t { transform-origin: right center; }
.hook-note__short { display: none; }
.hook-note.is-beat .hook-note__t { transform: scale(1.14) rotate(-2deg); }
.hook-note.is-beat .hook-note__arrow path { animation: hook-arrow .7s var(--ease-out) both; }
@keyframes hook-arrow { from { stroke-dashoffset: 1.05; } to { stroke-dashoffset: 0; } }
@media (max-width: 759px) {
  .hook-note__long { display: none; }
  .hook-note__short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .hook-note__t { transition: none; }
  .hook-note.is-beat .hook-note__arrow path { animation: none; }
}

/* Guarantee CTA (v4: a CTA after the guarantee). */
.guarantee__cta { grid-column: 3 / span 10; margin-top: 36px; }
@media (max-width: 759px) {
  .guarantee__cta { grid-column: 1 / -1; }
  .guarantee__cta .btn { width: calc(100% - var(--slab)); }
}

/* ---------- Footer badge ---------- */
/* 3D card height = 0.6 x box height (see src/scene/badge.js): 400 px box -> 240 px card, 320 px -> 192 px.
   The box is the hit area; the 3D card may swing past it (rendered on the fixed canvas, never clipped). */
.badge-stage { position: relative; width: 340px; height: 400px; margin: 12px 0 0 auto; touch-action: pan-y; }
.badge-html { position: absolute; inset: 0; padding-top: 0; display: flex; flex-direction: column; align-items: center; transition: opacity .6s var(--ease-out); }
.badge-html__strap { width: 14px; height: 92px; background: var(--signal); border-radius: 0 0 3px 3px; }
.badge-html__clip { width: 34px; height: 18px; margin-top: -2px; border-radius: 5px; background: linear-gradient(180deg, #F4F4F4, #8E949C 55%, #D9DCE0); }
.badge-html__card {
  margin-top: -4px; width: 186px; height: 236px; border-radius: 16px; background: var(--cream); color: var(--ink);
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 0 var(--signal);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 18px 16px; transform: rotate(-3deg); transform-origin: 50% -40px;
}
.badge-html__brand { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; margin-bottom: auto; }
.badge-html__name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.05; letter-spacing: -0.02em; }
.badge-html__role { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.badge-stage.is-3d .badge-html { opacity: 0; }
.badge-stage.is-3d { cursor: grab; }
.badge-stage.is-3d:active { cursor: grabbing; }
html.scene-live .footer { background: transparent; }
@media (max-width: 759px) { .badge-stage { margin-inline: auto; width: min(270px, 100%); height: 320px; } }

/* ---------- Loading icon (v5.5; replaces the v5.4 full-screen intro) ----------
   Only on loads that boot the 3D (the boot script sets html.intro only together with html.scene; never under reduced
   motion), and only until the scene is ready: no minimum time. A fixed overlay in the page's own ground (--ground, so
   it is no visible change on first paint); the H1 is in the DOM in its final place underneath. pointer-events: none,
   aria-hidden, nothing focusable. The icon is the v5.4 like button at about half size (116px stage x .52 = 60px):
     .intro__stage stays at opacity 0 for .25 s (animation-delay), so a fast or warm load never shows it; the inline
       helper in index.html reads that opacity at ready and, if 0, drops the overlay with no animation.
     the tap loop (one tap + heart pulse + ring per .62 s) starts with the icon, at the loop's beginning.
     .is-burst (only if the icon was visible): the heart explodes into likes / views / reposts / shares while the
       ground fades under them, all within .3 s; html.intro-hold drops as it starts, so the hero 3D forms underneath.
   Transform + opacity only (on the compositor while three.js parses and compiles).
   div.intro, never a bare .intro: the boot script puts class "intro" on <html> too, and a bare .intro
   rule made the whole document display:none (every ScrollTrigger measured 0 x 0). */
div.intro { display: none; }
html.intro div.intro { display: block; position: fixed; inset: 0; z-index: 300; pointer-events: none; --k: 1; }
/* The ground is its own layer so the burst can fade it out from under the glyphs. */
html.intro div.intro::before { content: ""; position: absolute; inset: 0; background: var(--ground); }
html.intro div.intro.is-burst::before { animation: intro-ground .3s var(--ease-out) forwards; }
@keyframes intro-ground { to { opacity: 0; } }

.intro__stage {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; overflow: visible; transform: scale(.52);
  opacity: 0; animation: intro-in .12s linear .25s both;
}
@keyframes intro-in { from { opacity: 0; } to { opacity: 1; } }
/* The global `svg { max-width: 100% }` rule would collapse these to 0px inside the 0×0 stage. */
.intro__cursor, .intro__p, .intro__heart svg { max-width: none; }
.intro__btn, .intro__ring { position: absolute; left: -58px; top: -58px; width: 116px; height: 116px; border-radius: 50%; }
/* Edges a little heavier than v5.4 (3px, 7/8px slab), so they still read at the .52 scale. */
.intro__btn { display: grid; place-items: center; background: var(--card); border: 3px solid var(--ink); box-shadow: 7px 8px 0 0 var(--ink); }
.intro__heart { position: relative; width: 48px; height: 48px; transform: scale(1.4); }
.intro__heart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro__heart-o { fill: var(--card); stroke: var(--ink); stroke-width: 1.9; stroke-linejoin: round; }
.intro__heart-f { fill: var(--signal); stroke: var(--ink); stroke-width: 1.9; stroke-linejoin: round; }
.intro__ring { border: 3px solid var(--ink); opacity: 0; }
.intro__ring--burst { border: 4px solid var(--signal); }
.intro__cursor {
  position: absolute; left: 11px; top: 13px; width: 44px; height: 53px; overflow: visible;
  fill: var(--signal); stroke: var(--ink); stroke-width: 1; stroke-linejoin: round; transform-origin: 3px 3px;
}
.intro__p { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; overflow: visible; opacity: 0; }
.intro__p--h { fill: currentColor; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.intro__p--g { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.intro__p.is-o { color: var(--signal); }
.intro__p.is-n { color: var(--ink); }
.intro__p.is-c { color: var(--cobalt); }

/* The loading animation: one tap per .62 s (cursor squash, button give, heart pulse, ring), from the moment the icon
   appears (same .25 s delay). The resting styles above equal each loop's first frame, so the delay shows no jump. */
.intro__cursor { animation: intro-tap-cursor .62s linear .25s infinite; }
.intro__btn { animation: intro-tap-btn .62s linear .25s infinite; }
.intro__heart { animation: intro-tap-heart .62s linear .25s infinite; }
.intro__ring:first-child { animation: intro-tap-ring .62s linear .25s infinite; }
@keyframes intro-tap-cursor {
  0%, 18% { transform: translate(0, 0) scale(1, 1); }
  26% { transform: translate(1px, 3px) scale(1.14, .78); }
  40%, 100% { transform: translate(0, 0) scale(1, 1); }
}
@keyframes intro-tap-btn { 0%, 22% { transform: scale(1, 1); } 30% { transform: scale(1.07, .9); } 44%, 100% { transform: scale(1, 1); } }
@keyframes intro-tap-heart { 0%, 22% { transform: scale(1.4); } 32% { transform: scale(1.54); } 52%, 100% { transform: scale(1.4); } }
@keyframes intro-tap-ring {
  0%, 25% { transform: scale(.92); opacity: 0; }
  26% { transform: scale(.92); opacity: .6; animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  100% { transform: scale(1.7); opacity: 0; }
}

/* .is-burst: the heart swells and explodes, 16 glyphs fly out, all done by .3 s (glyph delays scaled to <= .02 s). */
div.intro.is-burst .intro__cursor { animation: intro-cursor-out .24s cubic-bezier(.3, 0, .2, 1) forwards; }
div.intro.is-burst .intro__btn { animation: intro-btn-out .2s cubic-bezier(.3, 0, .6, 1) forwards; }
div.intro.is-burst .intro__heart { animation: intro-heart-out .2s cubic-bezier(.3, 0, .6, 1) forwards; }
div.intro.is-burst .intro__ring:first-child { animation: none; opacity: 0; }
div.intro.is-burst .intro__ring--burst { animation: intro-ring-burst .3s cubic-bezier(.16, 1, .3, 1) forwards; }
div.intro.is-burst .intro__p { animation: intro-p .28s cubic-bezier(.12, .8, .24, 1) calc(var(--d, 0s) / 3) both; }
@keyframes intro-cursor-out {
  0%, 17% { transform: translate(0, 0) rotate(0deg) scale(1, 1); opacity: 1; }
  100% { transform: translate(34px, 28px) rotate(14deg) scale(.9, .9); opacity: 0; }
}
@keyframes intro-btn-out { 0% { transform: scale(1); opacity: 1; } 40% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes intro-heart-out { 0% { transform: scale(1.4); } 40% { transform: scale(1.6); } 100% { transform: scale(1.9); } }
@keyframes intro-ring-burst { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(3.1); opacity: 0; } }
/* Burst glyphs: from the heart outward to (--x, --y) px (x --k on phones), turning to --r, sized --s. */
@keyframes intro-p {
  0% { transform: translate(0, 0) rotate(0deg) scale(.2); opacity: 0; }
  10%, 62% { opacity: 1; }
  100% { transform: translate(calc(var(--x) * var(--k) * 1px), calc(var(--y) * var(--k) * 1px)) rotate(var(--r)) scale(var(--s)); opacity: 0; }
}

/* Phones: the burst a little tighter. */
@media (max-width: 759px) { html.intro div.intro { --k: .74; } }
@media (prefers-reduced-motion: reduce) { html.intro div.intro { display: none; } }

/* ---------- Theme toggle (v5.5) ----------
   A plain 44px round button with a 2px ring in the text colour (the FAQ icon's language, not a slab: it sits
   beside the CTA and should not compete with it). Fixed size, both icons inline, so nothing shifts on toggle.
   Hidden (space kept) until the head script has set data-theme, i.e. only when JS can run it. */
.theme-toggle {
  flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: 0;
  border: 2px solid currentColor; border-radius: 50%; background: transparent; color: var(--text);
  cursor: pointer; visibility: hidden; transition: background-color .2s, color .2s;
}
html[data-theme] .theme-toggle { visibility: visible; }
html.js .theme-toggle { color: var(--fg); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .tt-sun, html[data-theme="dark"] .theme-toggle .tt-moon { display: none; }
html[data-theme="dark"] .theme-toggle .tt-sun { display: block; }
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover { background: rgba(14, 26, 43, .08); background: color-mix(in srgb, currentColor 12%, transparent); }
}
.theme-toggle:active { background: rgba(14, 26, 43, .14); background: color-mix(in srgb, currentColor 20%, transparent); }

/* ---------- Dark theme (v5.5) ----------
   Set on <html data-theme> by the head script (saved "cc-theme", else prefers-color-scheme) before first paint.
   A warm ink-brown ground with cream text, not an invert. Navy, cobalt and orange stay the brand colours.
   Contrast on #17120D: cream 15.1, muted #A99B83 6.8, cobalt text #8C9BFF 7.3, error #FF8A66 8.0;
   muted on the input card #231C15 6.2, error 7.3; input border #8A7C66 4.1 (non-text, >= 3); muted on sand #2B231A 5.7. */
:root[data-theme="dark"] {
  --paper: #17120D;
  --paper-2: #2B231A;
  --card: #231C15;
  --text: #F3E6CF;
  --muted: #A99B83;
  --line: #8A7C66;
  --error: #FF8A66;
  --rule: rgba(243, 230, 207, .16);
  --rule-strong: rgba(243, 230, 207, .36);
  --cobalt-text: #8C9BFF;
  --cue-dim: #7A6D59;           /* 3.7:1, large-text AA before the fill */
  --slot-bg: rgba(243, 230, 207, .04);
  --header-bg: rgba(23, 18, 13, .96);
  --card-hi: rgba(255, 255, 255, .07);
  --card-hover: #2E251C;
  /* The navy slab stays, with a cream rim so the buttons still read as slabbed on the dark ground. */
  --btn-rim: rgba(243, 230, 207, .6);
  --media-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 22px 44px -30px rgba(0, 0, 0, .85);
  --media-shadow-lift: 0 1px 0 rgba(0, 0, 0, .3), 0 40px 70px -34px rgba(0, 0, 0, .9);
  color-scheme: dark;
}
/* Brand islands keep their light look exactly: the loading icon's internals (its ground is --ground, the live page
   ground), the orange and cobalt bands, the marquee, the pricing card and the footer badge card. */
:root[data-theme="dark"] :is(div.intro, .band--orange, .band--cobalt, .marquee, .price-note, .badge-html__card) {
  --paper: #F3E6CF; --paper-2: #E9D6B6; --card: #FFF8EC; --text: #0E1A2B; --muted: #5E5446; --line: #7D705C;
  --error: #AE2E08; --rule: rgba(14, 26, 43, .18); --rule-strong: rgba(14, 26, 43, .42); --cobalt-text: #2E46FF;
  --cue-dim: #8C7A5B; --slot-bg: rgba(233, 214, 182, .55); --card-hi: #fff; --card-hover: #fff; --btn-rim: transparent;
  --media-shadow: 0 1px 0 rgba(14, 26, 43, .06), 0 22px 44px -30px rgba(14, 26, 43, .5);
  --media-shadow-lift: 0 1px 0 rgba(14, 26, 43, .06), 0 40px 70px -34px rgba(14, 26, 43, .6);
}
/* The logo's click ticks follow the text (navy ticks vanish on the dark ground). */
:root[data-theme="dark"] .brand { --mark: currentColor; }
:root[data-theme="dark"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23F3E6CF' stroke-width='1.8'/%3E%3C/svg%3E"); }
/* The hero still (no-scene fallback) is a cream render: in dark it becomes a framed card in its slot instead of a
   full-bleed cream field behind the copy. Only without the scene (the scene never shows it). */
html[data-theme="dark"]:not(.scene) .hero__slot { position: relative; }
html[data-theme="dark"]:not(.scene) .hero__poster {
  inset: 0; border-radius: var(--radius-media); overflow: hidden; box-shadow: var(--media-shadow);
}
html[data-theme="dark"]:not(.scene) .hero__poster img { object-position: 68% 50%; }
html[data-theme="dark"]:not(.scene) .hero__poster.is-v4 img { object-position: 80% 50%; }
@media (max-width: 759px) {
  html[data-theme="dark"]:not(.scene) .hero__slot { margin-inline: 0; }
  html[data-theme="dark"]:not(.scene) .hero__poster img { object-position: 50% 50%; }
}

/* ---------- Motion guards ----------
   Content is visible by default. GSAP sets from-states only when motion is allowed. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* =====================================================================================
   v5.5 UI (Nov 28 2026): scroll progress, back to top, floating contact, copy email, print.
   The fixed pieces are made by ui.js; all of them are position: fixed (no layout), shown with opacity + visibility
   (hidden ones are not focusable), and sit under the header (50), so the open phone menu covers them.
   --ui-bottom is the one bottom offset for the corner stack: a bottom notice can raise it and everything moves together.
   ===================================================================================== */
:root { --ui-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.print-only { display: none; }

/* Progress: position only (scaleX set per frame by ui.js, no transition, no easing). Over the header, under the
   grain (100), skip link (200) and loading icon (300). Navy on the orange band, where orange would vanish. */
.ui-progress {
  position: fixed; top: 0; left: 0; z-index: 60; width: 100%; height: 3px;
  background: var(--signal); transform: scaleX(0); transform-origin: left center; will-change: transform;
  pointer-events: none;
}
html.js[data-tone="orange"] .ui-progress { background: var(--ink); }

.ui-top, .ui-fab {
  position: fixed; z-index: 45;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.ui-top.is-on, .ui-fab.is-on { opacity: 1; visibility: visible; pointer-events: auto; }

/* Back to top: the theme toggle's language (2px ring in the text colour), on a near-opaque ground so it reads over
   any section. Stacked above the "01 / 07" counter on the home page, in the corner on the audit page. */
.corner--progress { bottom: var(--ui-bottom); }
.ui-top {
  right: calc(14px + env(safe-area-inset-right, 0px)); bottom: var(--ui-bottom);
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; margin: 0;
  border: 2px solid currentColor; border-radius: 50%; cursor: pointer;
  color: var(--text); background: var(--paper); background: color-mix(in srgb, var(--paper) 90%, transparent);
  transition: opacity .25s, visibility 0s linear .25s, background-color .2s;
}
.ui-top.is-on { transition: opacity .25s, visibility 0s, background-color .2s; }
.ui-top--stacked { bottom: calc(var(--ui-bottom) + 42px); } /* counter is 32px tall, plus a 10px gap */
html.js .ui-top { color: var(--fg); background: var(--bg); background: color-mix(in srgb, var(--bg) 90%, transparent); }
.ui-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .ui-top:hover { background: color-mix(in srgb, currentColor 14%, var(--paper)); }
  html.js .ui-top:hover { background: color-mix(in srgb, currentColor 14%, var(--bg)); }
}

/* Floating contact: the hard-slab button, bottom-left (the right corner holds the counter and back to top). */
.ui-fab {
  left: calc(14px + env(safe-area-inset-left, 0px)); bottom: calc(var(--ui-bottom) + 4px);
  margin: 0; min-height: 48px;
  transition: opacity .25s, visibility 0s linear .25s, transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s;
}
.ui-fab.is-on { transition: opacity .25s, visibility 0s, transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s; }

/* The footer keeps its last lines clear of the corner stack at the bottom of the page. */
.footer { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)); }
.footer__meta { align-items: center; }

/* Copy email: the address is a real mailto link; the button swaps its label in place (both labels share one grid
   cell, so "Copied" never changes its width). 44px tall hit area, a small outlined pill drawn inside it. */
.copy-email { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.copy-btn {
  position: relative; display: inline-grid; place-items: center; min-height: 44px; min-width: 44px; padding: 0 12px; margin: 0;
  font: 700 .8125rem/1 var(--font); letter-spacing: .02em; color: inherit; background: none; border: 0; cursor: pointer;
}
.copy-btn::before { content: ""; position: absolute; inset: 9px 0; border: 1.5px solid currentColor; border-radius: 999px; opacity: .7; }
.copy-btn > span { grid-area: 1 / 1; }
.copy-btn__b, .copy-btn.is-copied .copy-btn__a { visibility: hidden; }
.copy-btn.is-copied .copy-btn__b { visibility: visible; }
@media (hover: hover) and (pointer: fine) {
  .copy-btn:hover::before { opacity: 1; }
  .footer .copy-btn:hover { color: var(--cream); }
  html.js .footer .copy-btn:hover { color: var(--fg); }
}
.form__alt { margin: 0; color: var(--muted); font-size: .9375rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.form__alt a { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; }
.form__alt .copy-btn { color: var(--text); }
/* Back to top focuses #main (tabindex -1) for the next Tab; the whole page outlined would only be noise. */
main[tabindex="-1"]:focus { outline: none; }

/* =====================================================================================
   v5.5 site search (Nov 28 2026): a header button and a command palette (search.js builds it on first open).
   ===================================================================================== */
/* The button: the theme toggle's language (2px ring in the text colour), static in both headers. From 1100px it
   becomes a pill with the shortcut; both shortcut labels share one grid cell (the wider sets the width), so
   search.js picking Mac or PC never moves the nav. Hidden (space kept) until JS can run it, like the toggle. */
.search-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 44px; height: 44px; padding: 0; margin: 0;
  border: 2px solid currentColor; border-radius: 999px; background: transparent; color: var(--text);
  font: 700 .8125rem/1 var(--font); letter-spacing: .01em; cursor: pointer; visibility: hidden;
  transition: background-color .2s, color .2s;
}
html[data-theme] .search-btn { visibility: visible; }
html.js .search-btn { color: var(--fg); }
.search-btn svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* The shortcut hint sits beside the button, not in it, so the button's name is only its aria-label (visible text
   inside it must match the name). Button and hint share one grid cell: the hint's padding (border + icon + gap on
   the left, border + 13px on the right) sizes the cell, the button stretches over it, so the pill is unchanged. */
.search-wrap { flex: none; display: inline-grid; }
.search-wrap > * { grid-area: 1 / 1; }
.search-btn__hint {
  display: none; align-self: center; padding: 0 15px 0 39px; pointer-events: none; visibility: hidden;
  color: var(--text); font: 700 .8125rem/1 var(--font); letter-spacing: .01em;
}
html[data-theme] .search-btn__hint { visibility: visible; }
html.js .search-btn__hint { color: var(--fg); }
.search-btn__hint kbd { grid-area: 1 / 1; justify-self: center; font: inherit; }
html.kbd-mac .search-btn__pc, html:not(.kbd-mac) .search-btn__mac { visibility: hidden; }
@media (min-width: 1100px) {
  .search-btn { justify-content: flex-start; padding: 0 0 0 10px; }
  .search-btn__hint { display: inline-grid; }
}
@media (hover: hover) and (pointer: fine) {
  .search-btn:hover { background: rgba(14, 26, 43, .08); background: color-mix(in srgb, currentColor 12%, transparent); }
}
.search-btn:active { background: rgba(14, 26, 43, .14); background: color-mix(in srgb, currentColor 20%, transparent); }
/* Phones and tablets: Menu, search and the theme toggle share the row with the logo without wrapping at 360px. */
@media (max-width: 899px) { .nav { gap: 10px; } }
@media (max-width: 399px) { .site-header__row { gap: 12px; } .nav { gap: 8px; } }

/* Scroll lock while the palette is open; the gutter stays, so nothing shifts sideways. */
html.search-open { overflow: hidden; scrollbar-gutter: stable; }

/* The palette: a cream card with a 2px edge and the hard slab (the pricing card's look; in dark the card, a cream
   edge and the navy slab with the buttons' cream rim). Theme tokens, not the section tone: it floats over every
   tone, so its colours and focus ring are pinned here. */
.search {
  --focus: var(--text);
  position: fixed; inset: 0 0 auto; margin: min(12vh, 112px) auto auto; /* top-anchored, as tall as its results */
  width: min(640px, calc(100vw - 40px)); max-width: none; height: auto;
  max-height: calc(100dvh - min(12vh, 112px) - 40px);
  padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible;
}
.search[open] { display: flex; flex-direction: column; }
.search::backdrop { background: rgba(14, 26, 43, .42); }
html[data-theme="dark"] .search::backdrop { background: rgba(0, 0, 0, .62); }
.search__panel {
  display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0;
  background: var(--card); color: var(--text);
  border: 2px solid var(--text); border-radius: var(--radius-media);
  box-shadow: 8px 8px 0 0 var(--ink), 8px 8px 0 2px var(--btn-rim);
  overflow: hidden;
}
@media (prefers-reduced-motion: no-preference) {
  .search[open] .search__panel { animation: search-in .16s var(--ease-out); transform-origin: 50% 0; }
  .search[open]::backdrop { animation: search-fade .16s ease-out; }
}
@keyframes search-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes search-fade { from { opacity: 0; } }

.search__bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; border-bottom: 2px solid var(--rule); transition: border-color .2s; }
.search__bar:focus-within { border-bottom-color: var(--text); }
.search__bar > svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search__input {
  flex: 1; min-width: 0; height: 52px; padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent;
  color: var(--text); font: 500 1.125rem/1.2 var(--font); -webkit-appearance: none; appearance: none;
}
.search__input::placeholder { color: var(--muted); opacity: 1; }
/* The caret and the bar's edge show focus here; it never leaves the field while the palette is open. */
.search__input:focus, .search__input:focus-visible { outline: none; }
.search__close {
  flex: none; display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 6px; margin: 0;
  border: 0; border-radius: 8px; background: none; color: var(--muted); font: 700 .75rem/1 var(--font); cursor: pointer;
}
.search__close span { padding: 5px 7px; border: 1.5px solid currentColor; border-radius: 6px; }
.search__close-k { display: none; }
@media (hover: hover) and (pointer: fine) {
  .search__close-k { display: inline; }
  .search__close-t { display: none; }
  .search__close:hover { color: var(--text); }
}

.search__head { margin: 0; padding: 14px 20px 6px; font: 700 .75rem/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.search__list { list-style: none; margin: 0; padding: 0 10px 10px; overflow-y: auto; overscroll-behavior: contain; flex: 1 1 auto; min-height: 0; }
.search__list[hidden] { display: none; }
.search__item {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 9px 12px; margin: 0 3px 2px 0;
  border: 2px solid transparent; border-radius: var(--radius-btn); cursor: pointer;
}
/* The selected row: an outlined chip on the ground colour with a small slab, the buttons' language at rest. */
.search__item[aria-selected="true"] { background: var(--paper); border-color: var(--text); box-shadow: 3px 3px 0 0 var(--text); }
.search__txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.search__kind { font: 700 .75rem/1.25 var(--font); letter-spacing: .03em; color: var(--cobalt-text); }
.search__title { font: 700 1rem/1.3 var(--font); color: var(--text); }
.search__snip {
  font-size: .875rem; line-height: 1.45; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.search__go { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: 0; }
.search__item[aria-selected="true"] .search__go { opacity: 1; }
/* Matches: the site's orange marker band under the matched letters (text keeps its colour, so it reads in both themes). */
.search mark {
  color: inherit; background: linear-gradient(var(--signal), var(--signal)) 0 92% / 100% .28em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0;
}

.search__empty { padding: 6px 20px 22px; }
.search__empty[hidden] { display: none; }
.search__empty p { margin: 0 0 16px; color: var(--text); }
.search__keys { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 10px 20px; border-top: 1px solid var(--rule); font-size: .75rem; color: var(--muted); }
.search kbd { display: inline-block; min-width: 1.6em; margin-right: 3px; padding: 3px 5px; border: 1.5px solid currentColor; border-radius: 5px; font: 700 .6875rem/1 var(--font); text-align: center; }
@media (hover: none), (pointer: coarse), (max-width: 599px) { .search__keys { display: none; } }
@media (max-width: 599px) {
  .search { margin-top: calc(12px + env(safe-area-inset-top, 0px)); width: calc(100vw - 30px); max-height: calc(100dvh - 36px - env(safe-area-inset-top, 0px)); }
  .search__panel { box-shadow: 6px 6px 0 0 var(--ink), 6px 6px 0 2px var(--btn-rim); }
}

/* =====================================================================================
   v5.5 storage notice (Nov 28 2026): track.js injects it after idle and after the loading icon. Fixed (no layout),
   under the header (50) so the phone menu covers it, over the corner stack (45). A card in the base theme tokens,
   not the section tone, so it reads the same over any band. --notice-h (set by track.js) lifts the corner stack.
   ===================================================================================== */
.cc-notice {
  position: fixed; z-index: 46;
  left: calc(14px + env(safe-area-inset-left, 0px)); right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 110px); overflow: auto; overscroll-behavior: contain;
  padding: 16px 18px 14px; margin: 0;
  color: var(--text); background: var(--card); border: 2px solid var(--text); border-radius: var(--radius-media);
  box-shadow: 0 22px 44px -26px rgba(14, 26, 43, .55);
  font-size: .9375rem; line-height: 1.45;
  /* Re-pin the section-tone tokens (html.js) so focus rings stay visible on the card over any band. */
  --fg: var(--text); --fg-2: var(--muted); --bg: var(--card); --acc: var(--cobalt-text); --focus: var(--text);
  opacity: 0; transform: translateY(8px);
  transition: opacity .24s var(--ease-out), transform .24s var(--ease-out);
}
.cc-notice.is-on { opacity: 1; transform: none; }
.cc-notice[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .cc-notice { transform: none; transition: none; } }
@media (min-width: 760px) { .cc-notice { right: auto; width: min(420px, calc(100vw - 28px)); } }
:root[data-theme="dark"] .cc-notice { box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .9); }
.cc-notice__text, .cc-notice__now { margin: 0; }
.cc-notice__now { margin-top: 6px; color: var(--muted); font-size: .875rem; }
.cc-notice__more { margin-top: 4px; color: var(--muted); font-size: .875rem; }
.cc-notice__more summary {
  display: inline-flex; align-items: center; min-height: 44px; cursor: pointer;
  color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.cc-notice__more ul { margin: 0 0 6px; padding-left: 1.1em; display: grid; gap: 4px; }
.cc-notice__more b { color: var(--text); }
.cc-notice__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cc-notice .btn { margin: 0; }
/* While a form field has focus on a phone, the keyboard would lift the notice onto the inputs: tuck it away. */
@media (max-width: 759px) { .cc-notice.is-tucked { opacity: 0; visibility: hidden; pointer-events: none; } }

/* The corner stack clears it: on phones (full width) everything moves up; from 760px only the floating contact shares
   its corner (bottom-left), so only that moves. */
html.cc-notice-open .ui-fab { bottom: calc(var(--ui-bottom) + var(--notice-h, 0px) + 14px); }
@media (max-width: 759px) {
  html.cc-notice-open { --ui-bottom: calc(24px + env(safe-area-inset-bottom, 0px) + var(--notice-h, 0px)); }
  html.cc-notice-open .ui-fab { bottom: calc(var(--ui-bottom) + 4px); }
}

/* Footer "Storage settings": the copy button's outlined pill, 44px tall. Hidden (space kept) until JS can run it. */
.store-btn {
  position: relative; display: inline-grid; place-items: center; min-height: 44px; padding: 0 12px; margin: 0;
  font: 700 .8125rem/1 var(--font); letter-spacing: .02em; color: inherit; background: none; border: 0; cursor: pointer;
  visibility: hidden;
}
html[data-theme] .store-btn { visibility: visible; }
.store-btn::before { content: ""; position: absolute; inset: 9px 0; border: 1.5px solid currentColor; border-radius: 999px; opacity: .7; }
@media (hover: hover) and (pointer: fine) {
  .store-btn:hover::before { opacity: 1; }
  .footer .store-btn:hover { color: var(--cream); }
  html.js .footer .store-btn:hover { color: var(--fg); }
}

/* ---------- Print ----------
   Black on white whatever the theme or tone: every colour token is pinned on every element (the brand islands and
   html.js tones re-declare them), grounds and slabs drop, decorative and fixed layers go (fixed ones would repeat on
   every page), heights that fill a screen collapse, FAQ answers show, and outside links print their address. */
@media print {
  @page { margin: 16mm 14mm; }
  *, *::before, *::after {
    --paper: #fff !important; --paper-2: #fff !important; --card: #fff !important; --text: #000 !important;
    --muted: #333 !important; --ink: #000 !important; --cream: #000 !important; --cobalt-text: #000 !important;
    --rule: rgba(0, 0, 0, .25) !important; --rule-strong: rgba(0, 0, 0, .5) !important;
    --bg: #fff !important; --fg: #000 !important; --fg-2: #333 !important; --acc: #000 !important;
    --doodle: #000 !important; --rule-c: rgba(0, 0, 0, .25) !important; --focus: #000 !important;
    background: transparent !important; color: #000 !important;
    box-shadow: none !important; text-shadow: none !important;
    transition: none !important; animation: none !important;
  }
  html, html.js, body { background: #fff !important; color-scheme: light; }
  body { font-size: 11pt; line-height: 1.45; min-height: 0; }
  body::before, .scene-canvas, div.intro, .corner, .ui-progress, .ui-top, .ui-fab, .skip-link,
  .nav, .nav-toggle, .theme-toggle, .marquee, .outline-word, .doodle, .badge-stage, .hero__slot, .stage__slot,
  .hook-notes, .media__stand-in, .faq__icon, .btn-fx, .copy-btn, .search-btn,
  .cookie, .cookie-notice, [data-cookie], .cc-notice, .store-btn, .search, [role="search"] { display: none !important; }

  .site-header, .audit__intro { position: static !important; }
  .site-header { border-bottom: 1pt solid #000; padding: 0 0 6pt; }
  .site-header__row { min-height: 0; }
  .print-only { display: block; margin: 0 0 12pt; font-size: 9pt; }

  .hero { min-height: 0 !important; display: block; padding-top: 12pt !important; }
  .section, .close, .audit-page { padding-block: 14pt !important; }
  .stage__inner { padding-bottom: 8pt; }
  [data-hero] { transform: none !important; opacity: 1 !important; }
  .w { color: #000 !important; }

  h1 { font-size: 26pt !important; line-height: 1.05 !important; }
  h2, .close__title, .stage__line { font-size: 18pt !important; line-height: 1.1 !important; }
  h3 { font-size: 13pt !important; }
  .cue { font-size: 14pt !important; }
  .note { font-size: 13pt !important; transform: none !important; }
  h1, h2, h3, h4, .sec-head, .stage__line { break-after: avoid; page-break-after: avoid; }
  li, figure, .step, .faq details, .price-note, .pillars li, .field, .form__row, blockquote { break-inside: avoid; page-break-inside: avoid; }
  p { orphans: 3; widows: 3; }
  img, svg, picture { max-width: 100% !important; }
  .media, .media-lift { max-width: 9cm; transform: none !important; }

  /* Buttons print as plain outlined labels. */
  .btn { border: 1pt solid #000 !important; transform: none !important; min-height: 0; padding: 4pt 8pt; }

  /* FAQ: every answer prints, open or not (::details-content where supported; the summary stays as the question). */
  details > * { display: block !important; }
  details::details-content { content-visibility: visible !important; display: block !important; }
  .faq summary { padding: 8pt 0 4pt; }
  .faq__a { padding-bottom: 8pt; }

  /* Outside links in the content print their address (not nav or buttons, not links that already show it). */
  main a[href^="http"]:not(.btn)::after, main a[href^="mailto:"]:not(.btn):not(.email-link)::after {
    content: " (" attr(href) ")"; font-size: 9pt; font-weight: 400; word-break: break-all;
  }

  .footer { padding: 12pt 0 0 !important; border-top: 1pt solid #000; }
  .footer__row ul { display: none; }
  .footer a { min-height: 0; }
}
