/* ==========================================================================
   Brand tokens. See BRAND.md section 6.
   Every colour lives in the token blocks below and is named by its role,
   never by its hue. The site is light only (owner decision, 2026-10-09).
   ========================================================================== */

@font-face {
  font-family: "Anybody";
  src: url("fonts/anybody-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* surfaces: page canvas, cards, wells */
  --surface-page: #EEF0F4;
  --surface-page-dot: rgba(18, 28, 61, 0.10);
  --surface-card: #FFFFFF;
  --surface-well: #F6F7FA;
  --surface-sunken: #E4E7EE;
  --surface-band: #121C3D;

  /* the deck: ghost tiles behind the page (BRAND.md 6, page background).
     The face sits between the canvas and a card; strips borrow the section's
     own priority or brand colour at a low tint. Never the yes colour. */
  --surface-deck: #FFFFFF;
  --border-deck: rgba(18, 28, 61, 0.09);
  --deck-tint-brand: 48%;
  --deck-tint-high: 58%;
  --deck-tint-medium: 68%;
  --deck-tint-low: 72%;
  --deck-tint-chip: 70%;

  /* text */
  --text-primary: #121C3D;
  --text-strong: #2A3557;
  --text-secondary: #4A556E;
  --border-subtle: rgba(18, 28, 61, 0.12);
  --border-strong: rgba(18, 28, 61, 0.26);

  /* brand solid: deep navy. Header band, brand strips, name tags, chips */
  --brand-solid: #121C3D;
  --brand-raised: #1C2852;
  --brand-raised-2: #26346A;
  --brand-strip: #121C3D;
  --brand-fold: #070C1F;
  --text-on-brand: #F2F4FA;
  --text-on-brand-secondary: #B4BCD3;
  --border-on-brand: rgba(255, 255, 255, 0.14);

  /* the one accent, in one role: "your yes" */
  --yes-solid: #2ED38F;
  --yes-hover: #24C483;
  --yes-strip: #1EAF74;
  --yes-fold: #127A50;
  --text-on-yes: #0B1530;
  --text-yes: #0A7A50;

  /* state */
  --state-ok: #1F9D63;
  --state-off: #8A93A8;

  /* priority: strip, fold, number */
  --prio-high-strip: #E04A2F;   --prio-high-fold: #A9331D;   --prio-high-text: #C2381D;
  --prio-medium-strip: #EDAE2B; --prio-medium-fold: #B9821A; --prio-medium-text: #8F6300;
  --prio-low-strip: #A4ADBD;    --prio-low-fold: #7D8799;    --prio-low-text: #5A6478;

  /* tile parts */
  --tile-face: #FFFFFF;
  --tag-surface: #121C3D;
  --tag-text: #FFFFFF;
  --tag-edge: transparent;
  --chip-surface: #121C3D;
  --chip-text: #FFFFFF;
  --stake-surface: #F1F3F7;
  --knob: #FFFFFF;

  --shadow-tile: 0 1px 2px rgba(18, 28, 61, 0.06), 0 12px 26px -18px rgba(18, 28, 61, 0.40);
  --shadow-lift: 0 2px 4px rgba(18, 28, 61, 0.06), 0 24px 44px -22px rgba(18, 28, 61, 0.50);
  --shadow-dialog: 0 30px 80px -20px rgba(3, 6, 15, 0.55);
  --scrim: rgba(10, 16, 36, 0.58);
  --focus-ring: #121C3D;
}

/* Non colour tokens: type, shape, rhythm, motion */
:root {
  --font-display: "Anybody", "Geist", ui-sans-serif, sans-serif;
  --font-body: "Geist", ui-sans-serif, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Radius: each one has a job. Tile and button share the product's 12px.
     The big slabs (hero, signup, page heads) use 28px. Tags 9px.
     Pills only for status and badges. */
  --r-tile: 12px;
  --r-slab: 28px;
  --r-tag: 9px;
  --r-input: 10px;
  --r-pill: 999px;

  /* the strip */
  --strip-w: 56px;
  --fold-w: 8px;
  --btn-strip: 46px;

  --gutter: 16px;
  --container: 1240px;
  --section: clamp(80px, 10vw, 148px);

  /* Motion: two registers.
     Productive (UI feedback): 120ms and 200ms.
     Expressive (reveals, hero load, dialogs): 560ms and 680ms.
     Entrance and exit have their own curves. */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-reveal: 560ms;
  --dur-hero: 680ms;
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-ui: cubic-bezier(0.2, 0, 0, 1);
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (max-width: 639px) {
  :root { --strip-w: 44px; --r-slab: 22px; }
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 92px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 960px) { body { font-size: 1.125rem; } }

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

.tnum { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-brand { --focus-ring: var(--yes-solid); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-tile);
  background: var(--yes-solid);
  color: var(--text-on-yes);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

/* the product's own canvas: a quiet dot grid, as in the sketches */
.section--canvas, .canvas {
  background-color: var(--surface-page);
  background-image: radial-gradient(var(--surface-page-dot) 1px, transparent 1.2px);
  background-size: 20px 20px;
}
.section:not(.section--canvas):not(.band-brand) { background: var(--surface-card); }

/* ==========================================================================
   The page background: the deck. Ghost tiles (face, fold, strip) lie behind
   the page. Under every top slab sits a short stack, so the hero reads as
   the top card of the inbox. At each seam between two light sections a
   pile of two tiles straddles the seam, tucked under the left page edge
   like tabs in a logbook, so scrolling reads like moving through cards.
   Decks live only in the section padding, never behind text, and their
   strip takes the colour of the section's own name tag nudge (brand navy
   stands in for yes). Built from box shadows on pseudo elements: the same
   face, fold and strip recipe as the tile. No images.
   ========================================================================== */

.section, .hero, .page-head {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

:root {
  --deck-w: 520px;
  --deck-show: clamp(64px, 14vw, 224px);
  --deck-h: clamp(72px, 11.5vw, 172px);
  --deck-strip: clamp(30px, 4vw, 60px);
  --deck-fold: clamp(5px, 0.7vw, 10px);
  --deck-r: clamp(12px, 1.5vw, 22px);
}

:where(.section, .hero, .page-head) {
  --deck-hue: var(--brand-strip);
  --deck-hue-fold: var(--brand-fold);
  --deck-tint: var(--deck-tint-brand);
}
/* the strip follows the section's eyebrow nudge */
.section:has(> .container > :first-child > .tag--hi:first-child, > .container > :first-child > :first-child > .tag--hi:first-child) {
  --deck-hue: var(--prio-high-strip); --deck-hue-fold: var(--prio-high-fold); --deck-tint: var(--deck-tint-high);
}
.section:has(> .container > :first-child > .tag--md:first-child, > .container > :first-child > :first-child > .tag--md:first-child) {
  --deck-hue: var(--prio-medium-strip); --deck-hue-fold: var(--prio-medium-fold); --deck-tint: var(--deck-tint-medium);
}
.section:has(> .container > :first-child > .tag--lo:first-child, > .container > :first-child > :first-child > .tag--lo:first-child) {
  --deck-hue: var(--prio-low-strip); --deck-hue-fold: var(--prio-low-fold); --deck-tint: var(--deck-tint-low);
}

/* one pile at each seam between two light sections: a front tile and a back
   tile, tucked under the left edge of the page like tabs in a logbook */
/* next to a tight section the seam is shorter, so the pile is too */
.section--tight + .section, .section + .section--tight { --deck-h: clamp(64px, 7vw, 100px); }

.section:not(.band-brand) + .section:not(.band-brand)::before,
.section:not(.band-brand) + .section:not(.band-brand)::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: var(--deck-o, 1);
  transform: translateX(var(--deck-x, 0px));
}
/* the chip at the top of the front tile's strip */
.section:not(.band-brand) + .section:not(.band-brand)::after {
  --chip: clamp(14px, 2vw, 30px);
  top: calc(var(--deck-h) * -0.4 + var(--chip) * 0.5);
  left: calc(var(--deck-show) + var(--deck-fold) + (var(--deck-strip) - var(--deck-fold) - var(--chip)) / 2);
  width: var(--chip);
  height: var(--chip);
  border-radius: calc(var(--chip) * 0.28);
  background: color-mix(in srgb, var(--brand-solid) var(--deck-tint-chip), var(--surface-deck));
}
.section:not(.band-brand) + .section:not(.band-brand)::before {
  --strip-c: color-mix(in srgb, var(--deck-hue) var(--deck-tint), var(--surface-deck));
  --fold-c: color-mix(in srgb, var(--deck-hue-fold) var(--deck-tint), var(--surface-deck));
  --strip-b: color-mix(in srgb, var(--deck-hue) calc(var(--deck-tint) * 0.5), var(--surface-deck));
  --fold-b: color-mix(in srgb, var(--deck-hue-fold) calc(var(--deck-tint) * 0.5), var(--surface-deck));
  --dx: calc(var(--deck-strip) * 0.62);
  --dy: calc(var(--deck-h) * -0.2);
  top: calc(var(--deck-h) * -0.4);
  left: calc(var(--deck-show) - var(--deck-w));
  width: var(--deck-w);
  height: var(--deck-h);
  border-radius: var(--deck-r);
  background: var(--surface-deck);
  box-shadow:
    inset 0 0 0 1px var(--border-deck),
    var(--deck-fold) 0 0 0 var(--fold-c),
    var(--deck-strip) 0 0 0 var(--strip-c),
    var(--dx) var(--dy) 0 0 var(--surface-deck),
    var(--dx) var(--dy) 0 1px var(--border-deck),
    calc(var(--dx) + var(--deck-fold)) var(--dy) 0 0 var(--fold-b),
    calc(var(--dx) + var(--deck-strip)) var(--dy) 0 0 var(--strip-b);
}

/* the stack under a top slab: two ghost tiles peek out below its bottom edge */
.slab--hero, .slab--head { --deck-tint: 55%; }
.slab--hero::before, .slab--hero::after,
.slab--head::before, .slab--head::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 40%;
  border-radius: var(--r-slab);
  background: var(--surface-deck);
  pointer-events: none;
}
.slab--hero::before, .slab--head::before {
  --s: color-mix(in srgb, var(--strip) var(--deck-tint), var(--surface-deck));
  --f: color-mix(in srgb, var(--fold) var(--deck-tint), var(--surface-deck));
  inset-inline: clamp(14px, 2.4vw, 32px) calc(var(--strip-w) + clamp(14px, 2.4vw, 32px));
  bottom: clamp(-16px, -1.2vw, -10px);
  box-shadow: inset 0 0 0 1px var(--border-deck), var(--fold-w) 0 0 0 var(--f), var(--strip-w) 0 0 0 var(--s);
}
.slab--hero::after, .slab--head::after {
  --s: color-mix(in srgb, var(--strip) calc(var(--deck-tint) * 0.5), var(--surface-deck));
  --f: color-mix(in srgb, var(--fold) calc(var(--deck-tint) * 0.5), var(--surface-deck));
  inset-inline: clamp(28px, 4.8vw, 64px) calc(var(--strip-w) + clamp(28px, 4.8vw, 64px));
  bottom: clamp(-30px, -2.3vw, -19px);
  z-index: -2;
  box-shadow: inset 0 0 0 1px var(--border-deck), var(--fold-w) 0 0 0 var(--f), var(--strip-w) 0 0 0 var(--s);
}

/* ==========================================================================
   Type. Anybody (display, width axis) against Geist (body).
   Hierarchy from size and weight: 800 against 400, jumps of 3x and more.
   ========================================================================== */

.display, .h1, .h2, .h3, .brand__name, .proof__fig, .tile__num, .way__big, .plan__n, .price-card__fig, .stakes__title, .dialog__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}

.display {
  font-size: clamp(2.25rem, 1rem + 4.6vw, 4.5rem);
  line-height: 0.96;
  font-weight: 800;
  font-stretch: 92%;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
@media (min-width: 640px) { .display { font-stretch: 104%; } }

.h1 {
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.75rem);
  line-height: 0.98;
  font-weight: 800;
  font-stretch: 96%;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
@media (min-width: 640px) { .h1 { font-stretch: 104%; } }

.h2 {
  font-size: clamp(2rem, 1.25rem + 2.9vw, 3.75rem);
  line-height: 1.0;
  font-weight: 800;
  font-stretch: 96%;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
@media (min-width: 640px) { .h2 { font-stretch: 102%; } }
.h2--big { font-size: clamp(2.25rem, 1.2rem + 4vw, 4.75rem); }

.h3 {
  font-size: 1.375rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  font-stretch: 100%;
}

.lede {
  font-size: clamp(1.125rem, 1.04rem + 0.35vw, 1.3125rem);
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 46ch;
  text-wrap: pretty;
}
.body { color: var(--text-secondary); max-width: 56ch; text-wrap: pretty; }
.small { font-size: 0.9375rem; line-height: 1.5; }
.muted { color: var(--text-secondary); }

/* ==========================================================================
   Asset 2: the name tag. A dark rounded label with a coloured nudge half
   outside its left edge. Every eyebrow, every tile label, every bucket.
   ========================================================================== */

.tag {
  --nudge: var(--yes-solid);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  max-width: calc(100% - 4px);
  min-height: 30px;
  margin-left: 4px;
  padding: 5px 13px 5px 15px;
  border-radius: var(--r-tag);
  background: var(--tag-surface);
  box-shadow: inset 0 0 0 1px var(--tag-edge);
  color: var(--tag-text);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  line-height: 1.3;
  font-weight: 650;
  font-stretch: 94%;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tag::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 7px;
  height: 18px;
  border-radius: 3px;
  background: var(--nudge);
  transform: translateY(-50%);
}
.tag > span { overflow: hidden; text-overflow: ellipsis; }
.tag--yes { --nudge: var(--yes-solid); }
.tag--hi { --nudge: var(--prio-high-strip); }
.tag--md { --nudge: var(--prio-medium-strip); }
.tag--lo { --nudge: var(--prio-low-strip); }
.on-brand .tag { --tag-edge: var(--border-on-brand); }

.section-head { display: grid; gap: 20px; justify-items: start; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head > .body { max-width: 52ch; }
.section-head--split { align-items: end; }
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
  .section-head--split > .body { justify-self: end; }
}

/* ==========================================================================
   Asset 1: the strip. A face on a coloured strip along its right edge,
   with a darker fold between them. Tiles, slabs, buttons and dialogs.
   ========================================================================== */

:where(.slab, .way) {
  --strip: var(--brand-strip);
  --fold: var(--brand-fold);
}
.slab, .way {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--strip-w);
  border-radius: var(--r-slab);
  background: var(--strip);
}
.slab__face, .way__face {
  position: relative;
  z-index: 1;
  min-width: 0;
  border-radius: var(--r-slab);
  background: var(--tile-face);
  box-shadow: var(--fold-w) 0 0 0 var(--fold), inset 0 0 0 1px var(--border-subtle);
}
.slab, .way { box-shadow: var(--shadow-tile); }
.slab__strip {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  min-width: 0;
  padding: 18px 0 18px var(--fold-w);
  color: var(--text-on-brand);
}

[data-priority="high"]   { --strip: var(--prio-high-strip);   --fold: var(--prio-high-fold);   --p-text: var(--prio-high-text); }
[data-priority="medium"] { --strip: var(--prio-medium-strip); --fold: var(--prio-medium-fold); --p-text: var(--prio-medium-text); }
[data-priority="low"]    { --strip: var(--prio-low-strip);    --fold: var(--prio-low-fold);    --p-text: var(--prio-low-text); }
[data-priority="yes"]    { --strip: var(--yes-strip);         --fold: var(--yes-fold);         --p-text: var(--text-yes); }

/* ==========================================================================
   Buttons. The primary is a small tile: the label on the face, the arrow on
   its own strip with a fold. One label site wide: "Join early access".
   ========================================================================== */

.btn {
  --btn-bg: transparent;
  --btn-ink: var(--text-primary);
  --btn-line: var(--border-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1.5px solid var(--btn-line);
  border-radius: var(--r-tile);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-exit), border-color var(--dur-base) var(--ease-exit);
}
.btn:hover { --btn-line: var(--text-primary); transition-timing-function: var(--ease-ui); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  isolation: isolate;
  padding-right: 0;
  border: 0;
  background: var(--yes-strip);
  color: var(--text-on-yes);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0 var(--btn-strip) 0 0;
  z-index: -1;
  border-radius: var(--r-tile);
  background: var(--yes-solid);
  box-shadow: 5px 0 0 0 var(--yes-fold);
  transition: background-color var(--dur-base) var(--ease-exit);
}
.btn--primary:hover::before { background: var(--yes-hover); transition-timing-function: var(--ease-ui); }
.btn__strip {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: var(--btn-strip);
  margin-left: 12px;
  padding-left: 5px;
}
.btn__strip .icon { width: 20px; height: 20px; transition: transform var(--dur-base) var(--ease-exit); }
.btn--primary:hover .icon--go { transform: translateX(2px); transition-timing-function: var(--ease-ui); }

.btn--ghost { --btn-line: var(--border-strong); }
.btn--navy {
  --btn-bg: var(--brand-solid);
  --btn-ink: var(--text-on-brand);
  --btn-line: var(--brand-solid);
}
.btn--navy:hover { --btn-bg: var(--brand-raised-2); --btn-line: var(--brand-raised-2); }
.btn--quiet { --btn-line: transparent; padding-inline: 14px; }
.btn--quiet:hover { --btn-line: var(--border-strong); }

.on-brand .btn:not(.btn--primary) { --btn-ink: var(--text-on-brand); --btn-line: var(--border-on-brand); }
.on-brand .btn:not(.btn--primary):hover { --btn-line: var(--text-on-brand); }

.btn--sm { --btn-strip: 38px; min-height: 42px; padding-left: 16px; font-size: 0.9375rem; }
.btn--sm .btn__strip { margin-left: 8px; }
.btn--sm .btn__strip .icon { width: 17px; height: 17px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: var(--border-strong);
  transition: text-decoration-color var(--dur-fast) var(--ease-ui);
}
.link:hover { text-decoration-color: currentColor; }

/* ==========================================================================
   Header: the product's dark band. The current page wears a name tag.
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-solid);
  color: var(--text-on-brand);
  border-bottom: 1px solid var(--border-on-brand);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
  white-space: nowrap;
}
.brand__mark { width: 32px; height: 24px; flex: none; }
.brand__name {
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-pills {
  display: none;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--r-tag);
  color: var(--text-on-brand-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-ui), background-color var(--dur-fast) var(--ease-ui);
}
.nav-pill:hover { color: var(--text-on-brand); background: var(--brand-raised); }
.nav-pill { gap: 8px; }
.nav-pill__icon { width: 16px; height: 16px; }
.nav-pill[aria-current="page"] {
  margin-left: 6px;
  background: var(--brand-raised-2);
  color: var(--text-on-brand);
  font-weight: 600;
}
.nav-pill[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 7px;
  height: 18px;
  border-radius: 3px;
  background: var(--yes-solid);
  transform: translateY(-50%);
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-on-brand);
  border-radius: var(--r-tile);
  background: transparent;
  color: var(--text-on-brand);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-ui);
}
.icon-btn:hover { background: var(--brand-raised); }

.header-cta { display: none; flex: none; }

.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.menu-toggle[aria-expanded="true"] .i-menu { display: none; }

.mobile-menu {
  background: var(--brand-solid);
  border-top: 1px solid var(--border-on-brand);
  padding-block: 16px 24px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { display: grid; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.mobile-menu .nav-pill { width: calc(100% - 6px); min-height: 48px; font-size: 1.0625rem; }
.mobile-menu .nav-pill:not([aria-current="page"]) { margin-left: 6px; }
.mobile-menu .btn { width: 100%; justify-content: space-between; }

@media (min-width: 960px) {
  .nav-pills { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .brand { margin-right: 28px; }
  .site-nav { margin-right: auto; }
}
@media (min-width: 1056px) {
  .header-cta { display: inline-flex; }
}
/* five nav items: between 960 and 1279 the pills tighten so the row fits
   without wrapping, and leaves room for the CTA from 1056 (measured) */
@media (min-width: 960px) and (max-width: 1279px) {
  .nav-pills { gap: 2px; }
  .nav-pill { padding-inline: 8px; gap: 6px; }
  .brand { margin-right: 8px; }
}

/* brand mark: a tiny tile. Card, fold, strip, name tag with nudge */
.bm-strip { fill: var(--yes-solid); }
.bm-fold { fill: var(--yes-fold); }
.bm-card { fill: var(--text-on-brand); }
.bm-tag { fill: var(--brand-solid); }
.bm-nudge { fill: var(--yes-solid); }

/* ==========================================================================
   The tile (product component). White face on a priority strip, with a
   darker fold, an icon chip on the strip, a name tag, one big number and
   a € pill.
   ========================================================================== */

:where(.tile) {
  --strip: var(--prio-low-strip);
  --fold: var(--prio-low-fold);
  --p-text: var(--prio-low-text);
}
.tile {
  position: relative;
  display: block;
  width: 100%;
  min-height: 176px;
  padding: 0;
  border: 0;
  border-radius: var(--r-tile);
  background: var(--strip);
  color: var(--text-primary);
  text-align: left;
  box-shadow: var(--shadow-tile);
  transition: transform var(--dur-base) var(--ease-exit), box-shadow var(--dur-base) var(--ease-exit);
}

.tile__card {
  position: absolute;
  inset: 0 var(--strip-w) 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 16px 20px;
  border-radius: var(--r-tile);
  background: var(--tile-face);
  box-shadow: var(--fold-w) 0 0 0 var(--fold);
}
.tile__card .tag { --nudge: var(--strip); }

.tile__figure {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 10px;
  margin-top: auto;
  line-height: 1;
}
.tile__num {
  color: var(--p-text);
  font-size: clamp(2.75rem, 2.4rem + 1.1vw, 3.375rem);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.tile__unit { font-size: 1.0625rem; font-weight: 500; color: var(--text-primary); }
.tile__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.tile__sub { font-size: 0.875rem; line-height: 1.35; color: var(--text-secondary); }
.tile__stake {
  flex: none;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--stake-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tile__chip {
  position: absolute;
  top: 14px;
  right: calc((var(--strip-w) - 32px) / 2 - 4px);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--chip-surface);
  color: var(--chip-text);
}
.tile__chip .icon { width: 18px; height: 18px; }
.slab__strip .tile__chip, .way > .tile__chip { position: static; }
.tile__chip--yes { background: var(--yes-solid); color: var(--text-on-yes); }

/* interactive tiles lift on hover: enter curve in, exit curve out */
button.tile { cursor: pointer; font: inherit; }
button.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); transition-timing-function: var(--ease-ui); }
button.tile:focus-visible { outline-offset: 4px; border-radius: var(--r-tile); }

.tile-grid {
  display: grid;
  gap: 20px 28px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 639px) {
  .tile__chip { top: 12px; width: 28px; height: 28px; right: calc((var(--strip-w) - 28px) / 2 - 4px); }
  .tile__chip .icon { width: 16px; height: 16px; }
}

/* ==========================================================================
   Product chrome: category pills, status chip, frame, logbook button
   ========================================================================== */

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--r-pill);
  background: var(--brand-raised);
  color: var(--text-on-brand);
  font-size: 0.8125rem;
  font-weight: 550;
  white-space: nowrap;
}
.cat-pill .icon { width: 15px; height: 15px; }
.cat-pill b {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: var(--r-pill);
  background: var(--brand-raised-2);
  font-weight: 650;
  font-size: 0.75rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
/* In product depictions the selected category is the accent, as in the product. */
.cat-pill--on { background: var(--yes-solid); color: var(--text-on-yes); }
.cat-pill--on b { background: var(--yes-hover); }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-on-brand);
  color: var(--text-on-brand);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.dot {
  display: inline-block;
  flex: none;
  vertical-align: middle;
  margin-right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--state-ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--state-ok) 28%, transparent);
}
.dot--off { background: var(--state-off); box-shadow: 0 0 0 3px color-mix(in srgb, var(--state-off) 28%, transparent); }

