/* BetterBoxer waitlist — tokens from spec §6.3 (no other colours), type §6.2, spacing §6.4 */
:root {
  color-scheme: dark;
  --bg: #000000;
  --surface-1: #0F1010;
  --surface-2: #181919;
  --surface-3: #232525;
  --fill-primary: #EDEFEF;
  --fill-primary-pressed: #C8CBCB;
  --fill-secondary: #2C2E2E;
  --fill-secondary-pressed: #3A3C3C;
  --fill-tag: #121313;
  --track: #1C1E1E;
  --hairline: #232525;
  --highlight: #313434;
  --border-strong: #3A3C3C;
  --border-focus: #8D8D93;
  --text: #FFFFFF;
  --text-2: #8D8D93;
  --text-3: #7C7C81;
  --text-inverse: #000000;
  --label-tag: #A0A1A1;
  --destructive: #FF453A;
  --streak-future: #141515;
  --glass-fill: rgb(24 25 25 / .62);
  --glass-stroke: rgb(255 255 255 / .10);
  --float-shadow: 0 8px 20px rgb(0 0 0 / .5);

  --display: "Archivo Expanded", "Archivo Fallback", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --side: 20px;
  --section: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --soft: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 600px) { :root { --side: 32px; } }
@media (min-width: 900px) { :root { --section: 96px; } }
@media (prefers-contrast: more) {
  :root { --text-2: #AEAEB2; --text-3: #8D8D93; --hairline: #3A3C3C; --highlight: #4A4D4D; --track: #2C2E2E; }
}

@font-face { font-family: "Archivo Expanded"; font-weight: 600; font-display: swap; src: url(/fonts/archivo-expanded-600-v1.woff2) format("woff2"); }
@font-face { font-family: "Archivo Expanded"; font-weight: 700; font-display: swap; src: url(/fonts/archivo-expanded-700-v1.woff2) format("woff2"); }
@font-face { font-family: "Archivo Expanded"; font-weight: 800; font-display: swap; src: url(/fonts/archivo-expanded-800-v1.woff2) format("woff2"); }
/* Width-matched fallback so the swap doesn't shift the layout */
@font-face { font-family: "Archivo Fallback"; font-weight: 600 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Arial"); size-adjust: 125%; ascent-override: 70%; descent-override: 17%; line-gap-override: 0%; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/24px var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration-color: var(--text-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 2px solid var(--fill-primary); outline-offset: 3px; border-radius: 6px; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--fill-primary); color: var(--text-inverse); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.num, .tm__digits, .sk__num { font-variant-numeric: tabular-nums; }

.wrap { width: min(100% - 2 * var(--side), 1120px); margin-inline: auto; }
.section { padding-top: var(--section); }

/* ── Type ─────────────────────────────── */
.h1, .h2, .label, .card__title, .tier__name, .joined__title, .wordmark { font-family: var(--display); }
.h1 { font-weight: 800; font-size: clamp(40px, 9vw, 76px); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.h1__a, .h1__b { display: block; }
.h1__b { margin-top: 14px; color: var(--text-2); font-weight: 700; font-size: .5em; line-height: 1.18; letter-spacing: -.01em; }
.h2 { font-weight: 700; font-size: clamp(28px, 5.5vw, 48px); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.h2__a, .h2__b { display: block; }
.h2__b { color: var(--text-2); }
.label { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text-2); letter-spacing: 0; margin-bottom: 16px; }
.lead { color: var(--text-2); max-width: 34em; }
.fine { margin-top: 16px; font-size: 13px; line-height: 18px; color: var(--text-2); max-width: 46em; }

/* ── Pills, capsules, chips ───────────── */
.pill {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--fill-tag); box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--label-tag); font: 600 13px/16px var(--sans); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.pill--s { height: 24px; padding: 0 10px; font-size: 11px; }
.cap {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 24px; border: 0; border-radius: 999px;
  font: 600 17px/22px var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), opacity .25s var(--ease);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.cap:active { transform: scale(.97); }
.cap--primary { background: var(--fill-primary); color: var(--text-inverse); }
.cap--primary:active { background: var(--fill-primary-pressed); }
.cap--secondary { background: var(--fill-secondary); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.cap--secondary:active { background: var(--fill-secondary-pressed); }
.cap--m { height: 44px; padding: 0 20px; font-size: 15px; line-height: 20px; }
.cap--s { height: 32px; padding: 0 14px; font-size: 13px; line-height: 18px; }
.cap[aria-disabled="true"] { pointer-events: none; opacity: .7; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 36px; padding: 0 12px;
  border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong);
  font: 600 15px/20px var(--display); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.chip.is-on { background: var(--fill-primary); color: var(--text-inverse); box-shadow: none; }
.chip--move { font-family: var(--sans); font-size: 15px; }
.chip--move b { font-family: var(--display); font-weight: 600; }
.chip--s { height: 28px; min-width: 0; padding: 0 10px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 8px; border-radius: 6px; background: var(--fill-primary); color: var(--text-inverse); font: 800 15px/18px var(--display); letter-spacing: .04em; text-transform: uppercase; }

/* ── Header ───────────────────────────── */
.top { position: absolute; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top); transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.js .top { position: fixed; }
.top.is-glass { background: var(--glass-fill); box-shadow: 0 1px 0 var(--glass-stroke); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 6px; font-size: 19px; line-height: 1; letter-spacing: -.02em; text-decoration: none; }
.wordmark__glyph { width: 19px; height: 23px; color: var(--text); fill: currentColor; margin-right: 2px; }
.wordmark__a { font-weight: 700; color: var(--text-2); }
.wordmark__b { font-weight: 800; color: var(--text); }
.wordmark__a + .wordmark__b { margin-left: -6px; }

/* ── Hero ─────────────────────────────── */
/* Glows and the hero photo sit at z-index −1 in the root stacking context, behind all content.
   The glow is wider than a phone: clip it, or mobile browsers widen the layout viewport. */
.hero { position: relative; overflow-x: clip; }
.glow {
  position: absolute; z-index: -1; top: 0; left: 50%; translate: -50% 0; pointer-events: none;
  width: max(100%, 1100px); max-width: 1800px; aspect-ratio: 800 / 550;
  background: url(/img/glow-top-v1.webp) center top / 100% 100% no-repeat;
}
/* lighten: the photo's black lets the glow behind it show through, so there's no seam */
.hero__art { display: block; position: relative; z-index: -1; width: min(100%, 520px); margin: 0 auto; mix-blend-mode: lighten; }
.hero__art img { width: 100%; height: auto; aspect-ratio: 4 / 5; }
.hero__in { margin-top: -26vw; position: relative; }
@media (min-width: 600px) { .hero__in { margin-top: -120px; } }
.hero__copy { display: grid; gap: 20px; justify-items: start; }
/* early-bird badge: the one pill in the hero */
.early {
  display: inline-grid; justify-items: center; gap: 1px; padding: 8px 20px; border-radius: 999px;
  background: var(--glass-fill); box-shadow: inset 0 0 0 1px var(--glass-stroke);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
.early__a { font: 600 15px/20px var(--sans); color: var(--text); }
.early__b { font: 500 12px/16px var(--sans); color: var(--text-2); }
/* phones: one centred column, like a card */
@media (max-width: 899px) {
  .hero__copy { justify-items: center; text-align: center; }
  .hero .signup { margin-top: 4px; }
  .hero .join__msg, .hero .join__err, .hero .join__note { padding-left: 0; }
  .hero .joined { justify-items: center; text-align: center; }
}

/* ── Signup ───────────────────────────── */
.signup { width: 100%; max-width: 560px; margin-top: 8px; }
.join__row { display: grid; gap: 8px; }
.join__input {
  width: 100%; height: 56px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--text);
  font-size: 17px; outline: none; transition: box-shadow .18s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.join__input::placeholder { color: var(--text-3); opacity: 1; }
.join__input:focus-visible { box-shadow: inset 0 0 0 1px var(--border-focus); outline: none; }
.join__input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--destructive); }
.join__btn { width: 100%; }
.join__msg:empty { display: none; }
.join__msg, .join__err { margin-top: 10px; padding-left: 22px; color: var(--destructive); font-size: 13px; line-height: 18px; }
.join__err { display: none; scroll-margin-top: 220px; }
.join__err:target { display: block; }
.js .join__err { display: none; }
.join__note { margin-top: 12px; padding-left: 22px; color: var(--text-2); font-size: 13px; line-height: 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.joined { display: grid; gap: 8px; justify-items: start; padding: 20px; border-radius: 20px; background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--hairline), 0 0 0 .5px var(--highlight); animation: fade .35s var(--ease) both; }
.joined[hidden] { display: none; }
.joined__title { font-size: 22px; line-height: 26px; font-weight: 700; outline: none; }
.joined__body { color: var(--text-2); margin-bottom: 8px; }
@media (min-width: 900px) {
  .join__row { display: flex; height: 64px; padding: 8px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); transition: box-shadow .18s var(--ease); }
  .join__row:focus-within { box-shadow: inset 0 0 0 1px var(--border-focus); }
  .join__row:has(.join__input[aria-invalid="true"]) { box-shadow: inset 0 0 0 1px var(--destructive); }
  .join__input, .join__input:focus-visible, .join__input[aria-invalid="true"] { flex: 1; height: 48px; padding: 0 14px; background: transparent; box-shadow: none; }
  .join__btn { width: auto; height: 48px; }
}

@media (min-width: 900px) {
  .hero { min-height: min(56vw, 900px); display: flex; align-items: center; padding: 100px 0 56px; }
  .hero__art { position: absolute; inset: 0; width: 100%; max-width: 1600px; margin: 0 auto; }
  .hero__art img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 30% 50%; }
  .hero__in { margin-top: 0; display: flex; justify-content: flex-end; }
  .hero__copy { width: 54%; gap: 24px; }
}

