/*
  Tandem waitlist site: every style on the site, in one file.
  Brand: the board, src/theme/theme.js in the app repo, and BRIEF.md section 4.

  Contrast (WCAG formula, measured, not eyeballed):
    coral on ink 6.05 AA · ink on coral 6.05 AA (the safe button label)
    coral on white 3.08 large only · coral on paper 2.71 FAIL (never used for text)
    muted on paper 4.60 AA · muted on white 5.23 AA
    muted-on-ink on ink 6.91 AA · on ink-2 6.20 AA · white 70% on ink 9.39 AAA

  Motion animates transform and opacity only. Without JavaScript, or with
  Reduce Motion, every scene shows its finished composition.
*/

/* ---------- Font: DM Sans, one self-hosted variable WOFF2 (Latin), OFL ---------- */
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --coral: #FF5A36;
  --ink: #15110E;
  --ink-2: #221C18;
  --paper: #F4EFE6;
  --white: #FFFEFD;
  --card: #FBF8F1;
  --muted: #716B63;
  --muted-on-ink: #A39C92;
  --line: rgba(21, 17, 14, 0.11);
  --line-strong: rgba(21, 17, 14, 0.22);
  --line-on-ink: rgba(255, 254, 253, 0.14);

  --r-panel: 28px;
  --r-pill: 999px;
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --track-display: -0.04em;
  --track-mark: -0.06em;
  --gutter: clamp(20px, 5.4vw, 56px);
  --max: 1240px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  background: var(--ink);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--coral); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.lit-paper :focus-visible { outline-color: var(--ink); }

.mark { color: var(--coral); flex: none; }
.wordmark { font-weight: 700; letter-spacing: var(--track-mark); line-height: 1; }
.placeholder { border-bottom: 1.5px dashed currentColor; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease-spring);
}
.btn:active { transform: scale(0.96); }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 254, 253, 0.3); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; border-radius: var(--r-pill);
  background: var(--white); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4; white-space: nowrap;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

/* ---------- Atmosphere ---------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none;
  width: 760px; height: 760px; margin: -380px 0 0 -380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 90, 54, 0.2), rgba(255, 90, 54, 0.07) 55%, transparent);
  will-change: transform;
  transform: translate3d(50vw, 30vh, 0);
}
html:not(.js) .glow { display: none; }
main, header, footer { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px;
  background: rgba(21, 17, 14, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--white); text-decoration: none; }
.brand .mark { width: 30px; height: 30px; }
.brand .wordmark { font-size: 27px; }
.top nav { display: none; }
.top nav a { font-weight: 500; text-decoration: none; padding: 10px 2px; color: var(--white); }
.top nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.top .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (min-width: 900px) {
  .top { padding-block: 16px; }
  .top nav { display: flex; gap: 34px; margin-left: auto; margin-right: 22px; }
  .top .btn { min-height: 50px; padding: 0 24px; font-size: 16px; }
}
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); }
.h2 { margin-top: 14px; font-size: clamp(42px, 11.5vw, 100px); line-height: 0.93; letter-spacing: -0.055em; }

/* ---------- Hero: "Anyone for" over the mark, whose bar rolls through activities ---------- */
.hero { padding-top: 16px; padding-bottom: 72px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 13px; border-radius: var(--r-pill); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-on-ink); font-size: 14px; font-weight: 500; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 10px var(--coral); }
.hero h1 { margin-top: 18px; }
.h1-line { display: block; font-size: clamp(56px, 15.6vw, 150px); line-height: 0.92; letter-spacing: -0.058em; }