.frame {
  position: relative;
  border-radius: 20px;
  background: var(--surface-well);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.frame__band {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--brand-solid);
  color: var(--text-on-brand);
}
.frame__pills { display: flex; gap: 6px; min-width: 0; overflow: hidden; }
.frame__body { padding: 18px 18px 76px; }
.frame__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.frame__meta strong { color: var(--text-primary); font-weight: 650; }

.logbook-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-raised-2);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-tile);
}
button.logbook-btn { cursor: pointer; transition: transform var(--dur-base) var(--ease-exit); }
button.logbook-btn:hover { transform: translateY(-2px); transition-timing-function: var(--ease-ui); }
.logbook-btn__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--yes-solid);
  color: var(--text-on-yes);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.frame-note { margin-top: 14px; font-size: 0.875rem; color: var(--text-secondary); }

/* ==========================================================================
   1. Hero: the page as one big tile. Copy on the face, the inbox on the strip.
   ========================================================================== */

.hero {
  padding-block: clamp(20px, 4vw, 56px) clamp(64px, 8vw, 112px);
  background-color: var(--surface-page);
  background-image: radial-gradient(var(--surface-page-dot) 1px, transparent 1.2px);
  background-size: 20px 20px;
}
.slab--hero {
  --fold-w: 14px;
  grid-template-columns: minmax(0, 1fr);
  box-shadow: var(--shadow-lift);
}
.hero__copy {
  display: grid;
  gap: 24px;
  justify-items: start;
  align-content: center;
  padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 64px);
  box-shadow: 0 var(--fold-w) 0 0 var(--fold), inset 0 0 0 1px var(--border-subtle);
}
.hero__copy .display { max-width: 15ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { width: 18px; height: 18px; color: var(--text-primary); }

.hero__strip {
  padding: calc(var(--fold-w) + 20px) clamp(14px, 3vw, 28px) 24px;
  justify-items: stretch;
}
.station { display: grid; gap: 16px; margin: 0; }
.station__band { display: flex; align-items: center; gap: 8px; }
.station__tiles { display: grid; gap: 14px; }
.station .tile { min-height: 150px; box-shadow: none; }
.station__note { font-size: 0.8125rem; color: var(--text-on-brand-secondary); }

@media (min-width: 1040px) {
  .slab--hero { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); }
  .hero__copy { box-shadow: var(--fold-w) 0 0 0 var(--fold), inset 0 0 0 1px var(--border-subtle); padding-block: 64px; }
  .hero__strip { padding: 28px 28px 28px calc(var(--fold-w) + 24px); align-content: center; }
}
@media (max-width: 639px) {
  .station__tiles .tile:nth-child(n + 3) { display: none; }
  .station .tile { min-height: 140px; }
}

