/* Kaleido beta landing
   Tokens come from branding/ (color, typo, logo tokens.md). Every value below the token block
   should point back to a token. Breakpoints: 960px (one column) and 640px (phone). */

/* ════════════════════════════════════════════════
   1. Tokens
   ════════════════════════════════════════════════ */
:root {
  color-scheme: light;

  /* Colour: brand */
  --ink: #111236;
  --ink-mid: #2E2D4E;
  --ink-soft: #6B6A82;          /* 4.7:1 on paper. Never on paper-deep (see --muted-deep) */
  --ink-ghost: #C8C6D8;
  --paper: #F5F1EC;
  --paper-deep: #E8E2D9;
  --paper-border: #C9C0B4;
  --white: #FFFFFF;
  --signal: #5B6FA6;            /* rules, borders, the mark's dot */
  --signal-light: #9DACD0;      /* signal on ink */
  --signal-dark: #2E3F72;

  /* Colour: roles (sections re-point these instead of overriding each rule) */
  --signal-text: #4C5C90;       /* signal for small text and links: 5.8:1 on paper, 5.0:1 on paper-deep */
  --muted-deep: #55546D;        /* muted text on paper-deep: 5.7:1 (ink-soft is only 4.1:1 there) */
  --text: var(--ink-mid);
  --heading: var(--ink);
  --muted: var(--ink-soft);
  --rule: var(--paper-border);
  --rule-strong: var(--ink);
  --focus: var(--signal);       /* 4.4:1 on paper; signal-light on ink */

  /* Signal is kept for what is live or actionable: links, "free now" tags, the readiness callout,
     the timeline's "Now", the mark's dot. Everything decorative (dashes, numbers, letters, icons) is ink or muted. */

  /* Type: families */
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: Georgia, 'Times New Roman', serif;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;

  /* Type: scale (v12, checklist pass). Every section opens with its name as a big h2; one statement line
     sits under it. All reading text is 18px; 16px is for UI only. No italic anywhere.
     Cormorant's x-height is ~80% of Georgia's, so 24px Cormorant reads like 19px Georgia. */
  --fs-micro: 12px;             /* mono: tags, names, table heads, legal */
  --fs-ui: 14px;                /* mono: price table numbers only */
  --fs-small: 16px;             /* UI only: buttons, nav, footer links, the closing note */
  --fs-body: 18px;              /* all reading text */
  --fs-h3: 24px;                /* Cormorant: h3, statements, summaries, voices, hero subline, letter, prices */
  --fs-h2: clamp(34px, 4.4vw, 48px);   /* every section's name */
  --fs-h1: clamp(44px, 6vw, 72px);     /* the hero only; 72px is the ceiling */
  --lh-h1: 1.05;
  --lh-tight: 1.1;              /* h2 */
  --lh-display: 1.25;           /* h3, statements */
  --lh-snug: 1.35;              /* voices */
  --lh-small: 1.6;
  --lh-body: 1.7;
  /* Tracking tightens as size grows; uppercase mono opens up */
  --track-h1: -0.025em;
  --track-h2: -0.02em;
  --track-h3: -0.01em;
  --track-caps: 0.1em;          /* every uppercase mono: tags, timeline, table heads */
  --track-ui: 0.04em;           /* mixed-case mono and the wordmark: names, handles */

  /* Space: 4px base, 8px rhythm. Vertical gaps use four steps only:
     16 (s4) inside a block · 24 (s5) heading to what it heads · 48 (s7) between blocks · 96 (s9) between sections.
     8 (s2) ties a small h3 to its own text. */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* Layout */
  --wrap: 1080px;
  --col: 640px;                 /* the centred reading column, about 72 characters */
  --band: 880px;                /* wide blocks, centred on the same axis: 120px past the column on each side */
  --gutter: var(--s5);
  --nav-h: 64px;

  /* Faces: pointy-top hexagons, by width */
  --face: 44px;                 /* a voice's face */
  --face-sm: 36px;              /* Cedric's check */
  --face-lg: 64px;              /* Linh's pull */

  /* Surfaces: flat. No shadows, no gradients, no blur. */
  --radius: 2px;
  --border: 1px;
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --hex-ratio: 1.1547;          /* pointy-top hexagon: height = width × 2/√3 */

  /* Targets */
  --target: 48px;               /* main buttons */
  --target-min: 44px;           /* anything else you can tap */

  /* Motion: state changes only. Nothing moves on its own. */
  --dur: 150ms;
  --dur-slow: 240ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ════════════════════════════════════════════════
   2. Base
   ════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--nav-h) + var(--s2)); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-variant-numeric: lining-nums;   /* Cormorant defaults to old-style figures: "1,000" read as "ı,ooo" */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