.hero-t { position: relative; margin-top: 16px; color: var(--coral); }
.hero-t > svg { display: block; width: 100%; height: auto; overflow: visible; }
.js .hero-t .t-stem-l, .js .hero-t .t-stem-r { transform-box: view-box; }
.js .hero-t .t-stem-l { animation: stem-in-l 0.9s var(--ease-out) 0.15s both; }
.js .hero-t .t-stem-r { animation: stem-in-r 0.9s var(--ease-out) 0.15s both; }
@keyframes stem-in-l { from { transform: translate(-190px, 0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes stem-in-r { from { transform: translate(190px, 0); opacity: 0; } to { transform: none; opacity: 1; } }

/* The bar sits exactly on the mark's bar (x 56, y 72, 400 x 96 of a 400 x 376 crop). */
.bar-board {
  position: absolute; left: 0; top: 0; width: 100%; height: 25.532%;
  border-radius: 999px;
  background: linear-gradient(#FF6B4A, #F4502D);
  color: var(--ink);
  box-shadow: 0 16px 60px rgba(255, 90, 54, 0.35);
}
/* clip-path clips even 3D-transformed children, which overflow + border-radius
   alone did not. The glow stays outside it, on .bar-board. */
.bar-clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; clip-path: inset(0 round 999px); }
.js .bar-board { animation: bar-drop 0.75s var(--ease-spring) 0.8s both; }
@keyframes bar-drop { from { transform: translateY(-70%); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.roll-word {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 0.08em;
  font-size: clamp(28px, 11vw, 64px);
  font-weight: 700; letter-spacing: -0.045em; line-height: 1; white-space: nowrap;
  transform: perspective(520px) translateY(0) rotateX(0deg);
  transition: transform 0.85s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.85s cubic-bezier(0.65, 0, 0.35, 1);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.roll-word.is-below { transform: perspective(520px) translateY(78%) rotateX(-70deg); opacity: 0; transition: none; }
.roll-word.is-above { transform: perspective(520px) translateY(-78%) rotateX(70deg); opacity: 0; }

.hero-card {
  position: relative; z-index: 2;
  margin-top: 28px; padding: 24px 20px 20px;
  border-radius: var(--r-panel);
  background: var(--ink-2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--line-on-ink);
}
.card-title { font-size: clamp(28px, 7.6vw, 40px); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em; }
.card-title span { display: block; }
.card-title .c { color: var(--coral); }
.lede { margin: 14px 0 22px; font-size: 17px; line-height: 1.5; color: rgba(255, 254, 253, 0.8); }
@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: 1.05fr 0.95fr; column-gap: 64px; align-items: center; padding-top: 44px; padding-bottom: 110px; }
  .hero-main { grid-column: 1; }
  .h1-line { font-size: clamp(72px, 7.4vw, 124px); }
  .hero-card { grid-column: 2; margin-top: 0; padding: 32px 30px 28px; }
}

/* ---------- How it works: two stems come together, then the lights come on ---------- */
.how { border-top: 1px solid var(--line-on-ink); }
.how-track { position: relative; }
.how-stage {
  display: grid; grid-template-rows: auto auto auto; row-gap: 28px;
  max-width: var(--max); margin: 0 auto;
  padding: 88px var(--gutter) 72px;
}
.how-title { font-size: clamp(38px, 10vw, 80px); }
.how-art { position: relative; min-height: 420px; color: var(--coral); }
.how-art > svg { position: absolute; inset: 0 0 34px; width: 100%; height: calc(100% - 34px); overflow: visible; }
.how-art .you-them { font: 500 30px var(--font); fill: var(--muted-on-ink); letter-spacing: -0.01em; }
.how-art .km { font: 700 34px var(--font); fill: var(--white); letter-spacing: -0.03em; }
.how-art .km-line { stroke: var(--white); stroke-width: 4; stroke-dasharray: 2 12; stroke-linecap: round; }
.how-art .ripple { fill: none; stroke: var(--white); stroke-width: 3; opacity: 0; }
.how-art .t-label { font: 700 54px var(--font); letter-spacing: -0.04em; fill: var(--ink); }
.how-art .cord { stroke: #3A322C; stroke-width: 6; }
.how-chip {
  position: absolute; left: 50%; bottom: 0;
  transform: translate(-50%, 12px); opacity: 0;
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap;
  padding: 8px 16px; border-radius: var(--r-pill);
  transition: opacity 0.4s, transform 0.5s var(--ease-spring);
}
.how-done { background: var(--white); color: var(--ink); }
.how-break { background: var(--coral); color: var(--ink); box-shadow: 0 0 30px rgba(255, 90, 54, 0.45); }
.how-chip.show { opacity: 1; transform: translate(-50%, 0); }
.how-hint { display: none; }

.steps { display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; padding: 10px 0; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: var(--ink); font-size: 15px; font-weight: 700; }
.step h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; padding-top: 5px; }
.step p { grid-column: 2; font-size: 15px; color: var(--muted-on-ink); margin-top: 3px; }

/* Static composition (no JavaScript): the lamp is lit over the two balls. */
html:not(.js) .how-art .lamp,
html:not(.js) .how-art .cord,
html:not(.js) .how-art .balls { opacity: 1; }
html:not(.js) .how-art .km,
html:not(.js) .how-art .km-line,
html:not(.js) .how-art .how-stem-l,
html:not(.js) .how-art .how-stem-r { opacity: 0; }
html:not(.js) .how-break { opacity: 1; transform: translate(-50%, 0); }

/* The scroll-driven scene, only with JavaScript and without Reduce Motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .how-track { height: 250svh; }
  .js .how-stage {
    position: sticky; top: 0;
    height: 100svh; min-height: 560px;
    grid-template-rows: auto 1fr auto; row-gap: 0;
    padding: calc(84px + env(safe-area-inset-top)) var(--gutter) calc(92px + env(safe-area-inset-bottom));
  }
  .js .how-art { min-height: 0; }
  .js .how-stage[data-step="1"] .ripple { animation: ripple 1.8s var(--ease-out) infinite; transform-box: fill-box; transform-origin: center; }
  .js .step { opacity: 0.35; transition: opacity 0.35s; }
  .js .step.is-on { opacity: 1; }
  .js .step-n { background: var(--ink-2); color: var(--white); box-shadow: inset 0 0 0 1px var(--line-on-ink); transition: background-color 0.3s, transform 0.4s var(--ease-spring); }
  .js .step.is-on .step-n { background: var(--coral); color: var(--ink); box-shadow: none; transform: scale(1.08); }
  .js .step p { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s var(--ease-out), opacity 0.3s; }
  .js .step.is-on p { max-height: 80px; opacity: 1; }
  .js .how-hint { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-ink); transition: opacity 0.4s; }
  .js .how-hint.is-done { opacity: 0; }
}
@keyframes ripple { from { transform: scale(0.2); opacity: 0.7; } to { transform: scale(1.6); opacity: 0; } }
.how-hint .arrow { display: inline-block; font-size: 14px; animation: hint-nudge 1.4s var(--ease-out) 4; }
@keyframes hint-nudge { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }
.how-hint .track { position: relative; width: 72px; height: 4px; border-radius: 2px; background: var(--line-on-ink); overflow: hidden; }
.how-hint .fill { position: absolute; inset: 0; background: var(--coral); transform-origin: 0 50%; transform: scaleX(0); }
@media (min-width: 960px) {
  .how-stage { grid-template-columns: 0.9fr 1.1fr; grid-template-rows: auto 1fr; column-gap: 64px; padding-top: 120px; }
  .how-head { grid-column: 1; }
  .steps { grid-column: 1; grid-row: 2; align-self: center; gap: 12px; }
  .how-art { grid-column: 2; grid-row: 1 / span 2; min-height: 520px; }
  .how-art > svg { inset: 0 0 44px; height: calc(100% - 44px); }
  .step h3 { font-size: 26px; }
  .step p { font-size: 17px; }
}
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .js .how-stage { padding-top: 120px; padding-bottom: 48px; }
}

/* ---------- Questions and answers ---------- */
.qa { padding: 80px 0; border-top: 1px solid var(--line-on-ink); }
.q {
  display: inline-block; max-width: 30ch;
  padding: 12px 18px 13px;
  border-radius: 22px 22px 22px 6px;
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-on-ink);
  font-size: 18px; font-weight: 500; line-height: 1.35;
}
.a { display: block; margin-top: 18px; font-size: clamp(104px, 33vw, 260px); font-weight: 700; line-height: 0.84; letter-spacing: -0.07em; color: var(--coral); }
.a.mid { font-size: clamp(76px, 22vw, 190px); line-height: 0.86; letter-spacing: -0.065em; }
.body { margin-top: 22px; max-width: 40ch; font-size: 18px; line-height: 1.5; color: var(--muted-on-ink); }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal .a { transform-origin: 50% 0; transform: perspective(700px) rotateX(-78deg); opacity: 0; transition: transform 0.9s var(--ease-spring), opacity 0.4s; }
  .js .reveal.is-in .a { transform: none; opacity: 1; }
}
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pill { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1.5px var(--line-on-ink); font-size: 18px; font-weight: 500; }
.pill.on { background: var(--coral); color: var(--ink); box-shadow: 0 0 30px rgba(255, 90, 54, 0.45); font-weight: 700; }
.pill.more { box-shadow: none; outline: 1.5px dashed rgba(255, 254, 253, 0.3); outline-offset: -1.5px; color: var(--muted-on-ink); }
@media (min-width: 960px) {
  .qa .wrap { display: grid; grid-template-columns: 1.3fr 0.7fr; column-gap: 64px; align-items: end; }
  .qa .q { grid-column: 1 / -1; justify-self: start; font-size: 20px; }
  .qa .a { grid-column: 1; }
  .qa .detail { grid-column: 2; padding-bottom: 12px; }
  .qa .full { grid-column: 1 / -1; }
}

/* ---------- Lights on ----------
   No pinning: the section scrolls like any other. Light spreads down from its
   top edge; once it fills the screen, the section simply is paper. */
.lights { position: relative; overflow: hidden; background: var(--paper); color: var(--ink); padding-bottom: 110px; }
.lights-disc { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .lights { background: var(--ink); }
  .js .lights.is-lit { background: var(--paper); }
  .js .lights-disc {
    display: block;
    position: absolute; left: 50%; top: 0;
    width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax;
    border-radius: 50%; background: var(--paper);
    transform: scale(0);
    box-shadow: 0 0 160px 60px rgba(255, 90, 54, 0.3);
    pointer-events: none;
  }
  .js .lights.is-lit .lights-disc { visibility: hidden; }
  .js .lights-copy { opacity: 0; }
}
.lights .wrap { position: relative; z-index: 1; }
.lights-copy { padding-top: calc(96px + 4svh); padding-bottom: 36px; }
.lights h2 { font-size: clamp(72px, 21vw, 200px); line-height: 0.92; letter-spacing: -0.065em; }
.rules-intro { margin-top: 28px; max-width: 34ch; font-size: 19px; line-height: 1.5; }
.lit-paper { background: var(--paper); color: var(--ink); }
.board {
  padding: 30px 22px 34px;
  border-radius: 26px; background: var(--white);
  box-shadow: 0 30px 70px rgba(21, 17, 14, 0.12), inset 0 0 0 1px var(--line);
}
.board-title { display: grid; justify-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 3px double var(--line-strong); text-align: center; }
.board-title .mark { width: 34px; height: 34px; }
.board-title h3 { font-size: 15px; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; }
.rules { display: grid; counter-reset: r; }
.rule { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); counter-increment: r; }
.rule::before { content: counter(r, decimal-leading-zero); font-size: 15px; font-weight: 700; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.rule h4 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
.rule p { grid-column: 2; margin-top: 5px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.lights .btn { margin-top: 28px; }
@media (min-width: 960px) {
  .lights-copy { padding-top: calc(120px + 6svh); }
  .board { max-width: 1040px; padding: 40px 44px; }
  .rules-intro { font-size: 22px; }
  .rules { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}

/* ---------- We open at 5,000 ---------- */
.open { padding: 100px 0 30px; border-top: 1px solid var(--line-on-ink); }
.open .h2 .c { color: var(--coral); }
.open-lead { margin-top: 20px; max-width: 40ch; font-size: 18px; line-height: 1.5; color: rgba(255, 254, 253, 0.84); }
.counter { max-width: 720px; margin-top: 40px; padding: 26px 22px 24px; border-radius: var(--r-panel); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-on-ink); }
.counter-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-on-ink); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 10px var(--coral); }
.odo { display: flex; margin-top: 12px; font-size: clamp(76px, 24vw, 170px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.odo-d { display: inline-block; height: 1em; overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1); }
.odo-strip span { display: block; height: 1em; text-align: center; }
.odo > span:not(.odo-d) { margin: 0 -0.04em 0 -0.12em; }
.counter-of { margin-top: 6px; font-size: 18px; font-weight: 500; color: var(--muted-on-ink); }
.progress { position: relative; height: 16px; margin-top: 22px; border-radius: 999px; background: rgba(255, 254, 253, 0.08); box-shadow: inset 0 0 0 1px var(--line-on-ink); overflow: hidden; }
.progress-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--coral); box-shadow: 0 0 24px rgba(255, 90, 54, 0.5); transform: translateX(-100%); transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1); }
.counter-note { margin-top: 14px; font-size: 14px; color: var(--muted-on-ink); }