/* ==========================================================================
   2. Old way vs new way
   ========================================================================== */

.ways { display: grid; gap: 20px; }
@media (min-width: 960px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.way { --r-slab: 18px; }
.way__face {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px 24px 28px;
}
.way > .tile__chip { margin: 16px auto 0; }
.way__big {
  color: var(--p-text);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  line-height: 1;
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.03em;
}
.way__list { display: flex; flex-wrap: wrap; gap: 6px; }
.way__list li {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  font-size: 0.875rem;
  font-weight: 500;
}
.way__note { color: var(--text-secondary); max-width: 40ch; }
.way--new .way__note { color: var(--text-primary); }

/* ==========================================================================
   3. Value: the hub
   ========================================================================== */

.hub {
  border-radius: 24px;
  background: var(--surface-well);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.hub__band {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: var(--brand-solid);
  color: var(--text-on-brand);
  overflow: hidden;
}
@media (max-width: 759px) {
  .hub__band .cat-pill:not(.cat-pill--on) { display: none; }
}
.hub__grid {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 680px) { .hub__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .hub__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 22px; gap: 16px; }
  .hub-zone--inbox { grid-column: span 2; grid-row: span 2; }
}
@media (min-width: 680px) and (max-width: 1023px) {
  .hub-zone--inbox { grid-column: 1 / -1; }
}
.hub-zone {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 20px;
  border-radius: var(--r-tile);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
}
.hub-zone__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  border-radius: 9px;
  background: var(--chip-surface);
  color: var(--chip-text);
}
.hub-zone__icon .icon { width: 18px; height: 18px; }
.hub-zone h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.hub-zone p { font-size: 0.9375rem; color: var(--text-secondary); }
.hub-zone--inbox { background: var(--brand-solid); border-color: var(--brand-solid); color: var(--text-on-brand); }
.hub-zone--inbox h3 { font-size: 1.625rem; font-weight: 800; font-stretch: 106%; letter-spacing: -0.02em; }
.hub-zone--inbox p { color: var(--text-on-brand-secondary); }
.hub-zone--inbox .hub-zone__icon { background: var(--yes-solid); color: var(--text-on-yes); }
.hub-mini { display: grid; gap: 8px; margin-top: 14px; }
:where(.hub-mini__row) {
  --strip: var(--prio-low-strip);
  --p-text: var(--prio-low-text);
}
.hub-mini__row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 22px 10px 12px;
  border-radius: 10px;
  background: var(--tile-face);
  color: var(--text-primary);
  font-size: 0.875rem;
  box-shadow: inset -10px 0 0 var(--strip);
  font-variant-numeric: tabular-nums;
}
.hub-mini__row--hi { --strip: var(--prio-high-strip); --p-text: var(--prio-high-text); }
.hub-mini__row--md { --strip: var(--prio-medium-strip); --p-text: var(--prio-medium-text); }
.hub-mini__row b {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.03em;
  color: var(--p-text);
}
.hub-mini__row i { font-style: normal; font-weight: 650; font-size: 0.8125rem; }
@media (max-width: 479px) {
  .hub-mini__row { grid-template-columns: 40px minmax(0, 1fr); }
  .hub-mini__row i { grid-column: 2; }
}
.hub-zone--wide { grid-column: 1 / -1; }
/* two half width zones share the last row from 1024px: ICP analysis and the control room */
@media (min-width: 1024px) { .hub-zone--half { grid-column: span 2; } }
@media (min-width: 680px) {
  .hub-zone--wide { grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 16px; }
  .hub-zone--wide .hub-zone__icon { margin-bottom: 0; }
}

.hub-roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 28px;
  font-size: 0.9375rem;
}
.hub-roles .muted { flex-basis: 100%; }
.roles { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.roles li {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-strong);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   Feature tiles with captions
   ========================================================================== */

.feature-grid {
  display: grid;
  gap: 52px 28px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 680px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { display: grid; gap: 20px; align-content: start; }
.feature__text { display: grid; gap: 8px; padding-right: 8px; }
.feature__text p { color: var(--text-secondary); font-size: 1rem; }

.illustrative {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Enrichment: four ICP fields, then the buckets
   ========================================================================== */

.enrich { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .enrich { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; }
  .enrich__copy { position: sticky; top: 112px; }
}
.enrich__copy { display: grid; gap: 22px; justify-items: start; align-content: start; }
.enrich__visual { display: grid; gap: 32px; align-content: start; }

.enrich-steps { display: grid; width: 100%; margin: 8px 0 0; border-top: 1px solid var(--border-strong); }
.enrich-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.enrich-steps h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; }
.enrich-steps p { margin-top: 2px; font-size: 1rem; color: var(--text-secondary); }
.step__n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--chip-surface);
  color: var(--chip-text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.enrich-card {
  position: relative;
  margin: 0;
  border-radius: 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lift), inset -12px 0 0 var(--prio-low-strip), inset -18px 0 0 var(--prio-low-fold);
  overflow: hidden;
}
.enrich-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  padding: 20px 34px 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
}
.enrich-card__chip {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--chip-surface);
  color: var(--chip-text);
}
.enrich-card__who { display: grid; min-width: 0; margin-right: auto; }
.enrich-card__who strong { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 750; letter-spacing: -0.015em; }
.enrich-card__who span { font-size: 0.875rem; color: var(--text-secondary); overflow-wrap: anywhere; }

.enrich-fields { margin: 0; padding: 6px 34px 6px 22px; }
.enrich-fields > div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(7rem, auto);
  gap: 4px 16px;
  align-items: baseline;
  padding-block: 14px;
}
.enrich-fields > div + div { border-top: 1px solid var(--border-subtle); }
.enrich-fields dt { font-size: 0.875rem; color: var(--text-secondary); }
.enrich-fields dd { margin: 0; font-weight: 600; }
.enrich-fields dd.conf { text-align: right; }
.enrich-fields { isolation: isolate; }
.enrich-fields .is-review { position: relative; }
.enrich-fields .is-review::before {
  content: "";
  position: absolute;
  inset: 0 -12px;
  z-index: -1;
  border-radius: 10px;
  background: color-mix(in srgb, var(--prio-medium-strip) 14%, var(--surface-card));
}
.enrich-fields .is-review + div, .enrich-fields div + .is-review { border-top-color: transparent; }
@media (max-width: 479px) {
  .enrich-fields > div { grid-template-columns: minmax(0, 1fr) minmax(7rem, auto); }
  .enrich-fields dt { grid-column: 1 / -1; }
}
.enrich-card__foot {
  padding: 12px 34px 16px 22px;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-well);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.conf { font-size: 0.8125rem; font-weight: 650; }
.conf--high { color: var(--text-yes); }
.conf--low { color: var(--prio-medium-text); }

.buckets { display: grid; gap: 12px; }
.bucket-list { display: grid; gap: 10px; margin: 6px 0 0; }
.bucket {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 10px 16px;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--r-tile);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
}
.bucket__rule { display: flex; flex-wrap: wrap; gap: 6px; }
.bucket__rule span {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--stake-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  font-weight: 550;
  white-space: nowrap;
}
@media (max-width: 559px) { .bucket { grid-template-columns: minmax(0, 1fr); } }

.enrich-notes { display: grid; gap: 8px; font-size: 0.9375rem; color: var(--text-secondary); }
.enrich-notes li { display: flex; gap: 10px; align-items: center; }
.enrich-notes .icon { color: var(--text-primary); }

/* ==========================================================================
   Safety band
   ========================================================================== */

