/* Elizabeth Bridge · the site. matthieubridge.com's structure (build/matthieu-bridge/site/public/site.css)
   on elenabridge.com v2's rhythm, in Elizabeth's palette (/brand/tokens.css): near-black ink with
   violet and gold at the edges, gold tint with a dark ink, SF Pro with tabular digits. Dark only.
   Tokens: primitive -> semantic -> component. 4px unit. Two inks on the demo cards: gold is measured,
   violet is an estimate (DONE.md, Guardrails 7).
   Type: the app's scale 11 12 13 15 20 28 34, with body 17 and two display steps for the
   marketing register, and the serif for the one line that is read (the weekly read). */
:root {
  color-scheme: dark;

  /* primitives, from /brand/tokens.css (Elizabeth's palette): near-black ink, gold, violet, indigo */
  --ink-0: #07050C;
  --ink-1: #0B0812;
  --ink-2: #110D19;
  --ink-3: #1B1724;
  --gold: #DCAE5B;
  --gold-hover: #E6BF78;
  --gold-ink: #1D1D1F;
  --white: #F5F5F7;
  --violet: #BF5AF2;
  --violet-text: #CF8AF5;
  --indigo: #7D7AFF;
  --green-text: #3FDB62;
  --red-text: #FE6A5E;

  /* semantic */
  --bg: var(--ink-1);
  --bg-alt: var(--ink-2);
  --surface: rgba(255,255,255,.04);
  --surface-hover: rgba(255,255,255,.066);
  --surface-solid: var(--ink-3);
  --line: rgba(255,255,255,.075);
  --line-strong: rgba(255,255,255,.16);
  --text: var(--white);
  --text-2: rgba(235,235,245,.66);
  --accent: var(--gold);
  --accent-hover: var(--gold-hover);
  --accent-soft: rgba(220,174,91,.14);
  --accent-soft-hover: rgba(220,174,91,.22);
  --accent-line: rgba(220,174,91,.45);
  --on-accent: var(--gold-ink);
  --est: var(--violet-text);
  --est-soft: rgba(191,90,242,.14);
  --est-line: rgba(191,90,242,.42);
  --better: var(--green-text);
  --worse: var(--red-text);
  --danger: #FE5749;
  --focus: var(--gold);
  --glass: rgba(11,8,18,.72);
  --fill-quiet: rgba(124,120,136,.18);
  --fill-quiet-hover: rgba(124,120,136,.28);
  --wall: radial-gradient(1100px 760px at 8% -10%, rgba(191,90,242,.16), transparent 62%),
          radial-gradient(1000px 760px at 96% -6%, rgba(220,174,91,.11), transparent 60%),
          radial-gradient(900px 640px at 60% 120%, rgba(125,122,255,.08), transparent 60%),
          linear-gradient(180deg, #0E0A16 0%, #0B0812 100%);

  /* spacing: 4px ramp */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;
  --section: clamp(4rem, 2.8rem + 3.6vw, 6.5rem);
  --gap-card: 1rem;

  /* type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter Tight", "Helvetica Neue", system-ui, sans-serif;
  --fs-cap: 0.75rem;      /* 12 */
  --fs-small: 0.8125rem;  /* 13 */
  --fs-label: 0.9375rem;  /* 15 */
  --fs-body: 1.0625rem;   /* 17 */
  --fs-lead: 1.25rem;     /* 20 */
  --fs-card: 1.25rem;     /* 20 */
  --fs-section: clamp(1.75rem, 1.3rem + 1.6vw, 2.125rem);  /* 28 to 34 */
  --fs-hero: clamp(2.125rem, 1.2rem + 3.6vw, 4rem);        /* 34 to 64 */
  --fs-figure: clamp(3.5rem, 2.2rem + 5.4vw, 6.5rem);      /* 56 to 104 */
  --w-body: 400; --w-mid: 500; --w-strong: 600; --w-head: 600;

  --r-sm: 6px; --r-ctl: 10px; --r-btn: 12px; --r-tile: 14px; --r-card: 16px; --r-panel: 18px; --r-pane: 20px; --r-full: 9999px;
  --shadow-card: 0 1px 1px rgba(0,0,0,.12);
  --shadow-frame: 0 0 0 .5px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06), 0 40px 90px -20px rgba(0,0,0,.72), 0 4px 12px rgba(0,0,0,.32);
  --shadow-sheet: 0 0 0 .5px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px -20px rgba(0,0,0,.72);
  --shadow-tint: inset 0 1px 0 rgba(255,255,255,.32), 0 1px 2px rgba(0,0,0,.25);

  --dur: 180ms; --ease: cubic-bezier(.2,.8,.2,1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; overflow-x: clip; background: var(--bg); }
html:has(.sheet[open]) { overflow: hidden; }
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font: var(--w-body) var(--fs-body)/1.47 var(--font);
  letter-spacing: -0.011em;
  font-synthesis: none; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
b, strong { font-weight: var(--w-strong); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: var(--w-head); text-wrap: balance; color: var(--text); }
h1 { font-size: var(--fs-hero); line-height: 1.06; letter-spacing: -0.028em; }
h2 { font-size: var(--fs-section); line-height: 1.15; letter-spacing: -0.022em; }
h3 { font-size: var(--fs-card); line-height: 1.2; letter-spacing: -0.018em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.num, .count, time { font-variant-numeric: tabular-nums; }

.wrap { max-inline-size: 72rem; margin-inline: auto; padding-inline: var(--sp-4); }
@media (min-width: 640px) { .wrap { padding-inline: var(--sp-6); } }

.sec { padding-block: var(--section); }
.alt { background: var(--bg-alt); }
.head { display: grid; gap: var(--sp-4); margin-bottom: clamp(2rem, 1.4rem + 1.8vw, 3rem); }
.lead {
  max-inline-size: 40rem;
  font-size: var(--fs-lead); line-height: 1.4; letter-spacing: -0.016em;
  font-weight: var(--w-mid); color: var(--text-2);
}
.lead b { color: var(--text); font-weight: var(--w-strong); }

/* ------------------------------------------------------------------ the bar */

.lnav {
  position: sticky; top: 0; z-index: 40; block-size: 3.25rem;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(170%) blur(30px); backdrop-filter: saturate(170%) blur(30px);
  transition: box-shadow 200ms ease;
}
.lnav[data-stuck] { box-shadow: 0 1px 0 var(--line); }
.lnav-in { block-size: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.mark { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-lead); font-weight: var(--w-strong); letter-spacing: -0.02em; color: var(--text); text-decoration: none; white-space: nowrap; }
.mark svg { inline-size: 1.75rem; block-size: 1.75rem; flex: none; }
.mark span { font-weight: var(--w-body); color: var(--text-2); }

/* ------------------------------------------------------------------ buttons */

.pill {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r-btn);
  background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-tint);
  font: inherit; font-weight: var(--w-strong); letter-spacing: -0.011em; white-space: nowrap;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background var(--dur) ease, transform 160ms var(--ease-out), opacity 250ms var(--ease-out), translate 250ms var(--ease-out);
}
.pill:hover { background: var(--accent-hover); text-decoration: none; }
.pill:active { transform: scale(0.97); }
.pill:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-btn); }
.pill[aria-busy=true] { cursor: progress; opacity: .8; }
.pill:disabled { cursor: not-allowed; }
.pill-lg { min-block-size: 3rem; padding-inline: 1.375rem; font-size: var(--fs-body); }
.pill-sm { min-block-size: 2rem; padding-inline: 0.75rem; font-size: var(--fs-small); border-radius: 8px; }
.pill-sm::after { content: ""; position: absolute; inset: -0.5rem 0; }
.lnav .pill-sm { opacity: 0; translate: 0 0.25rem; visibility: hidden; transition-property: background, transform, opacity, translate, visibility; transition-duration: var(--dur), 160ms, 250ms, 250ms, 0s; transition-delay: 0s, 0s, 0s, 0s, 250ms; }
.lnav .pill-sm.show { opacity: 1; translate: 0 0; visibility: visible; transition-delay: 0s; }