/* ── Manifesto ────────────────────────── */
.manifesto__text { font: 700 clamp(26px, 4.6vw, 44px)/1.18 var(--display); letter-spacing: -.015em; max-width: 22em; }
.manifesto__text p + p { margin-top: .45em; }
.manifesto__text p:not(:last-child) { color: var(--text-2); }

/* ── Cards ────────────────────────────── */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 32px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card, .band, .tier, .faq {
  background: var(--surface-1); border-radius: 20px;
  box-shadow: inset 0 0 0 .5px var(--hairline), 0 0 0 .5px var(--highlight);
}
.card { display: flex; flex-direction: column; padding: 8px 8px 16px; }
.card__title { margin: 16px 8px 0; font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: -.01em; }
.card__body { margin: 8px 8px 0; color: var(--text-2); font-size: 15px; line-height: 21px; }
.card__foot { margin: auto 8px 0; padding-top: 16px; color: var(--label-tag); font-size: 13px; line-height: 18px; }
.mock {
  position: relative; overflow: hidden; display: grid; place-items: center; min-height: 248px; padding: 20px 16px;
  border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--hairline);
  user-select: none; pointer-events: none;
}
.mock > * { width: 100%; max-width: 320px; }
.bar { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar--thin { height: 6px; }
.bar__fill { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--text); transform-origin: left center; transition: transform .25s linear, background-color .3s var(--ease); }
.row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; line-height: 20px; color: var(--text-2); }
.row .num { color: var(--text); font: 600 15px/20px var(--display); }