b { color: var(--heading); font-weight: 700; }
p, li { text-wrap: pretty; }   /* no one-word last lines */
.nowrap { white-space: nowrap; }   /* a short clause that must stay on one line */

/* Each character's colour, deepened toward ink when used as text (62% hue + ink keeps every name at 5:1 or more) */
[style*="--hue"] { --hue-text: color-mix(in srgb, var(--hue) 62%, var(--ink)); }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: var(--s4); top: calc(-1 * var(--s9)); z-index: 20; transition: top var(--dur) var(--ease); }
.skip:focus { top: var(--s2); }

/* ════════════════════════════════════════════════
   3. Type
   ════════════════════════════════════════════════ */
h1, h2, h3 { font-family: var(--display); color: var(--heading); font-weight: 500; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--track-h1); }
.phrase { display: inline; }   /* headings wrap by text-wrap: balance; deliberate one-per-line blocks set display: block */
h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--track-h2); margin-bottom: var(--s5); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-display); letter-spacing: var(--track-h3); margin-bottom: var(--s2); }
p + p { margin-top: var(--s4); }

/* A section's statement: the one line under its name. Display face at h3 size, in heading colour */
.statement {
  font-family: var(--display); font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-display);
  letter-spacing: var(--track-h3); color: var(--heading); text-wrap: balance; margin-bottom: var(--s5);
}
.statement + p { margin-top: 0; }

/* A section's lead: under the statement. One sentence per line, so a short pair never splits mid-clause */
.lead { max-width: var(--col); color: var(--text); }
.lead span { display: block; }

.inline-link {
  color: var(--signal-text);
  text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
.inline-link:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ════════════════════════════════════════════════
   4. Buttons
   primary (ink) · secondary (ghost) · light (on ink) · small (nav)
   States: hover · active · focus-visible. No disabled or loading state: every button is a link.
   ════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--target);
  padding: 0 var(--s5);
  gap: var(--s2);
  font-family: var(--body); font-size: var(--fs-small); line-height: 1.2;
  text-align: center; text-decoration: none;
  border: var(--border) solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
/* Hover: the button lifts 2px and its arrow steps forward. Flat: no shadow (brand). Press sets it back down. */
.btn::after { content: '→'; content: '→' / ''; display: inline-block; transition: transform var(--dur) var(--ease); }
.skip::after { content: none; }
.btn:hover { background: var(--signal-dark); border-color: var(--signal-dark); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover::after { transform: translateX(4px); }
}
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--white); border-color: var(--white); }
.btn-small { min-height: var(--target-min); padding: 0 var(--s4); white-space: nowrap; }

/* A call to action = one button + one line under it (a note, or the quieter second choice as a text link) */
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s5); margin-top: var(--s7); }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); }
.cta-note { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }   /* a sentence: reading size, never mono */
@media (min-width: 641px) { .cta-note .phrase { display: block; } }   /* one clause per line, so it never splits mid-clause */
.cta-alt { display: inline-flex; align-items: center; min-height: var(--target-min); font-size: var(--fs-small); line-height: var(--lh-small); }

/* ════════════════════════════════════════════════
   5. Nav
   ════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);   /* solid: a translucent bar turns grey over the ink section */
  border-bottom: var(--border) solid var(--rule);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: var(--nav-h); }