/* ---------- London first ---------- */
.final { padding: 100px 0 110px; }
.final h2 { font-size: clamp(76px, 22vw, 200px); line-height: 0.86; letter-spacing: -0.068em; }
.final h2 span { display: block; }
.final h2 .c { color: var(--coral); }
.final .sub { margin-top: 22px; max-width: 36ch; font-size: 19px; line-height: 1.45; color: rgba(255, 254, 253, 0.84); }
.final-form { margin-top: 28px; max-width: 560px; }
@media (min-width: 960px) {
  .final .wrap { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; align-items: end; }
  .final-form { margin-top: 0; }
  .final h2 { font-size: clamp(90px, 10vw, 170px); }
}

/* ---------- Help us get there ---------- */
.help { padding: 90px 0 110px; border-top: 1px solid var(--line-on-ink); }
.help-grid { display: grid; gap: 12px; margin-top: 36px; }
.help-card { display: grid; align-content: start; gap: 12px; padding: 24px 22px; border-radius: 22px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-on-ink); }
.help-card h3 { font-size: 22px; letter-spacing: -0.02em; }
.help-card p { font-size: 16px; color: var(--muted-on-ink); }
.help-card .btn { justify-self: start; margin-top: 4px; }
.help-card .btn-ghost { font-size: 15px; }
.ph-note { font-size: 13px; color: var(--muted-on-ink); }
.btn.is-soon { opacity: 0.55; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Two across, never four: four equal columns can't hold the email-address buttons inside the site's max width. */
@media (min-width: 720px) { .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }

/* ---------- Footer ---------- */
footer { padding: 48px 0 calc(116px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-on-ink); }
.foot { display: grid; gap: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.foot-meta { display: grid; gap: 6px; font-size: 15px; color: var(--muted-on-ink); }
.foot-meta a { color: var(--white); font-weight: 500; }
.foot-meta .age { display: inline-flex; width: fit-content; padding: 2px 10px; border-radius: var(--r-pill); background: var(--coral); color: var(--ink); font-weight: 700; font-size: 14px; }
@media (min-width: 900px) { footer { padding-bottom: 56px; } .foot { grid-template-columns: 1fr auto auto; align-items: center; column-gap: 48px; } }

/* ---------- Thank-you page (the no-JavaScript landing after joining) ---------- */
.thanks { min-height: 70svh; padding: 18svh 0 96px; }
.thanks h1 { font-size: clamp(56px, 15vw, 130px); line-height: 0.9; letter-spacing: -0.06em; }
.thanks h1 .c { color: var(--coral); }
.thanks p { margin-top: 22px; max-width: 38ch; font-size: 19px; line-height: 1.5; color: rgba(255, 254, 253, 0.84); }
.thanks .btn { margin-top: 30px; }
.thanks .share-url { font-weight: 700; color: var(--white); }

/* ------------------------------------------------------------------ */
/* Inner pages: /safety, /privacy, 404. Paper, "with the lights on".  */
/* Coral text fails on paper (2.71), so kickers here are ink with a   */
/* coral bar, and coral appears only as fills.                        */
/* ------------------------------------------------------------------ */
.doc { background: var(--paper); color: var(--ink); }
.doc :focus-visible { outline-color: var(--ink); }
.doc .kicker { color: var(--ink); }
.doc .kicker::before { content: ""; width: 22px; height: 6px; border-radius: 3px; background: var(--coral); }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.doc-hero { padding-top: calc(56px + 3svh); padding-bottom: 44px; }
.doc-hero h1 { margin-top: 16px; font-size: clamp(56px, 15vw, 150px); line-height: 0.9; letter-spacing: -0.06em; }
.doc-lead { margin-top: 22px; max-width: 40ch; font-size: 19px; line-height: 1.5; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--white); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 15px; font-weight: 500; text-decoration: none; }
.toc a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.group { padding: 56px 0; border-top: 1px solid var(--line-strong); scroll-margin-top: 70px; }
.group h2 { margin-top: 12px; font-size: clamp(36px, 9vw, 64px); line-height: 0.95; letter-spacing: -0.05em; }
.group-sub { margin-top: 12px; max-width: 34ch; font-size: 17px; color: var(--muted); }
.claims { display: grid; gap: 12px; margin-top: 28px; }
.claim { padding: 22px 20px; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(21, 17, 14, 0.05); }
.claim h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
.claim p { margin-top: 6px; font-size: 16px; line-height: 1.55; color: var(--muted); }
@media (min-width: 900px) {
  .group .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; column-gap: 56px; align-items: start; }
  .group-head { position: sticky; top: 110px; }
  .claims { margin-top: 0; grid-template-columns: 1fr 1fr; }
}