.band-brand {
  background: var(--surface-band);
  color: var(--text-on-brand);
  border-block: 1px solid var(--border-on-brand);
}
.band-brand .body, .band-brand .lede, .band-brand .small { color: var(--text-on-brand-secondary); }

.safety__grid { display: grid; gap: 56px; }
@media (min-width: 1024px) {
  .safety__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 88px; align-items: start; }
}
.safety__lead { display: grid; gap: 24px; justify-items: start; }

.kill {
  --strip-w: 52px;
  display: grid;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  margin-top: 8px;
  padding: 20px calc(var(--strip-w) + 20px) 20px 20px;
  border-radius: var(--r-tile);
  background: var(--brand-raised);
  border: 1px solid var(--border-on-brand);
  box-shadow: inset calc(var(--strip-w) * -1) 0 0 var(--yes-strip), inset calc(var(--strip-w) * -1 - 6px) 0 0 var(--yes-fold);
}
.kill__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kill__label { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 750; font-size: 1.125rem; }
.kill__note { font-size: 0.9375rem; color: var(--text-on-brand-secondary); min-height: 1.5em; }

.switch {
  position: relative;
  flex: none;
  width: 56px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--state-ok);
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-ui);
}
.switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 28px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--knob);
  transition: left var(--dur-base) var(--ease-ui);
}
.switch[aria-checked="false"] { background: var(--state-off); }
.switch[aria-checked="false"]::after { left: 4px; }

.controls { display: grid; }
@media (min-width: 640px) {
  .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}
.controls li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding-block: 22px;
  border-top: 1px solid var(--border-on-brand);
}
.controls .chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--text-on-brand);
  color: var(--brand-solid);
}
.controls h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 750; letter-spacing: -0.01em; }
.controls p { margin-top: 4px; font-size: 0.9375rem; color: var(--text-on-brand-secondary); }
.safety__more { margin-top: 32px; }

/* ==========================================================================
   4. Three step plan
   ========================================================================== */

.plan { display: grid; gap: 16px; }
@media (min-width: 960px) { .plan { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.plan__step {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px 26px 30px;
  border-radius: 18px;
  background: var(--surface-well);
  border: 1px solid var(--border-subtle);
}
.plan__n {
  font-size: 4.5rem;
  line-height: 0.85;
  font-weight: 800;
  font-stretch: 120%;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.plan__step--yours { background: var(--brand-solid); border-color: var(--brand-solid); color: var(--text-on-brand); }
.plan__step--yours .body, .plan__step--yours .mini-confirm { color: var(--text-on-brand-secondary); }
.plan__step--yours .plan__n { color: var(--yes-solid); }
.plan__visual { margin-top: 8px; }

.bubble {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-sunken);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.mini-inbox { display: grid; gap: 6px; }
.mini-inbox span {
  display: flex;
  justify-content: space-between;
  padding: 7px 20px 7px 10px;
  border-radius: 8px;
  background: var(--tile-face);
  border: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  box-shadow: inset -8px 0 0 var(--strip);
}
.mini-inbox i { font-style: normal; font-weight: 650; }
.mini-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.mini-confirm__btn {
  padding: 9px 40px 9px 16px;
  border-radius: 10px;
  background: var(--yes-solid);
  color: var(--text-on-yes);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  box-shadow: inset -28px 0 0 var(--yes-strip), inset -32px 0 0 var(--yes-fold);
}

/* ==========================================================================
   Demo (shared with How it works)
   ========================================================================== */

.demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.demo__copy { display: grid; gap: 18px; justify-items: start; align-content: start; }
@media (min-width: 1080px) {
  .demo__copy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; align-items: end; }
  .demo__copy > .tag, .demo__copy > .h2 { grid-column: 1; }
  .demo__copy > p { grid-column: 2; }
  .demo__copy > .body { grid-row: 1 / span 2; align-self: end; }
}
.demo__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.demo__hint .icon { color: var(--text-primary); }
.demo .frame__body { min-height: 300px; }
.demo .tile-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .demo .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .demo .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile--live::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: calc(var(--r-tile) + 5px);
  border: 2px solid var(--yes-strip);
  pointer-events: none;
}
.inbox-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 176px;
  padding: 24px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-tile);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.inbox-empty[hidden] { display: none; }
.inbox-empty strong { color: var(--text-primary); font-size: 1.0625rem; }

/* ==========================================================================
   5. Proof
   ========================================================================== */

.proof {
  display: grid;
  border-top: 2px solid var(--text-primary);
}
@media (min-width: 860px) { .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.proof li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-subtle);
}
@media (min-width: 860px) {
  .proof li { padding: 36px 32px 8px 0; border-bottom: 0; }
  .proof li + li { padding-left: 32px; border-left: 1px solid var(--border-subtle); }
}
.proof__fig {
  font-size: clamp(3.5rem, 2.8rem + 2.6vw, 5.25rem);
  line-height: 0.9;
  font-weight: 800;
  font-stretch: 104%;
  white-space: nowrap;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.proof__fig small { font-size: 0.3em; letter-spacing: -0.01em; font-weight: 700; margin-left: 8px; font-stretch: 100%; }
.proof__label { font-family: var(--font-display); font-weight: 750; font-size: 1.125rem; }
.proof__note { font-size: 0.9375rem; color: var(--text-secondary); }

.runs-on { display: grid; gap: 20px; margin-top: clamp(56px, 7vw, 88px); }
.works-with { display: grid; gap: 12px; }
@media (min-width: 760px) { .works-with { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.works-with li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--r-tile);
  background: var(--surface-well);
  border: 1px solid var(--border-subtle);
}
.works-with strong { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 750; letter-spacing: -0.015em; }
.works-with span:not(.badge) { grid-column: 1 / -1; font-size: 0.9375rem; color: var(--text-secondary); }
.works-with li.soon { background: transparent; border-style: dashed; border-color: var(--border-strong); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge--today { background: color-mix(in srgb, var(--yes-solid) 13%, transparent); color: var(--text-yes); }
.badge--soon { background: var(--surface-sunken); color: var(--text-secondary); }
.soon-list { display: flex; flex-wrap: wrap; gap: 8px; }
.soon-list li {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px dashed var(--border-strong);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   6. Stakes and success
   ========================================================================== */

.stakes { display: grid; gap: 20px; }
@media (min-width: 900px) { .stakes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.slab--stakes { --r-slab: 20px; --strip-w: 64px; }
.slab--stakes .slab__face { display: grid; gap: 18px; align-content: start; padding: 28px 28px 32px; }
.stakes__title { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); font-weight: 800; font-stretch: 106%; letter-spacing: -0.025em; line-height: 1.05; }
.stakes__list { display: grid; gap: 12px; }
.stakes__list li { position: relative; padding-left: 22px; font-size: 1.0625rem; }
.stakes__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 7px;
  height: 18px;
  border-radius: 3px;
  background: var(--strip);
}

/* ==========================================================================
   7. Early access: the signup slab
   ========================================================================== */

.slab--signup { --strip-w: 72px; --fold-w: 10px; }
.signup {
  display: grid;
  gap: 40px;
  padding: clamp(24px, 5vw, 56px);
}
@media (min-width: 960px) {
  .signup { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
}
@media (max-width: 639px) { .slab--signup { --strip-w: 36px; } .slab--signup .tile__chip { display: none; } }
.signup__copy { display: grid; gap: 20px; justify-items: start; align-content: start; }
.signup__list { display: grid; gap: 10px; margin-top: 8px; color: var(--text-secondary); }
.signup__list li { display: flex; gap: 10px; align-items: flex-start; }
.signup__list .icon { margin-top: 3px; color: var(--text-yes); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9375rem; font-weight: 600; }
.field input, .field select {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-input);
  background: var(--surface-well);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--dur-fast) var(--ease-ui), background-color var(--dur-fast) var(--ease-ui);
}
.field select {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field input:hover, .field select:hover { border-color: var(--text-strong); }
.field input:focus-visible, .field select:focus-visible { outline-offset: 1px; border-color: var(--text-primary); background-color: var(--surface-card); }
.field input::placeholder { color: color-mix(in srgb, var(--text-secondary) 85%, transparent); }
.field [aria-invalid="true"] { border-color: var(--prio-high-text); }
.field__error { font-size: 0.875rem; font-weight: 550; color: var(--prio-high-text); }
.field__error:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.form__fine { font-size: 0.875rem; color: var(--text-secondary); }
.form__status {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--r-tile);
  background: var(--surface-well);
  border: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
}
.form__status[hidden] { display: none; }
.form__status .icon { margin-top: 2px; color: var(--text-yes); }
.form__status strong { display: block; }
.form-card {
  padding: clamp(20px, 4vw, 36px);
  border-radius: 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-tile);
}

/* ==========================================================================
   Inner page heads: a slab with the page's chip on the strip
   ========================================================================== */

.page-head { padding-block: clamp(20px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.slab--head { --strip-w: 88px; --fold-w: 12px; }
.slab--head .slab__face { display: grid; gap: 22px; justify-items: start; padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 64px); }
.slab--head .h1 { max-width: 16ch; }
.slab--head .slab__strip { padding-top: 28px; }
.slab--head .tile__chip { width: 44px; height: 44px; border-radius: 11px; }
.slab--head .tile__chip .icon { width: 22px; height: 22px; }
@media (max-width: 639px) {
  .slab--head { --strip-w: 44px; --fold-w: 8px; }
  .slab--head .tile__chip { width: 28px; height: 28px; border-radius: 8px; }
  .slab--head .tile__chip .icon { width: 16px; height: 16px; }
}

/* How it works page */
.flow { display: grid; gap: 16px; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow li {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
  border-radius: 16px;
  background: var(--surface-well);
  border: 1px solid var(--border-subtle);
}
.flow__head { display: flex; align-items: center; gap: 12px; }
.flow__head .chip {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--chip-surface);
  color: var(--chip-text);
}
.flow__head .chip .icon { width: 18px; height: 18px; }
.flow li p { font-size: 1rem; color: var(--text-secondary); }
@media (min-width: 760px) {
  .flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 39px;
    right: -13px;
    z-index: 1;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--border-strong);
    border-right: 2px solid var(--border-strong);
    transform: rotate(45deg);
  }
}

.pipeline { display: flex; flex-wrap: wrap; gap: 10px 6px; align-items: center; }
.pipeline li { display: inline-flex; align-items: center; gap: 6px; }
.pipeline span {
  padding: 8px 14px;
  border-radius: var(--r-tag);
  background: var(--surface-well);
  border: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
  font-weight: 550;
  white-space: nowrap;
}
.pipeline .you span { background: var(--yes-solid); border-color: var(--yes-solid); color: var(--text-on-yes); font-weight: 700; }
.pipeline .icon { width: 16px; height: 16px; color: var(--text-secondary); }

.team {
  display: grid;
  gap: 1px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.team li { display: grid; gap: 4px; align-content: start; padding: 20px; background: var(--surface-card); }
.team strong { font-family: var(--font-display); font-weight: 750; }
.team span { font-size: 0.9375rem; color: var(--text-secondary); }
.team .lead { background: var(--brand-solid); color: var(--text-on-brand); }
.team .lead span { color: var(--text-on-brand-secondary); }

.two-col { display: grid; gap: 40px; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; } }

.ledger { display: grid; border-top: 1px solid var(--border-strong); }
.ledger li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding-block: 22px;
  border-bottom: 1px solid var(--border-subtle);
}
.ledger .chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-sunken);
}
.ledger h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 750; }
.ledger p { margin-top: 4px; font-size: 1rem; color: var(--text-secondary); }

