/* ==========================================================================
   Roost - shared stylesheet

   Design system: "Sticker Picnic", quoted from the shipped app. Cream to sky
   gradients, deep navy ink lines, hard offset shadows, picnic yellow and
   playground pink. Every surface is a sticker on paper.

   Three faces, the same three the app uses:
     Baloo 2         display, headings, buttons          weight 400-800
     Hanken Grotesk  body copy                           weight 400-700
     Geist Mono      every numeral, eyebrow and receipt   weight 400-700
   The mono numerals are the elevation move: data reads as evidence.

   Motion. The reels are scroll-driven animation (view-timeline), so the
   browser scrubs them off the main thread and there is no scroll listener
   anywhere in this project. Every scroll-driven rule sits behind both
   @supports and prefers-reduced-motion, so an engine without the feature
   gets the finished layout rather than a blank one.

   Contents
     1  Fonts
     2  Animated custom properties
     3  Tokens
     4  Base
     5  Utilities and shared furniture
     6  Masthead
     7  Hero
     8  Problem: the list that will not end
     9  The deal
    10  The flow reel
    11  Receipts
    12  Features
    13  Privacy
    14  Plans, proof
    15  FAQ
    16  Closer
    17  Footer
    18  Document pages (privacy, support, terms)
    19  Motion preferences and responsive
   ========================================================================== */

/* --------------------------------------------------------------- 1. Fonts */

@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/baloo2-var-latin.woff2") format("woff2-variations");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-var-latin.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geistmono-var-latin.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------- 2. Animated custom properties */
/* Registered so gradients and angles interpolate instead of snapping. */

@property --mesh-a { syntax: "<percentage>"; inherits: false; initial-value: 12%; }
@property --mesh-b { syntax: "<percentage>"; inherits: false; initial-value: 84%; }
@property --spin   { syntax: "<angle>";      inherits: false; initial-value: 0deg; }
@property --fill   { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

/* -------------------------------------------------------------- 3. Tokens */

:root {
  color-scheme: light;
  interpolate-size: allow-keywords;

  /* Ink */
  --ink:        #1c2431;
  --ink-deep:   #131a24;
  --ink-2:      #3d4c5c;
  --ink-3:      #5b6b7c;
  --ink-muted:  #93a1b0;
  --hair:       #e3eaf1;

  /* Surfaces */
  --card:   #ffffff;
  --paper:  #fbfdff;
  --sky:    #e4f2fd;
  --cream:  #fff6e3;
  --blush:  #ffe9f1;
  --peach:  #fff3e0;

  /* Accents, straight from AppColor */
  --sun:    #ffc838;
  --sun-2:  #fff4d6;
  --punch:  #ff5d8f;
  --mint:   #a8e6a3;
  --lilac:  #dccffa;
  --pool:   #bfe3ff;

  /* Type */
  --display: "Baloo 2", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Sticker shadows */
  --hard:    4px 4px 0 var(--ink);
  --hard-lg: 7px 7px 0 var(--ink);
  --soft:    0 16px 40px rgba(28, 36, 49, .12);
  --lift:    0 30px 74px rgba(28, 36, 49, .22);

  --edge: 2.5px solid var(--ink);
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --measure: 74rem;
  --nav-h: 4.2rem;
  --r-lg: 30px;
  --r-md: 22px;
}

/* ---------------------------------------------------------------- 4. Base */

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

html {
  -webkit-text-size-adjust: 100%;
  /* Not smooth. A nav jump to #play is eight viewports away, and smooth
     scrolling animates the whole distance - which means every view timeline
     between here and there evaluates, and every sky in between wakes up, for
     a journey nobody is reading. The jump is instant instead. */
  scroll-behavior: auto;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.85rem, 7vw, 5.75rem); line-height: .9; letter-spacing: -.028em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.6rem); font-weight: 700; line-height: 1.08; }

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

em { font-style: normal; color: var(--punch); }

a { color: inherit; }
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--punch);
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; height: auto; display: block; }

mark {
  background: linear-gradient(180deg, transparent 58%, var(--sun) 58%);
  color: inherit;
  padding-inline: .06em;
}

/* Cross-document morph between the marketing page and the document pages. */
@view-transition { navigation: auto; }

/* ------------------------------------------- 5. Utilities and furniture */

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem;
  font-family: var(--mono); font-size: .8rem; text-decoration: none;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1rem;
}
.eyebrow--dark { color: #8fa2b6; }

.lede {
  font-size: clamp(1.06rem, 1.35vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}
.lede--sm { font-size: 1.08rem; }

.band-head {
  max-width: var(--measure);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  padding-inline: var(--pad);
}
.band-head h2 { max-width: 18ch; }
.band-head__sub {
  margin-top: 1.1rem;
  font-size: clamp(1.02rem, 1.25vw, 1.2rem);
  color: var(--ink-2);
  max-width: 46ch;
}
.band-head--dark h2 { color: var(--cream); }
.band-head--dark .band-head__sub { color: #a9bacb; }

.note {
  font-size: .95rem;
  color: var(--ink-3);
  border-left: 3px solid var(--sun);
  padding-left: 1rem;
  margin-top: 1.75rem;
}

.link-arrow {
  font-family: var(--display);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2.5px solid var(--sun);
  padding-bottom: 2px;
}
.link-arrow:hover { border-bottom-color: var(--punch); }

/* Buttons and badges */

.badge-store { display: inline-block; line-height: 0; text-decoration: none; }
.badge-store svg { width: 132px; height: 44px; display: block; }
.badge-store--lg svg { width: 168px; height: 56px; }
.badge-store { transition: transform .18s cubic-bezier(.3,1.4,.5,1), filter .18s; }
.badge-store:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 18px rgba(28,36,49,.28)); }
/* There is no listing yet, so the badge is a span rather than a dead link. It
   must not lift under the cursor either: a control that answers the mouse is
   promising a click it cannot honour. */
.badge-store--soon { cursor: default; }
.badge-store--soon:hover { transform: none; filter: none; }

.btn-ghost {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  padding: .85rem 1.35rem;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  transition: background .18s, color .18s, transform .18s;
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }

.cta-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem; margin-top: 2rem;
}
.cta-row--center { justify-content: center; }

.trust {
  display: flex; flex-wrap: wrap; gap: .55rem 1.4rem;
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.trust span { display: inline-flex; align-items: center; gap: .5rem; }
.trust span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--punch); flex: none;
}
.trust--center { justify-content: center; }

/* The pastel chips the app uses everywhere */
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.chip {
  font-family: var(--display); font-weight: 700; font-size: .88rem;
  padding: .35rem .8rem; border-radius: 999px; white-space: nowrap;
}
.chip--pink  { background: var(--blush); }
.chip--lilac { background: var(--lilac); }
.chip--mint  { background: var(--mint); }

/* A phone shell used by the reel and the still shots */
.phone {
  position: relative;
  aspect-ratio: 393 / 852;
  border-radius: 46px;
  border: 3px solid var(--ink);
  background: var(--sky);
  overflow: hidden;
  box-shadow: var(--lift);
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone__notch {
  position: absolute; z-index: 3; top: 9px; left: 50%;
  translate: -50% 0;
  width: 31%; height: 22px;
  background: var(--ink); border-radius: 999px;
}
.phone--static { box-shadow: var(--soft), var(--hard-lg); }

/* A gentle enter used by most bands */
@keyframes rise {
  from { opacity: 0; translate: 0 34px; }
  to   { opacity: 1; translate: 0 0; }
}

/* iOS-true corner curvature where the engine has it */
@supports (corner-shape: superellipse(1.8)) {
  .phone, .fcard, .dcard, .ledger, .plan {
    corner-shape: superellipse(1.8);
  }
}

/* ------------------------------------------------------------ 6. Masthead */

/* The masthead is a sticker, not a bar. Same object as the app's floating
   dock, and it stays legible over the sky, the cream and the ink sections
   without needing to know which one is behind it. */
.masthead {
  position: sticky; top: 0; z-index: 40;
  padding: .7rem var(--pad) 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  position: relative;
  max-width: calc(var(--measure) - 2rem); margin: 0 auto;
  padding: .5rem .5rem .5rem 1.15rem;
  display: flex; align-items: center; gap: 1.5rem;
  /* Opaque, deliberately. This pill is sticky over the whole document, so a
     backdrop-filter here would re-blur everything passing underneath it on
     every scroll frame - four WebGL fields, a translating feed, five
     crossfading screenshots. At 95% opacity the blur was buying a whisper of
     colour through the fill; it is not worth a full-width blur pass a frame. */
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(28, 36, 49, .16);
}
/* The lifted shadow lives on its own layer so scrolling can fade it in with
   opacity alone. Animating box-shadow here instead would repaint the pill on
   every scroll frame, and repainting the pill means re-running its
   backdrop-filter blur across the full width of the dock. */
.nav::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  box-shadow: 0 12px 34px rgba(28, 36, 49, .24);
  opacity: 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 800; font-size: 1.32rem;
  text-decoration: none; letter-spacing: -.02em;
  view-transition-name: roost-brand;
}
.brand__mark { width: 32px; height: 32px; flex: none; }
.nav__links {
  list-style: none; display: flex; gap: 1.25rem;
  margin: 0 auto 0 1rem; padding: 0;
  font-size: .95rem; font-weight: 500;
}
.nav__links a { text-decoration: none; color: var(--ink-2); transition: color .16s; }
.nav__links a:hover { color: var(--ink); }
/* One item in the bar is a thing you do rather than a place you read, so it
   carries the sun underneath it. */
.nav__try { position: relative; color: var(--ink); }
.nav__try::after {
  content: ""; position: absolute; inset: auto 0 -5px; height: 3px;
  background: var(--sun); border-radius: 2px;
  transform-origin: left; transition: scale .2s cubic-bezier(.3,1.3,.4,1);
}
.nav__try:hover::after { scale: 1.06 1; }
.nav .badge-store { margin-left: auto; }
.nav .badge-store svg { width: 116px; height: 39px; }

/* How far through the page you are, drawn on the dock itself: a fuse burning
   along the bottom edge rather than a bar bolted underneath. Inset far enough
   that it never reaches the pill's curve, which is why the dock does not need
   overflow: clip - and the dock must not have it, or the lifted shadow above
   would be clipped away. Zero-width until a timeline drives it. */
.nav__progress {
  position: absolute; inset: auto 1.75rem 3px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sun) 0%, var(--punch) 100%);
  transform-origin: left;
  scale: 0 1;
}

/* --------------------------------------------------------------- 7. Hero */

.sky {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}
.sky.is-live { opacity: 1; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  /* the masthead floats over the sky rather than sitting on a white shelf */
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) 0 clamp(3rem, 6vw, 5.5rem);
  /* the fallback the shader paints over, and the design if it never loads */
  background: linear-gradient(180deg, var(--sky) 0%, var(--paper) 52%, var(--cream) 100%);
}
.hero > *:not(.sky) { position: relative; z-index: 1; }

.hero__inner {
  max-width: var(--measure); margin: 0 auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

/* Smaller than the page's other h1 scale on purpose: this headline is a whole
   sentence and it has to sit above the lede, three beats and two buttons
   without pushing any of them under the fold. */
.hero__copy h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.55rem);
  margin-bottom: 1.25rem;
}

/* The em line carries the payoff, so it gets a rule under it that the arrival
   sequence draws in last. With no animation it is simply an underline. */