.curious { padding: 72px 0; background: var(--ink); color: var(--white); scroll-margin-top: 70px; }
.curious .kicker { color: var(--coral); }
.curious .kicker::before { content: none; }
.curious h2 { margin-top: 12px; font-size: clamp(36px, 9vw, 64px); line-height: 0.95; letter-spacing: -0.05em; }
.curious .group-sub { color: var(--muted-on-ink); }
.curious .claim { background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-on-ink); }
.curious .claim p { color: var(--muted-on-ink); }
.curious :focus-visible { outline-color: var(--coral); }
@media (min-width: 900px) {
  .curious .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; column-gap: 56px; align-items: start; }
  .curious .group-head { position: sticky; top: 110px; }
  .curious .claims { margin-top: 0; grid-template-columns: 1fr 1fr; }
}

.tips { display: grid; gap: 0; margin-top: 28px; counter-reset: t; }
.tip { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); counter-increment: t; }
.tip::before { content: counter(t); font-size: 44px; font-weight: 700; line-height: 0.85; letter-spacing: -0.06em; }
.tip h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
.tip p { grid-column: 2; margin-top: 4px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.sos { margin-top: 28px; padding: 22px 20px; border-radius: 22px; background: var(--ink); color: var(--white); }
.sos strong { display: block; font-size: 24px; letter-spacing: -0.03em; }
.sos strong span { color: var(--coral); }
.sos p { margin-top: 6px; color: var(--muted-on-ink); }
@media (min-width: 900px) { .tips { margin-top: 0; } }

.doc-cta { padding: 72px 0 96px; background: var(--ink); color: var(--white); }
.doc-cta h2 { font-size: clamp(44px, 12vw, 110px); line-height: 0.9; letter-spacing: -0.06em; }
.doc-cta h2 .c { color: var(--coral); }
.doc-cta p { margin-top: 18px; max-width: 38ch; font-size: 18px; color: rgba(255, 254, 253, 0.84); }
.doc-cta p a { color: var(--white); font-weight: 500; }
.doc-cta .btn { margin-top: 26px; }

.plain { padding-top: calc(56px + 3svh); padding-bottom: 96px; }
.plain h1 { margin-top: 16px; font-size: clamp(52px, 13vw, 120px); line-height: 0.92; letter-spacing: -0.06em; }
.plain p { margin-top: 18px; max-width: 42ch; font-size: 18px; line-height: 1.55; }
.plain .tag { background: var(--ink); color: var(--white); }
.will { display: grid; gap: 10px; margin-top: 18px; max-width: 46ch; }
.will li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 17px; line-height: 1.5; }
.will li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 2px; background: var(--coral); }
.plain a { font-weight: 500; }
.pn-h { margin-top: 40px; font-size: 24px; line-height: 1.2; letter-spacing: -0.03em; }
.pn-date { color: var(--muted); font-size: 15px; }