/* ==========================================================================
   Dialogs (demo popup and logbook). The head carries the finding's strip,
   and the close button sits on it where the icon chip would be.
   ========================================================================== */

.dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: min(88dvh, 860px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-dialog);
  overflow: hidden;
}
.dialog::backdrop { background: var(--scrim); }
.dialog[open] { display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) {
  .dialog[open] { animation: pop-in var(--dur-reveal) var(--ease-enter); }
  .dialog[open]::backdrop { animation: fade-in var(--dur-base) var(--ease-ui); }
}
@keyframes pop-in { from { opacity: 0; transform: scale(0.97) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.dialog__head {
  --strip-w: 64px;
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px calc(var(--strip-w) + 28px) 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: inset calc(var(--strip-w) * -1) 0 0 var(--prio-high-strip), inset calc(var(--strip-w) * -1 - 8px) 0 0 var(--prio-high-fold);
}
.dialog__head--plain { padding-right: 76px; box-shadow: none; }
.dialog__title { font-size: 1.5rem; line-height: 1.12; font-weight: 800; font-stretch: 102%; letter-spacing: -0.02em; }
.dialog__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.prio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--prio-high-strip) 16%, transparent);
  color: var(--prio-high-text);
}
.dialog__close {
  position: absolute;
  top: 16px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--brand-solid);
  color: var(--text-on-brand);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-ui);
}
.dialog__close:hover { background: var(--brand-raised-2); }
.dialog__head--plain .dialog__close { right: 20px; background: var(--surface-well); color: var(--text-primary); border: 1px solid var(--border-subtle); }
.dialog__body { display: grid; gap: 20px; padding: 20px 24px; overflow-y: auto; }
.dialog__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-well);
}
.dialog__foot .btn--primary { margin-right: auto; }
@media (max-width: 559px) {
  .dialog__foot { gap: 8px; padding-block: 12px 14px; }
  .dialog__foot .btn { flex: 1 1 100%; min-height: 44px; font-size: 0.9375rem; }
  .dialog__foot .btn:not(.btn--primary) { padding-block: 8px; }
  .dialog__foot .btn--primary { justify-content: space-between; }
  .dialog__foot .btn--quiet { flex-basis: auto; }
  .dialog__head { --strip-w: 52px; padding-inline: 18px calc(var(--strip-w) + 20px); }
  .dialog__close { right: 6px; }
  .dialog__body, .dialog__foot { padding-inline: 18px; }
}

.why { font-size: 0.9375rem; color: var(--text-secondary); }
.why strong { color: var(--text-primary); font-weight: 650; }

.records { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.records caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.records th {
  padding: 8px 10px 8px 0;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-strong);
}
.records td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.records td:last-child, .records th:last-child { padding-right: 0; text-align: right; }
.records .empty { color: var(--text-secondary); }
@media (max-width: 479px) { .records .col-current { display: none; } }

.guard {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--r-tile);
  background: var(--surface-well);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.guard li { display: flex; gap: 10px; align-items: flex-start; }
.guard .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--text-primary); }

.progress { display: grid; gap: 12px; }
.progress[hidden] { display: none; }
.progress__bar { height: 8px; border-radius: var(--r-pill); background: var(--surface-sunken); overflow: hidden; }
.progress__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--yes-strip);
  transition: width var(--dur-base) linear;
}
.progress__log { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.progress__log li { display: flex; gap: 10px; align-items: center; }
.progress__log .icon { width: 16px; height: 16px; color: var(--text-yes); }

.audit {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--r-tile);
  border: 1px solid var(--border-strong);
  background: var(--surface-well);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.audit strong { font-size: 0.9375rem; }
.audit code { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-secondary); overflow-wrap: anywhere; }

.notice {
  padding: 14px 16px;
  border-radius: var(--r-tile);
  background: var(--surface-well);
  border: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
}
.notice[hidden] { display: none; }

.log-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.log-item {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: var(--r-tile);
  border: 1px solid var(--border-subtle);
  background: var(--surface-well);
  font-size: 0.9375rem;
}
.log-item__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.log-item__top strong { font-weight: 700; }
.log-item p { color: var(--text-secondary); font-size: 0.875rem; }
.log-item .btn { justify-self: start; margin-top: 6px; }
.log-empty { color: var(--text-secondary); }

/* ==========================================================================
   Safety page
   ========================================================================== */

.control-list { display: grid; border-top: 2px solid var(--text-primary); }
.control {
  display: grid;
  gap: 16px 32px;
  padding-block: 32px;
  border-bottom: 1px solid var(--border-subtle);
}
@media (min-width: 900px) {
  .control { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 0.9fr); align-items: start; }
}
.control__chip {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--chip-surface);
  color: var(--chip-text);
}
.control__text { display: grid; gap: 8px; }
.control__text p { color: var(--text-secondary); max-width: 52ch; }
.control__ui {
  padding: 16px 30px 16px 16px;
  border-radius: var(--r-tile);
  background: var(--surface-well);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  box-shadow: inset -10px 0 0 var(--yes-strip), inset -14px 0 0 var(--yes-fold);
}
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ui-row + .ui-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.ui-strong { font-weight: 650; }
.ui-muted { color: var(--text-secondary); }
.ui-btn {
  padding: 6px 30px 6px 12px;
  border-radius: 8px;
  background: var(--yes-solid);
  color: var(--text-on-yes);
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: inset -20px 0 0 var(--yes-strip), inset -23px 0 0 var(--yes-fold);
}
.lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-sunken);
  font-size: 0.8125rem;
  font-weight: 600;
}
.lock-chip .icon { width: 14px; height: 14px; }

.faq { display: grid; border-top: 2px solid var(--text-primary); }
.faq details { border-bottom: 1px solid var(--border-subtle); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--dur-base) var(--ease-ui); color: var(--text-secondary); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 0 24px; max-width: 60ch; color: var(--text-secondary); }

/* ==========================================================================
   Pricing page
   ========================================================================== */

.price-card { --strip-w: 72px; }
.price-card .slab__face {
  display: grid;
  gap: 24px;
  justify-items: start;
  padding: clamp(24px, 4vw, 40px);
  background: var(--brand-solid);
  color: var(--text-on-brand);
}
.price-card .slab__face .body { color: var(--text-on-brand-secondary); }
.price-card__fig { font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.04em; line-height: 0.98; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { margin-top: 3px; color: var(--text-yes); }
.soon-col li { color: var(--text-secondary); }
.soon-col .icon { color: var(--text-secondary); }

/* ==========================================================================
   CTA slab (inner pages) and footer
   ========================================================================== */

.cta-slab { --strip-w: 72px; }
.cta-slab .slab__face {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
}
@media (min-width: 860px) { .cta-slab .slab__face { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 639px) { .cta-slab { --strip-w: 36px; } .cta-slab .tile__chip { display: none; } }
.cta-slab .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer {
  padding-block: 72px 40px;
  background: var(--brand-solid);
  color: var(--text-on-brand);
}
.site-footer__sign {
  display: grid;
  gap: 16px;
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border-on-brand);
}
.brand--big { gap: clamp(14px, 2vw, 24px); }
.brand--big .brand__mark { width: clamp(56px, 8vw, 104px); height: auto; }
.brand--big .brand__name { font-size: clamp(3rem, 1.4rem + 7vw, 7.5rem); font-stretch: 120%; letter-spacing: -0.04em; }
.site-footer__line { font-size: 1.125rem; color: var(--text-on-brand-secondary); }
.site-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; } }
.site-footer h2 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  font-stretch: 94%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-brand-secondary);
}
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a:not(.brand) { text-decoration: none; }
.site-footer a:not(.brand):hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__plain li { color: var(--text-on-brand-secondary); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-on-brand);
  font-size: 0.875rem;
  color: var(--text-on-brand-secondary);
}

/* ==========================================================================
   Motion. One load sequence (the hero), one reveal recipe (everything else).
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .load { animation: rise var(--dur-hero) var(--ease-enter) both; }
  .load[data-d="1"] { animation-delay: 80ms; }
  .load[data-d="2"] { animation-delay: 160ms; }
  .load[data-d="3"] { animation-delay: 240ms; }
  .load[data-d="4"] { animation-delay: 320ms; }
  /* the inbox tiles slide in from the strip side, in rank order */
  .station .tile.load { animation-name: from-strip; }
  .load[data-d="5"] { animation-delay: 360ms; }
  .load[data-d="6"] { animation-delay: 440ms; }
  .load[data-d="7"] { animation-delay: 520ms; }

  .js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--dur-reveal) var(--ease-enter), transform var(--dur-reveal) var(--ease-enter);
  }
  .js .reveal.is-in { opacity: 1; transform: none; }

  /* the deck: a pile slides out from under the page edge once, when its
     section starts to reveal; the stack under a top slab settles after the
     inbox tiles. One shot each, expressive register, no loops. */
  .js .section { --deck-o: 0; --deck-x: -48px; }
  .js .section:has(.reveal.is-in) { --deck-o: 1; --deck-x: 0px; }
  .section::before, .section::after {
    transition: opacity var(--dur-hero) var(--ease-enter), transform var(--dur-hero) var(--ease-enter);
  }
  .slab--hero::before, .slab--hero::after, .slab--head::before, .slab--head::after {
    animation: deck-settle var(--dur-hero) var(--ease-enter) 560ms both;
  }
  .slab--hero::after, .slab--head::after { animation-delay: 640ms; }
}
@keyframes deck-settle { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes from-strip { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* utility */
.mt-8 { margin-top: 8px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.stack { display: grid; gap: 16px; align-content: start; justify-items: start; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ==========================================================================
   Video tour: the video sits on the brand strip with its fold, like a tile
   ========================================================================== */

.tour { margin: 0; display: grid; gap: 16px; }
.tour__frame {
  padding-right: var(--strip-w);
  border-radius: var(--r-slab);
  background: var(--brand-strip);
  box-shadow: var(--shadow-lift);
}
.tour__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-slab);
  background: var(--brand-solid);
  box-shadow: var(--fold-w) 0 0 0 var(--brand-fold);
}
.tour__transcript { font-size: 0.9375rem; color: var(--text-secondary); }
.tour__transcript summary { cursor: pointer; font-weight: 600; color: var(--text-primary); width: fit-content; }
.tour__transcript ol { margin: 12px 0 8px; padding-left: 20px; display: grid; gap: 6px; max-width: 72ch; }

/* ==========================================================================
   AI enrichment page (enrichment.html)
   ========================================================================== */

/* Hero: the record that fills in, on the brand strip */
@media (min-width: 1040px) {
  .slab--enrich { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.rec-station { gap: 16px; }
.rec {
  container-type: inline-size;
  padding: 16px 18px 14px;
  border-radius: var(--r-tile);
  background: var(--tile-face);
  color: var(--text-primary);
  box-shadow: var(--shadow-tile);
}
.rec__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.rec__chip {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--chip-surface);
  color: var(--chip-text);
}
.rec__chip .icon { width: 18px; height: 18px; }
.rec__who { display: grid; min-width: 0; }
.rec__who strong { font-family: var(--font-display); font-size: 1.125rem; font-weight: 750; letter-spacing: -0.015em; line-height: 1.2; }
.rec__who span { font-size: 0.875rem; color: var(--text-secondary); overflow-wrap: anywhere; }

.rec__cols, .rec__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 16px minmax(0, 0.8fr) 40px;
  align-items: center;
  gap: 0 10px;
}
.rec__cols { padding: 10px 0 4px; font-size: 0.75rem; font-weight: 600; color: var(--text-secondary); }
.rec__cols span:last-child { grid-column: 4 / span 2; }
.rec__rows { display: grid; margin: 0; }
.rec__row { padding-block: 10px; border-top: 1px solid var(--border-subtle); }
.rec__row:first-child { border-top: 0; }
.rec__field { font-size: 0.875rem; color: var(--text-secondary); }
.rec__was {
  justify-self: start;
  padding: 1px 8px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-pill);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-decoration: line-through;
  text-decoration-color: var(--text-secondary);
}
.rec__arrow { width: 16px; height: 16px; color: var(--text-secondary); }
.rec__now {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  font-stretch: 104%;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.rec__conf { justify-self: end; }
.rec__row--low {
  margin-inline: -10px;
  padding-inline: 10px;
  border-radius: 10px;
  border-top-color: transparent;
  background: color-mix(in srgb, var(--prio-medium-strip) 14%, var(--tile-face));
}
.rec__why { grid-column: 1 / -1; margin-top: 4px; font-size: 0.8125rem; color: var(--text-secondary); }
.rec__foot {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.rec__when { display: inline-grid; }
.rec__when > * { grid-area: 1 / 1; }
.rec__never { visibility: hidden; opacity: 0; }
.rec__today { color: var(--text-primary); font-weight: 700; }

@container (max-width: 380px) {
  .rec__cols { display: none; }
  .rec__row { grid-template-columns: auto 16px minmax(0, 1fr) auto; row-gap: 4px; }
  .rec__field { grid-column: 1 / -1; font-size: 0.8125rem; }
}

/* The problem: three short points, each with a priority nudge */
.problem { display: grid; border-top: 2px solid var(--text-primary); }
.problem li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 24px 0 26px 26px;
  border-bottom: 1px solid var(--border-subtle);
}
.problem li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 31px;
  width: 7px;
  height: 20px;
  border-radius: 3px;
  background: var(--prio-high-strip);
}
.problem__lead {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  line-height: 1.1;
  font-weight: 800;
  font-stretch: 104%;
  letter-spacing: -0.02em;
}
.problem p { max-width: 48ch; color: var(--text-secondary); }
.problem__code {
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface-sunken);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.875em;
  white-space: nowrap;
}