/* the quiet button: tinted, never filled */
.ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-block-size: 2.75rem; padding-inline: 1.125rem; border: 1px solid var(--accent-line); border-radius: var(--r-btn);
  background: var(--accent-soft); color: var(--accent); font: inherit; font-weight: var(--w-strong); cursor: pointer;
  text-decoration: none; transition: background var(--dur) ease, transform 160ms var(--ease-out);
}
.ghost:hover { background: var(--accent-soft-hover); text-decoration: none; }
.ghost:active { transform: scale(0.97); }

/* ------------------------------------------------------------------ hero */

.hero { position: relative; background: var(--wall); padding-block: clamp(2.5rem, 1.4rem + 3vw, 4.5rem) clamp(3.5rem, 2.4rem + 3.6vw, 6rem); text-align: center; }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.eyebrow { margin-bottom: var(--sp-4); font-size: var(--fs-label); font-weight: var(--w-strong); color: var(--accent); font-variant-numeric: tabular-nums; }
.hero h1 { max-inline-size: 14em; }
.hero h1 .quiet { color: var(--text-2); }
.hero-sub { margin-top: var(--sp-5); max-inline-size: 36rem; }
.hero .buy { margin-top: var(--sp-6); }

.screen {
  position: relative; margin: clamp(2.5rem, 1.8rem + 2.4vw, 3.5rem) auto 0; max-inline-size: 64rem;
  aspect-ratio: 16 / 10; border-radius: clamp(10px, 0.4rem + 0.6vw, 18px); overflow: hidden;
  background: var(--ink-0); box-shadow: var(--shadow-frame);
  transform-origin: 50% 0;
}
.screen > img, .screen > picture, .screen > picture > img, .screen video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 0; }
.pause {
  position: absolute; right: var(--sp-3); bottom: var(--sp-3);
  inline-size: 2.25rem; block-size: 2.25rem; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(11,8,18,.66); color: var(--white);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background var(--dur) ease, transform 160ms var(--ease-out);
}
.pause:hover { background: rgba(11,8,18,.86); }
.pause:active { transform: scale(0.94); }
.pause svg { inline-size: 14px; block-size: 14px; }


/* ------------------------------------------------------------------ the form */

.buy { inline-size: 100%; max-inline-size: 31rem; margin-inline: auto; text-align: center; }
.buy-row { display: flex; gap: var(--sp-2); }
.buy input[type=email] {
  flex: 1 1 auto; min-inline-size: 0; min-block-size: 3rem; padding: 0 1rem;
  font: inherit; font-size: var(--fs-body); color: var(--text);
  background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  transition: border-color var(--dur) ease;
}
.buy input[type=email]::placeholder { color: var(--text-2); opacity: 1; }
.buy input[type=email]:hover { border-color: rgba(255,255,255,.3); }
.buy input[type=email]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); border-radius: var(--r-btn); }
.buy input[aria-invalid=true] { border-color: var(--danger); }
@media (max-width: 519px) {
  .buy-row { flex-direction: column; }
  .buy-row .pill { inline-size: 100%; }
}
.err { margin-top: var(--sp-3); font-size: var(--fs-small); line-height: 1.43; color: var(--danger); }
.err:empty { display: none; }
.under { margin-top: var(--sp-4); font-size: var(--fs-small); line-height: 1.43; color: var(--text); font-variant-numeric: tabular-nums; }
.tick {
  display: flex; gap: var(--sp-3); align-items: flex-start; justify-content: center;
  margin: var(--sp-4) auto 0; max-inline-size: 27rem; text-align: left;
  font-size: var(--fs-small); line-height: 1.43; color: var(--text-2); cursor: pointer;
}
.tick input { flex: none; inline-size: 1.125rem; block-size: 1.125rem; margin: 0.0625rem 0 0; accent-color: var(--accent); cursor: pointer; }
.legal { margin: var(--sp-3) auto 0; max-inline-size: 27rem; font-size: var(--fs-cap); line-height: 1.5; color: var(--text-2); letter-spacing: 0; }
.hp { position: absolute; left: -9999px; }

/* ------------------------------------------------------------------ the film */

.film .screen { margin-top: 0; aspect-ratio: 16 / 9; }
.film-frame iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.film-play {
  position: absolute; inset: 0; margin: auto; inline-size: max-content; block-size: max-content;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: .75rem 1.15rem .75rem .95rem; border: 0; border-radius: var(--r-full); cursor: pointer;
  background: rgba(11,8,18,.66); color: var(--white);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: inherit; font-weight: var(--w-strong); font-variant-numeric: tabular-nums;
  transition: background var(--dur) ease, transform 160ms var(--ease-out);
}
.film-play:hover { background: rgba(11,8,18,.86); }
.film-play:active { transform: scale(0.96); }
.film-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.film-play svg { inline-size: 18px; block-size: 18px; }

/* ------------------------------------------------------------------ the problem: three beats */

.beats { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); }
.beat { display: grid; gap: var(--sp-2); max-inline-size: 30em; }
.beat p { font-size: var(--fs-section); line-height: 1.18; letter-spacing: -0.022em; font-weight: var(--w-head); color: var(--text); transition: color 400ms ease; }
.beat p + p { color: var(--text-2); }
.beat .big { font-size: var(--fs-figure); line-height: 1; letter-spacing: -0.045em; color: var(--text); font-variant-numeric: tabular-nums; }
.beats.live .beat:not(.on) p { color: rgba(235,235,245,.22); }
.beats.live .beat:not(.on) .big { color: rgba(235,235,245,.22); }
.turn { margin-top: clamp(3rem, 2rem + 3vw, 5rem); display: flex; align-items: center; gap: var(--sp-4); }
.turn p { font-size: var(--fs-section); line-height: 1.15; letter-spacing: -0.022em; font-weight: var(--w-head); }
.turn p b { color: var(--accent); font-weight: inherit; }
.face { flex: none; inline-size: 3.5rem; block-size: 3.5rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-strong); }

.count { display: inline-grid; }
.count > * { grid-area: 1 / 1; text-align: right; }
.count .c-ghost { visibility: hidden; }