.wordmark { display: inline-flex; align-items: center; gap: var(--s3); min-height: var(--target-min); text-decoration: none; color: var(--ink); }
.wordmark span { font-family: var(--display); font-weight: 500; font-size: var(--fs-h3); letter-spacing: var(--track-ui); }
.mark { width: 28px; height: 28px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: var(--s5); font-family: var(--body); font-size: var(--fs-small); }
.nav-links a:not(.btn) {
  display: inline-flex; align-items: center; min-height: var(--target-min);
  text-decoration: none; color: var(--muted); transition: color var(--dur) var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ════════════════════════════════════════════════
   6. Faces: hexagon tokens tinted with the character's colour
   ════════════════════════════════════════════════ */
.face {
  --w: var(--face);
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: var(--w); height: calc(var(--w) * var(--hex-ratio));
  clip-path: var(--hex);
  background: var(--paper-deep);
  background: color-mix(in srgb, var(--hue) 14%, var(--paper));
  transition: background-color var(--dur-slow) var(--ease);
}
.face img { width: 86%; margin-top: 6%; }

/* ════════════════════════════════════════════════
   7. Hero
   ════════════════════════════════════════════════ */
/* Hero: a centred stack (copy, then the faces), mirroring the centred closing */
.hero { padding: var(--s9) 0; text-align: center; }
.hero-grid { display: flex; flex-direction: column; align-items: center; gap: var(--s7); }
.hero-copy { max-width: 820px; display: flex; flex-direction: column; align-items: center; }
.hero .cta-row { justify-content: center; }
.hero .cta { align-items: center; }
/* The subline is the answer to the h1's setup: upright, in heading colour, one phrase per line on wide screens */
.hero-sub { font-family: var(--display); font-size: var(--fs-h3); line-height: var(--lh-display); letter-spacing: var(--track-h3); margin-top: var(--s5); color: var(--heading); }
.hero-sub .phrase { display: block; }

/* The seven faces assemble one pointy-top hexagon: 1 centre + 6 around.
   --cx counts half-steps across, --cy counts rows. Everything scales from --w. */
.hive {
  --w: 96px; --g: 5px;
  --h: calc(var(--w) * var(--hex-ratio));
  --sx: calc((var(--w) + var(--g)) / 2);
  --sy: calc(var(--h) * 0.75 + var(--g) * 0.866);
  position: relative; margin: 0 auto;
  width: calc(var(--w) * 3 + var(--g) * 2);
  height: calc(var(--h) + var(--sy) * 2);
}
.hive li {
  position: absolute;
  left: calc(50% + var(--cx) * var(--sx) - var(--w) / 2);
  top: calc(50% + var(--cy) * var(--sy) - var(--h) / 2);
  width: var(--w); height: var(--h);
  clip-path: var(--hex);
  background: var(--paper-deep);
  background: color-mix(in srgb, var(--hue) 14%, var(--paper));
  transition: background-color var(--dur) var(--ease);
}
/* Each face links to where that person speaks on the page. The hexagon clips outlines, so focus deepens the tint and underlines the name. */
.hive a { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-decoration: none; outline: none; }
.hive li:has(a:hover), .hive li:has(a:focus-visible) { background: color-mix(in srgb, var(--hue) 32%, var(--paper)); }
.hive a:focus-visible .hive-name { text-decoration: underline 2px; text-underline-offset: 3px; }
.hive img { width: 76%; }
.hive-small li { display: flex; align-items: flex-end; justify-content: center; }
.hive-name {
  position: absolute; top: 16%;
  font-family: var(--mono); font-size: var(--fs-micro); line-height: 1; letter-spacing: var(--track-ui); color: var(--hue-text);
}

/* ════════════════════════════════════════════════
   8. Sections and the editorial grid
   ════════════════════════════════════════════════ */
.section { padding: var(--s9) 0; }   /* no rules between sections: whitespace and the two tinted sections do the separating */
.section-deep { background: var(--paper-deep); --muted: var(--muted-deep); }
.section-ink {
  background: var(--ink); color: var(--paper-deep); border-bottom: none;
  --heading: var(--paper); --muted: var(--ink-ghost); --rule: rgba(245, 241, 236, 0.18); --focus: var(--signal-light);
}

/* Layout (v12): one centred axis, three widths.
   .grid / .head = the reading column (640) · .band = wide blocks (880) · .bleed = the video (1280, edge to edge below).
   Text is left-aligned inside the column; only the hero and the closing are centred text.
   Every block after another sits 48px below it (the head's last margin collapses into this one). */
.grid, .head { max-width: calc(var(--col) + 2 * var(--gutter)); }
.band { max-width: calc(var(--band) + 2 * var(--gutter)); margin-top: var(--s7); }
.grid.band { max-width: calc(var(--col) + 2 * var(--gutter)); }   /* a column-width block that follows a band */

/* Voices: the seven characters react to the page, each one tied to the exact thing it answers.
   One family (hexagon face, name in their colour, upright Cormorant line), three placements:
     .voice-reply   straight under the line it answers, like a reply in a thread
     .voice-pull    breaks the text, for the one line a section is about
     .voice-check   marks up an object (a bracket under the price table)
   Set at --fs-h3 in Cormorant, which reads at about the body's size: a side comment, not a headline.
   The face, the coloured name and the hook mark it as a voice, so it needs no italic.
   Hovering a voice lights up the phrase it answers. Arriving from a hero face lights the phrase and the face. */
.voice { display: flex; flex-direction: column; gap: var(--s3); scroll-margin-top: calc(var(--nav-h) + var(--s10)); }   /* arrive with the phrase above in view */
.voice p { font-family: var(--display); font-size: var(--fs-h3); line-height: var(--lh-snug); color: var(--heading); }
.voice b { display: block; margin-bottom: var(--s1); font-family: var(--mono); font-weight: 400; font-size: var(--fs-micro); letter-spacing: var(--track-ui); color: var(--hue-text); }
.voice:target .face { background: color-mix(in srgb, var(--hue) 36%, var(--paper)); }
.section-ink .voice b { color: color-mix(in srgb, var(--hue) 70%, white); }
.section-ink .voice .face { background: color-mix(in srgb, var(--hue) 30%, var(--paper)); }

/* The phrase a voice answers, and the element that holds both */
.host { position: relative; }
.said {
  background: transparent; color: inherit;
  text-decoration: underline; text-decoration-color: var(--hue); text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-skip-ink: none;
  transition: background-color var(--dur) var(--ease);
}
.host:has(.voice:hover, .voice:target) .said { background: color-mix(in srgb, var(--hue) 22%, transparent); }

/* Reply: a hook from the line above to the face (└) */
.voice-reply { position: relative; flex-direction: row; align-items: flex-start; margin-top: var(--s4); padding-left: var(--s6); }
.voice-reply::before {
  content: ''; position: absolute; left: var(--s2); top: calc(-1 * var(--s3));
  width: var(--s4); height: calc(var(--s3) + var(--face) * var(--hex-ratio) / 2);
  border-left: var(--border) solid var(--hue); border-bottom: var(--border) solid var(--hue);
}

/* Pull: breaks the text, inside the column. Set apart by space and a short rule in her colour, not by size. */
.voice-pull {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: var(--s5);
  margin: var(--s7) 0; padding-top: var(--s5);
}
.voice-pull::before { content: ''; position: absolute; left: 0; top: 0; width: var(--s7); height: 1px; background: var(--hue); }
.voice-pull .face { --w: var(--face-lg); }
.voice-pull b { margin-bottom: var(--s2); }
.voice-pull p { line-height: var(--lh-display); font-weight: 500; }   /* 500: the hairlines hold up on low-DPI screens */
.voice-pull p span { display: block; }   /* one sentence per line */

/* Check: a bracket ( ⎵ upside down ) under the rows it checked. At voice size the check no longer fits
   beside the table in a plan card, so it sits under it at every width. */
.checked { display: grid; grid-template-columns: 1fr; gap: var(--s5); }
.voice-check {
  position: relative; flex-direction: row; align-items: flex-start; gap: var(--s3);
  padding-top: var(--s4); border-top: 2px solid var(--hue);
}
.voice-check::before, .voice-check::after { content: ''; position: absolute; top: calc(-1 * var(--s2) - 2px); width: 2px; height: var(--s2); background: var(--hue); }
.voice-check::before { left: 0; }
.voice-check::after { right: 0; }
.voice-check .face { --w: var(--face-sm); }
.voice-check p span { display: block; }   /* one sentence per line */

/* ════════════════════════════════════════════════
   9. Content patterns
   ════════════════════════════════════════════════ */
.plain-list li { position: relative; padding-left: var(--s5); }
.plain-list li + li { margin-top: var(--s4); }
.plain-list li::before { content: '—'; position: absolute; left: 0; top: 0; color: var(--muted); }
/* In the column, the dashes hang into the margin so the text keeps the column's edge (phones keep the indent) */
@media (min-width: 641px) {
  .main > .plain-list li { padding-left: 0; }
  .main > .plain-list li::before { left: calc(-1 * var(--s5)); }
}

/* 01: two matching couplets side by side, in the column (it stays part of 01, not a new section) */
.triad { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s7); }
.triad p { font-family: var(--display); font-size: var(--fs-h3); line-height: var(--lh-display); color: var(--heading); }
.triad p + p { margin-top: 0; }
.triad .phrase { display: block; }
.triad em { font-style: normal; font-weight: 500; }   /* upright: the weight carries the stress */