/* What it fills: field tiles whose content sets the height */
.field-grid { display: grid; gap: 24px 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field-grid > li { display: grid; }
.tile--flow { display: grid; grid-template-columns: minmax(0, 1fr) var(--strip-w); min-height: 0; }
.tile--flow .tile__card { position: relative; inset: auto; gap: 12px; padding: 20px 22px; }
.ftile__value {
  margin-top: 6px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem);
  line-height: 1;
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.04em;
}
.ftile__or { font-size: 0.4em; font-weight: 600; letter-spacing: 0; color: var(--text-secondary); vertical-align: middle; }
.ftile__rule { max-width: 44ch; font-size: 1.0625rem; line-height: 1.45; }
.ftile__values {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.fifth {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 760px;
  margin-top: 32px;
  padding: 16px 20px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-tile);
  background: var(--surface-card);
  font-size: 1rem;
  color: var(--text-secondary);
}
.fifth strong { color: var(--text-primary); }
.fifth .icon { margin-top: 3px; color: var(--text-primary); }

/* How a night works: vertical on phones, horizontal from 1024px */
.night { display: grid; }
.night li {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 32px;
}
.night li:last-child { padding-bottom: 0; }
.night li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 58px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--border-strong);
}
.night__n {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--chip-surface);
  color: var(--chip-text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.night__text { display: grid; gap: 6px; align-content: start; justify-items: start; padding-top: 4px; }
.night h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 750; letter-spacing: -0.015em; line-height: 1.15; }
.night p { max-width: 40ch; font-size: 1rem; color: var(--text-secondary); }
.night__out {
  margin-top: 6px;
  padding: 3px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (min-width: 1024px) {
  .night { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
  .night li { grid-template-columns: minmax(0, 1fr); align-content: start; padding-bottom: 0; }
  .night li:not(:last-child)::before { left: 62px; right: -18px; top: 23px; bottom: auto; width: auto; height: 2px; }
}

/* The run report */
.report__frame .frame__body { padding-bottom: 22px; }
.runstats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 26px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-tile);
  background: var(--border-subtle);
  overflow: hidden;
}
@media (min-width: 768px) { .runstats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.runstats div { display: grid; gap: 4px; padding: 14px 18px 16px; background: var(--surface-card); }
.runstats dt { font-size: 0.875rem; color: var(--text-secondary); }
.runstats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  line-height: 1;
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.03em;
}
.report__cols { display: grid; gap: 28px; }
@media (min-width: 900px) { .report__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .report__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.report__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; font-size: inherit; }
.report__h:focus-visible { outline-offset: 4px; }
.report__count { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; }
.report__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tile--row { display: grid; grid-template-columns: minmax(0, 1fr) var(--strip-w); min-height: 0; }
.tile--row .tile__card { position: relative; inset: auto; gap: 4px; padding: 14px 16px 15px 18px; }
.rline__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.rline__who strong { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 750; letter-spacing: -0.01em; }
.rline__who span { font-size: 0.8125rem; color: var(--text-secondary); overflow-wrap: anywhere; }
.rline__what { display: block; font-size: 0.9375rem; font-weight: 650; }
.rline__what b { color: var(--p-text); font-weight: 750; }
.rline__why { display: block; font-size: 0.875rem; line-height: 1.4; color: var(--text-secondary); }
.rline__act { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 0.875rem; font-weight: 650; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--border-strong); }
button.tile:hover .rline__act { text-decoration-color: currentColor; }
.report__empty {
  padding: 18px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-tile);
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.report__list .tile:focus-visible { outline-offset: 4px; border-radius: var(--r-tile); }

/* the Correct popup: a low confidence head, value chips, the fix */
.dialog__head--medium {
  box-shadow: inset calc(var(--strip-w) * -1) 0 0 var(--prio-medium-strip), inset calc(var(--strip-w) * -1 - 8px) 0 0 var(--prio-medium-fold);
}
.prio--low { background: color-mix(in srgb, var(--prio-medium-strip) 14%, var(--surface-card)); color: var(--prio-medium-text); }
.pick { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pick legend { margin-bottom: 10px; padding: 0; font-size: 0.9375rem; font-weight: 650; }
.pick__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vpick { position: relative; display: inline-flex; }
.vpick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vpick span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface-card);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background-color var(--dur-fast) var(--ease-ui), border-color var(--dur-fast) var(--ease-ui);
}
.vpick:hover span { border-color: var(--text-primary); }
.vpick input:checked + span { background: var(--brand-solid); border-color: var(--brand-solid); color: var(--text-on-brand); }
.vpick input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.vpick input:disabled + span { opacity: 0.55; }
.vpick input:disabled { cursor: not-allowed; }
.fix-old.is-fixed { color: var(--text-secondary); text-decoration: line-through; }
.fix-new.is-fixed { color: var(--text-yes); }
.audit span { font-size: 0.875rem; color: var(--text-secondary); }

/* Control and safety: the write allowlist and the injection example */
.allow {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  padding: 18px 20px;
  border: 1px solid var(--border-on-brand);
  border-radius: var(--r-tile);
  background: var(--brand-raised);
}
.allow__head { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 750; }
.allow__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.allow__list li {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--text-on-brand);
  color: var(--brand-solid);
  font-size: 0.8125rem;
  font-weight: 650;
  white-space: nowrap;
}
.allow__rest { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-on-brand-secondary); }
@media (min-width: 640px) { .controls .controls__wide { grid-column: 1 / -1; } }
.controls .inject { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.inject__quote {
  padding: 6px 10px;
  border: 1px solid var(--border-on-brand);
  border-radius: 8px;
  background: var(--brand-raised);
  color: var(--text-on-brand);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}
.inject__verdict { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 650; color: var(--text-on-brand); }

/* Editable rules: the settings page mock */
.rules__frame .frame__body { display: grid; gap: 20px; padding-bottom: 20px; }
.settings .frame__meta { margin-bottom: 0; }
.settings__block { display: grid; gap: 8px; }
.settings__h { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 750; letter-spacing: -0.005em; }
.vchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.vchips li {
  padding: 4px 11px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  background: var(--surface-card);
  font-size: 0.8125rem;
  font-weight: 600;
}
.vchips .vchips__more { border-style: dashed; border-color: var(--border-strong); background: transparent; color: var(--text-secondary); }
.settings__text {
  width: 100%;
  min-height: 112px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-input);
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 0.9375rem;
  line-height: 1.5;
  resize: vertical;
}
.settings__text:hover { border-color: var(--text-strong); }
.settings__text:focus-visible { outline-offset: 1px; border-color: var(--text-primary); }
.settings__p { font-size: 0.9375rem; color: var(--text-secondary); }
.examples { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.examples li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 9px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-card);
  font-size: 0.9375rem;
}
.examples b { margin-left: auto; font-weight: 700; }
.examples .is-draft {
  border-color: color-mix(in srgb, var(--prio-medium-strip) 55%, var(--surface-card));
  background: color-mix(in srgb, var(--prio-medium-strip) 12%, var(--surface-card));
}
.draft-chip {
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--prio-medium-strip);
  color: var(--text-on-yes);
  font-size: 0.75rem;
  font-weight: 700;
}
.settings__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}
.settings__status { display: grid; gap: 2px; flex: 1 1 180px; min-width: 0; }
.settings__version { font-family: var(--font-display); font-size: 1rem; font-weight: 750; letter-spacing: -0.01em; }
.settings__state { font-size: 0.875rem; color: var(--text-secondary); }
.ui-btn--real {
  border: 0;
  padding: 9px 36px 9px 16px;
  font-size: 0.9375rem;
  cursor: pointer;
  box-shadow: inset -24px 0 0 var(--yes-strip), inset -27px 0 0 var(--yes-fold);
  transition: background-color var(--dur-base) var(--ease-exit);
}
.ui-btn--real:hover { background: var(--yes-hover); transition-timing-function: var(--ease-ui); }
.ui-btn--real[disabled] { opacity: 0.5; cursor: not-allowed; }
.settings__guard { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--text-secondary); }