.notfound { min-height: 72svh; padding: 16svh 0 96px; }
.notfound h1 { font-size: clamp(52px, 14vw, 140px); line-height: 0.9; letter-spacing: -0.06em; }
.notfound h1 .c { color: var(--coral); }
.notfound p { margin-top: 20px; max-width: 34ch; font-size: 19px; color: rgba(255, 254, 253, 0.84); }
.notfound .btn { margin-top: 28px; }

/* ------------------------------------------------------------------ */
/* Waitlist form. The markup is in the HTML and works without         */
/* JavaScript (a plain POST); waitlist.js upgrades it in place.       */
/* ------------------------------------------------------------------ */
.wl { container-type: inline-size; scroll-margin-top: 92px; --wl-surface: var(--ink-2); --wl-fg: var(--white); --wl-soft: var(--muted-on-ink); --wl-line: rgba(255, 254, 253, 0.26); }
.hero-card .wl { --wl-surface: var(--ink); }
.wl-form { display: grid; gap: 12px; }
.wl-label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; color: var(--wl-fg); }
.wl-row { display: grid; gap: 10px; }
@container (min-width: 480px) { .wl-row { grid-template-columns: 1fr auto; } }
.wl-input {
  width: 100%; min-height: 56px; padding: 0 20px;
  border: 1.5px solid var(--wl-line); border-radius: var(--r-pill);
  background: var(--wl-surface); color: var(--wl-fg);
  font-size: 17px;   /* 16px+ so iOS doesn't zoom on focus */
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.wl-input::placeholder { color: var(--wl-soft); opacity: 1; }
.wl-input:focus { border-color: var(--wl-fg); box-shadow: 0 0 0 3px var(--wl-surface), 0 0 0 6px var(--coral); }
.wl-input[aria-invalid="true"] { border-color: var(--wl-fg); border-width: 2.5px; }
.wl-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border: 0; border-radius: var(--r-pill);
  background: var(--coral); color: var(--ink);
  font-size: 17px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.25s var(--ease-spring);
}
.wl-btn:active { transform: scale(0.97); }
.wl-btn[disabled] { cursor: progress; }
.wl-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: wl-spin 0.7s linear infinite; }
.wl[data-state="submitting"] .wl-spinner { display: inline-block; }
@keyframes wl-spin { to { transform: rotate(360deg); } }
.wl-check { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; width: fit-content; font-size: 16px; font-weight: 500; color: var(--wl-fg); cursor: pointer; }
.wl-check input { position: absolute; left: 0; top: 50%; width: 26px; height: 26px; margin: -13px 0 0; opacity: 0; }
.wl-box { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border: 2px solid var(--wl-fg); border-radius: 8px; background: var(--wl-surface); transition: background-color 0.15s; }
.wl-box::after { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: translateY(-2px) rotate(-45deg) scale(0); transition: transform 0.25s var(--ease-spring); }
.wl-check input:checked + .wl-box { background: var(--coral); border-color: var(--coral); }
.wl-check input:checked + .wl-box::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.wl-check input:focus-visible + .wl-box { outline: 3px solid var(--coral); outline-offset: 3px; }
.wl-check input[aria-invalid="true"] + .wl-box { border-width: 3px; }
.wl-msg { font-size: 15px; font-weight: 500; color: var(--wl-fg); }
.wl-msg:empty { display: none; }
.wl-msg-line { display: flex; gap: 10px; align-items: flex-start; }
.wl-msg-line + .wl-msg-line { margin-top: 6px; }
.wl-msg-line::before { content: "!"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--coral); color: var(--ink); font-size: 14px; font-weight: 700; }
.wl-fine { font-size: 14px; line-height: 1.5; color: var(--wl-soft); }
.wl-fine a { color: var(--wl-fg); font-weight: 500; }