/* ------------------------------------------------------------------ the hub: what you measure flows in, what it shows flows out, every week it comes back.
   Wide: inputs left, Elizabeth in the middle, outputs right, the loop under the hub.
   Narrow: inputs on top, outputs below, each group on a spine, the loop on the hub's right.
   Default is the finished state (no JS, reduced motion); site.js adds .armed before it plays. */

.journey { padding-bottom: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); }
.hb {
  --hb-line: rgba(235,235,245,.15);
  --hb-ic: 2.25rem;
  --hb-r: 4.25rem;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 15.5rem) minmax(3rem, 1fr) calc(var(--hb-r) * 2 + 3rem) minmax(3rem, 1fr) minmax(0, 15.5rem);
  padding-block: var(--sp-2) var(--sp-8);
}
.hb-lines { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; overflow: visible; pointer-events: none; }
.hb-base path { fill: none; stroke: var(--hb-line); stroke-width: 1; stroke-linecap: round; }
.hb-base .hb-loop { stroke: rgba(235,235,245,.24); stroke-width: 1.25; }
.hb-lines marker path { stroke: rgba(235,235,245,.42); }
.hb-tail { fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; }
.hb-head { fill: var(--accent); }
.hb-halo { fill: var(--accent); opacity: .16; }

.hb-in { grid-column: 1; } .hb-core { grid-column: 3; } .hb-out { grid-column: 5; }
.hb-in, .hb-out { display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-7); min-inline-size: 0; }
.hb-g ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-1); }
.hb-gl {
  margin: 0 0 var(--sp-2); padding-inline: var(--sp-2);
  font-size: var(--fs-cap); line-height: 1.5; font-weight: var(--w-strong); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2);
}

.hb-node {
  position: relative; inline-size: 100%; min-block-size: 3.25rem; padding: var(--sp-2);
  display: flex; align-items: center; gap: var(--sp-3);
  border: 0; border-radius: var(--r-btn); background: transparent; color: var(--text);
  font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background var(--dur) ease, opacity 600ms var(--ease-out), transform 160ms var(--ease-out);
}
.hb-ic {
  flex: none; display: grid; place-items: center; inline-size: var(--hb-ic); block-size: var(--hb-ic); border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-2);
  transition: color 500ms ease, box-shadow 500ms ease;
}
.hb-ic svg { inline-size: 1.125rem; block-size: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hb-t { display: grid; gap: 1px; min-inline-size: 0; }
.hb-t b { font-size: var(--fs-label); line-height: 1.3; font-weight: var(--w-mid); letter-spacing: -0.008em; }
.hb-v, .hb-a {
  font-size: var(--fs-small); line-height: 1.38; color: var(--text-2); font-variant-numeric: tabular-nums;
  transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out), filter 480ms var(--ease-out);
}
.hb-a { display: flex; align-items: center; gap: 5px; }
.hb-a svg { flex: none; inline-size: 11px; block-size: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: color 500ms ease; }

/* the input side reads toward the hub: text right, icon on the inner edge */
.hb-in .hb-node { flex-direction: row-reverse; text-align: right; }
.hb-in .hb-gl { text-align: right; padding-right: calc(var(--sp-2) + var(--hb-ic) + var(--sp-3)); }
.hb-out .hb-gl { padding-left: calc(var(--sp-2) + var(--hb-ic) + var(--sp-3)); }

/* the one that is moving now */
.hb-node.act .hb-ic { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 0 5px rgba(220,174,91,.08); }
.hb-node.act .hb-a svg { color: var(--accent); }

/* the hover names the section it opens */
.hb-node::after {
  content: attr(data-tip); position: absolute; z-index: 3; bottom: calc(100% - 4px); left: var(--sp-2);
  padding: 5px 9px; border-radius: var(--r-sm); background: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 8px 20px rgba(0,0,0,.45);
  font-size: var(--fs-cap); line-height: 1.3; font-weight: var(--w-mid); color: var(--text); white-space: nowrap;
  opacity: 0; transform: translateY(3px); pointer-events: none; transition: opacity 140ms ease, transform 160ms var(--ease-out);
}
.hb-in .hb-node::after { left: auto; right: var(--sp-2); }
@media (hover: hover) and (pointer: fine) {
  .hb-node:hover { background: var(--surface); }
  .hb-node:hover .hb-ic { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
  .hb-node.act:hover .hb-ic { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-line); }
  .hb-node:hover::after { opacity: 1; transform: none; transition-delay: 220ms; }
}
.hb-node:active { transform: scale(0.98); }
.hb-node:focus-visible { outline-offset: 2px; border-radius: var(--r-btn); }

/* the hub */
.hb-core { position: relative; display: grid; place-items: center; }
.hb-hub {
  position: relative; inline-size: calc(var(--hb-r) * 2); block-size: calc(var(--hb-r) * 2); border-radius: 50%; border: 0; padding: 0;
  display: grid; place-content: center; justify-items: center; gap: 5px;
  background: radial-gradient(circle at 50% 38%, rgba(220,174,91,.10), transparent 68%), var(--ink-2);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.9);
  color: var(--text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out);
}
.hb-hub b { font-size: var(--fs-small); line-height: 1.2; font-weight: var(--w-strong); letter-spacing: -0.004em; }
.hb-mk { inline-size: 2.75rem; block-size: 2.75rem; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hb-ring { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; transform: rotate(-90deg); overflow: visible; pointer-events: none; }
.hb-ring circle { fill: none; }
.hb-ring-0 { stroke: var(--line-strong); stroke-width: 1; }
.hb-ring-1 { stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; opacity: .5; transition: opacity 500ms ease; }
.hb-glow {
  position: absolute; inset: -36%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(220,174,91,.16), rgba(220,174,91,.045) 60%, transparent);
  opacity: .7; transition: opacity 900ms ease;
}
.hb-hub::after {
  content: "Ask Elizabeth"; position: absolute; z-index: 3; top: calc(100% + 8px); left: 50%;
  padding: 5px 9px; border-radius: var(--r-sm); background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-strong), 0 8px 20px rgba(0,0,0,.45);
  font-size: var(--fs-cap); font-weight: var(--w-mid); color: var(--text); white-space: nowrap;
  opacity: 0; transform: translate(-50%, -3px); pointer-events: none; transition: opacity 140ms ease, transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .hb-hub:hover::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 220ms; } }
.hb-hub:active { transform: scale(0.98); }
.hb-hub:focus-visible { outline-offset: 4px; border-radius: 50%; }

/* the loop's label: a button to the weekly read, placed by site.js on the arc */
.hb-every {
  position: absolute; z-index: 2; left: 50%; top: 100%; transform: translate(-50%, -100%);
  min-block-size: 2rem; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-full); background: transparent;
  font: inherit; font-size: var(--fs-small); font-weight: var(--w-mid); color: var(--text-2); white-space: nowrap; cursor: pointer;
  transition: color 500ms ease, background var(--dur) ease;
}
.hb-every.on { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .hb-every:hover { background: var(--surface); color: var(--text); } }
.hb-every:focus-visible { outline-offset: 2px; border-radius: var(--r-full); }