/* Round timer */
.tm { display: grid; gap: 14px; justify-items: center; }
.tm__top { display: flex; width: 100%; justify-content: space-between; align-items: center; }
.tm__round { color: var(--text-2); font-size: 15px; }
.tm__round b { color: var(--text); font: 600 15px/20px var(--display); font-variant-numeric: tabular-nums; }
.phase {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--fill-primary); color: var(--text-inverse);
  font: 800 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.phase.is-rest { background: var(--fill-tag); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.tm__digits { font: 800 clamp(64px, 20vw, 84px)/1 var(--display); letter-spacing: -.02em; font-feature-settings: "tnum", "case"; transition: color .3s var(--ease); }
.tm.is-rest .tm__digits { color: var(--text-2); }
.tm.is-rest .bar__fill { background: var(--text-2); }
.tm .bar { width: 100%; }
.tm .bar__fill { transform: scaleX(.744); }
.callout { width: 100%; display: grid; gap: 6px; justify-items: center; padding: 12px; border-radius: 16px; background: var(--surface-1); }
.callout__chips { display: flex; align-items: center; gap: 8px; }
.callout__chips i, .cb__seq i { font-style: normal; color: var(--text-3); }
.callout__names { color: var(--text-2); font-size: 13px; line-height: 18px; }

/* Combo builder */
.cb { display: grid; gap: 14px; }
.cb__seq { display: flex; justify-content: center; align-items: baseline; gap: 10px; padding: 16px 8px; border-radius: 16px; background: var(--surface-1); font: 800 clamp(26px, 8vw, 32px)/1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.cb__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cb .row { padding: 0 4px; }

/* Plan card */
.pc { display: grid; justify-items: start; gap: 6px; padding: 20px; border-radius: 20px; background: var(--surface-1); box-shadow: inset 0 0 0 .5px var(--hairline), 0 0 0 .5px var(--highlight); }
.pc .pill { margin-bottom: 6px; }
.pc__title { font: 700 20px/24px var(--display); }
.pc__meta { color: var(--text-2); font-size: 15px; line-height: 20px; }
.pc__progress { display: flex; align-items: center; gap: 10px; width: 100%; margin: 10px 0 8px; }
.pc__progress .bar { flex: 1; }
.pc__progress .bar__fill { transform: scaleX(.4167); }
.pc__progress .num { color: var(--text-2); font: 600 15px/20px var(--display); }
.pc__start { width: 100%; }

/* Streak */
.sk { display: grid; gap: 16px; padding: 20px 16px; border-radius: 20px; background: var(--surface-1); box-shadow: inset 0 0 0 .5px var(--hairline), 0 0 0 .5px var(--highlight); }
.sk__head { display: flex; align-items: baseline; gap: 10px; }
.sk__num { font: 800 56px/1 var(--display); letter-spacing: -.02em; }
.sk__cap { color: var(--text-2); font-size: 13px; font-weight: 500; }
.sk__pips { margin-left: auto; display: flex; gap: 6px; align-self: center; }
.sk__pips i { width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; justify-items: center; }
.week li { display: grid; justify-items: center; gap: 8px; padding: 8px 0; width: min(40px, 100%); border-radius: 999px; color: var(--text-2); font: 500 13px/16px var(--sans); }
.week i { width: 20px; height: 20px; border-radius: 50%; background: var(--streak-future); }
.week .is-trained i { background: var(--text); }
.week .is-today { background: var(--surface-3); color: var(--text); }
.week .is-today i { background: transparent; box-shadow: inset 0 0 0 2px var(--text); }
.sk__note { color: var(--text-2); font-size: 13px; line-height: 18px; }

/* Coach chat */
.ch { display: grid; gap: 12px; }
.ch__user { justify-self: end; max-width: 78%; padding: 10px 14px; border-radius: 20px 20px 6px 20px; background: var(--fill-primary); color: var(--text-inverse); font-size: 16px; line-height: 21px; }
.ch__coach { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 16px; line-height: 21px; }
.ch__av { width: 20px; height: 24px; fill: var(--text); }
.ch__composer { display: flex; align-items: center; justify-content: space-between; height: 44px; margin-top: 4px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--glass-fill); box-shadow: inset 0 0 0 1px var(--glass-stroke); color: var(--text-3); font-size: 15px; }
.ch__composer i { width: 32px; height: 32px; border-radius: 50%; background: var(--fill-primary); }

/* Technique */
.tq { display: grid; gap: 10px; }
.tq__frame { position: relative; width: 62%; margin: 0 auto; aspect-ratio: 4 / 5; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border-strong); overflow: hidden; }
/* video placeholder: play button, current time, scrubber at 0:04 of 0:10 */
.tq__play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: var(--glass-fill); box-shadow: inset 0 0 0 1px var(--glass-stroke); }
.tq__play::after { content: ""; position: absolute; left: 20px; top: 16px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--text); }
.tq__scrub { position: absolute; left: 12px; right: 12px; bottom: 14px; height: 4px; border-radius: 999px; background: var(--track); }
.tq__scrub i { position: absolute; inset: 0 60% 0 0; border-radius: inherit; background: var(--text); }
.tq__scrub i::after { content: ""; position: absolute; right: -6px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--text); }
.tq__time { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--glass-fill); color: var(--text); font: 600 13px/18px var(--display); font-variant-numeric: tabular-nums; }
.tq__fix { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--surface-1); font-size: 15px; line-height: 20px; color: var(--text-2); }
.tq__fix b { color: var(--text); font-weight: 600; }