/* 02: the demo runs wide, up to 1280px and edge to edge below that. Paper-coloured video on paper,
   so a hairline above and below gives it an edge. No autoplay: nothing moves on its own. */
.bleed { max-width: 1280px; margin: var(--s7) auto 0; }
.bleed video {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  background: var(--paper-deep); border-block: var(--border) solid var(--rule);
}
@media (min-width: 1281px) { .bleed video { border: var(--border) solid var(--rule); border-radius: var(--radius); } }

/* 02: the four steps as cards in a strip. The first card starts on the band's left edge; the strip runs off
   the right edge of the screen. Drag it with a mouse (the page script), swipe it, or focus it and use the arrows. */
.strip {
  --edge: max(var(--gutter), calc((100vw - var(--band)) / 2));
  margin-top: var(--s7); padding: var(--s1) 0 var(--s2);   /* room for the focus ring */
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip:focus-visible { outline-offset: -2px; }
.strip.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
@media (hover: hover) and (pointer: fine) { .strip { cursor: grab; } }
.cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 78vw); gap: var(--s5);
  width: max-content; padding-inline: var(--edge);
}
.card { scroll-snap-align: start; padding-top: var(--s5); border-top: var(--border) solid var(--rule-strong); }
.card .step-letter { display: block; margin-bottom: var(--s4); font-family: var(--display); font-size: var(--fs-h2); line-height: 1; color: var(--heading); }
.card .tags { margin-top: var(--s4); }
/* D is not open yet: dashed rule, muted letter and title */
.card-later { border-top-style: dashed; border-top-color: var(--rule); }
.card-later .step-letter, .card-later h3 { color: var(--muted); }