.wl-done { display: grid; gap: 18px; }
.wl-done-title { font-size: clamp(28px, 7vw, 40px); font-weight: 700; letter-spacing: var(--track-display); line-height: 1.05; color: var(--wl-fg); outline: none; }
.wl-done-sub { font-size: 16px; color: var(--wl-soft); max-width: 46ch; }
.wl-extra { display: grid; gap: 22px; }
.wl-q { display: grid; gap: 10px; }
.wl-q > legend, .wl-q > label { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--wl-fg); margin-bottom: 10px; }
.wl-q-hint { font-size: 14px; color: var(--wl-soft); }
.wl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-chip { position: relative; }
.wl-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wl-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--wl-line); border-radius: var(--r-pill); background: var(--wl-surface); color: var(--wl-fg); font-size: 15px; font-weight: 500; cursor: pointer; user-select: none; transition: transform 0.25s var(--ease-spring), background-color 0.15s, border-color 0.15s; }
.wl-chip input:checked + span { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.wl-chip input:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 700; }
.wl-chip input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.wl-chip:active span { transform: scale(0.94); }
.wl-where { min-height: 52px; }
.wl-other { display: grid; gap: 8px; margin-top: 6px; }
.wl-other-label { font-size: 15px; font-weight: 500; color: var(--wl-fg); }
.wl-other-input { min-height: 52px; }
.wl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wl-skip { min-height: 48px; padding: 0 18px; border: 0; background: transparent; color: var(--wl-fg); font-size: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.wl-thanks { font-size: 17px; font-weight: 500; color: var(--wl-fg); }
.wl-share { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--wl-line); }
.wl-share p { font-size: 16px; font-weight: 500; color: var(--wl-fg); }
.wl-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wl-share-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 0; border-radius: var(--r-pill); background: var(--wl-fg); color: var(--ink); font-size: 16px; font-weight: 700; }
.wl-share-msg { font-size: 14px; font-weight: 500; color: var(--wl-fg); }
.wl-joined { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 18px; font-weight: 700; color: var(--wl-fg); }
.wl-joined::before { content: "✓"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--coral); color: var(--ink); font-size: 16px; }

.wl-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform 0.35s var(--ease-out);
  pointer-events: none;
}
.wl-sticky.is-visible { transform: none; pointer-events: auto; }
.wl-sticky .btn { width: 100%; min-height: 54px; font-size: 17px; background: var(--coral); color: var(--ink); box-shadow: 0 10px 40px rgba(255, 90, 54, 0.35); }
html:not(.js) .wl-sticky { display: none; }
@media (min-width: 900px) { .wl-sticky { display: none; } }

/* ---------- Reduced motion: the finished composition, still ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .glow { display: none; }
  .js .hero-t .t-stem-l, .js .hero-t .t-stem-r, .js .bar-board { animation: none; }
  .roll-word, .odo-strip, .progress-fill, .how-chip, .wl-sticky { transition: none; }
  .wl-spinner { animation-duration: 2.4s; }
}