/* ── Privacy band ─────────────────────── */
.band { display: grid; gap: 16px; padding: 28px 20px; }
@media (min-width: 900px) { .band { padding: 48px; grid-template-columns: 1fr 1fr; align-items: end; column-gap: 48px; } .band__icon { grid-column: 1 / -1; } }
.band__icon { width: 28px; height: 28px; fill: var(--text); }
.band__body { color: var(--text-2); max-width: 32em; }

/* ── Free vs pro ──────────────────────── */
.tiers { display: grid; gap: 8px; margin-top: 32px; }
@media (min-width: 700px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tier { padding: 24px 20px; }
.tier--pro { box-shadow: inset 0 0 0 1px var(--border-strong); }
.tier__name { display: flex; align-items: center; height: 28px; font-size: 22px; line-height: 26px; font-weight: 700; }
.tier__sub { margin: 8px 0 20px; color: var(--text-2); }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15px; line-height: 21px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 14px; height: 8px; border: solid var(--text); border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(.85); transform-origin: 30% 60%; }

/* ── FAQ ──────────────────────────────── */
.faq { overflow: hidden; }
.faq details + details { box-shadow: inset 0 1px 0 var(--track); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; border: solid var(--text-3); border-width: 2px 2px 0 0; transform: rotate(135deg); transition: transform .25s var(--ease); margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-45deg); margin-top: 4px; }
.faq summary:focus-visible { outline-offset: -4px; border-radius: 16px; }
.faq details p { padding: 0 20px 20px; color: var(--text-2); max-width: 40em; }