/* Proof notes and coming soon */
.proof-notes { display: grid; gap: 14px; margin: 40px 0 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .proof-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.proof-notes li { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; color: var(--text-secondary); }
.proof-notes strong { color: var(--text-primary); }
.proof-notes .icon { margin-top: 3px; color: var(--text-primary); }
.soon-grid { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .soon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.soon-grid li {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
  padding: 22px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-tile);
}
.soon-grid strong { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 750; letter-spacing: -0.015em; }
.soon-grid span:not(.badge) { font-size: 0.9375rem; color: var(--text-secondary); }

/* Hero load: the record slides in from the strip, then each empty field
   fills in, its confidence lands and the date flips to today. Expressive
   register, one shot. Without motion the base styles are the end state. */
@media (prefers-reduced-motion: no-preference) {
  .rec.load { animation-name: from-strip; }
  .rec__row:nth-child(1) { --row-d: 1000ms; }
  .rec__row:nth-child(2) { --row-d: 1120ms; }
  .rec__row:nth-child(3) { --row-d: 1240ms; }
  .rec__row:nth-child(4) { --row-d: 1360ms; }
  .rec__was { animation: was-out var(--dur-reveal) var(--ease-enter) var(--row-d) both; }
  .rec__arrow, .rec__now { animation: fill-in var(--dur-reveal) var(--ease-enter) var(--row-d) both; }
  .rec__conf, .rec__why { animation: rise var(--dur-reveal) var(--ease-enter) calc(var(--row-d) + 220ms) both; }
  .rec__row--low { animation: low-tint var(--dur-reveal) var(--ease-enter) var(--row-d) both; }
  .rec__never { animation: swap-out var(--dur-base) var(--ease-exit) 1720ms both; }
  .rec__today { animation: rise var(--dur-reveal) var(--ease-enter) 1800ms both; }
}
@keyframes was-out { from { color: var(--text-primary); text-decoration-color: transparent; } }
@keyframes fill-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes low-tint { from { background-color: transparent; } }
@keyframes swap-out { from { visibility: visible; opacity: 1; } to { visibility: hidden; opacity: 0; } }

/* ==========================================================================
   ICP analysis page (icp-analysis.html)
   Strip colours follow the trade off tag, a narrow extension of asset 3
   (BRAND.md 5): mint = Sweet spot (a segment the data says yes to),
   red = Churn trap and Fast but churns, yellow = the other trade offs,
   grey = Average. Outcome bars are navy only: solid = clear, hatched =
   low confidence, dashed outline = not enough data.
   ========================================================================== */

/* the selected pill in this page's product bands is not mint: mint only
   means yes here, so the current view is a light pill on the navy band */
.cat-pill--sel { background: var(--text-on-brand); color: var(--brand-solid); }
.status-chip .icon { width: 14px; height: 14px; }

@media (min-width: 1040px) {
  .slab--icp { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

/* Outcome bars: one grid, four rows, so the bars line up across rows.
   Each bar is a tiny SVG on a 40 to 160 scale with the 100 line at x 60. */
.ob {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 8px;
  min-width: 0;
  font-size: 0.8125rem;
  line-height: 1.2;
}
.ob__row { display: contents; }
.ob__k { color: var(--text-secondary); }
.ob__v { min-width: 2.2em; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text-primary); }
.ob__v--none { font-weight: 550; color: var(--text-secondary); white-space: nowrap; }
.ob__bar { display: block; width: 100%; height: auto; min-width: 48px; overflow: visible; }
.ob__track { fill: var(--surface-sunken); }
.ob__fill { fill: var(--brand-solid); }
.ob__fill--low { fill: url(#icp-hatch); stroke: var(--brand-solid); stroke-width: 0.9; }
.ob__fill--none { fill: var(--surface-card); stroke: var(--brand-solid); stroke-width: 0.9; stroke-dasharray: 2.6 1.8; }
.ob__mid { stroke: var(--text-primary); stroke-width: 1.4; }
.hatch-bg { fill: var(--surface-card); }
.hatch-line { stroke: var(--brand-solid); stroke-width: 1.5; }

/* The segment tile: tag, the score as the one focal number, four bars */
.tile--seg .tile__card { gap: 14px; padding: 16px 18px 16px 20px; container-type: inline-size; }
.seg__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 10px 18px;
}
.seg__body .tile__figure { margin-top: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
.seg__body .tile__unit { font-size: 0.8125rem; color: var(--text-secondary); }
.seg__num--none { font-size: clamp(2.25rem, 2rem + 1vw, 2.75rem); }
.tile--seg .tag { max-width: 100%; }
.seg__open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: var(--border-strong);
}
button.tile:hover .seg__open { text-decoration-color: currentColor; }
.station .tile--seg { min-height: 0; }
/* a tile inside the hero strip keeps its chip on its own strip */
.slab__strip .tile--seg > .tile__chip { position: absolute; }
/* narrow tiles (three per row, phones): the score sits above full width bars */
@container (max-width: 360px) {
  .seg__body { grid-template-columns: minmax(0, 1fr); }
  .seg__body .tile__figure { flex-direction: row; align-items: baseline; gap: 8px; }
}

/* Confidence chips: the same three marks as the bars, plus a word */
.conf-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 650;
  white-space: nowrap;
}
.conf-chip::before {
  content: "";
  flex: none;
  width: 18px;
  height: 9px;
  border-radius: 2px;
  background: var(--brand-solid);
}
.conf-chip--low::before {
  border: 1px solid var(--brand-solid);
  background: repeating-linear-gradient(135deg, var(--brand-solid) 0 1.5px, var(--surface-card) 1.5px 3.5px);
}
.conf-chip--none { color: var(--text-secondary); }
.conf-chip--none::before { border: 1.5px dashed var(--brand-solid); background: var(--surface-card); }

/* 3. The four outcomes: sliders on the left, the live tile and the maths right */
.mix { display: grid; gap: 40px; }
@media (min-width: 1000px) {
  .mix { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
}
.mix__controls {
  display: grid;
  gap: 6px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-tile);
}
.mix__seg { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.mix__seg strong { font-family: var(--font-display); font-size: 1.125rem; font-weight: 750; letter-spacing: -0.01em; }
.mix__seg span { font-size: 0.875rem; color: var(--text-secondary); }
.slider { display: grid; gap: 2px; padding-block: 12px; border-top: 1px solid var(--border-subtle); }
.slider__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.slider label { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 750; letter-spacing: -0.01em; }
.slider__hint { display: block; font-family: var(--font-body); font-size: 0.875rem; font-weight: 400; letter-spacing: 0; color: var(--text-secondary); }
.slider output {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 104%;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 2px 0 0;
  background: transparent;
  cursor: pointer;
}
.slider input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, transparent calc(50% - 1px), var(--text-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), var(--surface-sunken);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}
.slider input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, transparent calc(50% - 1px), var(--text-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)), var(--surface-sunken);
}
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border: 3px solid var(--surface-card);
  border-radius: 50%;
  background: var(--brand-solid);
  box-shadow: 0 0 0 1px var(--border-strong), 0 2px 6px rgba(18, 28, 61, 0.25);
}
.slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--surface-card);
  border-radius: 50%;
  background: var(--brand-solid);
  box-shadow: 0 0 0 1px var(--border-strong);
}
.slider input[type="range"]:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; border-radius: 8px; }
.slider__scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.mix__presets { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }

.mix__out { display: grid; gap: 24px; align-content: start; }
@media (min-width: 1000px) { .mix__out { position: sticky; top: 104px; } }
.mix__tile .tile__card { gap: 16px; padding: 20px 22px 20px 24px; }
.mix__tile .tile__num { font-size: clamp(3.5rem, 2.8rem + 2.4vw, 5rem); }
.mix__tile .ob { font-size: 0.875rem; gap: 8px 10px; }
.mix__tile, .mix__tile .tile__card, .mix__tile .tag::before, .mix__tile .tile__num {
  transition: background-color var(--dur-base) var(--ease-ui), box-shadow var(--dur-base) var(--ease-ui), color var(--dur-base) var(--ease-ui);
}
.maths {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border-radius: var(--r-tile);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
}
.maths__h { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 750; letter-spacing: -0.01em; }
.maths ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: m; }
.maths li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 0.9375rem; color: var(--text-secondary); counter-increment: m; }
.maths li::before {
  content: counter(m);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--surface-sunken);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
}
.maths b { color: var(--text-primary); font-weight: 700; font-variant-numeric: tabular-nums; }
.maths__vs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 4px 0 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
}
.maths__vs div { display: grid; gap: 2px; padding: 10px 14px; background: var(--surface-well); }
.maths__vs dt { font-size: 0.8125rem; color: var(--text-secondary); }
.maths__vs dd { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.maths__vs .is-real { background: var(--surface-card); }
.maths__vs .is-real dd { color: var(--text-primary); }
.maths__vs div:not(.is-real) dd { color: var(--text-secondary); }

/* 4. How it works: five steps, each with a small product mock */
.isteps { display: grid; gap: 64px; }
.isteps > li { display: grid; gap: 20px 32px; }
@media (min-width: 1000px) {
  .isteps > li { grid-template-columns: 56px minmax(0, 0.78fr) minmax(0, 1.22fr); align-items: start; }
}
@media (max-width: 999px) {
  .isteps > li { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; }
  .isteps__mock { grid-column: 1 / -1; }
}
.isteps__n {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--chip-surface);
  color: var(--chip-text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.isteps__text { display: grid; gap: 8px; align-content: start; justify-items: start; }
.isteps__text h3 { font-family: var(--font-display); font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.isteps__text p { max-width: 44ch; color: var(--text-secondary); }
.isteps__mock { min-width: 0; }

/* a small product card used by the mocks */
.mock {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-tile);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-tile);
}
.mock__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; font-size: 0.875rem; color: var(--text-secondary); }
.mock__top strong { color: var(--text-primary); font-weight: 650; }
.mock__bar { height: 6px; border-radius: var(--r-pill); background: var(--surface-sunken); overflow: hidden; }
.mock__bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand-solid); transition: width var(--dur-reveal) var(--ease-enter); }

/* step 1: the setup interview */
.iv__q { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
.iv__prop {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface-well);
  border: 1px solid var(--border-subtle);
}
.iv__label { font-size: 0.8125rem; font-weight: 650; color: var(--text-secondary); }
.iv__answer { font-family: var(--font-display); font-size: 1.125rem; font-weight: 750; }
.iv__evidence { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9375rem; }
.iv__evidence .icon, .iv__where .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--text-primary); flex: none; }
.iv__where { display: flex; gap: 8px; align-items: flex-start; font-size: 0.875rem; color: var(--text-secondary); }
.iv__act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.iv__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 0.875rem; color: var(--text-secondary); }
.iv__pick select {
  min-height: 40px;
  padding: 6px 34px 6px 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-input);
  background-color: var(--surface-card);
  color: var(--text-primary);
  font-size: 0.875rem;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-secondary) 50%),
    linear-gradient(135deg, var(--text-secondary) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.iv__pick select:hover { border-color: var(--text-strong); }
.iv__status { display: flex; gap: 8px; align-items: flex-start; min-height: 1.5em; font-size: 0.9375rem; color: var(--text-secondary); }
.iv__status .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--text-yes); flex: none; }
.iv__status strong { color: var(--text-primary); }
.iv__v1 { display: flex; gap: 8px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--border-subtle); font-size: 0.875rem; color: var(--text-secondary); }
.iv__v1 .icon { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--text-primary); }

/* step 2: one click to run */
.cuts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cuts li {
  padding: 4px 11px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  background: var(--surface-well);
  font-size: 0.8125rem;
  font-weight: 600;
}
.cuts .cuts__any { border-style: dashed; border-color: var(--border-strong); background: transparent; }
.runlog { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.runlog li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; }
.runlog .icon { width: 16px; height: 16px; align-self: center; color: var(--text-primary); }
.runlog b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.runlog .is-wait { color: var(--text-secondary); }
.runlog .is-wait b { color: var(--text-secondary); font-weight: 550; }
.run__act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.run__state { font-size: 0.875rem; color: var(--text-secondary); }

/* step 4: the 2x2 map. Plot on the left, legend on the right; the legend
   stacks below the plot on phones. Quadrant names sit in the four corners. */