.hero__copy h1 em { position: relative; display: inline-block; }
.hero__copy h1 em .rule {
  position: absolute; inset: auto 0 -.02em;
  height: .07em; min-height: 4px;
  background: var(--sun);
  border-radius: 999px;
  transform-origin: 0 50%;
}
.hero__copy .lede b { font-weight: 700; color: var(--ink); }

/* The whole product in three beats, above the fold. It is numbered because
   the order is real: you cannot go before you have asked. */
.beats {
  list-style: none;
  margin: 1.5rem 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  counter-reset: beat;
}
.beats li {
  counter-increment: beat;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--hard);
  padding: .65rem .75rem .7rem;
  display: grid; gap: .1rem;
}
.beats li::before {
  content: counter(beat);
  font-family: var(--mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .18em; color: var(--punch);
}
.beats b {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(.9rem, 1.05vw, 1.02rem); line-height: 1.12;
}
.beats span {
  font-size: .78rem; line-height: 1.35;
  color: var(--ink-3);
}
/* mono only where the line is literally something you would have typed */
.beats .beats__typed { font-family: var(--mono); font-size: .68rem; }

/* The dealt hand: three screens held like cards, the deck card in front */
.hand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(1rem, 3vw, 2.25rem);
}
.hand__card {
  margin: 0;
  position: relative;
  flex: 0 0 40%;
  border-radius: 26px;
  border: 3px solid var(--ink);
  overflow: hidden;
  background: var(--sky);
  box-shadow: var(--lift);
  transition:
    opacity .7s ease var(--d, 0s),
    translate 1s cubic-bezier(.2, 1, .28, 1) var(--d, 0s),
    rotate 1s cubic-bezier(.2, 1, .28, 1) var(--d, 0s),
    scale .9s cubic-bezier(.2, 1, .28, 1) var(--d, 0s);
}
.hand__card--l { --d: .06s; rotate: -10deg; translate: 0 7%; z-index: 1; margin-right: -10%; }
.hand__card--c { --d: .2s;  rotate: 0deg;   translate: 0 -3%; z-index: 3; flex-basis: 44%; }
.hand__card--r { --d: .34s; rotate: 10deg;  translate: 0 7%; z-index: 2; margin-left: -10%; }

@starting-style {
  .hand__card { opacity: 0; translate: 0 130px; rotate: 0deg; scale: .82; }
}

/* the hand opens when you reach for it */
.hand:hover .hand__card--l { rotate: -13deg; translate: -5% 7%; }
.hand:hover .hand__card--r { rotate: 13deg; translate: 5% 7%; }
.hand:hover .hand__card--c { translate: 0 -6%; scale: 1.04; }

.sticker {
  position: absolute; z-index: 5; left: -1.5%; top: -1rem;
  font-family: var(--display); font-weight: 800; font-size: .95rem;
  background: var(--card); color: var(--ink);
  border: 2.5px solid var(--ink); border-radius: 999px;
  padding: .5rem 1rem; margin: 0;
  rotate: -7deg;
  box-shadow: var(--hard);
}

.scroll-cue {
  margin: clamp(2rem, 5vw, 4rem) auto 0;
  width: max-content;
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--ink-muted), transparent);
}

/* ---------------------------- 8. Problem: the list that will not end */

.problem { background: var(--ink-deep); color: var(--cream); }
.problem__rail { height: 300vh; }
.problem__stage {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid; place-items: center;
  isolation: isolate;
}

/* The dusk field sits under the list, so the dark has weather in it rather
   than being a flat fill. The section's own background is the fallback. */
.problem__stage .sky { z-index: 0; opacity: 0; }
.problem__stage .sky.is-live { opacity: .9; }

.problem__feed {
  position: absolute; inset: -10% 0 auto;
  z-index: 1;
  display: block;
  opacity: .5;
}
/* The scrim vignettes the list at both edges and gives the headline a pocket
   to sit in. It has to live on the stage, which is exactly one viewport tall;
   the feed itself is several times that, so a mask on it would never reach
   the visible edges. */
.problem__stage::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 50% 42%, rgba(19, 26, 36, .95) 0%, rgba(19, 26, 36, .74) 46%, rgba(19, 26, 36, 0) 78%),
    linear-gradient(180deg, var(--ink-deep) 0%, rgba(19, 26, 36, 0) 15%, rgba(19, 26, 36, 0) 85%, var(--ink-deep) 100%);
}
.feed__row {
  display: flex; align-items: center; gap: 1rem;
  max-width: 46rem; margin: 0 auto;
  padding: 1.05rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #7c8ea1;
  font-size: .95rem;
}
.feed__row i {
  flex: none; width: 44px; height: 44px; border-radius: 10px;
  background: rgba(255, 255, 255, .06);
}
.feed__row span { flex: 1; }
.feed__row b {
  font-family: var(--mono); font-weight: 500; font-size: .82rem;
  /* #5f7183 on --ink-deep was 3.6:1, under AA */
  color: #8496a8; white-space: nowrap;
}

/* --- the cut ------------------------------------------------------------

   Ten cards, stacked dead centre and rotated into an arc about a pivot well
   below the stage, so they read as a hand held out rather than a row laid
   down. At rest - no scroll-driven animation, or reduce - the hand is simply
   there, which is the right still frame for this section.

   Everything the timeline touches is opacity and transform. Nothing here
   changes the size of anything, so the pin cannot jitter. */
.cut {
  position: absolute; inset: auto 0 clamp(3.5rem, 10vh, 7rem);
  z-index: 3;
  display: grid; place-items: center;
  pointer-events: none;
}
/* Each card is the app's deck card, shrunk: the tone band with the category
   on it, the name, the two facts. Same object the reader picks up and swipes
   further down the page, so the cut pays off into something recognisable
   rather than into ten coloured rectangles. */
.cut__card {
  grid-area: 1 / 1;
  width: clamp(7.2rem, 12vw, 8.6rem);
  background: var(--ink-deep);
  border: 2.5px solid #47576b;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(5, 9, 14, .55);
  overflow: hidden;
  text-align: left;

  /* The fan. --n runs 0..9, so (--n - 4.5) is each card's signed distance
     from the middle of the hand: it spreads them sideways, drops the outer
     ones on a parabola, and tilts each one with its position. Squaring it in
     calc works because the expression is a plain number - number times number
     times length is a length. Cards later in the DOM sit on top, which is how
     a hand held in the right hand actually stacks. */
  transform-origin: 50% 50%;
  rotate: calc((var(--n) - 4.5) * 3.8deg);
  translate: calc((var(--n) - 4.5) * 4.8rem)
             calc((var(--n) - 4.5) * (var(--n) - 4.5) * 0.14rem);
}
.cut__band {
  display: flex; align-items: flex-end;
  height: 2.5rem; padding: 0 .55rem .3rem;
  background: linear-gradient(191deg,
    color-mix(in oklab, var(--tone) 90%, #ffffff) 0%,
    color-mix(in oklab, var(--tone) 52%, var(--ink)) 55%,
    var(--ink-deep) 100%);
}
.cut__band i {
  font-style: normal;
  font-family: var(--mono); font-size: .5rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sun);
}
.cut__card b {
  display: block; padding: .45rem .55rem 0;
  font-family: var(--display); font-weight: 700; font-size: .8rem;
  line-height: 1.12; color: #ffffff;
}
.cut__meta {
  display: block; padding: .16rem .55rem .5rem;
  font-family: var(--mono); font-size: .58rem; color: #8fa2b6;
}
.cut__card { --tone: var(--pool); }
.cut__card[data-tone="pool"]  { --tone: var(--pool); }
.cut__card[data-tone="blush"] { --tone: var(--blush); }
.cut__card[data-tone="mint"]  { --tone: var(--mint); }
.cut__card[data-tone="cream"] { --tone: var(--cream); }
.cut__card[data-tone="lilac"] { --tone: var(--lilac); }
.cut__card[data-tone="peach"] { --tone: var(--peach); }

.problem__copy {
  position: relative; z-index: 4;
  max-width: var(--measure); width: 100%;
  padding-inline: var(--pad);
  margin-inline: auto;
  text-align: center;
}
.problem__copy h2 {
  color: var(--cream);
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  line-height: .94;
  text-shadow: 0 4px 26px rgba(19, 26, 36, .8);
}
.problem__copy h2 em { color: var(--sun); }