/* ── Final call to action ─────────────── */
.final { position: relative; overflow: clip; padding-bottom: 24px; }
.final__in { display: grid; justify-items: center; text-align: center; }
.final .signup { margin-top: 32px; text-align: left; }
/* centred glow that fills the section exactly, so it is black at every edge */
.glow--final { top: 0; height: 100%; aspect-ratio: auto; width: max(100%, 900px); max-width: 1500px; background-image: url(/img/glow-mid-v1.webp); }
.soon { margin-top: 28px; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-2); font-size: 13px; font-weight: 600; }

/* ── Footer ───────────────────────────── */
.foot { padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); color: var(--text-2); font-size: 13px; line-height: 20px; text-align: center; }
.foot a { color: var(--text-2); }
@media (max-width: 899px) { .js .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); } }

/* ── Floating call to action (mobile) ─── */
.float {
  position: fixed; z-index: 30; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); min-width: 220px;
  background: var(--glass-fill); color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-stroke), var(--float-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  translate: -50% 0; opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.float.is-on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.float.is-on:active { transform: scale(.97); }
@media (min-width: 900px) { .float { display: none; } }
@media (prefers-reduced-transparency: reduce) {
  .top.is-glass, .float, .early, .ch__composer, .tq__time { background: var(--surface-2); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1px var(--highlight); }
}

/* ── Simple pages (thanks, 404, privacy) ─ */
.page { min-height: 100svh; display: flex; flex-direction: column; }
.page main { position: relative; overflow-x: clip; flex: 1; padding-top: 140px; }
.page .signup, .page .joined { max-width: 560px; }
.notice { max-width: 44em; padding-bottom: 32px; }
.notice h1 { font: 800 clamp(32px, 7vw, 48px)/1.05 var(--display); letter-spacing: -.02em; }
.notice h2 { margin-top: 36px; font: 700 20px/24px var(--display); }
.notice p, .notice li { margin-top: 12px; color: var(--text-2); }
.notice ul { margin-top: 4px; }
.notice li { padding-left: 18px; position: relative; margin-top: 8px; }
.notice li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); }
.notice strong { color: var(--text); font-weight: 600; }
.notice .meta { color: var(--text-3); font-size: 13px; }
.lost { display: grid; gap: 28px; justify-items: start; }

/* ── Motion ───────────────────────────── */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.glow { animation: fade .3s ease-out both; }
.hero .h1__a, .hero .h1__b { animation: rise .35s var(--ease) both; }
.hero .h1__b { animation-delay: 60ms; }
/* Soft reveal: each block fades, rises and un-blurs once; blocks that arrive together go one after another (--d from site.js) */
.js [data-rise] {
  opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity .9s var(--soft), transform .9s var(--soft), filter .9s var(--soft);
  transition-delay: var(--d, 0ms);
}
.js [data-rise].is-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .hero .h1__a, .hero .h1__b { animation-name: fade; }
  .js [data-rise] { transform: none; filter: none; transition-duration: .4s; }
  .cap:active, .float.is-on:active { transform: none; }
  .bar__fill, .chip, .phase, .tm__digits { transition: none; }
}