/* Tags: "free now" is filled and solid; later dates are dashed and quiet (they differ by more than hue) */
.tags { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s4); }
.tag {
  font-family: var(--mono); font-size: var(--fs-micro); line-height: 1.4; letter-spacing: var(--track-caps); text-transform: uppercase;
  padding: var(--s1) var(--s3); border: var(--border) dashed var(--rule); border-radius: var(--radius); color: var(--muted);
}
.tag-now { border-style: solid; border-color: var(--signal); color: var(--signal-text); background: color-mix(in srgb, var(--signal) 10%, transparent); }

/* Before / while / after: three equal columns under one rule. Tom answers "While you write". */
.bwa { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--s6); border-top: var(--border) solid var(--rule); }
.bwa > div { position: relative; padding: var(--s5) 0; }
.bwa .tags { margin: 0 0 var(--s2); }
.bwa > .bwa-foot { grid-column: 2 / span 2; padding-top: 0; }   /* Tom hangs from "While you write", with room for one line */
.bwa .voice-reply { margin-top: 0; }

/* Refusals: three statements on the column's edge. No numbers: the section number is enough */
.refusals li + li { margin-top: var(--s5); }
.after-label { margin-top: var(--s7); }

/* Callouts: one border = one idea (common region). In 05 the readiness callout is the figure; scoring is the ground. */
.callout { margin: var(--s6) 0; padding: var(--s5) var(--s6); background: var(--white); border: var(--border) solid var(--paper-deep); border-radius: var(--radius); max-width: var(--col); }
.callout-quiet { background: transparent; border-color: var(--rule); }
.callout-signal { background: var(--white); border-color: var(--signal); }
.callout-signal h3 { color: var(--signal-text); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.pair .callout { margin: 0; max-width: none; }

/* Timeline: one line, three points (continuity). "Now" is where you are; the study plan, at the end, is the brightest. */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); border-top: var(--border) solid var(--rule); }
.timeline li { position: relative; padding-top: var(--s5); }
.timeline li::before {
  content: ''; position: absolute; left: 0; top: -6px; width: 10px; height: 12px;
  clip-path: var(--hex); background: color-mix(in srgb, var(--signal-light) 60%, var(--ink));   /* 3.5:1 on ink */
}
.timeline li:first-child::before { background: var(--signal-light); }
.timeline li:last-child::before { width: 16px; height: 18px; top: -9px; left: -3px; background: var(--paper); }
.when { display: block; margin-bottom: var(--s2); font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--signal-light); }
.timeline li:last-child .when { color: var(--paper); }
.timeline li:last-child b { display: block; margin-bottom: var(--s2); font-family: var(--display); font-size: var(--fs-h3); line-height: var(--lh-display); font-weight: 500; }
.seats { color: var(--heading); }   /* logistics, at reading size: it should not outrank the study plan */