.hb-pause {
  position: absolute; right: 0; bottom: 0; z-index: 2; inline-size: 2.25rem; block-size: 2.25rem; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2);
  transition: background var(--dur) ease, color var(--dur) ease, transform 160ms var(--ease-out);
}
.hb-pause:hover { background: var(--surface-hover); color: var(--text); }
.hb-pause:active { transform: scale(0.94); }
.hb-pause svg { inline-size: 12px; block-size: 12px; }

/* before and while it plays */
.hb.armed .hb-node { opacity: .36; }
.hb.armed .hb-node.lit { opacity: 1; }
.hb.armed .hb-v, .hb.armed .hb-a { opacity: 0; transform: translateY(4px); filter: blur(2px); }
.hb.armed .hb-node.lit .hb-v, .hb.armed .hb-a.on { opacity: 1; transform: none; filter: none; }
.hb.armed .hb-ring-1 { stroke-dashoffset: 1; opacity: 0; }
.hb.armed .hb-glow { opacity: 0; }
.hb.armed .hb-hub.read .hb-glow { opacity: 1; }
.hb.armed .hb-base .hb-loop { stroke: rgba(235,235,245,.14); transition: stroke 600ms ease; }
.hb.armed .hb-every { color: rgba(235,235,245,.42); }
.hb.armed .hb-every.on { color: var(--text); }
/* idle: the loop breathes while it's on screen */
.hb.idle .hb-glow { animation: hb-breathe 5.2s ease-in-out infinite; }
.hb.idle .hb-base .hb-loop { animation: hb-breathe-line 5.2s ease-in-out infinite; }
.hb.hold .hb-glow, .hb.hold .hb-base .hb-loop { animation-play-state: paused; }
@keyframes hb-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes hb-breathe-line { 0%, 100% { stroke: rgba(235,235,245,.2); } 50% { stroke: rgba(235,235,245,.42); } }

/* narrow: inputs on top, Elizabeth in the middle, outputs below; each group hangs on a spine through its icons */
@media (max-width: 899px) {
  .hb { --hb-r: 3.5rem; grid-template-columns: minmax(0, 1fr); padding-block: 0 var(--sp-7); }
  .hb-in, .hb-out, .hb-core { grid-column: 1; }
  .hb-in, .hb-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-4); }
  .hb-core { padding-block: 4.25rem; }
  .hb-g ul { gap: var(--sp-3); }
  /* the left column reads toward the middle, the right column away from it */
  .hb-in .hb-node, .hb-out [data-g=out1] .hb-node { flex-direction: row-reverse; text-align: right; }
  .hb-in [data-g=in2] .hb-node { flex-direction: row; text-align: left; }
  .hb-in [data-g=in2] .hb-gl, .hb-out [data-g=out2] .hb-gl { text-align: left; padding-right: var(--sp-2); padding-left: calc(var(--sp-2) + var(--hb-ic) + var(--sp-3)); }
  .hb-out [data-g=out1] .hb-gl, .hb-in [data-g=in1] .hb-gl { text-align: right; padding-left: var(--sp-2); padding-right: calc(var(--sp-2) + var(--hb-ic) + var(--sp-3)); }
  .hb-out [data-g=out1] .hb-a { justify-content: flex-end; }
  .hb-in [data-g=in2] .hb-node::after { right: auto; left: var(--sp-2); }
  .hb-out [data-g=out1] .hb-node::after { left: auto; right: var(--sp-2); }
  .hb-every { transform: translate(0, -50%); padding-inline: var(--sp-2); }
}
@media (max-width: 599px) {
  .hb { --hb-ic: 2rem; --hb-r: 3.25rem; }
  .hb-in, .hb-out { gap: var(--sp-2); }
  .hb-node { padding: var(--sp-1) 0; gap: var(--sp-2); min-block-size: 2.75rem; align-items: flex-start; }
  .hb-ic { margin-top: 1px; }
  .hb-t b { font-size: var(--fs-small); }
  .hb-v, .hb-a { font-size: var(--fs-cap); }
  .hb-in [data-g=in2] .hb-gl, .hb-out [data-g=out2] .hb-gl { padding-right: 0; padding-left: calc(var(--hb-ic) + var(--sp-2)); }
  .hb-out [data-g=out1] .hb-gl, .hb-in [data-g=in1] .hb-gl { padding-left: 0; padding-right: calc(var(--hb-ic) + var(--sp-2)); }
  .hb-core { padding-block: 3rem; }
  .hb-br { display: block; block-size: 0; overflow: hidden; }
  .hb-a, .hb-out [data-g=out1] .hb-a { display: block; }
  .hb-a svg { display: inline-block; vertical-align: -1px; margin-right: 4px; }
  .hb-mk { inline-size: 2.25rem; block-size: 2.25rem; }
  .hb-hub b { font-size: var(--fs-cap); }
  .hb-node::after { display: none; }
}

/* ------------------------------------------------------------------ every section: a rail of tabs grouped by stage, one screen */

.cases-sec { padding-top: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); }
.cases { display: grid; gap: var(--sp-5); }
@media (min-width: 960px) { .cases { grid-template-columns: 15.5rem minmax(0, 1fr); gap: var(--sp-7); align-items: start; } }
.rail { display: flex; align-items: center; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--sp-4) * -1); padding: var(--sp-1) var(--sp-4); scroll-padding-inline: var(--sp-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--sp-4), #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--sp-4), #000 calc(100% - 2.5rem), transparent); }
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .rail { margin-inline: calc(var(--sp-6) * -1); padding-inline: var(--sp-6); } }
.rail-g {
  flex: none; padding-inline: var(--sp-3) var(--sp-1);
  font-size: var(--fs-cap); line-height: 1.5; font-weight: var(--w-strong); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2);
  transition: color var(--dur) ease;
}
.rail-g:first-child { padding-left: 0; }
.rail-g.on { color: var(--text); }
@media (min-width: 960px) {
  .rail { flex-direction: column; align-items: stretch; gap: 2px; overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; position: sticky; top: 4.5rem; }
  .rail-g { padding: var(--sp-4) var(--sp-3) var(--sp-1); }
  .rail-g:first-child { padding-top: 0; padding-left: var(--sp-3); }
}
.case-tab {
  flex: none; display: flex; align-items: center; gap: var(--sp-3);
  min-block-size: 2.75rem; padding: 0 var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-full);
  background: transparent; color: var(--text-2); font: inherit; font-size: var(--fs-label); font-weight: var(--w-mid); text-align: left; white-space: nowrap; cursor: pointer;
  transition: background var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
}
.case-tab:hover { color: var(--text); background: var(--surface); }
.case-tab[aria-selected=true] { color: var(--text); background: var(--accent-soft); border-color: var(--accent-line); }
.case-tab:focus-visible { outline-offset: 2px; border-radius: var(--r-full); }
@media (min-width: 960px) {
  .case-tab { border: 0; border-radius: var(--r-ctl); padding-inline: var(--sp-3); min-block-size: 2.5rem; font-size: var(--fs-body); }
  .case-tab[aria-selected=true] { border: 0; }
  .case-tab:focus-visible { border-radius: var(--r-ctl); }
}
.case-stage { min-inline-size: 0; }
.case-screen { margin: 0; aspect-ratio: 16 / 10; max-inline-size: none; }
.case-media { position: absolute; inset: 0; transition: opacity 320ms var(--ease-out), transform 460ms var(--ease-out); }
.case-media > img, .case-media > picture, .case-media > picture > img, .case-media > video {
  position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; object-position: 50% 0;
}
.case-media > video { opacity: 0; transition: opacity 300ms var(--ease-out); }
.case-media > video.ready { opacity: 1; }
.case-media[data-leaving] { opacity: 0; }
.case-media[data-entering] { opacity: 0; transform: scale(1.015); }
.case-pause { z-index: 2; }
.case-line { margin-top: var(--sp-5); max-inline-size: 36rem; min-block-size: 2.9em; font-size: var(--fs-lead); line-height: 1.4; letter-spacing: -0.016em; font-weight: var(--w-mid); color: var(--text-2); }
.case-line b { color: var(--text); font-weight: var(--w-strong); }
/* ------------------------------------------------------------------ what you connect */

.sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-card); }
.sources li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 600px) { .sources { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sources li:last-child:nth-child(odd) { grid-column: auto; } }
@media (min-width: 960px) { .sources { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sources li {
  display: grid; gap: var(--sp-1); align-content: start; padding: clamp(1rem, 0.8rem + 0.6vw, 1.5rem);
  border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}
.sources svg { inline-size: 1.5rem; block-size: 1.5rem; margin-bottom: var(--sp-4); color: var(--accent); }
.sources b { font-size: var(--fs-body); font-weight: var(--w-strong); }
.sources span { font-size: var(--fs-small); line-height: 1.43; color: var(--text-2); }

/* ------------------------------------------------------------------ price */

.price { text-align: center; }
.seg {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px;
  border-radius: var(--r-full); background: var(--fill-quiet);
}
.seg button {
  position: relative; z-index: 1; min-block-size: 2.25rem; padding: 0 var(--sp-5); border: 0; border-radius: var(--r-full);
  background: transparent; color: var(--text-2); font: inherit; font-size: var(--fs-label); font-weight: var(--w-mid); cursor: pointer;
  transition: color var(--dur) ease;
}
.seg button[aria-pressed=true] { color: var(--text); }
.seg button:focus-visible { outline-offset: 0; border-radius: var(--r-full); }
.seg .knob { position: absolute; z-index: 0; inset: 3px auto 3px 3px; inline-size: calc(50% - 3px); border-radius: var(--r-full); background: var(--ink-3); box-shadow: 0 0 0 .5px rgba(255,255,255,.1), 0 2px 6px rgba(0,0,0,.4); transition: translate var(--d, 280ms) var(--ease); }
.seg[data-plan=yearly] .knob { translate: 100% 0; }
.price-fig { margin-top: var(--sp-6); font-size: var(--fs-hero); line-height: 1; letter-spacing: -0.035em; font-weight: var(--w-head); font-variant-numeric: tabular-nums; }
.price-fig small { font-size: var(--fs-lead); letter-spacing: -0.016em; font-weight: var(--w-mid); color: var(--text-2); }
.price-sub { margin-top: var(--sp-3); font-size: var(--fs-label); color: var(--text-2); font-variant-numeric: tabular-nums; min-block-size: 1.5em; }
.price-terms { list-style: none; margin: var(--sp-6) auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-label); }
.price-terms li { display: inline-flex; align-items: center; gap: var(--sp-2); }
.price-terms svg { inline-size: 1rem; block-size: 1rem; color: var(--accent); }
.price .ghost { margin-top: var(--sp-6); }

/* ------------------------------------------------------------------ questions: cards that open a panel */

.know { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap-card); }
@media (min-width: 700px) { .know { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kcard {
  position: relative; inline-size: 100%; block-size: 100%; min-block-size: 10rem;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); border: 0; border-radius: var(--r-card);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer;
  transition: transform 300ms cubic-bezier(0, 0, 0.5, 1), background var(--dur) ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) { .kcard:hover { background: var(--surface-hover); } .kcard:hover .k-plus { color: var(--text); } }
.kcard:active { transform: scale(0.985); transition-duration: 160ms; }
.kcard:focus-visible { outline-offset: 3px; border-radius: var(--r-card); }
.k-eye { font-size: var(--fs-label); font-weight: var(--w-strong); color: var(--text-2); padding-right: 2rem; }
.k-face { margin-top: auto; padding-top: var(--sp-5); font-size: var(--fs-card); line-height: 1.2; letter-spacing: -0.018em; font-weight: var(--w-head); text-wrap: balance; }
.k-sub { margin-top: var(--sp-1); font-size: var(--fs-card); line-height: 1.2; letter-spacing: -0.018em; font-weight: var(--w-head); color: var(--accent); }
.k-plus {
  position: absolute; top: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); right: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  inline-size: 1.25rem; block-size: 1.25rem; display: grid; place-items: center;
  color: var(--text-2); transition: color var(--dur) ease;
}
.k-plus svg { inline-size: 1rem; block-size: 1rem; }

.sheet {
  --sheet-from: translateY(2rem) scale(0.98);
  inline-size: min(100% - 2rem, 48rem); max-inline-size: none; max-block-size: min(100dvh - 4rem, 56rem);
  margin: auto; padding: 0; border: 0; border-radius: var(--r-pane);
  background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow-sheet);
  overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in 380ms var(--ease-drawer); }