.map { display: grid; gap: 24px; }
@media (min-width: 640px) { .map { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
@media (min-width: 1000px) and (max-width: 1199px) { .map { grid-template-columns: minmax(0, 1fr); } }
.map__fig { display: grid; gap: 8px; margin: 0; min-width: 0; }
.map__frame { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; }
.map__y {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text-secondary);
  white-space: nowrap;
}
.map__y .icon { width: 14px; height: 14px; transform: rotate(90deg); }
.map__x { display: flex; align-items: center; justify-content: center; gap: 6px; padding-left: 28px; font-size: 0.8125rem; font-weight: 650; color: var(--text-secondary); }
.map__x .icon { width: 14px; height: 14px; }
.map__plot {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-tile);
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__core { fill: var(--surface-well); }
.map__axis { stroke: var(--text-primary); stroke-width: 1.5; }
.map__dot { fill: var(--brand-solid); stroke: var(--surface-card); stroke-width: 2; }
.map__dot--low { fill: var(--surface-card); stroke: var(--brand-solid); stroke-width: 2.5; }
.map__num { fill: var(--text-on-brand); font-family: var(--font-display); font-size: 15px; font-weight: 800; }
.map__num--low { fill: var(--text-primary); }
.map__q {
  position: absolute;
  padding: 3px 9px;
  border-radius: var(--r-tag);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 750;
  line-height: 1.3;
  white-space: nowrap;
}
.map__q--tl { top: 8px; left: 8px; }
.map__q--tr { top: 8px; right: 8px; background: var(--brand-solid); border-color: var(--brand-solid); color: var(--text-on-brand); }
.map__q--bl { bottom: 8px; left: 8px; }
.map__q--br { bottom: 8px; right: 8px; }
.map__keys { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-left: 28px; font-size: 0.8125rem; color: var(--text-secondary); }
.map__keys span { display: inline-flex; align-items: center; gap: 6px; }
.map__keys i { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-solid); }
.map__keys i.is-low { background: var(--surface-card); box-shadow: inset 0 0 0 2px var(--brand-solid); }
.map__keys i.is-big { width: 18px; height: 18px; }

.legend { display: grid; gap: 10px; align-content: start; min-width: 0; }
.legend__h { font-family: var(--font-display); font-size: 1rem; font-weight: 750; }
.legend ol { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.legend__btn {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 10px;
  width: 100%;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 0.875rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-ui);
}
.legend__btn:hover { border-color: var(--text-primary); }
.legend__n {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-solid);
  color: var(--text-on-brand);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
}
.legend__n.is-low { background: var(--surface-card); color: var(--text-primary); box-shadow: inset 0 0 0 2px var(--brand-solid); }
.legend__name { font-weight: 700; }
.legend__q { grid-column: 2; font-size: 0.8125rem; color: var(--text-secondary); }
.legend__score { grid-row: 1 / span 2; grid-column: 3; font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.legend__out { font-size: 0.8125rem; color: var(--text-secondary); }

/* step 5: the drift alert */
.drift__fig { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.drift__from { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--text-secondary); text-decoration: line-through; text-decoration-thickness: 2px; font-variant-numeric: tabular-nums; }
.drift__arrow { width: 20px; height: 20px; color: var(--text-secondary); }
.drift__what { font-size: 0.9375rem; font-weight: 600; }
.drift__note { display: flex; gap: 8px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--border-subtle); font-size: 0.875rem; color: var(--text-secondary); }
.drift__note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--text-primary); flex: none; }

/* 5. Evidence: the segments view */
.seg-grid { display: grid; gap: 18px 22px; margin: 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .seg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .seg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.seg-grid > li { display: grid; }
.billing-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; font-size: 0.875rem; color: var(--text-secondary); }
.billing-note .icon { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--text-primary); }
.segs__frame .frame__body { padding-bottom: 22px; }

/* the evidence popup: the head carries the segment's strip */
.dialog__head--seg {
  box-shadow: inset calc(var(--strip-w) * -1) 0 0 var(--strip), inset calc(var(--strip-w) * -1 - 8px) 0 0 var(--fold);
}
.dialog__head--seg .tag { --nudge: var(--strip); }
.prio--seg { background: color-mix(in srgb, var(--strip) 10%, var(--surface-card)); color: var(--p-text); }
.ev { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.ev caption { padding-bottom: 8px; text-align: left; font-weight: 700; }
.ev th, .ev td { padding: 10px 12px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-subtle); }
.ev thead th { padding-block: 6px 8px; font-size: 0.8125rem; font-weight: 650; color: var(--text-secondary); border-bottom-color: var(--border-strong); }
.ev th:last-child, .ev td:last-child { padding-right: 0; }
.ev tbody th { font-weight: 700; }
.ev__sub { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--text-secondary); }
.ev__val { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ev__idx { margin-left: 6px; font-size: 0.8125rem; font-weight: 650; color: var(--text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev__n { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.ev__score { padding: 12px 14px; border-radius: 10px; background: var(--surface-well); border: 1px solid var(--border-subtle); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.ev__score b { font-family: var(--font-display); font-weight: 800; }
.deals { border-top: 1px solid var(--border-strong); }
.deals summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.deals summary::-webkit-details-marker { display: none; }
.deals summary .icon { color: var(--text-secondary); transition: transform var(--dur-base) var(--ease-ui); }
.deals[open] summary .icon { transform: rotate(180deg); }
.deals__list { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.deals__list li {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-well);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}
.deals__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.deals__who strong { font-weight: 700; font-size: 0.9375rem; }
.deals__who span { color: var(--text-secondary); overflow-wrap: anywhere; }
.deals__facts { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.deals__more { font-size: 0.875rem; color: var(--text-secondary); }
.dialog__foot--ev { align-items: center; justify-content: space-between; }
.dialog__foot--ev .small { color: var(--text-secondary); }
@media (max-width: 559px) { .dialog__foot--ev .small { flex: 1 1 100%; } }

/* 6. Honesty built in: the key card on the navy band */
.honest__grid { display: grid; gap: 56px; }
@media (min-width: 1024px) { .honest__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 80px; align-items: start; } }
.honest__lead { display: grid; gap: 24px; justify-items: start; }
.key {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 460px;
  padding: 20px 22px;
  border-radius: var(--r-tile);
  background: var(--surface-card);
  color: var(--text-primary);
  box-shadow: var(--shadow-tile);
}
.key__h { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 750; }
.key .ob { font-size: 0.875rem; gap: 10px 12px; }
.key__shrink { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.key__shrink p { font-size: 0.875rem; color: var(--text-secondary); }
.ob__fill--raw { fill: none; stroke: var(--prio-low-fold); stroke-width: 1; stroke-dasharray: 1.6 1.6; }
.guards { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.controls .guards li { display: flex; gap: 10px; align-items: flex-start; padding: 0; border: 0; font-size: 0.9375rem; color: var(--text-on-brand-secondary); }
.guards .icon { width: 16px; height: 16px; margin-top: 3px; flex: none; color: var(--text-on-brand); }

/* 7. You stay in charge: the versions mock */
.versions__frame .frame__body { display: grid; gap: 16px; padding-bottom: 20px; }
.vlist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.vrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
}
.vrow strong { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 750; letter-spacing: -0.01em; }
.vrow p { grid-column: 1 / -1; font-size: 0.875rem; color: var(--text-secondary); }
.vrow--draft { border-style: dashed; border-color: var(--border-strong); }
.vchip { align-self: start; padding: 2px 10px; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.vchip--live { background: var(--brand-solid); color: var(--text-on-brand); }
.vchip--draft { background: color-mix(in srgb, var(--prio-medium-strip) 22%, var(--surface-card)); color: var(--prio-medium-text); }
.vchip--kept { background: var(--surface-sunken); color: var(--text-secondary); }
.whatif { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.whatif caption { padding-bottom: 6px; text-align: left; font-family: var(--font-display); font-size: 0.9375rem; font-weight: 750; }
.whatif th, .whatif td { padding: 7px 10px 7px 0; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.whatif thead th { font-size: 0.8125rem; font-weight: 650; color: var(--text-secondary); border-bottom-color: var(--border-strong); }
.whatif td:last-child, .whatif th:last-child { padding-right: 0; text-align: right; }
.whatif tbody th { font-weight: 500; }
.whatif td { font-weight: 650; }

/* Hero load: the three segment tiles slide in from the strip, in order */
@media (prefers-reduced-motion: no-preference) {
  .station .tile--seg.load { animation-name: from-strip; }
}

/* the charge list and word figures in the pilot proof */
.icp-list { display: grid; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.icp-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-strong); }
.icp-list .icon { margin-top: 3px; color: var(--text-primary); }
.proof__fig--word { font-size: clamp(2.5rem, 1.6rem + 2.4vw, 4.25rem); letter-spacing: -0.04em; }
.soon-grid .link { font-size: 0.9375rem; }
/* the home hub band: the ICP pill joins only where the band has room */
@media (max-width: 1023px) { .hub__band .cat-pill--wide { display: none; } }
/* a disabled control in the versions mock stays legible: no fade, a quiet border */
.versions__frame .btn[disabled] { opacity: 1; --btn-ink: var(--text-secondary); --btn-line: var(--border-subtle); }
/* the evidence table on phones: fixed columns, words may wrap */
@media (max-width: 559px) {
  .ev { table-layout: fixed; font-size: 0.875rem; }
  .ev thead th:nth-child(1) { width: 30%; }
  .ev thead th:nth-child(3) { width: 34%; }
  .ev th, .ev td { padding-right: 8px; overflow-wrap: anywhere; }
  .ev__val { font-size: 0.9375rem; }
  .ev__idx { display: block; margin-left: 0; }
  .ev .conf-chip { white-space: normal; align-items: flex-start; }
  .ev .conf-chip::before { margin-top: 4px; }
}

/* ==========================================================================
   Home (v3): how it works on the page, the three jobs, the safety exception
   ========================================================================== */

/* how it works: the build flow as one compact line, then the film */
.build {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: clamp(32px, 4vw, 48px);
}
.build__label { font-family: var(--font-display); font-weight: 750; font-size: 1rem; }
.build + .tour { margin-top: clamp(40px, 6vw, 64px); }
.tour__foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; }
.tour__title { font-size: 0.9375rem; color: var(--text-secondary); }
.tour__title strong { color: var(--text-primary); }
.tour__foot .tour__transcript { flex: 1 1 100%; }

/* what it does: two job tiles, then the ICP highlight */
.jobs { display: grid; gap: 20px; margin-bottom: clamp(32px, 4vw, 48px); }
@media (min-width: 760px) { .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.job .tile__card { gap: 14px; padding: 22px 24px 24px; }
.job .tile__figure { margin-top: 6px; }
.job__lines { display: grid; gap: 4px; color: var(--text-secondary); font-size: 1rem; max-width: 46ch; }
.job__link { margin-top: auto; padding-top: 6px; }

.slab--feature {
  --fold-w: 14px;
  grid-template-columns: minmax(0, 1fr);
  box-shadow: var(--shadow-lift);
}
.icp-feature__title { max-width: 18ch; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
@media (min-width: 1040px) {
  .slab--feature { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
a.tile--seg { text-decoration: none; color: inherit; }
a.tile--seg:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); transition-timing-function: var(--ease-ui); }
a.tile--seg:focus-visible { outline-offset: 4px; border-radius: var(--r-tile); }
@media (prefers-reduced-motion: reduce) { a.tile--seg:hover { transform: none; } }

/* safety: the honest exception, under the four controls */
.safety__exception {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid var(--border-on-brand);
  font-size: 0.9375rem;
  color: var(--text-on-brand-secondary);
}
.safety__exception .icon { justify-self: center; margin-top: 2px; color: var(--text-on-brand); }
.safety__exception strong { color: var(--text-on-brand); }
.safety__exception + .safety__more { margin-top: 28px; }

/* early access: pricing line under the list */
.signup__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