/* Pricing: the price is the loudest thing in each card */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.plan { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5) var(--s6) var(--s6); border: var(--border) solid var(--rule); border-radius: var(--radius); }
.plan-now { border-color: var(--rule-strong); }
.plan .tags { margin-top: 0; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.price-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); }
.price-head h3 { margin: 0; }
.amount { font-family: var(--display); font-weight: 500; font-size: var(--fs-h3); line-height: var(--lh-display); color: var(--heading); text-align: right; }
.amount span { display: block; font-family: var(--mono); font-weight: 400; font-size: var(--fs-micro); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
.price-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: var(--fs-ui); color: var(--heading); font-variant-numeric: tabular-nums lining-nums; }
.price-table th { text-align: left; font-weight: 400; font-size: var(--fs-micro); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); padding: 0 0 var(--s3); border-bottom: var(--border) solid var(--rule-strong); }
.price-table td { padding: var(--s4) 0; border-bottom: var(--border) solid var(--rule); white-space: nowrap; }
.price-table th:not(:first-child), .price-table td:not(:first-child) { text-align: right; padding-left: var(--s4); }   /* numbers line up on the right */

/* FAQ: three small groups instead of one list of eight (chunking) */
.faq-group { margin-top: var(--s7); }
.faq-group > h3 { margin-bottom: var(--s4); }
details { border-top: var(--border) solid var(--rule); max-width: var(--col); }
details:last-of-type { border-bottom: var(--border) solid var(--rule); }
summary {
  cursor: pointer; list-style: none; position: relative;
  padding: var(--s5) var(--s7) var(--s5) 0;
  font-family: var(--display); font-size: var(--fs-h3); font-weight: 500; line-height: var(--lh-display); color: var(--heading);
  text-decoration: underline transparent 1px; text-underline-offset: 6px;
  transition: text-decoration-color var(--dur) var(--ease);
}
summary::-webkit-details-marker { display: none; }
summary:hover { text-decoration-color: var(--signal); }
details[open] summary { padding-bottom: var(--s3); }   /* the answer hangs from its question */
/* + / – drawn as two bars: no glyph in the accessible name, and it turns with the answer */
summary::before, summary::after {
  content: ''; position: absolute; right: var(--s2); top: 50%; width: 14px; height: 2px; margin-top: -1px;
  background: var(--muted); transition: transform var(--dur-slow) var(--ease), background-color var(--dur) var(--ease);
}
details[open] summary::before, details[open] summary::after { top: calc(var(--s5) + var(--fs-h3) * var(--lh-display) / 2); }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0deg); }
summary:hover::before, summary:hover::after { background: var(--ink); }
details p { padding: 0 var(--s7) var(--s5) 0; }   /* answers are reading text: body size */
/* Smooth opening where the browser supports it; instant everywhere else */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-slow) var(--ease), content-visibility var(--dur-slow) allow-discrete; }
  details[open]::details-content { block-size: auto; }
}

/* FAQ help: one quiet line after the questions */
.help { margin-top: var(--s7); }
.help { color: var(--muted); }
.help a { display: inline-flex; align-items: center; min-height: var(--target-min); }

/* Founder (09): a short letter, not a section. Set in Cormorant, the page's face for a person speaking
   (the characters speak in it too), at voice size, in text colour: small, personal, quiet.
   Weight 500 so the hairlines hold up over a few paragraphs on low-DPI phones. */