.sheet::backdrop { background: rgba(4,3,8,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet[open]::backdrop { animation: fade-in 280ms ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: var(--sheet-from); } }
@keyframes fade-in { from { opacity: 0; } }
@media (max-width: 599px) {
  .sheet { --sheet-from: translateY(100%); inline-size: 100%; max-block-size: calc(100dvh - 1.5rem); margin: auto 0 0; border-radius: 22px 22px 0 0; }
}
.sheet-body { overflow: auto; overscroll-behavior: contain; padding: clamp(2rem, 1.2rem + 3vw, 3.5rem); }
.sheet h3 { font-size: var(--fs-section); line-height: 1.15; letter-spacing: -0.022em; margin-bottom: clamp(1.5rem, 1.2rem + 1.6vw, 2.5rem); padding-right: 2.5rem; }
.sheet-x {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  inline-size: 2.25rem; block-size: 2.25rem; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer; background: var(--fill-quiet); color: var(--text);
  transition: background var(--dur) ease, transform 160ms var(--ease-out);
}
.sheet-x::after { content: ""; position: absolute; inset: -0.25rem; }
.sheet-x:hover { background: var(--fill-quiet-hover); }
.sheet-x:active { transform: scale(0.94); }
.sheet-x:focus-visible { border-radius: 50%; }
.sheet-x svg { inline-size: 1rem; block-size: 1rem; }
.say { max-inline-size: 38rem; font-size: var(--fs-lead); line-height: 1.4; letter-spacing: -0.016em; font-weight: var(--w-mid); color: var(--text-2); }
.say b { color: var(--text); }
.say + .say { margin-top: var(--sp-5); }

/* ------------------------------------------------------------------ the last call */

.start { text-align: center; background: var(--wall); }
.start h2 { font-size: var(--fs-hero); line-height: 1.06; letter-spacing: -0.028em; }
.start .seg { margin-top: var(--sp-6); }
.start .buy { margin-top: var(--sp-5); }

/* ------------------------------------------------------------------ footer */

footer { background: var(--ink-0); border-top: 1px solid var(--line); padding-block: var(--sp-6) var(--sp-8); font-size: var(--fs-small); line-height: 1.43; color: var(--text-2); }
footer nav { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-bottom: var(--sp-4); }
footer nav a { display: inline-block; padding-block: var(--sp-2); color: var(--text); text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
footer a { color: var(--text-2); }

/* ------------------------------------------------------------------ reveals: site.js adds .rv once the page is measured */

.rv [data-reveal] {
  opacity: 0; transform: translateY(1.5rem);
  transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.rv [data-reveal].in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ text pages: thanks, terms, privacy, 404 */

.top { display: flex; align-items: center; block-size: 3.25rem; }
.page { padding-block: var(--sp-8) var(--sp-9); max-inline-size: 44rem; }
.page h1 { font-size: var(--fs-section); line-height: 1.15; letter-spacing: -0.022em; margin-bottom: var(--sp-5); }
.page h2 { font-size: var(--fs-card); line-height: 1.2; margin: var(--sp-7) 0 var(--sp-3); }
.page p, .page li { color: var(--text-2); max-inline-size: 38rem; }
.page p + p { margin-top: var(--sp-3); }
.page ul { margin: var(--sp-3) 0 0; padding-left: 1.25rem; display: grid; gap: var(--sp-2); }
.page .ver { font-size: var(--fs-small); }
.page .big { font-size: var(--fs-hero); line-height: 1.06; letter-spacing: -0.028em; margin-bottom: var(--sp-4); }
.page .lead { margin-bottom: var(--sp-6); }
.actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.rows { margin: var(--sp-6) 0 0; }
.rows > div { display: grid; gap: var(--sp-1); padding-block: var(--sp-4); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .rows > div { grid-template-columns: 11rem minmax(0, 1fr); gap: var(--sp-5); } }
.rows dt, .rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.rows dt { color: var(--text-2); }

/* phones: the screens become the app's phone layout, shot at 390 wide */
@media (max-width: 599px) {
  .screen, .case-screen { aspect-ratio: 390 / 620; max-inline-size: 22rem; margin-inline: auto; border-radius: 22px; }
  .case-screen { aspect-ratio: 390 / 700; }
  .film .screen { aspect-ratio: 16 / 9; max-inline-size: none; border-radius: 12px; }
  .case-line { max-inline-size: 22rem; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv [data-reveal] { opacity: 1; transform: none; transition: none; }
  .sheet[open], .sheet[open]::backdrop { animation: fade-in 200ms linear; }
  .pill, .kcard, .pause, .sheet-x, .ghost { transition-property: background, opacity; }
  .pill:active, .kcard:active, .pause:active, .sheet-x:active, .ghost:active { transform: none; }
  .case-media, .case-media > video { transition: opacity 200ms linear; transform: none !important; }
  .hb-node, .hb-hub, .hb-pause { transition-property: background, box-shadow, opacity; }
  .hb-node:active, .hb-hub:active, .hb-pause:active { transform: none; }
  .hb-glow, .hb-base .hb-loop { animation: none !important; }
  .seg .knob { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .lnav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sheet::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(4,3,8,.8); }
}
@media (prefers-contrast: more) {
  :root { --text-2: var(--text); --line: var(--line-strong); }
}

/* play with sound: the hero's trailer and a case tab's narrated cut, once on disk (site.js) */
.sound {
  position: absolute; left: var(--sp-3); bottom: var(--sp-3); z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem; block-size: 2.25rem; padding: 0 .9rem 0 .75rem;
  border: 0; border-radius: 999px; cursor: pointer; font: 500 13px/1 inherit; font-variant-numeric: tabular-nums;
  background: rgba(11,8,18,.66); color: var(--white);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background var(--dur) ease, transform 160ms var(--ease-out);
}
.sound:hover { background: rgba(11,8,18,.86); }
.sound:active { transform: scale(0.96); }
.sound svg { inline-size: 15px; block-size: 15px; }
.sound[hidden] { display: none; }
.sound-hero { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-tint); }
.sound-hero:hover { background: var(--accent-hover); }
.screen video { cursor: pointer; }
.screen video.with-sound { object-fit: contain; background: #000; cursor: default; z-index: 1; }
.case-media:has(video.with-sound) ~ .case-pause, .screen:has(video.with-sound) > .pause { display: none; }

/* ------------------------------------------------------------------ legal pages, withdraw, Coming */

/* the imprint on every page */
.imprint { max-inline-size: 60rem; }
footer nav a[aria-current=page] { color: var(--accent); }

/* terms: the price box first, framed; the model form set apart */
.page h3 { font-size: var(--fs-body); line-height: 1.3; margin: var(--sp-6) 0 var(--sp-3); }
.page ul ul { margin-top: var(--sp-2); }
.framed { margin-top: var(--sp-6); padding: var(--sp-5); border: 2px solid var(--accent-line); border-radius: var(--r-card); background: var(--accent-soft); }
.framed h2 { margin-top: 0; }
.framed li { color: var(--text); font-weight: var(--w-strong); }
.model-form { padding: var(--sp-5); border: 1px dashed var(--line-strong); border-radius: var(--r-card); }
.model-form p { margin: 0; }
.model-form p + p { margin-top: var(--sp-3); }

/* withdraw: one field per row, labels above */
.fields { display: grid; gap: var(--sp-5); margin-top: var(--sp-6); max-inline-size: 31rem; }
.field { display: grid; gap: var(--sp-2); }
.field label { font-size: var(--fs-label); font-weight: var(--w-mid); color: var(--text); }
.field input {
  min-block-size: 3rem; padding: 0 1rem; font: inherit; font-size: var(--fs-body); color: var(--text);
  background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  transition: border-color var(--dur) ease;
}
.field input::placeholder { color: var(--text-2); opacity: 1; }
.field input:hover { border-color: rgba(255,255,255,.3); }
.field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.field input[readonly] { background: transparent; color: var(--text-2); }
.field input[aria-invalid=true] { border-color: var(--danger); }
.field .err { margin-top: 0; }
.does { font-size: var(--fs-label); color: var(--text); }
.fields .pill { justify-self: start; }
.page h1[tabindex]:focus { outline: none; }

/* sign in on the thank-you page: the form reads left like the page */
.buy.left { margin-inline: 0; text-align: left; margin-top: var(--sp-5); }
.page .under a { color: var(--accent); }

/* Coming: a quiet chip on anything not built yet */
.soon {
  display: inline-flex; align-items: center; block-size: 1.375rem; padding: 0 0.5rem;
  border-radius: var(--r-full); background: var(--fill-quiet); color: var(--text-2);
  font-size: var(--fs-cap); font-weight: var(--w-mid); letter-spacing: 0.01em; line-height: 1;
}
.case-tab .soon { margin-left: auto; }
.case-tab[aria-selected=true] .soon { background: rgba(255,255,255,.1); }
.sources .soon { margin-top: var(--sp-1); }

/* what you need, in the price block */
.price-need { margin: var(--sp-5) auto 0; max-inline-size: 34rem; font-size: var(--fs-label); line-height: 1.45; color: var(--text); }
.sources .soon { justify-self: start; color: var(--text-2); font-size: var(--fs-cap); }
.imprint a[href^="tel:"] { white-space: nowrap; }

/* ------------------------------------------------------------------ Elizabeth: the demo link, the clips, what it never does, the case header */

.demo-link { margin-top: var(--sp-5); }
.case-demo { margin-top: var(--sp-5); }
.ghost:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-btn); }
.hb-mk .hb-dot { fill: var(--accent); stroke: none; }

/* the hook clips: shown once one is on disk (site.js reads the ?v= stamp) */
.clips-sec { padding-block: clamp(3rem, 2.4rem + 2vw, 4.5rem); }
.clips-head { margin-bottom: var(--sp-5); }
.clips {
  list-style: none; margin: 0; display: flex; gap: var(--sp-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 max(var(--sp-4), calc((100% - 72rem) / 2 + var(--sp-6))) var(--sp-2);
  scroll-padding-inline: max(var(--sp-4), calc((100% - 72rem) / 2 + var(--sp-6)));
}
.clips::-webkit-scrollbar { display: none; }
.clip { flex: 0 0 clamp(9.5rem, 38vw, 13.5rem); scroll-snap-align: start; }
.clip-btn {
  position: relative; display: block; inline-size: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: var(--r-card); overflow: hidden;
  background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; color: var(--text);
  transition: transform 160ms var(--ease-out);
}
.clip-btn img, .clip-btn video { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.clip-btn:active { transform: scale(0.98); }
.clip-btn:focus-visible { outline-offset: 3px; border-radius: var(--r-card); }
.clip-len {
  position: absolute; left: var(--sp-2); bottom: var(--sp-2); z-index: 1; display: inline-flex; align-items: center; gap: .375rem;
  padding: .375rem .75rem; border-radius: var(--r-full); background: rgba(11,8,18,.72); font-size: var(--fs-small); font-weight: var(--w-mid);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.clip-len svg { inline-size: 12px; block-size: 12px; }
.clip-btn.playing .clip-len { display: none; }
.clip-title { margin-top: var(--sp-2); font-size: var(--fs-label); font-weight: var(--w-mid); }

/* what it never does */
.never { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5) var(--sp-7); }
@media (min-width: 900px) { .never { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.never li { padding-top: var(--sp-4); border-top: 1px solid var(--line-strong); font-size: var(--fs-lead); line-height: 1.4; letter-spacing: -0.016em; font-weight: var(--w-mid); color: var(--text-2); max-inline-size: 34rem; }
.never b { color: var(--text); font-weight: var(--w-strong); }

/* the case header: Noor, with her face */
.who { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-4); margin-bottom: clamp(1.5rem, 1.2rem + 1.2vw, 2.5rem); }
.who h2 { font-size: var(--fs-section); }
.who-face, .ap-face {
  position: relative; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
  background: var(--ink-3); box-shadow: 0 0 0 1px var(--line-strong);
}
.who-face { inline-size: 3rem; block-size: 3rem; }
.who-face i, .ap-face i { font-style: normal; font-weight: var(--w-strong); color: var(--text-2); font-size: var(--fs-small); }
.who-face img, .ap-face img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; }
.noimg > img { display: none; }
.chip {
  display: inline-flex; align-items: center; min-block-size: 1.75rem; padding: 0 .75rem; border-radius: var(--r-full);
  background: var(--fill-quiet); color: var(--text-2); font-size: var(--fs-small); font-weight: var(--w-mid); white-space: nowrap; cursor: help;
}

/* ------------------------------------------------------------------ the stand-ins: Noor's screens drawn from her fiction data
   (public/app/data.js) until the app's own stills and clips are on disk. Sized off the frame, like a screenshot. */

.screen { container-type: inline-size; }
.stand {
  position: absolute; inset: 0; overflow: hidden; text-align: left;
  font-size: clamp(8px, 1.42cqi, 15px); line-height: 1.35; letter-spacing: -0.006em;
  background: radial-gradient(70% 60% at 0% 0%, rgba(191,90,242,.10), transparent 70%), radial-gradient(60% 60% at 100% 0%, rgba(220,174,91,.07), transparent 70%), var(--ink-2);
  color: var(--text);
}
.ap { display: grid; grid-template-columns: 21% minmax(0, 1fr); block-size: 100%; }
.ap-rail { display: flex; flex-direction: column; gap: .3em; padding: 2.2em 1.2em; border-right: 1px solid var(--line); background: rgba(255,255,255,.018); }
.ap-rail span { padding: .55em .8em; border-radius: .6em; color: var(--text-2); }
.ap-rail .on { background: var(--accent-soft); color: var(--text); font-weight: var(--w-mid); }
.ap-brand { display: flex; align-items: center; gap: .5em; margin: 0 .8em 1.4em; font-weight: var(--w-strong); }
.ap-brand i { inline-size: .8em; block-size: .8em; border-radius: 50%; background: var(--accent); }
.ap-brand span { color: var(--text-2); font-weight: var(--w-body); }
.ap-main { display: flex; flex-direction: column; gap: 1.25em; min-inline-size: 0; padding: 2.2em 3em; overflow: hidden; }
.ap-top { display: flex; align-items: center; gap: .8em; }
.ap-top b { font-size: 1.9em; line-height: 1.1; letter-spacing: -0.022em; font-weight: var(--w-head); }
.ap-chip { padding: .2em .7em; border-radius: var(--r-full); background: var(--fill-quiet); color: var(--text-2); font-size: .82em; }
.ap-kick { display: flex; align-items: center; gap: .6em; color: var(--text-2); }
.ap-face { inline-size: 2em; block-size: 2em; }
.ap-face.sm { inline-size: 1.55em; block-size: 1.55em; }
.ap-face i { font-size: .62em; }
.ap-moves, .ap-people, .ap-scores, .ap-tiles, .ap-phases { list-style: none; margin: 0; padding: 0; }
.ap-moves li { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.3fr) minmax(0, 1.1fr) 5.5em; gap: 1em; align-items: center; padding: .95em 0; border-top: 1px solid var(--line); }
.ap-moves .mv { display: flex; align-items: center; gap: .6em; min-inline-size: 0; }
.ap-moves .nx, .ap-people .nm, .ap-scores .nm { color: var(--text-2); }
.ct { color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.vd { display: inline-flex; align-items: center; gap: .4em; font-weight: var(--w-strong); white-space: nowrap; }
.vd svg { inline-size: .72em; block-size: .72em; fill: currentColor; }
.vd.worse { color: var(--worse); }
.vd.better { color: var(--better); }
.vd.none { color: var(--text-2); font-weight: var(--w-mid); }
.ap-foot { margin-top: auto; color: var(--text-2); font-size: .85em; font-variant-numeric: tabular-nums; }
.ap-read { font-family: var(--serif, ui-serif, Georgia, serif); font-size: 2.3em; line-height: 1.12; letter-spacing: -0.012em; }
.ap-by { color: var(--text-2); font-size: .85em; font-variant-numeric: tabular-nums; }
.ap-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8em; }
.ap-tiles li { display: grid; align-content: start; gap: .3em; padding: 1em; border-radius: .9em; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ap-tiles b { font-size: 1.7em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ap-tiles b.none { font-size: 1.2em; color: var(--text-2); }
.ap-tiles span { color: var(--text-2); font-size: .85em; }
.ap-next { display: grid; gap: .3em; padding: 1em 1.1em; border-radius: .9em; box-shadow: inset 0 0 0 1px var(--line); }
.ap-next span { color: var(--text-2); font-size: .78em; font-weight: var(--w-strong); letter-spacing: .06em; text-transform: uppercase; }
.ap-people li, .ap-scores li { display: grid; grid-template-columns: 2em minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, .9fr) 4.6em; gap: 1em; align-items: center; padding: .9em 0; border-top: 1px solid var(--line); }
.ap-scores li { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) 5em; }
.bar { position: relative; block-size: .5em; border-radius: var(--r-full); background: var(--fill-quiet); }
.bar::after { content: ""; position: absolute; left: 50%; top: -.45em; bottom: -.45em; inline-size: 1px; background: var(--line-strong); }
.ap-scores .bar::after { display: none; }
.bar i { position: absolute; top: 0; bottom: 0; left: var(--a); inline-size: calc(var(--b) - var(--a)); border-radius: inherit; background: var(--accent-line); }
.bar s { position: absolute; top: -.3em; bottom: -.3em; left: var(--m); inline-size: 2px; margin-left: -1px; border-radius: 1px; background: var(--accent); }
.bar.empty { background: repeating-linear-gradient(135deg, var(--fill-quiet) 0 2px, transparent 2px 6px); }
.ap-rule { font-family: var(--serif, ui-serif, Georgia, serif); font-size: 2.1em; line-height: 1.15; }
.ap-halves { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1em; }
.ap-half { display: grid; align-content: start; gap: .45em; padding: 1.1em; border-radius: .9em; }
.ap-half .lab { font-size: .76em; font-weight: var(--w-strong); letter-spacing: .06em; text-transform: uppercase; }
.ap-half.measured { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.ap-half.measured .lab { color: var(--accent); }
.ap-half.judged { border: 1px dashed var(--est-line); background: var(--est-soft); }
.ap-half.judged .lab, .ap-half.judged p { color: var(--est); }
.ap-half.judged p { font-style: italic; }
.ap-half.judged .v { font-style: normal; font-weight: var(--w-strong); }
.ap-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5em; }
.ap-phases li { display: grid; gap: .2em; padding: .9em; border-radius: .7em; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ap-phases li.b { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.ap-phases b { color: var(--text-2); font-size: .82em; font-weight: var(--w-mid); }
.ap-phases span { font-size: 1.45em; font-variant-numeric: tabular-nums; }
.ap-q { align-self: flex-end; max-inline-size: 70%; padding: .8em 1.1em; border-radius: 1.2em 1.2em .35em 1.2em; background: var(--accent); color: var(--on-accent); font-weight: var(--w-mid); }
.ap-a { display: grid; gap: .7em; max-inline-size: 88%; padding: 1em 1.2em; border-radius: 1.2em 1.2em 1.2em .35em; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ap-a p { font-style: italic; }
.ap-a .ap-by { font-style: normal; }
.cite { display: inline-block; padding: .05em .5em; border-radius: var(--r-full); background: var(--accent-soft); color: var(--accent); font-style: normal; font-size: .78em; font-variant-numeric: tabular-nums; }

/* the frame at phone width: the app's phone layout, no rail */
@container (max-width: 560px) {
  .stand { font-size: 3.55cqi; }
  .ap { grid-template-columns: minmax(0, 1fr); }
  .ap-rail { display: none; }
  .ap-main { padding: 1.7em 1.4em; gap: 1.05em; }
  .ap-top b { font-size: 1.6em; }
  .ap-moves li { grid-template-columns: minmax(0, 1fr) auto; gap: .25em .8em; }
  .ap-moves .mv { grid-column: 1; }
  .ap-moves .nx { grid-column: 1; font-size: .9em; }
  .ap-moves .vd { grid-column: 2; grid-row: 1; justify-self: end; }
  .ap-moves .ct { grid-column: 2; grid-row: 2; }
  .ap-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-halves { grid-template-columns: minmax(0, 1fr); }
  .ap-people li { grid-template-columns: 2em minmax(0, 1fr) auto; gap: .35em .8em; }
  .ap-people .bar { grid-column: 2 / -1; grid-row: 2; }
  .ap-people .vd { grid-column: 3; grid-row: 1; }
  .ap-people .ct { grid-column: 1 / 2; grid-row: 2; font-size: .8em; text-align: left; }
  .ap-scores li { grid-template-columns: minmax(0, 1fr) auto; gap: .35em .8em; }
  .ap-scores .bar { grid-column: 1 / -1; }
  .ap-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-read { font-size: 1.9em; }
  .ap-q, .ap-a { max-inline-size: 92%; }
}
@media (prefers-reduced-motion: reduce) {
  .clip-btn { transition: none; }
  .clip-btn:active { transform: none; }
}
.ap-episode { display: grid; gap: .6em; padding: 1em 1.1em; border-radius: .9em; border: 1px dashed var(--est-line); background: var(--est-soft); }
.ap-episode .lab, .ap-held .lab { font-size: .76em; font-weight: var(--w-strong); letter-spacing: .06em; text-transform: uppercase; }
.ap-episode .lab { color: var(--est); }
.ap-episode ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1em; }
.ap-episode li { display: grid; align-content: start; gap: .25em; color: var(--est); font-style: italic; }
.ap-episode li b { color: var(--text-2); font-style: normal; font-size: .82em; font-weight: var(--w-mid); }
.ap-held { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .3em 1em; padding: 1em 1.1em; border-radius: .9em; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.ap-held .lab { grid-column: 1 / -1; color: var(--accent); }
.ap-held p { display: flex; align-items: center; gap: .6em; }
.ap-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8em; }
.ap-phases em { color: var(--text-2); font-style: normal; font-size: .76em; font-variant-numeric: tabular-nums; }
.ap-scores .nm { display: flex; align-items: center; gap: .5em; }
.ap-sugg { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5em; }
.ap-sugg li { padding: .45em .9em; border-radius: var(--r-full); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-2); }
@container (max-width: 560px) {
  .ap-episode ol { grid-template-columns: minmax(0, 1fr); gap: .5em; }
  .ap-two { grid-template-columns: minmax(0, 1fr); }
  .ap-held { grid-template-columns: minmax(0, 1fr); }
}
.ap-tiles b.watch { font-size: 1.2em; color: #FFD60A; }
@container (max-width: 560px) {
  .ap-main { gap: .85em; }
  .ap-moves li:nth-child(n+5) { display: none; }
}