/* the odometer: three digit strips, scrubbed to land on 247 */
.tally {
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.odo {
  display: inline-flex;
  height: 1em;
  overflow: hidden;
  font-family: var(--mono); font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  line-height: 1;
  color: var(--punch);
}
.odo__col { display: block; }
.odo__col b { display: block; height: 1em; font-weight: 600; }
/* the resting value, for engines without scroll-driven animation */
.odo__col--h { transform: translateY(-2em); }
.odo__col--t { transform: translateY(-24em); }
.odo__col--o { transform: translateY(-47em); }

.tally__label {
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: #8fa2b6;
}
.tally__label--zero b { color: var(--sun); font-size: 1.15rem; }
/* the answer to "0 decided", stacked on top of it so the swap costs nothing */
.tally { position: relative; }
.tally__label--dealt {
  position: absolute; inset: auto 0 0;
  color: var(--mint);
  opacity: 0;
}
.tally__label--dealt b { color: var(--mint); font-size: 1.15rem; }

.turn {
  margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
  max-width: 30ch;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  line-height: 1.25;
  color: #b9c7d6;
}
.turn mark {
  background: none;
  color: var(--cream);
  border-bottom: 3px solid var(--sun);
  padding-bottom: .12em;
}

/* ---------------------------------------------------------- 9. The deal */

.deal {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.deal .band-head { text-align: center; }
.deal .band-head h2, .deal .band-head__sub { margin-inline: auto; }

.deal__cards {
  list-style: none; margin: 0 auto; padding: 0 var(--pad) clamp(2rem, 5vw, 3.5rem);
  display: flex; justify-content: center; align-items: flex-end;
}
.dcard {
  position: relative;
  flex: none;
  width: clamp(6.25rem, 11.5vw, 10.25rem);
  aspect-ratio: 3 / 4.15;
  margin-inline: clamp(-.85rem, -.55vw, -.4rem);
  padding: clamp(.7rem, 1.4vw, 1.1rem);
  border-radius: 18px;
  border: var(--edge);
  background: var(--card);
  box-shadow: var(--hard);
  display: flex; flex-direction: column; justify-content: flex-end; gap: .15rem;
  rotate: var(--rot);
  translate: 0 var(--y);
  transition: rotate .35s cubic-bezier(.3,1.3,.4,1), translate .35s cubic-bezier(.3,1.3,.4,1);
}
.dcard b {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(.85rem, 1.15vw, 1.05rem); line-height: 1.05;
}
.dcard span:not(.dcard__pip) {
  font-size: clamp(.68rem, .82vw, .8rem); color: var(--ink-3); line-height: 1.25;
}
.dcard__pip {
  position: absolute; top: clamp(.6rem, 1.2vw, 1rem); left: clamp(.7rem, 1.4vw, 1.1rem);
  font-family: var(--mono); font-weight: 600; font-size: .8rem;
  color: var(--ink);
}

/* z rises to the middle so the fan reads as one hand held toward you */
.dcard--1 { --rot: -13deg;  --y: 2rem;   --x:  200%; background: var(--pool);  z-index: 1; }
.dcard--2 { --rot: -6.5deg; --y: .55rem; --x:  100%; background: var(--blush); z-index: 2; }
.dcard--3 { --rot: 0deg;    --y: 0;      --x:    0%; background: var(--sun);   z-index: 3; }
.dcard--4 { --rot: 6.5deg;  --y: .55rem; --x: -100%; background: var(--sun-2); z-index: 2; }
.dcard--5 { --rot: 13deg;   --y: 2rem;   --x: -200%; background: var(--mint);  z-index: 1; }

/* The fan overlaps, so each card's label has to live in the sliver its
   neighbour leaves uncovered. On the left half that is the card's left edge;
   on the right half it is the right edge, so those two mirror. */
@media (min-width: 40rem) {
  .dcard--4, .dcard--5 { text-align: right; }
  .dcard--4 .dcard__pip, .dcard--5 .dcard__pip {
    left: auto; right: clamp(.7rem, 1.4vw, 1.1rem);
  }
}

.deal__cards:hover .dcard--1 { rotate: -17deg; translate: -6% 1.4rem; }
.deal__cards:hover .dcard--5 { rotate: 17deg;  translate: 6% 1.4rem; }
.deal__cards:hover .dcard--3 { translate: 0 -.7rem; }

/* ------------------------------------------------------ 10. The flow reel */

/* ---------------------------------------------------------------------------
   The reel has two forms.

   BASE (what every engine gets, and what Reduce Motion keeps): five steps
   stacked down the page, each with its own framed screenshot above it. Plain
   document flow, nothing hidden, nothing that needs scrolling to appear.

   REEL (scroll-driven animation plus anchor positioning, opted into at the
   bottom of this file): .flow__anchor becomes an empty sized box, every
   figure is anchored onto it, and scroll cross-fades between them. The markup
   never changes; only where the figures are painted does.
   --------------------------------------------------------------------------- */

.flow {
  background: linear-gradient(180deg, var(--paper) 0%, var(--sky) 46%, var(--paper) 100%);
}
.flow__rail { padding-block: clamp(3rem, 7vw, 6rem); }
.flow__inner {
  max-width: 66rem; width: 100%;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.flow__anchor { display: none; }
.flow__dots { display: none; }

/* The section title is set as a kicker, not a banner: in the reel form it has
   to sit above a sticky stage without competing with the step headings. */
.flow__label {
  font-family: var(--mono);
  font-size: .72rem; font-weight: 600; line-height: 1.4;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
  max-width: 66rem; width: 100%;
  margin: 0 auto clamp(2.25rem, 4.5vw, 3.25rem);
  padding-inline: var(--pad);
  display: flex; align-items: center; gap: 1.1rem;
}
.flow__label::after {
  content: ""; flex: 1; height: 2px;
  background: var(--hair);
}

.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3rem, 7vw, 5rem); }

.fstep__shot {
  margin: 0 0 1.75rem;
  width: min(100%, 17rem);
  position: relative;
  aspect-ratio: 393 / 852;
  border-radius: 46px;
  border: 3px solid var(--ink);
  background: var(--sky);
  overflow: hidden;
  box-shadow: var(--lift);
}
.fstep__shot img { width: 100%; height: 100%; object-fit: cover; }
.fstep__shot::after {
  content: ""; position: absolute; z-index: 3; top: 9px; left: 50%;
  translate: -50% 0;
  width: 31%; height: 22px;
  background: var(--ink); border-radius: 999px;
}

.fstep__n {
  font-family: var(--mono); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; color: var(--punch);
  margin: 0 0 .85rem;
}
.fstep h3 {
  font-size: clamp(1.7rem, 3.1vw, 2.6rem);
  margin-bottom: .9rem;
}
.fstep p { color: var(--ink-2); max-width: 34em; }
.fstep__chips {
  display: flex; flex-wrap: wrap; gap: .45rem;
  margin-top: 1.25rem;
}
.fstep__chips span {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .06em;
  background: var(--card); color: var(--ink-2);
  border: 1px solid var(--hair); border-radius: 999px;
  padding: .38rem .8rem;
}

@media (max-width: 62rem) {
  .fstep__shot { width: min(64%, 14rem); margin-inline: auto; }
}

/* On a wide screen the stacked form reads as a filmstrip rather than a column
   of lonely phones: screen left, caption right. The reel replaces this layout
   entirely where it is available. */
@media (min-width: 62rem) {
  .flow__steps { gap: clamp(4rem, 8vw, 6.5rem); }
  .fstep {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    gap: clamp(2rem, 4.5vw, 3.5rem);
    align-items: center;
  }
  .fstep__shot { margin: 0; justify-self: center; width: min(100%, 19rem); }
}

/* Styled here, revealed only by the reel. A progress bar with nothing driving
   it is a lie about where you are, so outside the reel it stays display:none. */
.flow__dots {
  justify-content: center; gap: .55rem;
  padding-bottom: clamp(1.5rem, 4vh, 2.75rem);
}
.dot {
  width: 34px; height: 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  position: relative; overflow: hidden;
}
.dot::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  transform-origin: left;
  scale: 0 1;
}
.dot--1::after { scale: 1 1; }

/* ------------------------------------------------- 10b. The playable hand */

/* ---------------------------------------------------------------------------
   Two forms again, and the base one is not a fallback - it is the content.

   BASE: a numbered list of ten places, every card readable, nothing hidden.
   That is what arrives if deck.js never runs.

   LIVE: deck.js adds .is-live to the stage and the list becomes a stack. Only
   then do the controls unhide, because a Keep button that keeps nothing is
   worse than no button.
   --------------------------------------------------------------------------- */

.play {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 55%, var(--paper) 100%);
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.play > *:not(.sky) { position: relative; z-index: 1; }
.play .band-head { text-align: center; }
.play .band-head h2, .play .band-head__sub { margin-inline: auto; }

/* Left: the screen, inside a handset, live. Right: how to read what is on it.
   The frame is doing real work. The same card floating loose on a marketing
   page reads as a mockup of an app; inside a phone it reads as the app. */
.play__split {
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 22.5rem) minmax(0, 27rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  justify-content: center;
}

/* --- the handset --------------------------------------------------------- */

.playphone { width: 100%; max-width: 22.5rem; margin-inline: auto; }

/* The frame is drawn only once deck.js has turned the list into a single card.
   Without it the section is ten stacked cards, and ten stacked cards inside a
   handset is a three-and-a-half-thousand-pixel phone. Same rule as the
   progress bar and the 9:41: chrome that describes one card on screen cannot
   be shown over a list of ten. */
.playphone:has(.is-live) .playphone__body {
  border: 3px solid var(--ink);
  border-radius: 42px;
  padding: .55rem .6rem .7rem;
  /* the app's own deck screen: pink at the top, cream under the controls */
  background: linear-gradient(180deg, var(--blush) 0%, #fff3f7 26%, var(--cream) 100%);
  box-shadow: var(--lift), var(--hard-lg);
}
.playphone__status { display: none; }
.playphone:has(.is-live) .playphone__status {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem;
  padding: .15rem .7rem .55rem;
  font-family: var(--mono); font-size: .68rem; font-weight: 600; color: var(--ink);
}
.playphone__notch {
  flex: 1; max-width: 6.25rem; height: 1.1rem;
  background: var(--ink); border-radius: 999px;
}
.playphone__sig { letter-spacing: -.08em; }

/* One height whether the deck is running or finished, so landing the last card
   does not yank the page. The done panel centres itself in the space. */
.play__stage {
  width: 100%;
  display: flex; flex-direction: column;
}
.play__stage.is-live { min-height: clamp(27rem, 72vw, 30rem); }

/* The app's own deck chrome. A progress bar over a static list would be a
   claim the page cannot keep, so it only appears once the stack is live. */
.play__chrome { display: none; }
.play__stage.is-live .play__chrome {
  display: flex; align-items: center; gap: .6rem;
  width: 100%; margin: 0 0 .7rem;
}
.play__chrome-btn {
  flex: none; width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center;
  background: var(--card); border: 2px solid var(--ink); border-radius: 50%;
  font-size: 1rem; line-height: 1; color: var(--ink-3);
}
.play__chrome-mid {
  flex: 1; min-width: 0;
  display: grid; gap: .3rem; justify-items: center;
}
.play__chrome-mid b { font-family: var(--display); font-weight: 800; font-size: .88rem; }
.play__chrome-done {
  flex: none;
  font-family: var(--display); font-weight: 700; font-size: .76rem;
  background: var(--card); border: 2px solid var(--ink); border-radius: 999px;
  padding: .28rem .7rem; color: var(--ink);
}
.play__track { display: flex; align-items: center; gap: .55rem; width: 100%; }
.play__bar {
  flex: 1; height: 5px; border-radius: 999px;
  background: var(--hair); overflow: hidden;
}
.play__bar i {
  display: block; width: 100%; height: 100%;
  background: var(--punch); border-radius: 999px;
  transform-origin: 0 50%;
  scale: var(--p, .1) 1;
  transition: scale .3s cubic-bezier(.3, .9, .35, 1);
}
.play__pos {
  flex: none;
  font-family: var(--mono); font-size: .72rem; color: var(--ink-3);
}

.playdeck {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1rem;
}

/* The card is the app's card: a dark slab, a photo band with the name burned
   into the bottom of it, three facts as pills, the review that matched the
   ask, and the address. The band carries a real photograph, cropped past the
   point where any actual business is identifiable, because these ten places
   are invented and a real dining room under a made-up name and a made-up
   review would be putting words in someone's mouth. Each card keeps its tone
   as a tint over the corner of the photo, so the deck still reads as a deck. */
.pcard {
  --tone: var(--pool);
  position: relative;
  background: var(--ink-deep);
  color: #e7eff7;
  border: var(--edge);
  border-radius: var(--r-md);
  box-shadow: var(--hard);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}
.pcard[data-tone="pool"]  { --tone: var(--pool); }
.pcard[data-tone="blush"] { --tone: var(--blush); }
.pcard[data-tone="mint"]  { --tone: var(--mint); }
.pcard[data-tone="cream"] { --tone: var(--cream); }
.pcard[data-tone="lilac"] { --tone: var(--lilac); }
.pcard[data-tone="peach"] { --tone: var(--peach); }

.pcard__photo {
  position: relative;
  min-height: 8.75rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem 1rem .8rem;
  background: var(--ink-deep);
}
.pcard__photo img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
/* the card's tone, laid over one corner of the photo */
.pcard__photo::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(203deg,
    color-mix(in oklab, var(--tone) 42%, transparent) 0%,
    transparent 56%);
  pointer-events: none;
}
/* and the fade the name sits on, so the type never fights the picture */
.pcard__photo::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(179deg,
    rgba(19, 26, 36, .10) 0%,
    rgba(19, 26, 36, .04) 34%,
    rgba(19, 26, 36, .68) 74%,
    var(--ink-deep) 100%);
  pointer-events: none;
}
.pcard__cat, .pcard__photo h3 { position: relative; z-index: 3; }
.pcard__cat {
  margin: 0 0 .22rem;
  font-family: var(--mono); font-size: .6rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--sun);
  text-shadow: 0 1px 8px rgba(9, 14, 20, .8);
}
.pcard h3 {
  margin: 0;
  font-size: 1.42rem;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(9, 14, 20, .7);
}
/* Pills, then the review, then the address pinned to the bottom edge - the
   same three rows in the same places the app puts them. */