.letter > p, .letter .byline-name {
  font-family: var(--display); font-weight: 500;
  font-size: var(--fs-h3); line-height: var(--lh-small); color: var(--text);
}
.letter > p + p { margin-top: var(--s4); }
.letter .inline-link { text-underline-offset: 4px; }
/* The motto: a quiet epigraph above the letter, in heading colour so it stands apart */
.letter > .motto { color: var(--heading); margin-bottom: var(--s5); }
.motto span { display: block; }
.motto span:first-child { margin-bottom: var(--s1); }   /* claim + chiasmus reads as 1 + 2 */
/* Signed, not credited: the name in the letter's hand, the handle small beneath it */
.byline { margin-top: var(--s6); }
.byline p + p { margin-top: 0; }
.letter .byline-name { line-height: var(--lh-display); color: var(--heading); }
.byline-handle a {
  display: inline-flex; align-items: center; min-height: var(--s5);
  font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: var(--track-ui); color: var(--signal-text);
  text-underline-offset: 3px; transition: color var(--dur) var(--ease);
}
.byline-handle a:hover { color: var(--ink); }
.letter > .ps { margin-top: var(--s7); color: var(--muted); }   /* a P.S., in the same hand, a little fainter */
/* The photo: a small portrait at the top of the letter, like a print tucked into it */
.portrait { width: 128px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--s5); }

/* Closing: the page ends on the shape it opened with, a heading and one choice (closure) */
.closing { padding: var(--s9) 0; text-align: center; }
.hive-small { --w: 48px; --g: 3px; margin: 0 auto var(--s7); }
.closing h2 { margin: 0 auto var(--s5); }
.closing .statement { margin: 0; }
.closing .cta-row { justify-content: center; gap: var(--s4) var(--s5); }
.closing .btn { min-width: 240px; }
.closing .cta-note { margin-top: var(--s4); }

/* Footer: product links, then a legal row */
.footer { padding: var(--s7) 0 var(--s8); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s5); }
.footer-links, .legal-links { display: flex; flex-wrap: wrap; column-gap: var(--s5); }
.footer-links { font-size: var(--fs-small); }
.legal-links { font-family: var(--mono); font-size: var(--fs-micro); }
.footer-links a, .legal-links a { display: inline-flex; align-items: center; min-height: var(--target-min); text-decoration: none; color: var(--muted); transition: color var(--dur) var(--ease); }
.footer-links a:hover, .legal-links a:hover { color: var(--ink); }
.footer-legal { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s5); margin-top: var(--s4); padding-top: var(--s2); border-top: var(--border) solid var(--rule); }
.copyright { font-family: var(--mono); font-size: var(--fs-micro); color: var(--muted); }

/* ════════════════════════════════════════════════
   10. Responsive
   ════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .pair, .plans { grid-template-columns: 1fr; }
  /* Timeline: one continuous vertical line with the points on it */
  .timeline { grid-template-columns: 1fr; gap: 0; border-top: none; border-left: var(--border) solid var(--rule); margin-left: var(--s2); }
  .timeline li { padding: 0 0 var(--s6) var(--s5); }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { left: -6px; top: 6px; }
  .timeline li:last-child::before { left: -9px; top: 3px; }
  /* Before / while / after stack; Tom stays under "While", After moves to the end */
  .bwa { grid-template-columns: 1fr; }
  .bwa > div { border-bottom: var(--border) solid var(--rule); }
  .bwa > div:nth-child(2) { border-bottom: 0; padding-bottom: 0; }
  .bwa > div:nth-child(3) { order: 1; border-bottom: 0; }
  .bwa > .bwa-foot { grid-column: auto; padding: var(--s4) 0 var(--s5); }
  .bwa .voice-reply { margin-top: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .nav-links { gap: var(--s3); }
  .nav-links .btn-small { padding: 0 var(--s3); }
  .wordmark { gap: var(--s2); }
  .hide-sm { display: none !important; }
  .hero { padding: var(--s8) 0; }
  .hero-sub .phrase { display: inline; }   /* on phones the subline wraps naturally */
  .section { padding: var(--s8) 0; }
  .hive { --w: 80px; --g: 4px; }
  .hive-small { --w: 40px; --g: 3px; }
  .cta, .cta .btn { width: 100%; }
  .closing { padding: var(--s8) 0; }
  .closing .btn { width: 100%; min-width: 0; }
  .triad { grid-template-columns: 1fr; }
  summary, details p { padding-right: var(--s6); }
  .callout, .plan { padding: var(--s5); }
  .plan .btn { align-self: stretch; }
  .price-head { flex-wrap: wrap; }
  .voice-pull .face { --w: 48px; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
}
@media (max-width: 359px) {
  .hide-xs { display: none !important; }   /* narrowest phones: logo + one button only */
}

/* ════════════════════════════════════════════════
   11. User preferences
   ════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
@media (forced-colors: active) {
  .hive li, .face { border: 1px solid CanvasText; }
  summary::before, summary::after { background: CanvasText; }
}