.pcard__facts {
  padding: .8rem .95rem .85rem;
  display: grid; grid-template-rows: auto auto 1fr; gap: .55rem;
}
.pcard__foot { align-self: end; }
.pcard__meta { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.pill {
  font-family: var(--mono); font-size: .63rem; font-weight: 500;
  padding: .28rem .52rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  color: #cfdded;
  white-space: nowrap;
}
.pill--rate {
  background: var(--sun); color: var(--ink);
  border-color: transparent; font-weight: 600;
}
.pill--open {
  background: rgba(168, 230, 163, .15); color: #a8e6a3;
  border-color: rgba(168, 230, 163, .34);
}
.pcard__quote {
  border: 1px solid rgba(255, 200, 56, .34);
  border-radius: 14px;
  padding: .6rem .78rem .65rem;
  background: rgba(255, 200, 56, .06);
}
.pcard__qhead {
  margin: 0 0 .28rem;
  font-family: var(--mono); font-size: .58rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase; color: var(--sun);
}
.pcard__qtext { margin: 0; font-size: .88rem; line-height: 1.34; color: #f3f8fc; }
.pcard__qsrc { margin: .28rem 0 0; font-size: .7rem; color: #8fa2b6; }
.pcard__foot {
  margin: 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: .67rem; color: #8fa2b6;
}
.pcard__rank { flex: none; font-size: .95rem; font-weight: 600; color: #bfe3ff; }
.pcard__rank i { font-style: normal; font-size: .67rem; color: #6d7f92; }
/* the rank belongs to the static list, where nothing else says which card
   this is. Live, the header counter says it once and this would say it twice. */
.play__stage.is-live .pcard__rank { display: none; }

/* --- live: the list becomes a stack ------------------------------------- */

.play__stage.is-live .playdeck {
  display: grid;
  position: relative;
  width: 100%;
  /* sized to the frame, not the viewport - the phone is capped at 22.5rem, so
     a vw-driven height would grow past its own handset on a wide screen */
  height: clamp(21.5rem, 58vw, 22rem);
  margin: 0 0 .7rem;
  touch-action: pan-y;
}
.play__stage.is-live .pcard {
  grid-area: 1 / 1;
  min-height: 100%;
  /* --depth is how far back in the stack this card sits, set by deck.js */
  /* The peek has to be smaller than the card's bottom padding, or the card
     behind shows a legible line of its own address under the top one. */
  translate: var(--dx, 0) calc(var(--dy, 0px) + var(--depth) * .85rem);
  scale: calc(1 - var(--depth) * .042);
  rotate: var(--rot, 0deg);
  transition: translate .34s cubic-bezier(.22,.9,.3,1),
              scale .34s cubic-bezier(.22,.9,.3,1),
              rotate .34s cubic-bezier(.22,.9,.3,1),
              opacity .3s ease;
}
/* will-change only on the cards that can actually move right now. Declaring it
   on all ten promotes ten layers and keeps them promoted for the life of the
   page, whether or not anyone ever touches the deck. */
.play__stage.is-live .pcard.is-top,
.play__stage.is-live .pcard.is-stacked {
  will-change: translate, scale, rotate;
}
.play__stage.is-live .pcard.is-top { cursor: grab; z-index: 4; }
.play__stage.is-live .pcard.is-dragging {
  cursor: grabbing;
  transition: none;
}
/* dark enough that the sliver showing under the top card reads as the edge of
   another card and not as a stray line of someone else's address */
.play__stage.is-live .pcard.is-stacked { z-index: 3; filter: brightness(.5); }
.play__stage.is-live .pcard.is-deep,
.play__stage.is-live .pcard.is-gone { opacity: 0; pointer-events: none; }
.play__stage.is-live .pcard.is-deep { z-index: 1; }

.play__stage.is-live .pcard.fly-save {
  translate: 140% -8%; rotate: 22deg; opacity: 0;
}
.play__stage.is-live .pcard.fly-skip {
  translate: -140% -8%; rotate: -22deg; opacity: 0;
}
.play__stage.is-live .pcard.fly-maybe {
  translate: 0 -128%; scale: .82; opacity: 0;
}
.play__stage.is-live .pcard.is-returning {
  transition: translate .3s cubic-bezier(.3,1.4,.5,1), rotate .3s cubic-bezier(.3,1.4,.5,1);
}

/* The stamps. Same three words, colours and rotations the app stamps on its
   own deck: SAVE at -12, SKIP at +12, MAYBE flat.

   --tilt runs -1 (skip) to 1 (save) while you drag sideways and --up runs
   0 to 1 while you drag up, so each stamp fades in under your thumb rather
   than snapping on at the threshold. */
.play__stage.is-live .pcard.is-top::before,
.play__stage.is-live .pcard.is-top::after,
/* every card, not only the top one - a maybe stamp left in normal flow adds a
   line of height to the nine cards behind it, even at opacity 0 */
.play__stage.is-live .pcard .pcard__maybe {
  position: absolute; top: 1.1rem;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.35rem); letter-spacing: .06em;
  padding: .3rem .8rem;
  border: 3px solid currentColor; border-radius: 12px;
  background: rgba(255, 255, 255, .85);
  pointer-events: none;
}
.play__stage.is-live .pcard.is-top::before {
  content: "SAVE"; right: 1.1rem; color: #1c7a3f;
  rotate: -12deg;
  opacity: clamp(0, var(--tilt, 0), 1);
}
.play__stage.is-live .pcard.is-top::after {
  content: "SKIP"; left: 1.1rem; color: var(--punch);
  rotate: 12deg;
  opacity: clamp(0, calc(var(--tilt, 0) * -1), 1);
}
/* MAYBE is a real element rather than a third pseudo, because an element only
   gets two. It sits centred, which is where an upward drag is heading. */
.pcard__maybe { display: none; }
.play__stage.is-live .pcard .pcard__maybe {
  display: block;
  left: 50%; translate: -50% 0;
  color: #2d6ea8;
  opacity: 0;
  white-space: nowrap;
}
.play__stage.is-live .pcard.is-top .pcard__maybe {
  opacity: clamp(0, var(--up, 0), 1);
}
.play__stage.is-live .playdeck.is-empty { height: 0; margin: 0; }
/* nothing left to be three-of-ten through */
.play__stage.is-live:has(.playdeck.is-empty) .play__chrome { display: none; }

/* --- controls ----------------------------------------------------------- */

/* Four round buttons in the app's order: undo, skip, save, maybe. The app
   labels them with icons alone; here each keeps a word under it, because a
   reader on this page has never seen the screen before. */
.play__ui { padding: .35rem .2rem .1rem; }
.play__controls {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(.6rem, 3vw, 1.15rem);
}
/* the line the app prints under its own control row */
.play__swipe {
  margin: .8rem 0 0; text-align: center;
  font-family: var(--body); font-size: .78rem; color: var(--ink-3);
}
.pdot {
  display: grid; justify-items: center; gap: .38rem;
  background: none; border: 0; padding: 0;
  font: inherit; color: var(--ink-3);
  cursor: pointer;
}
.pdot i {
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  font-style: normal; font-size: 1.08rem; line-height: 1;
  background: var(--card);
  border: 2.5px solid var(--ink); border-radius: 50%;
  box-shadow: var(--hard);
  transition: translate .16s cubic-bezier(.3, 1.3, .4, 1), box-shadow .16s;
}
.pdot span {
  font-family: var(--mono); font-size: .57rem; font-weight: 500;
  letter-spacing: .11em; text-transform: uppercase;
}
.pdot:hover i  { translate: -2px -2px; box-shadow: var(--hard-lg); }
.pdot:active i { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
/* the save button is the big one on the app's row, and scale keeps it big
   without taking a different amount of space than its neighbours */
.pdot--save i  { background: var(--punch); color: #fff; font-size: 1.2rem; scale: 1.18; }
.pdot--maybe i { color: #2d6ea8; }
.pdot--undo i  { color: var(--ink-3); border-style: dashed; }
.pdot:disabled { cursor: default; opacity: .36; }
.pdot:disabled i { translate: 0; box-shadow: none; }
.pdot:focus-visible { outline: none; }
.pdot:focus-visible i { outline: 3px solid var(--punch); outline-offset: 3px; }

.pbtn {
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  color: var(--ink);
  background: var(--card);
  border: var(--edge); border-radius: 999px;
  padding: .7rem 1.5rem;
  box-shadow: var(--hard);
  cursor: pointer;
  transition: translate .16s cubic-bezier(.3,1.3,.4,1), box-shadow .16s, background .16s;
}
.pbtn:hover { translate: -2px -2px; box-shadow: var(--hard-lg); }
.pbtn:active { translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.pbtn:disabled { opacity: .32; cursor: default; translate: 0; box-shadow: none; }

/* --- reading a card ------------------------------------------------------ */

/* Deliberately quiet. The phone beside it is already the loud half of the
   section, and this column only has to answer "what am I looking at". No
   numbers on these three: the first two are where your eye lands on the card,
   the third is what you do about it, so numbering them would claim a sequence
   that is not there. */
.play__asidekick {
  font-family: var(--mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--punch); margin-bottom: 1.15rem;
}
.play__legend {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.35rem;
}
.play__legend li { max-width: 42ch; }
.play__legend b {
  display: block;
  font-family: var(--display); font-weight: 700;
  font-size: 1.08rem; line-height: 1.2; margin-bottom: .3rem;
}
.play__legend span { font-size: .94rem; line-height: 1.55; color: var(--ink-2); }

.play__livebits {
  margin-top: 1.8rem; padding-top: 1.2rem;
  border-top: 2px dashed var(--hair);
}
.play__tally {
  margin: 0;
  display: flex; align-items: center;
  flex-wrap: wrap; gap: .5rem 1.9rem;
  font-family: var(--mono); font-size: .74rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
.play__tally b { font-size: 1.3rem; color: var(--ink); margin-right: .3rem; }
.play__hint {
  margin: .7rem 0 0;
  font-family: var(--mono); font-size: .72rem; color: var(--ink-muted);
}
.play__hint kbd {
  font-family: var(--mono); font-size: .72rem;
  border: 1px solid var(--hair); border-bottom-width: 2px;
  border-radius: 5px; padding: .05rem .35rem; background: var(--card);
}

/* centred in whatever height the frame is holding open */
.play__done { text-align: center; margin-block: auto; padding: 1.5rem .75rem; }
.play__done-n {
  font-family: var(--mono); font-weight: 700;
  font-size: 4.6rem; line-height: .9;
  color: var(--punch); margin: 0;
}
.play__done-lead {
  font-family: var(--display); font-weight: 800;
  font-size: 1.25rem; margin: .35rem 0 .8rem;
}
.play__done-sub {
  max-width: 30ch; margin: 0 auto 1.4rem;
  font-size: .9rem; line-height: 1.5;
  color: var(--ink-2);
}
/* the finished panel arrives rather than blinks in */
@starting-style { .play__done { opacity: 0; translate: 0 12px; } }
.play__done { transition: opacity .35s ease, translate .35s ease; }

/* ------------------------------------------------------------ 11. Receipts */

.receipts {
  background: linear-gradient(180deg, var(--paper) 0%, var(--blush) 100%);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  overflow: clip;
}
.receipts__grid {
  max-width: var(--measure); margin: 0 auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.receipts h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 20ch; margin-bottom: 1.3rem; }

.proof-list {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: .2rem;
  background: var(--card);
  border-radius: var(--r-md);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--soft);
}
.proof-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .1rem .85rem;
  align-items: center;
  padding: .55rem 0;
}
.proof-list b { font-family: var(--body); font-weight: 600; font-size: 1rem; }
.proof-list span:not(.proof-list__tick) {
  grid-column: 2;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em;
  color: var(--ink-muted);
}
.proof-list__tick {
  grid-row: span 2;
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--hair);
  display: grid; place-items: center;
}
.proof-list__tick--done { background: var(--mint); border-color: var(--ink); }
.proof-list__tick--done::after {
  content: ""; width: 10px; height: 6px;
  border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  rotate: -45deg; translate: 0 -2px;
}
.proof-list__tick--live { background: var(--sun); border-color: var(--ink); }

.receipts__shot { margin: 0; }
.receipts__shot .phone { width: min(100%, 19rem); margin-inline: auto; rotate: 2.5deg; }

/* ----------------------------------------------- 11b. The shortlist panel */

/* An index card pinned to the page. Static, it reads top to bottom as a real
   compare list: two asks, four keepers, a question, an answer. Given a scroll
   timeline in section 19 it assembles itself in that order. */

.kept {
  background: linear-gradient(180deg, var(--blush) 0%, var(--paper) 46%, var(--cream) 100%);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
  overflow: clip;
}
.kept__grid {
  max-width: var(--measure); margin: 0 auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.kept h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 17ch; margin-bottom: 1.3rem; text-wrap: balance; }
.kept h2 em { font-style: normal; color: var(--punch); }
.kept__copy p + p { margin-top: 1rem; }

.shortlist {
  position: relative;
  background: var(--card);
  border: var(--edge);
  border-radius: var(--r-lg);
  box-shadow: var(--hard-lg);
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  rotate: -1.1deg;
}
.shortlist__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: .85rem;
  border-bottom: 2.5px dotted var(--hair);
  margin-bottom: 1rem;
}
.shortlist__head b { color: var(--punch); }

/* the ask that surfaced the rows under it - the grouping is the feature */
.shortlist__ask {
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .02em; color: var(--ink-3);
  background: var(--sun-2);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .3rem .8rem;
  width: fit-content;
  max-width: 100%;
  margin-bottom: .55rem;
}
.shortlist__ask::before { content: "\201C"; }
.shortlist__ask::after  { content: "\201D"; }
.shortlist__ask + .shortlist__rows { margin-bottom: 1.15rem; }

.shortlist__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.shortlist__rows li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  padding: .5rem .7rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--sky) 46%, var(--card));
}
.shortlist__rows b { font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.shortlist__rows span {
  font-family: var(--mono); font-size: .7rem; color: var(--ink-muted);
  white-space: nowrap;
}

.shortlist__q {
  display: flex; align-items: baseline; gap: .5rem;
  margin-top: 1.35rem;
  padding: .75rem .9rem;
  background: var(--ink);
  border-radius: 14px;
  font-family: var(--mono); font-size: .8rem; line-height: 1.4;
  color: var(--paper);
}
.shortlist__caret { color: var(--sun); font-weight: 700; flex: none; }
.shortlist__type { display: inline-block; }

/* Both states share one grid cell, so the card is always the height of its
   answer and no part of this section changes size while you scroll past it. */
.shortlist__slot { display: grid; margin-top: .9rem; }
.shortlist__slot > * { grid-area: 1 / 1; }

.shortlist__work {
  list-style: none; margin: 0; padding: .9rem 1.1rem;
  display: grid; align-content: center; gap: .55rem;
  border: 2.5px dashed var(--hair);
  border-radius: 16px;
  opacity: 0;
}
.shortlist__work li {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .02em;
  color: var(--ink-muted);
}
.shortlist__work li::before {
  content: ""; flex: none;
  width: 14px; height: 14px; border-radius: 50%;
  border: 2.5px solid var(--hair);
  background: var(--sun-2);
}

.shortlist__answer {
  padding: 1rem 1.1rem;
  background: var(--mint);
  border: var(--edge);
  border-radius: 16px;
  box-shadow: var(--hard);
}
.shortlist__answer p { font-size: .95rem; color: var(--ink); }
.shortlist__winner {
  font-family: var(--display); font-weight: 800; font-size: 1.25rem;
  margin-bottom: .3rem;
}
.shortlist__src { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.shortlist__src span {
  font-family: var(--mono); font-size: .65rem; letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: .22rem .6rem;
}

/* ----------------------------------------------------- 11c. On my way */

/* The one feature on this page that is not about standing still deciding, so
   it gets a band rather than a card: a circle around you and a line down the
   road are different shapes of answer, and that difference is the argument. */
.road {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-block: var(--edge);
  background: linear-gradient(148deg, var(--pool) 0%, #dcefff 44%, var(--paper) 100%);
  /* the bottom rail has to clear the road, which is 1/12th of the band's
     width tall - 120px once the viewport passes 1440 */
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(6.5rem, 11vw, 10rem);
}
.road__grid {
  position: relative; z-index: 1;
  max-width: var(--measure); margin: 0 auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.road h2 { max-width: 15ch; margin-bottom: 1.1rem; }
.road h2 em { color: var(--punch); }
.road .lede { max-width: 44ch; }

/* Four legs of one trip, so they are numbered: the order is the trip. */
.road__steps {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  counter-reset: leg;
  display: grid; gap: .5rem;
}
.road__steps li {
  counter-increment: leg;
  display: grid; grid-template-columns: 1.85rem minmax(0, 1fr);
  gap: .08rem .8rem;
  background: rgba(255, 255, 255, .9);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: .6rem .85rem;
}
.road__steps li::before {
  content: counter(leg);
  grid-row: span 2; align-self: center; justify-self: center;
  width: 1.85rem; height: 1.85rem;
  display: grid; place-items: center;
  background: var(--sun); border: 2px solid var(--ink); border-radius: 50%;
  font-family: var(--mono); font-size: .74rem; font-weight: 600; color: var(--ink);
}
.road__steps b {
  font-family: var(--display); font-weight: 700;
  font-size: 1.02rem; line-height: 1.15;
}
.road__steps span { font-size: .88rem; line-height: 1.42; color: var(--ink-3); }

.road__shot { margin: 0; }
.road__shot .phone { width: min(100%, 15.5rem); margin-inline: auto; rotate: 2.5deg; }

/* ------------------------------------------------------------ 12. Features */

.features {
  background: var(--paper);
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.fgrid {
  max-width: var(--measure); margin: 0 auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 1.8vw, 1.5rem);
  /* Cards keep their own height. Stretching a three-line card to match one
     holding a phone screenshot buys a 200px hole, and these are stickers on
     paper - a ragged edge is the look, an empty box is not. */
  align-items: start;
}
.fcard {
  grid-column: span 3;
  background: var(--card);
  border: var(--edge);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
  box-shadow: var(--hard);
  display: flex; flex-direction: column; gap: 1.25rem;
  transition: translate .22s cubic-bezier(.3,1.3,.4,1), box-shadow .22s;
}
.fcard:hover { translate: -3px -3px; box-shadow: var(--hard-lg); }
.fcard__body { flex: 1; }
.fcard__kicker {
  font-family: var(--mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--punch); margin-bottom: .7rem;
}
.fcard h3 { margin-bottom: .7rem; }
.fcard p { color: var(--ink-2); font-size: 1rem; }
/* an em inside body copy here is a string quoted off an app screen, so it is
   set the way every other piece of app data on this page is set */
.flock-proof figcaption em {
  display: block; margin-top: .45rem;
  font-family: var(--mono); font-style: normal;
  font-size: .62rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-muted);
}
.fcard p em {
  font-family: var(--mono); font-size: .84em; color: var(--ink-2);
  background: var(--sun-2); border-radius: 6px;
  padding: .12em .38em; white-space: nowrap;
}
.fcard blockquote {
  margin: 0 0 .8rem; font-family: var(--display); font-weight: 700;
  font-size: 1.15rem; line-height: 1.25;
}
.fcard cite { font-family: var(--mono); font-size: .74rem; color: var(--ink-muted); font-style: normal; }

/* The route. Static, it is a dotted road with three stops on it - already the
   picture the card is describing. Given a scroll timeline it draws itself. */
/* A road belongs along the bottom of the band, not across the middle of the
   reading. aspect-ratio rather than a fixed height, and no
   preserveAspectRatio override: the box is always exactly the viewBox's 12:1,
   so nothing is ever stretched and the three stops stay circles at every
   width. Stretching this was how they turned into eggs the first time. */
.route {
  position: absolute; inset: auto 0 0; z-index: 0;
  width: 100%; aspect-ratio: 12 / 1;
  pointer-events: none;
}
.route__ghost {
  fill: none; stroke: color-mix(in srgb, var(--ink) 16%, transparent);
  stroke-width: 3; stroke-linecap: round; stroke-dasharray: .002 .012;
  vector-effect: non-scaling-stroke;
}
.route__line {
  fill: none; stroke: var(--ink);
  stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  vector-effect: non-scaling-stroke;
}
.route__pin circle { stroke: var(--ink); stroke-width: 2.5; fill: var(--sun); }
.route__pin .route__dot { fill: var(--ink); stroke: none; }
.route__pin--c circle { fill: var(--punch); }
.fcard--dice { grid-column: span 3; background: linear-gradient(180deg, var(--sun-2) 0%, var(--card) 62%); }
.fcard--flock { grid-column: span 3; }
.fcard--roost { grid-column: span 3; background: linear-gradient(180deg, var(--cream) 0%, var(--card) 62%); }

.fcard__shot { margin: 0; flex: none; }
.fcard__shot img {
  border-radius: 22px; border: 2.5px solid var(--ink);
  box-shadow: var(--soft);
}
.fcard__shot--tall {
  margin-inline: auto -.5rem; margin-bottom: -3.5rem;
  width: min(72%, 13rem);
  rotate: 3deg;
}
.fcard--dice, .fcard--roost { overflow: hidden; }

/* The flock card is the only one in its row without a screenshot, so it earns
   its height with the thing it is actually about: a score somebody left after
   going. The dial is a conic gradient, so 7.9 is drawn at 79% and not faked. */
.flock-proof {
  margin: 0;
  display: flex; align-items: center; gap: 1.1rem;
  background: var(--card);
  border: var(--edge); border-radius: var(--r-md);
  box-shadow: var(--hard);
  padding: 1.1rem 1.25rem;
}
.flock-proof__dial {
  flex: none; width: 5.25rem; aspect-ratio: 1;
  display: grid; place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--sun) 0 79%, color-mix(in srgb, var(--ink) 12%, transparent) 79%);
}
.flock-proof__dial::before {
  content: ""; position: absolute; inset: .6rem;
  border-radius: 50%; background: var(--card);
}
.flock-proof__dial b {
  position: relative;
  font-family: var(--display); font-weight: 800; font-size: 1.45rem;
  letter-spacing: -.02em;
}
.flock-proof figcaption { display: grid; gap: .25rem; }
.flock-proof figcaption b {
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.1;
}
.flock-proof figcaption span {
  font-family: var(--mono); font-size: .72rem; color: var(--ink-3); line-height: 1.35;
}

.rate {
  margin-top: 1.25rem;
  font-family: var(--mono); font-weight: 600; font-size: .95rem;
  color: var(--ink-2);
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
}
.rate b { color: var(--ink); font-size: 1.35rem; font-weight: 700; }
.rate .rate--hot { color: var(--punch); }

/* ----------------------------------------------------- 12b. What is next */

/* Deliberately quieter than every band above it: a dashed edge and no hard
   shadow, because nothing in here is built. The design is doing the same job
   the headline is - telling you this part is not real yet. */
.next {
  background: var(--paper);
  padding: 0 0 clamp(4rem, 9vw, 7.5rem);
}
.next .band-head { text-align: center; }
.next .band-head h2, .next .band-head__sub { margin-inline: auto; }
.next .eyebrow { color: var(--ink-muted); }

.hen {
  max-width: var(--measure); margin: 0 auto;
  padding-inline: var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
}
.hen__copy { 
  border: 2.5px dashed var(--ink-muted);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.6vw, 2.1rem);
  background: var(--card);
}
.hen__copy h3 { margin-bottom: .8rem; }
.hen__copy p { color: var(--ink-2); }
.hen__copy p + p { margin-top: .85rem; }
.hen__copy em { font-style: italic; color: inherit; }
.hen__now {
  margin-top: 1.15rem !important;
  font-size: .92rem; color: var(--ink-3);
  border-left: 3px solid var(--sun);
  padding-left: .9rem;
}
.hen__now b { color: var(--ink); }

/* A conversation, drawn as one. Decorative - every claim it makes is spelled
   out in the paragraph beside it. */
.hen__chat { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.hen__chat li {
  max-width: 86%;
  padding: .7rem .95rem;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  font-size: .95rem; line-height: 1.35;
  box-shadow: var(--hard);
}
.hen__you {
  justify-self: end; border-bottom-right-radius: 5px;
  background: var(--pool);
}
.hen__her {
  justify-self: start; border-bottom-left-radius: 5px;
  background: var(--sun-2);
}
.hen__her b { font-family: var(--display); font-weight: 700; }
.hen__her--done { background: var(--mint); }

/* ------------------------------------------------------------- 13. Privacy */

.privacy {
  background: var(--ink);
  color: #c6d3e0;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
/* The 1px gap is the ruling. Width is computed rather than padded so the
   background never bleeds past the grid into the gutter.

   Column counts are fixed rather than auto-fit because there are exactly six
   promises: 3, 2 and 1 all divide evenly, and auto-fit lands on 4, which
   leaves half a row of bare backing showing. */
.manifesto {
  list-style: none;
  width: min(100% - 2 * var(--pad), var(--measure));
  margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .09);
  border-block: 1px solid rgba(255, 255, 255, .09);
}
.manifesto li {
  background: var(--ink);
  padding: 1.5rem clamp(1rem, 2vw, 1.75rem);
  font-size: .98rem;
  line-height: 1.55;
}
.manifesto b { color: var(--cream); display: block; font-weight: 700; margin-bottom: .3rem; }

@media (max-width: 62rem) { .manifesto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .manifesto { grid-template-columns: 1fr; } }

.ledger {
  max-width: 58rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  background: var(--ink-deep);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.ledger__head {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  color: var(--cream); line-height: 1.15;
  margin-bottom: 1.5rem;
}
.ledger__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.25rem; margin: 0 0 1.75rem;
}
.ledger__grid div { display: flex; gap: .8rem; align-items: baseline; }
.ledger dt {
  font-family: var(--mono); font-weight: 700;
  font-size: 2.1rem; line-height: 1; color: var(--sun);
}
.ledger dd {
  margin: 0; font-size: .84rem; line-height: 1.35; color: #93a5b8;
}
.ledger__note { font-size: .92rem; color: #a9bacb; margin-bottom: 1.25rem; }
.ledger__note b { font-family: var(--mono); font-weight: 600; color: var(--sun); font-size: .86em; }
.ledger .link-arrow { color: var(--cream); }

/* -------------------------------------------------------- 14. Plans, proof */

.plus, .proof { background: var(--cream); padding: clamp(4rem, 9vw, 7.5rem) 0; }
.proof { background: var(--paper); }
.plans {
  max-width: 58rem; margin: 0 auto;
  padding-inline: var(--pad);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}
.plan {
  background: var(--card); border: var(--edge); border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem); box-shadow: var(--hard);
}
.plan--pro { background: var(--sun-2); }
.plan__name { font-size: 1.45rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.chip-best {
  font-family: var(--mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  background: var(--ink); color: var(--sun);
  padding: .28rem .55rem; border-radius: 6px;
}
.plan__price { font-family: var(--mono); font-weight: 700; font-size: 2rem; margin: .8rem 0 0; }
.plan__price small { font-family: var(--body); font-size: .95rem; font-weight: 500; color: var(--ink-3); }
.plan__list { margin: 1.3rem 0 0; padding-left: 1.1rem; display: grid; gap: .5rem; font-size: .97rem; }
.plan__list .soon { color: var(--ink-muted); }
.disclosure {
  max-width: 58rem; margin: 1.75rem auto 0;
  padding-inline: var(--pad);
  font-size: .8rem; color: var(--ink-3); line-height: 1.5;
}

/* ---------------------------------------------------------------- 15. FAQ */

.faq { background: var(--blush); padding: clamp(4rem, 9vw, 7.5rem) 0; }
.faq .band-head { max-width: 52rem; }
.faq__list { max-width: 52rem; margin: 0 auto; padding-inline: var(--pad); }
.faq details {
  border-bottom: 2px solid rgba(28, 36, 49, .12);
}
.faq details:first-child { border-top: 2px solid rgba(28, 36, 49, .12); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 50%;
  width: 13px; height: 13px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  translate: 0 -60%; rotate: 45deg;
  transition: rotate .25s ease;
}
.faq details[open] summary::after { rotate: -135deg; translate: 0 -20%; }
.faq .answer { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 62ch; }

@supports (interpolate-size: allow-keywords) {
  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .35s ease, content-visibility .35s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* ------------------------------------------------------------- 16. Closer */

.closer {
  position: relative; isolation: isolate; overflow: clip;
  text-align: center;
  padding: clamp(4.5rem, 10vw, 8rem) var(--pad);
  background: linear-gradient(180deg, var(--paper) 0%, var(--sky) 40%, var(--cream) 100%);
}
.closer > *:not(.sky) { position: relative; z-index: 1; }
.closer__inner { max-width: 44rem; margin: 0 auto; }
.closer h2 { font-size: clamp(2.3rem, 6vw, 4.5rem); margin-bottom: 1.1rem; }
.closer p { color: var(--ink-2); font-size: 1.1rem; }

/* ------------------------------------------------------------- 17. Footer */

.site-foot { background: var(--ink); color: #93a5b8; padding: 3rem 0; }
.site-foot__inner {
  max-width: var(--measure); margin: 0 auto;
  padding-inline: var(--pad);
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center;
}
.site-foot__brand {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--cream);
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-left: auto; font-size: .92rem; }
.site-foot nav a { color: #b9c7d6; text-decoration: none; }
.site-foot nav a:hover { color: var(--sun); }
.site-foot__legal { flex-basis: 100%; margin: 0; font-size: .78rem; color: #6e8095; }

/* ----------------------------------------------------- 18. Document pages */

/* /privacy, /support and /terms are registered surfaces. They carry the same
   furniture as the launch page and load no script at all. */
.doc-body {
  background:
    linear-gradient(180deg, var(--sky) 0, var(--paper) 26rem) no-repeat,
    var(--paper);
}
.doc {
  max-width: 48rem; margin: 0 auto;
  padding: calc(var(--nav-h) + clamp(1.5rem, 4vw, 3rem)) var(--pad) clamp(3rem, 7vw, 6rem);
}
.doc h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: .8rem; }
.doc h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin: 2.5rem 0 .75rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--hair);
}
.doc h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.2rem; display: grid; gap: .4rem; margin: 0 0 1rem; }
.doc__meta {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .06em;
  color: var(--ink-muted); text-transform: uppercase; margin-bottom: 2rem;
}
.doc a { color: var(--ink); text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc .callout {
  background: var(--cream); border: 2.5px solid var(--ink); border-radius: var(--r-md);
  padding: 1.25rem 1.5rem; margin: 1.5rem 0; box-shadow: var(--hard);
}
.doc .callout p { color: var(--ink); }
.doc .callout h2 {
  border-top: 0; padding-top: 0; margin: 0 0 .5rem;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.doc__nav {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: 3rem; padding-top: 2rem;
  border-top: 2px solid var(--hair);
}
.btn-solid {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  text-decoration: none;
  padding: .8rem 1.3rem;
  border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--sun); color: var(--ink);
  box-shadow: var(--hard);
  transition: translate .18s cubic-bezier(.3,1.3,.4,1), box-shadow .18s;
}
.btn-solid:hover { translate: -2px -2px; box-shadow: var(--hard-lg); }
.doc__nav .btn-ghost { font-size: 1rem; padding: .8rem 1.3rem; }

/* ============================================================================
   19. Motion. Everything scroll-driven lives here, behind both a feature test
   and a motion-preference test, so the page degrades to its finished layout
   rather than to blank space.
   ========================================================================= */

.not-yet { display: none; }

@media (prefers-reduced-motion: no-preference) {

  /* the pill lifts off the page once you have left the top */
  @supports (animation-timeline: scroll()) {
    .nav::before {
      animation: navLift linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 180px;
    }
    @keyframes navLift {
      from { opacity: 0; }
      to   { opacity: 1; }
    }

    /* progress along the whole document, drawn on the dock */
    .nav__progress {
      animation: navFill linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes navFill { from { scale: 0 1; } to { scale: 1 1; } }
  }

  /* ------------------------------------------------------------- headlines
     Every h1 and h2 is split into words at build time, each carrying its own
     --i. The hero deals itself on load; every other headline is scrubbed by
     its own position, one word behind the last, so the sentence assembles as
     you arrive at it rather than all at once.

     Stagger is done by shifting animation-range rather than animation-delay,
     because a scroll-driven animation has no time axis for a delay to move
     along - the delay is simply ignored. */
  .w { display: inline-block; }

  .hero h1 .w {
    animation: wordIn .58s cubic-bezier(.2, .9, .3, 1) both;
    animation-delay: calc(var(--i, 0) * 65ms + 90ms);
    transform-origin: 0 100%;
  }

  /* ---------------------------------------------------------- the arrival
     One sequence, run once, on load - the hero is already on screen, so
     nothing here is waiting on a scroll. It reads in the order a person
     reads: eyebrow, headline, the rule under the promise, the sentence, the
     three beats, the buttons, and last the stamp on the phones.

     Time-based, so animation-delay is the right tool here and the only place
     on this page where it is. Everything moved is opacity or transform. */
  .hero__copy .eyebrow,
  .hero__copy .lede,
  .hero .cta-row,
  .hero .trust,
  .scroll-cue {
    animation: arrive .7s cubic-bezier(.2, .9, .25, 1) both;
  }
  @keyframes arrive {
    from { opacity: 0; translate: 0 20px; }
    to   { opacity: 1; translate: 0 0; }
  }
  .hero__copy .eyebrow { animation-delay: .04s; }
  .hero__copy .lede    { animation-delay: .46s; }
  .hero .cta-row       { animation-delay: .92s; }
  .hero .trust         { animation-delay: 1.02s; }
  .scroll-cue          { animation-delay: 1.4s; }

  .hero__copy h1 em .rule {
    animation: arriveRule .46s cubic-bezier(.3, 1.2, .4, 1) both;
    animation-delay: .62s;
  }
  @keyframes arriveRule { from { scale: 0 1; } to { scale: 1 1; } }

  .beats li {
    animation: arriveBeat .62s cubic-bezier(.24, 1.05, .32, 1) both;
    animation-delay: calc(.6s + var(--i, 0) * .1s);
  }
  @keyframes arriveBeat {
    from { opacity: 0; translate: 0 18px; scale: .93; rotate: -2deg; }
    to   { opacity: 1; translate: 0 0;    scale: 1;   rotate: 0deg; }
  }

  /* the stamp lands on the phones after they have finished dealing in */
  .sticker {
    animation: arriveStamp .5s cubic-bezier(.3, 1.55, .45, 1) both;
    animation-delay: 1.18s;
  }
  @keyframes arriveStamp {
    from { opacity: 0; scale: .4; rotate: 16deg; }
    to   { opacity: 1; scale: 1;  rotate: -7deg; }
  }

  /* ------------------------------------------------------- leaving the hero
     Copy and phones part company on the way out, so the first scroll has
     depth in it rather than one flat slab moving. Transform and opacity only,
     and nothing here changes any element's size. */
  @supports (animation-timeline: scroll()) {
    .hero__copy {
      animation: heroCopyOut linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 84vh;
    }
    @keyframes heroCopyOut {
      from { translate: 0 0;     opacity: 1; }
      to   { translate: 0 -30px; opacity: .3; }
    }
    .hand {
      animation: heroHandOut linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 84vh;
    }
    @keyframes heroHandOut {
      from { translate: 0 0;     scale: 1; }
      to   { translate: 0 -76px; scale: .9; }
    }
  }

  @supports (animation-timeline: view()) {
    /* The timeline belongs to the heading, not to each word. A word is about
       one line tall, so its own entry range is spent in sixty pixels of
       scrolling and the stagger never gets a chance to read. Naming the
       heading's timeline gives every word the same long ruler to move along. */
    :is(.problem, .deal, .play, .kept, .road, .next, .receipts, .features, .privacy, .faq, .closer) h2 {
      view-timeline: --head block;
    }
    :is(.problem, .deal, .play, .kept, .road, .next, .receipts, .features, .privacy, .faq, .closer) h2 .w {
      animation: wordIn linear both;
      animation-timeline: --head;
      animation-range: cover calc(10% + var(--i, 0) * 2%)
                       cover calc(34% + var(--i, 0) * 2%);
    }
  }

  @keyframes wordIn {
    from { opacity: 0; translate: 0 .5em; rotate: -2.4deg; }
    to   { opacity: 1; translate: 0 0;    rotate: 0deg; }
  }

  /* --------------------------------------------------------------- the road
     The line draws as the card crosses the viewport and each stop lands on
     it in order. Without a timeline the road is already there, dotted, with
     all three pins on it - the drawing is the flourish, not the content. */
  @supports (animation-timeline: view()) {
    .road { view-timeline: --road block; }

    .route__line {
      animation: routeDraw linear both;
      animation-timeline: --road;
      animation-range: cover 12% cover 66%;
    }
    @keyframes routeDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

    .route__pin {
      animation: pinDrop linear both;
      animation-timeline: --road;
      transform-box: fill-box; transform-origin: 50% 50%;
    }
    .route__pin--a { animation-range: cover 30% cover 38%; }
    .route__pin--b { animation-range: cover 46% cover 54%; }
    .route__pin--c { animation-range: cover 62% cover 70%; }
    @keyframes pinDrop {
      from { opacity: 0; scale: .3; translate: 0 -14px; }
      to   { opacity: 1; scale: 1;  translate: 0 0; }
    }

    /* the honest cost of stopping, counted rather than stated */
    .rate .rate--hot {
      animation: hotIn linear both;
      animation-timeline: --road;
      animation-range: cover 52% cover 64%;
    }
    @keyframes hotIn {
      from { opacity: .25; scale: .82; }
      to   { opacity: 1;   scale: 1; }
    }

    /* ----------------------------------------------------- the shortlist
       One timeline on the card, and every part of it takes a slice in the
       order a person would actually build the list: the asks and their
       keepers stack in, the question types, then the answer lands. Ranges
       are absolute rather than staggered by delay - scroll-driven
       animations ignore animation-delay entirely. */
    .shortlist { view-timeline: --kept block; }

    .shortlist__ask,
    .shortlist__rows li {
      animation: keptIn linear both;
      animation-timeline: --kept;
      animation-range: cover calc(6% + var(--i, 0) * 3%)
                       cover calc(17% + var(--i, 0) * 3%);
    }
    @keyframes keptIn {
      from { opacity: 0; translate: 0 14px; scale: .97; }
      to   { opacity: 1; translate: 0 0;    scale: 1; }
    }

    /* The question types itself, one step per character of the 47 in it.

       The obvious way to write this is `width: 0 -> max-content` with
       steps(47), and it looks identical - but width is a layout property, so
       it relays out the card on every scroll frame the range is live. This
       does the same thing with a shutter: a bar in the prompt's own colour
       sits over the text and retracts to the right. Nothing but a transform
       changes, so the whole thing runs on the compositor.

       Held back on narrow screens, where one unwrapped mono line would run
       past the edge of the card. */
    @media (min-width: 48rem) {
      .shortlist__type { position: relative; white-space: nowrap; }
      .shortlist__type::after {
        content: ""; position: absolute; inset: 0 -.2em 0 0;
        background: var(--ink);
        transform-origin: right;
        animation: keptType steps(47, end) both;
        animation-timeline: --kept;
        animation-range: cover 30% cover 42%;
      }
      @keyframes keptType { from { scale: 1 1; } to { scale: 0 1; } }

      .shortlist__caret { animation: caretBlink .9s steps(1, end) infinite; }
      @keyframes caretBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .2; } }
    }

    /* Roost showing its work, then the answer landing on top of it. Both are
       opacity and transform only: the slot never changes size, so nothing
       below this card moves while you scroll through it. */
    /* One animation for both halves of the work state, because a scroll
       timeline ignores animation-delay - the hold has to be written into the
       keyframes. The explicit 100% matters: without it the engine synthesises
       one from the element's own opacity and the box reappears after its
       range instead of staying gone. */
    .shortlist__work {
      animation: keptWork linear both;
      animation-timeline: --kept;
      animation-range: cover 40% cover 53%;
    }
    @keyframes keptWork {
      0%        { opacity: 0; }
      22%, 55%  { opacity: 1; }
      100%      { opacity: 0; }
    }
    .shortlist__answer {
      animation: keptAnswer linear both;
      animation-timeline: --kept;
      animation-range: cover 50% cover 57%;
    }
    @keyframes keptAnswer {
      from { opacity: 0; translate: 0 14px; scale: .96; rotate: -1.6deg; }
      to   { opacity: 1; translate: 0 0;    scale: 1;   rotate: 0deg; }
    }
    .shortlist__winner {
      animation: keptWin linear both;
      animation-timeline: --kept;
      animation-range: cover 55% cover 61%;
    }
    @keyframes keptWin {
      from { scale: .86; opacity: .5; }
      to   { scale: 1;   opacity: 1; }
    }
    .shortlist__src span {
      animation: keptIn linear both;
      animation-timeline: --kept;
      animation-range: cover 59% cover 65%;
    }
    .shortlist__src span:last-child { animation-range: cover 62% cover 68%; }
  }

  @supports (animation-timeline: view()) {

    /* --- shared enter --- */
    .band-head,
    .receipts__copy,
    .receipts__shot,
    .manifesto,
    .ledger,
    .faq__list,
    .closer__inner {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 30%;
    }

    /* Cards do not float up, they get laid down: each one comes in tipped
       away from the reader and lands flat, alternating which edge it pivots
       on so a grid of them does not arrive in lockstep. The grid carries the
       perspective, so the tilt is shared rather than per-card - which is what
       makes a row read as one hand of stickers hitting the table.

       transform, not the individual translate/rotate properties, because
       those cannot express a rotateX. The hover rule still uses `translate`,
       and the individual properties compose after transform, so the two do
       not fight. */
    .fcard {
      animation: cardLay linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 32%;
      transform-origin: 50% 0%;
    }
    .fcard:nth-child(2n) {
      animation-name: cardLayAlt;
      animation-range: entry 4% cover 34%;
      transform-origin: 50% 100%;
    }
    @keyframes cardLay {
      from { opacity: 0; transform: perspective(1600px) translateY(52px) rotateX(11deg) scale(.968); }
      to   { opacity: 1; transform: perspective(1600px) translateY(0)    rotateX(0deg)  scale(1); }
    }
    @keyframes cardLayAlt {
      from { opacity: 0; transform: perspective(1600px) translateY(52px) rotateX(-9deg) scale(.968); }
      to   { opacity: 1; transform: perspective(1600px) translateY(0)    rotateX(0deg)  scale(1); }
    }

    /* --- the problem reel --- */
    .problem__rail { view-timeline: --prob block; }

    .problem__feed {
      animation: feedRun linear both;
      animation-timeline: --prob;
      animation-range: contain 0% contain 100%;
    }
    /* --- the cut ---------------------------------------------------------

       The feed is gone by 80% of the pin. From there to the end, ten cards
       come up off the bottom of the stage and settle into the fan, one after
       another. A scroll timeline ignores animation-delay, so the stagger is
       written as a shifted range per card: --n moves each card's window 2.6
       points later than the one before it, which spreads the deal across the
       last fifth of the pin without any card starting before the feed dies.

       rotate is inherited from the resting fan, so these keyframes only have
       to move and fade - which keeps every one of them on the compositor. */
    .cut__card {
      animation: cutDeal linear both;
      animation-timeline: --prob;
      animation-range: contain calc(66% + var(--n) * 2.5%)
                       contain calc(76% + var(--n) * 2.5%);
    }
    @keyframes cutDeal {
      from {
        opacity: 0; scale: .82;
        /* straight up from off the bottom, into the card's own fan slot */
        translate: calc((var(--n) - 4.5) * 4.8rem)
                   calc((var(--n) - 4.5) * (var(--n) - 4.5) * 0.14rem + 62vh);
      }
      to {
        opacity: 1; scale: 1;
        translate: calc((var(--n) - 4.5) * 4.8rem)
                   calc((var(--n) - 4.5) * (var(--n) - 4.5) * 0.14rem);
      }
    }

    /* 0 decided becomes 10 dealt, in place */
    .tally__label--zero {
      animation: cutOut linear both;
      animation-timeline: --prob;
      animation-range: contain 78% contain 86%;
    }
    .tally__label--dealt {
      animation: cutIn linear both;
      animation-timeline: --prob;
      animation-range: contain 84% contain 92%;
    }
    @keyframes cutOut { from { opacity: 1; } to { opacity: 0; } }
    @keyframes cutIn  { from { opacity: 0; } to { opacity: 1; } }

    @keyframes feedRun {
      0%   { transform: translateY(0);     opacity: .5; }
      66%  { transform: translateY(-50%);  opacity: .5; }
      80%  { transform: translateY(-52%);  opacity: 0; }
      100% { transform: translateY(-52%);  opacity: 0; }
    }

    /* Stepped, so the columns tick between digits like a real counter
       instead of smearing through the gaps between them. */
    .odo__col {
      animation: odo both;
      animation-timeline: --prob;
      animation-range: contain 2% contain 62%;
    }
    /* The step count has to equal the number of cells travelled, so the
       fill-forwards value lands exactly on the last digit: 2, 4, 7. */
    .odo__col--h { --end: -2em;  animation-timing-function: steps(2, jump-end); }
    .odo__col--t { --end: -24em; animation-timing-function: steps(24, jump-end); }
    .odo__col--o { --end: -47em; animation-timing-function: steps(47, jump-end); }
    @keyframes odo {
      from { transform: translateY(0); }
      to   { transform: translateY(var(--end)); }
    }

    .turn {
      animation: rise linear both;
      animation-timeline: --prob;
      animation-range: contain 62% contain 80%;
    }

    /* --- the deal --- */
    .dcard {
      animation: dealIn cubic-bezier(.2, .8, .3, 1) both;
      animation-timeline: view();
      animation-range: entry 12% cover 46%;
    }
    @keyframes dealIn {
      from { opacity: 0; translate: var(--x) 5.5rem; rotate: 0deg; scale: .84; }
      to   { opacity: 1; translate: 0 var(--y);      rotate: var(--rot); scale: 1; }
    }

    /* --- hero parallax: the hand drifts as the page leaves --- */
    .hand {
      animation: handDrift linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
    @keyframes handDrift {
      to { translate: 0 -8%; scale: .94; opacity: .55; }
    }
  }

  /* ==========================================================================
     THE REEL. Needs both features, so it is opted into rather than patched in:
     scroll-driven animation to scrub it, and anchor positioning to lift each
     step's screen out of flow and into the one phone shell. Miss either and
     the section stays the five stacked screens it is written as.

     One rule governs this whole block: nothing between .flow__stage and a
     .fstep__shot may set transform, translate, rotate or scale. Any of those
     turns that ancestor into the figure's containing block, and an anchor
     that is not inside the containing block is not an acceptable anchor - so
     anchor() silently falls back and the reel comes apart. That is why the
     caption moves via .fstep__body and never via .fstep.

     Wide screens only. A sticky five-step stage on a 390px phone leaves room
     for a 160px-wide screenshot and clips the last row of chips; the stacked
     filmstrip below is the better small-screen answer, so the reel simply
     does not apply there.
     ========================================================================== */
  @supports (animation-timeline: view()) and (anchor-name: --a) and (width: anchor-size(width)) {
   @media (min-width: 62rem) {

    .flow__rail { height: 520vh; padding-block: 0; view-timeline: --flow block; }
    .flow__stage {
      position: sticky; top: 0;
      height: 100vh; min-height: 620px;
      display: grid; grid-template-rows: auto 1fr auto;
      align-items: center;
      overflow: hidden;
    }
    .flow__label {
      margin-bottom: 0;
      padding-top: calc(var(--nav-h) + 1.25rem);
    }
    .flow__inner {
      padding-top: clamp(1rem, 2.5vh, 2rem);
      display: grid;
      grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
      gap: clamp(1.75rem, 4vw, 3.25rem);
      align-items: center;
    }

    /* The one phone. It is the anchor and it is also the shell that gets
       drawn: the shots that land on it carry the screen and nothing else, so
       the frame never cross-fades with itself. */
    .flow__anchor {
      display: block;
      position: relative;
      justify-self: center;
      width: min(100%, 20.5rem, calc(72vh * 393 / 852));
      aspect-ratio: 393 / 852;
      anchor-name: --reel;
      border-radius: 46px;
      border: 3px solid var(--ink);
      background: var(--sky);
      box-shadow: var(--lift);
    }
    .flow__anchor::after {
      content: ""; position: absolute; z-index: 3; top: 9px; left: 50%;
      translate: -50% 0;
      width: 31%; height: 22px;
      background: var(--ink); border-radius: 999px;
    }

    .flow__steps { display: grid; gap: 0; }
    /* back to a plain box: the figure is out of flow, so the caption is the
       only thing left to lay out */
    .fstep { display: block; grid-area: 1 / 1; }

    /* pinned inside the shell's border, so the ink frame stays visible */
    .fstep__shot {
      position: absolute;
      position-anchor: --reel;
      top:  calc(anchor(top)  + 3px);
      left: calc(anchor(left) + 3px);
      width:  calc(anchor-size(width)  - 6px);
      height: calc(anchor-size(height) - 6px);
      margin: 0;
      aspect-ratio: auto;
      border: 0;
      border-radius: 43px;
      background: none;
      box-shadow: none;
      opacity: 0;
    }
    .fstep__shot::after { content: none; }

    /* Five windows cut out of one timeline, overlapping so each step
       cross-fades into the next. */
    .fstep__shot, .fstep__body {
      animation-timeline: --flow;
      animation-timing-function: linear;
      animation-fill-mode: both;
    }
    .fstep--1 .fstep__shot, .fstep--1 .fstep__body { animation-range: contain 0%  contain 22%; }
    .fstep--2 .fstep__shot, .fstep--2 .fstep__body { animation-range: contain 18% contain 42%; }
    .fstep--3 .fstep__shot, .fstep--3 .fstep__body { animation-range: contain 38% contain 62%; }
    .fstep--4 .fstep__shot, .fstep--4 .fstep__body { animation-range: contain 58% contain 82%; }
    .fstep--5 .fstep__shot, .fstep--5 .fstep__body { animation-range: contain 78% contain 100%; }

    .fstep--1 .fstep__shot { animation-name: shotFirst; }
    .fstep--2 .fstep__shot,
    .fstep--3 .fstep__shot,
    .fstep--4 .fstep__shot { animation-name: shotMid; }
    .fstep--5 .fstep__shot { animation-name: shotLast; }

    .fstep--1 .fstep__body { animation-name: stepFirst; }
    .fstep--2 .fstep__body,
    .fstep--3 .fstep__body,
    .fstep--4 .fstep__body { animation-name: stepMid; }
    .fstep--5 .fstep__body { animation-name: stepLast; }

    /* Screens: the outgoing one holds at full opacity underneath while the
       incoming one fades in on top of it, then drops out once it is covered.
       Two screens fading against each other would let the empty shell show
       through at the halfway point, which reads as a flicker. Ranges overlap
       by four points of the timeline, which is 0% to 17% of an incoming
       step's own range. */
    @keyframes shotFirst {
      0%, 98%  { opacity: 1; }
      100%     { opacity: 0; }
    }
    @keyframes shotMid {
      0%       { opacity: 0; }
      17%, 98% { opacity: 1; }
      100%     { opacity: 0; }
    }
    @keyframes shotLast {
      0%        { opacity: 0; }
      17%, 100% { opacity: 1; }
    }

    /* Captions do the opposite: the old one leaves before the new one lands,
       so two paragraphs never sit on top of each other.

       Every one of these ends on an explicit 100%. Stop at 84% and the engine
       synthesises the missing 100% keyframe from the element's own computed
       value - opacity 1 - so a caption that has finished leaving fades right
       back in on top of the next one. */
    @keyframes stepFirst {
      0%, 70%   { opacity: 1; translate: 0 0; }
      84%, 100% { opacity: 0; translate: 0 -22px; }
    }
    @keyframes stepMid {
      0%,  2%   { opacity: 0; translate: 0 26px; }
      12%, 70%  { opacity: 1; translate: 0 0; }
      84%, 100% { opacity: 0; translate: 0 -22px; }
    }
    @keyframes stepLast {
      0%,  2%   { opacity: 0; translate: 0 26px; }
      12%, 100% { opacity: 1; translate: 0 0; }
    }

    .flow__dots {
      display: flex; justify-content: center; gap: .55rem;
      padding-bottom: clamp(1.5rem, 4vh, 2.75rem);
    }
    .dot::after { animation: dotFill linear both; animation-timeline: --flow; }
    .dot--1::after { animation-range: contain 0%  contain 14%; }
    .dot--2::after { animation-range: contain 18% contain 34%; }
    .dot--3::after { animation-range: contain 38% contain 54%; }
    .dot--4::after { animation-range: contain 58% contain 74%; }
    .dot--5::after { animation-range: contain 78% contain 94%; }
    @keyframes dotFill { from { scale: 0 1; } to { scale: 1 1; } }

   }
  }
}

/* --------------------------------------------------------- 19b. Responsive */

@media (max-width: 62rem) {
  /* The hand is about 39rem across. Rather than restyle ten cards, shrink the
     whole object from its bottom edge so the fan keeps its geometry. */
  .cut { scale: .58; transform-origin: 50% 100%; }
  /* The bar collapses, but not to nothing. The one item on it that is a thing
     you do rather than a place you read survives, because on a phone the
     playable deck is otherwise several viewports and two pinned reels away
     with no way to reach it. */
  .nav__links li { display: none; }
  .nav__links li:has(.nav__try) { display: block; }
  .nav__links { margin-left: .75rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hand { max-width: 30rem; margin-inline: auto; }
  .fstep h3 { font-size: clamp(1.4rem, 5vw, 1.9rem); margin-bottom: .65rem; }
  .fstep p { font-size: 1rem; }
  .fstep__n { margin-bottom: .6rem; }
  .fstep__chips { margin-top: .9rem; }
  /* .fstep__shot's narrow-screen width lives in section 10, next to the rule
     it narrows. Put it here and it would land after the reel block and win
     against the anchored sizing, which sets the figure to the shell. */
  .receipts__grid { grid-template-columns: 1fr; }
  .receipts__shot { order: -1; }
  .receipts__shot .phone { width: min(64%, 15rem); rotate: 0deg; }
  .kept__grid { grid-template-columns: 1fr; }
  .kept h2 { max-width: 18ch; }
  .fcard, .fcard--dice, .fcard--flock, .fcard--roost { grid-column: span 6; }
  .road__grid { grid-template-columns: 1fr; }
  .hen { grid-template-columns: 1fr; }
  .road__shot { order: -1; }
  .road__shot .phone { width: min(58%, 13.5rem); rotate: 0deg; }
  /* One column, phone first. The phone is what you came for; the reading key
     is what you look at once a card is under your thumb. */
  .play__split { grid-template-columns: minmax(0, 22.5rem); justify-content: center; }
  .play__aside { max-width: 34rem; margin-inline: auto; }
}

@media (max-width: 40rem) {
  :root { --r-lg: 24px; }
  html { scroll-padding-top: 4.5rem; }
  .nav { gap: .75rem; }
  .nav .badge-store svg { width: 100px; height: 34px; }
  .problem__rail { height: 260vh; }
  /* Five overlapping cards cannot stay legible at 390px, so the fan becomes a
     grid. Same cards, same copy, no hidden text. Zeroing the three custom
     properties keeps the deal-in animation working against grid positions. */
  .deal__cards {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: .7rem; padding-inline: var(--pad);
  }
  .deal__cards .dcard {
    --rot: 0deg; --y: 0; --x: 0%;
    width: auto; margin: 0;
    aspect-ratio: auto; min-height: 7rem;
    padding: 2.1rem .9rem .9rem;
  }
  .deal__cards .dcard--3 { grid-column: span 2; min-height: 5.5rem; }
  .deal__cards:hover .dcard { translate: 0 0; rotate: 0deg; }
  .sticker { font-size: .8rem; left: 0; }
  .site-foot nav { margin-left: 0; flex-basis: 100%; }
  .ledger__grid { grid-template-columns: 1fr 1fr; }
  /* The two cards behind the top one hang below the deck's declared height,
     so the gap under it has to clear them or the stack sits on the buttons. */
  .play__stage.is-live .playdeck { margin-bottom: 1.6rem; }
  .shortlist { rotate: 0deg; }
  .shortlist__rows li { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .shortlist__q { font-size: .74rem; }
}

/* Anything that would move for its own sake stops moving. The sticky reels
   still work, they simply arrive already assembled. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .problem__rail { height: auto; }
  .problem__stage { position: static; height: auto; min-height: 78vh; padding-block: 4rem; }
}
