/* Forge Fitness — useforgefitness.com
 *
 * The palette and the typeface are the APP'S OWN (Manrope, Forge blue,
 * and the meaning colours from AppStore.swift's adaptive tokens), so the
 * site reads as the product rather than as marketing about it. The
 * meaning colours — sleep purple, heart red, streak orange, PR gold —
 * are used only where they mean what they mean in the app.
 *
 * Every colour is a token on :root, redefined for dark twice: once
 * behind prefers-color-scheme (guarded so an explicit light choice
 * wins), once behind [data-theme="dark"].
 *
 * THE STAGE (Sep 27 2026, owner: "cool scroll animations going thru the
 * screenshots ... make it the best it can be"). The tour, the reel of
 * screens and the closing invite sit on a dark "stage" in BOTH themes,
 * on purpose: the app's screens are light, and a lit phone on a dark
 * stage is the one look that makes a screenshot read as a device rather
 * than a picture of one. Everything else follows the theme. Stage
 * colours are their own tokens so nothing else can drift into them.
 *
 * MOTION IS LAYERED ON TOP, NEVER REQUIRED. Without main.js, or with
 * reduced motion, the tour is a pinned phone beside normal text, the
 * screens are a swipeable row, and nothing waits on an animation to
 * become readable.
 */

:root {
  /* Neutrals, biased very slightly blue so they sit with the accent
     rather than reading as unconsidered grey. */
  --ground:        #ffffff;
  --surface:       #f5f6f9;
  --surface-2:     #eceef4;
  --line:          #e1e4ec;
  --line-strong:   #cdd2de;
  --ink:           #0b0d12;
  --ink-2:         #3d4351;
  --ink-3:         #6b7280;

  --accent:        #007aff;   /* Forge blue */
  --accent-soft:   #e8f1ff;
  --accent-ink:    #0060cc;

  /* Meaning colours, from the app. Never decorative. */
  --sleep:         #5856d6;
  --heart:         #ff3b30;
  --streak:        #ff9500;
  --gold:          #d9991a;
  --green:         #34c759;

  /* The app's own card, and the amber of a personal record. */
  --card:          #ffffff;
  --gold-soft:     #fdf6e7;
  --gold-line:     #f1dcae;
  --gold-ink:      #8a5a00;

  /* The stage: identical in both themes, see the note at the top. */
  --stage:         #05070c;
  --stage-2:       #0a0e16;
  --stage-ink:     #f3f5f9;
  --stage-ink-2:   #b7bfcd;
  --stage-ink-3:   #7d8697;
  --stage-line:    rgba(255, 255, 255, .09);
  --stage-blue:    #0a84ff;
  --stage-blue-hi: #5aaeff;

  --radius:        14px;
  --radius-lg:     22px;
  --shadow:        0 1px 2px rgba(11, 13, 18, .04), 0 8px 28px rgba(11, 13, 18, .06);

  --max:           1120px;
  --gutter:        clamp(16px, 5vw, 40px);
  --header-h:      62px;

  --ease-out:      cubic-bezier(.16, 1, .3, 1);
  --ease-io:       cubic-bezier(.65, 0, .35, 1);

  --sans: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #0e1014;
    --surface:     #171a20;
    --surface-2:   #1f232b;
    --line:        #262b34;
    --line-strong: #363c47;
    --ink:         #f2f4f8;
    --ink-2:       #c2c8d4;
    --ink-3:       #8b93a3;

    --accent:      #0a84ff;
    --accent-soft: #10243f;
    --accent-ink:  #63b2ff;

    --sleep:       #6e6ce8;
    --heart:       #ff453a;
    --streak:      #ff9f0a;
    --gold:        #e6a83c;
    --green:       #30d158;
    --card:        #1f232b;
    --gold-soft:   #261f12;
    --gold-line:   #4a3a1a;
    --gold-ink:    #f0c060;

    --shadow:      0 1px 2px rgba(0, 0, 0, .5), 0 10px 32px rgba(0, 0, 0, .38);
  }
}

:root[data-theme="dark"] {
  --ground:      #0e1014;
  --surface:     #171a20;
  --surface-2:   #1f232b;
  --line:        #262b34;
  --line-strong: #363c47;
  --ink:         #f2f4f8;
  --ink-2:       #c2c8d4;
  --ink-3:       #8b93a3;

  --accent:      #0a84ff;
  --accent-soft: #10243f;
  --accent-ink:  #63b2ff;

  --sleep:       #6e6ce8;
  --heart:       #ff453a;
  --streak:      #ff9f0a;
  --gold:        #e6a83c;
  --green:       #30d158;
  --card:        #1f232b;
  --gold-soft:   #261f12;
  --gold-line:   #4a3a1a;
  --gold-ink:    #f0c060;

  --shadow:      0 1px 2px rgba(0, 0, 0, .5), 0 10px 32px rgba(0, 0, 0, .38);
}

/* ─────────────────────────────────────────────────────────── base */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--accent); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; text-decoration: none; }

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

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-2); max-width: 60ch; }

section { padding-block: clamp(64px, 10vw, 128px); }

.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; max-width: 20ch; }

/* ─────────────────────────────────────────────────────────── header */

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background-color .4s ease, border-color .4s ease;
}
header.site[data-tone="dark"] {
  background: rgba(5, 7, 12, .62);
  border-bottom-color: rgba(255, 255, 255, .07);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; transition: color .4s ease; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { font-size: 16.5px; letter-spacing: -0.01em; white-space: nowrap; }

header.site nav { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 2.4vw, 26px); min-width: 0; }
header.site nav a { color: var(--ink-2); font-size: 15px; font-weight: 600; transition: color .4s ease; }
header.site nav a:hover { color: var(--ink); text-decoration: none; }
header.site nav a.cta { color: #fff; }

header.site[data-tone="dark"] .brand { color: var(--stage-ink); }
header.site[data-tone="dark"] nav a { color: var(--stage-ink-2); }
header.site[data-tone="dark"] nav a:hover { color: #fff; }
header.site[data-tone="dark"] nav a.cta { color: #fff; }

/* A PHONE HAS NO ROOM FOR FIVE HEADER LINKS. Left as-is the nav ran
   past the right edge and the WHOLE PAGE scrolled sideways. The anchors
   into this page go first; Support is a real destination and stays
   longer, and everything is in the footer anyway. */
@media (max-width: 760px) {
  header.site nav a.drop-sm { display: none; }
}
@media (max-width: 420px) {
  header.site .wrap { gap: 10px; }
  header.site nav a.drop-xs { display: none; }
  .brand span { font-size: 15.5px; }
  header.site .btn { padding: 8px 13px; font-size: 14px; }
}

/* ─────────────────────────────────────────────────────────── buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease-out), box-shadow .25s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-lg { padding: 15px 26px; font-size: 16.5px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px rgba(0, 122, 255, .7); }
.btn-primary:hover { background: #1a8bff; box-shadow: 0 10px 30px -10px rgba(0, 122, 255, .9); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn-glass {
  background: rgba(255, 255, 255, .07);
  color: var(--stage-ink);
  border-color: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .13); }
header.site .btn { padding: 8px 15px; font-size: 14.5px; box-shadow: none; }

/* ───────────────────────────────────────────────── the stage backdrop */

.tour-backdrop {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.tour-backdrop .glow {
  position: absolute;
  width: 78vmax;
  height: 78vmax;
  right: -18vmax;
  top: 50%;
  transform: translate3d(0, -50%, 0);
  background: radial-gradient(closest-side, rgba(10, 132, 255, .34), rgba(10, 132, 255, .12) 46%, rgba(10, 132, 255, 0) 72%);
  opacity: var(--glow, 1);
}
.tour-backdrop .grain {
  position: absolute;
  inset: 0;
  opacity: .075;
  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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─────────────────────────────────────────────────────────── the tour */

.tour {
  position: relative;
  background:
    radial-gradient(120% 60% at 20% 0%, rgba(10, 132, 255, .10), rgba(10, 132, 255, 0) 60%),
    var(--stage);
  color: var(--stage-ink);
  padding-block: 0;
  /* the stage runs up behind the header, so the header's glass shows
     dark from the first frame instead of the page's white ground */
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  isolation: isolate;
  /* The pinned backdrop uses a negative margin so it takes no room, and
     a sticky box with a negative margin is allowed to ride past the end
     of its section: without this clip the stage's glow painted over the
     white section below. */
  overflow: clip;
}

.tour-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  column-gap: clamp(28px, 6vw, 96px);
}
.tour-intro, .step { grid-column: 1; }
.tour-device { grid-column: 2; grid-row: 1 / span 6; }

.tour-intro {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 56px 72px;
  position: relative;
}
.tour-intro .eyebrow { color: var(--stage-blue-hi); }
.tour-intro h1 {
  margin-top: 18px;
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: .98;
  max-width: 11ch;
}
.tour-intro h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.tour-intro h1 .w > span { display: inline-block; }
.tour-intro .lede { margin-top: 26px; color: var(--stage-ink-2); max-width: 44ch; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--stage-ink-3); }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stage-ink-3);
}
.scroll-cue:hover { color: var(--stage-ink); text-decoration: none; }
.scroll-cue i {
  position: relative;
  width: 44px;
  height: 1px;
  background: rgba(255, 255, 255, .18);
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--stage-blue-hi);
  animation: cue 2.4s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(260%); } }

/* the phone column */
.tour-device { position: relative; }
.tour-device-sticky {
  --dw: min(356px, calc((100vh - 230px) * .45));
  --dw: min(356px, calc((100svh - 230px) * .45));
  position: sticky;
  top: calc(var(--header-h) + max(12px, (100vh - var(--header-h) - var(--dw) * 2.24) / 2));
  top: calc(var(--header-h) + max(12px, (100svh - var(--header-h) - var(--dw) * 2.24) / 2));
  display: grid;
  justify-items: center;
  gap: 26px;
  padding-block: 8px;
}

/* the heartbeat from the app icon, behind the phone */
.pulse {
  position: absolute;
  top: calc(var(--dw) * .9);
  left: 50%;
  width: calc(var(--dw) * 5.2);
  height: auto;
  transform: translateX(-55%);
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}
.pulse path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pulse .pulse-line { stroke: url(#pulse-fade); stroke-width: 2; }
.pulse .pulse-blip {
  stroke: #9ccfff;
  stroke-width: 3;
  stroke-dasharray: 42 958;
  stroke-dashoffset: 1000;
  filter: drop-shadow(0 0 6px rgba(10, 132, 255, .95));
  opacity: 0;
}

/* ─────────────────────────────────────────────────────────── the device */

.device-enter, .device-float { display: grid; justify-items: center; }

.device {
  --dw: inherit;
  width: var(--dw);
  position: relative;
  will-change: transform;
}
.device--mini { will-change: auto; }
.device-frame {
  position: relative;
  padding: calc(var(--dw) * .034);
  border-radius: calc(var(--dw) * .172);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 78%, rgba(255, 255, 255, .12)),
    linear-gradient(160deg, #3a4049 0%, #1b1f26 30%, #0c0f14 60%, #22272f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    inset 0 0 0 calc(var(--dw) * .012) rgba(0, 0, 0, .55),
    0 calc(var(--dw) * .16) calc(var(--dw) * .28) calc(var(--dw) * -.09) rgba(0, 0, 0, .78),
    0 calc(var(--dw) * .1) calc(var(--dw) * .3) calc(var(--dw) * -.12) rgba(10, 132, 255, .5);
}
.device-btn {
  position: absolute;
  width: calc(var(--dw) * .011);
  border-radius: 2px;
  background: linear-gradient(90deg, #1a1e25, #3b414b);
}
.device-btn--action { left: calc(var(--dw) * -.008); top: 17%; height: 4.2%; }
.device-btn--up     { left: calc(var(--dw) * -.008); top: 24.5%; height: 7.5%; }
.device-btn--down   { left: calc(var(--dw) * -.008); top: 34%; height: 7.5%; }
.device-btn--side   { right: calc(var(--dw) * -.008); top: 26%; height: 11%; background: linear-gradient(90deg, #3b414b, #1a1e25); }

.device-screen {
  position: relative;
  aspect-ratio: 1080 / 2347;
  border-radius: calc(var(--dw) * .14);
  overflow: hidden;
  background: #fff;
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari: keep overflow clipped to the radius under transforms */
}
.device-screen img { width: 100%; height: 100%; object-fit: cover; }

.island {
  position: absolute;
  z-index: 5;
  top: 1.25%;
  left: 34.4%;
  width: 31.2%;
  height: 4.25%;
  border-radius: 999px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

.lens {
  position: absolute;
  inset: 0;
  transform-origin: 50% 40%;
  will-change: transform;
}
.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: #fff;
  will-change: transform, opacity;
}
.screen.is-on { opacity: 1; }
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #02050b;
  opacity: var(--dim, 0);
  pointer-events: none;
}

/* The summary scrolls inside the phone. Its header and its footer are
   pinned in the app, so only the band between the two dividers moves:
   rows 779..2339 of 2868 in the 6.9" capture. */
.scroll-window {
  position: absolute;
  left: 0;
  right: 0;
  top: 27.162%;
  height: 54.428%;
  overflow: hidden;
}
.scroll-window img { height: auto; width: 100%; object-fit: initial; will-change: transform; }

/* The spotlight. It dims everything but the parts of the screen the
   text beside it is about, the same way the app's own tour does. A step
   can name several parts (the session step lights the video AND the
   notes), so the dimming is one SVG path with a hole per part, and each
   part gets its own ring. */
.spots {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
}
.spot-dim { position: absolute; inset: 0; width: 100%; height: 100%; }
.spot-dim path { fill: rgba(3, 7, 14, .56); }
.spot-ring {
  position: absolute;
  border-radius: calc(var(--dw) * .055);
  outline: 2px solid rgba(10, 132, 255, .95);
  outline-offset: calc(var(--dw) * .012);
  box-shadow: 0 0 calc(var(--dw) * .09) calc(var(--dw) * .02) rgba(10, 132, 255, .42);
}

.glare {
  position: absolute;
  inset: -30% -60%;
  z-index: 4;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .16) 48%, rgba(255, 255, 255, .05) 54%, rgba(255, 255, 255, 0) 62%);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translate3d(-18%, 0, 0);
}

/* tour progress under the phone */
.tour-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(10px, 1.6vw, 18px);
  opacity: var(--nav, 1);
  transition: opacity .4s ease;
}
.tour-nav a {
  display: grid;
  gap: 8px;
  color: var(--stage-ink-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .3s ease;
}
.tour-nav a:hover { color: var(--stage-ink); text-decoration: none; }
.tour-nav a[aria-current="step"] { color: var(--stage-ink); }
.tour-nav i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .13);
  overflow: hidden;
  position: relative;
}
.tour-nav i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--stage-blue);
  transform-origin: left center;
  transform: scaleX(var(--fill, 0));
}

/* the steps */
.step {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 12vh;
}
.step:last-of-type { min-height: 118vh; min-height: 118svh; }
.step-inner { max-width: 30rem; }
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stage-blue-hi);
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.step h2 {
  margin-top: 18px;
  font-size: clamp(32px, 3.9vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}
.step p:not(.kicker) {
  margin-top: 20px;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--stage-ink-2);
  max-width: 40ch;
}

/* ON A PHONE THE SENTENCE COMES FIRST. The phone becomes a band pinned
   under the header, the steps scroll up beneath it, and the text of the
   step you are on sits in the space below the phone. */
@media (max-width: 899px) {
  .tour-grid { display: block; }
  .tour-intro {
    min-height: 0;
    padding-block: clamp(40px, 11vw, 64px) 36px;
  }
  .tour-intro h1 { font-size: clamp(42px, 12.4vw, 64px); }
  .scroll-cue { display: none; }

  .tour-device {
    position: sticky;
    top: var(--header-h);
    z-index: 3;
    margin-inline: calc(var(--gutter) * -1);
    padding-top: 14px;
    height: 58vh;
    height: 58svh;
    background: linear-gradient(to bottom, var(--stage) 0%, var(--stage) 84%, rgba(5, 7, 12, 0) 100%);
  }
  .tour-device-sticky {
    --dw: min(52vw, calc((58vh - 70px) * .44));
    --dw: min(52vw, calc((58svh - 70px) * .44));
    position: relative;
    top: auto;
    gap: 14px;
    padding: 0;
  }
  .tour-nav { gap: 6px; }
  .tour-nav span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tour-nav a { width: 36px; }
  .pulse { top: calc(var(--dw) * .95); width: calc(var(--dw) * 5.6); transform: translateX(-55.4%); }

  /* Each step's text pins just under the phone for as long as its step
     lasts, then the next one pushes it up and away under the phone. */
  .step {
    min-height: 82vh;
    min-height: 82svh;
    align-items: flex-start;
    padding-block: 0;
  }
  .step:last-of-type { min-height: 96vh; min-height: 96svh; }
  .step-inner {
    position: sticky;
    top: calc(var(--header-h) + 58vh + 6px);
    top: calc(var(--header-h) + 58svh + 6px);
    padding-bottom: 28px;
  }
  .step h2 { font-size: clamp(27px, 7.4vw, 36px); margin-top: 12px; }
  .step p:not(.kicker) { margin-top: 12px; font-size: 16.5px; }
}

/* ────────────────────────────────────────────────── the honesty rule */

.rule { background: var(--ground); }
.rule .section-head h2 { max-width: 16ch; }

/* EACH CLAIM SITS BESIDE THE SCREEN THAT PROVES IT (owner Sep 27 2026:
   "present it in a different way"). Each row is one sentence and a copy
   of the real app card, drawn in the app's own type and colours, so the
   proof looks like the product. The recovery card shows a full night:
   the owner did not want a dash on the page. */
.proofs { border-top: 1px solid var(--line); }
.proof {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(30px, 4.4vw, 52px);
  border-bottom: 1px solid var(--line);
}
.proof:last-child { border-bottom: 0; padding-bottom: 0; }
.proof-text h3 { font-size: clamp(22px, 2.5vw, 28px); font-weight: 800; margin-bottom: 10px; letter-spacing: -0.025em; }
.proof-text p { font-size: 16.5px; color: var(--ink-2); max-width: 44ch; }
.proof-stage {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 3vw, 28px);
  display: grid;
  gap: 12px;
}
@media (max-width: 760px) {
  .proof { grid-template-columns: 1fr; gap: 18px; }
}

.app-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}
.app-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.app-title { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.app-body { margin-top: 6px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.app-note { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.metric { display: grid; justify-items: center; gap: 2px; }
.metric strong { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric span { font-size: 13px; color: var(--ink-3); }
.icon {
  width: 22px; height: 22px; margin-bottom: 4px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-hrv   { color: var(--accent); }
.icon-heart { color: var(--heart); }
.icon-sleep { color: var(--sleep); }

.band { background: var(--accent-soft); border-color: transparent; }
.band-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.band-top b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--accent); }
.band-top span { font-size: 14px; font-weight: 600; color: var(--accent); }
.track { position: relative; height: 6px; margin: 14px 0 8px; border-radius: 99px; background: var(--line); }
.track::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 42%; width: 16%;
  border-radius: 99px; background: var(--line-strong);
}
.track i {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.track-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.band-action { margin-top: 10px; font-size: 15px; color: var(--ink); }

.pr { background: var(--gold-soft); border-color: var(--gold-line); }
.pr .app-label { color: var(--gold-ink); }
.pr-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pr-set { margin-top: 2px; font-size: 15px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pr-side { display: grid; justify-items: end; gap: 6px; text-align: right; }
.pr-badge {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-ink); background: var(--card);
  border: 1px solid var(--gold-line); border-radius: 99px; padding: 3px 9px;
}
.pr-gain { font-size: 13.5px; font-weight: 600; color: var(--gold-ink); }

.set-row { display: grid; grid-template-columns: 28px 1fr 1fr; gap: 10px; align-items: center; margin-top: 14px; }
.set-num {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.box {
  position: relative;
  height: 40px; padding-inline: 10px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface);
  display: flex; align-items: center; justify-content: flex-end;
}
.box em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }

/* ─────────────────────────────────────────────────── real screens reel */

.reel {
  position: relative;
  background: var(--stage);
  color: var(--stage-ink);
  padding-block: clamp(64px, 10vw, 120px);
  isolation: isolate;
  overflow: clip;
}
.reel .tour-backdrop { display: none; }
.reel-head { position: relative; z-index: 1; }
.reel-head .eyebrow { color: var(--stage-blue-hi); }
.reel-head h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-top: 14px; }
.reel-head .lede { margin-top: 14px; color: var(--stage-ink-2); }

/* Without motion the screens are a swipeable row. */
.reel-stage {
  --dw: min(232px, 62vw);
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--dw);
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 40px var(--gutter) 18px;
  scrollbar-width: none;
}
.reel-stage::-webkit-scrollbar { display: none; }
.reel-item { margin: 0; scroll-snap-align: center; display: grid; gap: 18px; justify-items: center; }
.reel-item figcaption { font-size: 14px; color: var(--stage-ink-3); text-align: center; max-width: 24ch; }
.reel-item figcaption b { color: var(--stage-ink); font-weight: 700; }
.reel-meter { display: none; }

.device--mini .device-frame {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    inset 0 0 0 calc(var(--dw) * .012) rgba(0, 0, 0, .55),
    0 calc(var(--dw) * .14) calc(var(--dw) * .24) calc(var(--dw) * -.08) rgba(0, 0, 0, .8);
}

/* ─────────────────────────────────────────────────────── what it does */

.features { background: var(--ground); }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.pillar {
  --tint: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  display: grid;
  align-content: start;
  gap: 4px;
}
/* The lift on hover uses `translate`, not `transform`, so it composes
   with the reveal instead of fighting it. */
.pillar { transition: translate .5s var(--ease-out), border-color .3s ease, box-shadow .5s var(--ease-out); }
.motion-on .pillar[data-reveal] {
  transition:
    opacity .9s var(--ease-out) calc(var(--i, 0) * 110ms),
    transform 1.1s var(--ease-out) calc(var(--i, 0) * 110ms),
    translate .5s var(--ease-out), border-color .3s ease, box-shadow .5s var(--ease-out);
}
@media (hover: hover) {
  .pillar:hover { translate: 0 -4px; border-color: color-mix(in srgb, var(--tint) 35%, var(--line)); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--tint) 60%, transparent); }
}
.pillar[data-tint="streak"] { --tint: var(--streak); }
.pillar[data-tint="sleep"]  { --tint: var(--sleep); }
.pillar-icon {
  width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--tint) 14%, transparent);
  color: var(--tint);
  margin-bottom: 18px;
}
.pillar-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pillar .eyebrow { display: block; margin-bottom: 8px; color: var(--tint); }
.pillar h3 { font-size: 21px; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.pillar ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.pillar li {
  font-size: 15.5px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  line-height: 1.52;
}
.pillar li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tint);
}

/* ────────────────────────────────────────────────────────── privacy */

.privacy { background: var(--surface); border-top: 1px solid var(--line); }
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 16px;
}
.fact {
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.fact .num { font-family: var(--mono); font-size: 34px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.fact p { font-size: 15px; color: var(--ink-2); }

.callout {
  margin-top: 18px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.callout p { color: var(--ink); font-weight: 600; max-width: 54ch; }

/* ─────────────────────────────────────────────────────────── the invite */

.invite {
  position: relative;
  background: var(--stage);
  color: var(--stage-ink);
  text-align: center;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(88px, 14vw, 168px);
}
.invite .tour-backdrop { position: absolute; inset: 0; height: auto; margin: 0; }
.invite .glow { right: auto; left: 50%; transform: translate3d(-50%, -50%, 0); width: 70vmax; height: 70vmax; }
.invite-inner { --icon: clamp(92px, 12vw, 128px); position: relative; z-index: 1; display: grid; justify-items: center; }
.invite-icon {
  position: relative;
  z-index: 1;
  width: var(--icon);
  height: auto;
  border-radius: 23%;
  box-shadow: 0 24px 60px -18px rgba(10, 132, 255, .75), 0 0 0 1px rgba(255, 255, 255, .08);
}
.invite h2 { margin-top: 30px; font-size: clamp(34px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.invite .lede { margin-top: 18px; color: var(--stage-ink-2); max-width: 46ch; }
.invite .hero-actions { justify-content: center; }
/* the line runs through the icon's own bar, so the barbell's bar is the
   heartbeat continuing across the page */
.pulse--invite {
  top: calc(var(--icon) / 2);
  width: max(1600px, 130vw);
  transform: translate(-50%, -50%);
  z-index: 0;
}
.pulse--invite .pulse-line { stroke: rgba(10, 132, 255, .5); }

/* ────────────────────────────────────────────────────────── support */

.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(258px, 100%), 1fr)); gap: 16px; margin-top: clamp(24px, 4vw, 36px); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: grid;
  gap: 9px;
  align-content: start;
}
.card h3 { font-size: 17.5px; font-weight: 800; }
.card p, .card li { font-size: 15.5px; color: var(--ink-2); }
.card ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; }

/* ─────────────────────────────────────────────────────────── footer */

footer.site { border-top: 1px solid var(--line); padding-block: 36px 44px; background: var(--ground); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer.site .legal { font-size: 14px; color: var(--ink-3); }
footer.site nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; }
footer.site nav a { font-size: 14px; color: var(--ink-2); font-weight: 600; }

/* ───────────────────────────────────────────────────── inner pages */

.page-head { padding-top: clamp(42px, 6vw, 72px); padding-bottom: clamp(18px, 3vw, 30px); }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; }
.page-head .lede { margin-top: 16px; }
.prose { display: grid; gap: 18px; max-width: 68ch; }
.prose h2 { font-size: 21px; font-weight: 800; margin-top: 14px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16.5px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 9px; }

/* ══════════════════════════════════════════════════════════════════
   MOTION. Everything below applies only when main.js has run and the
   visitor has not asked for reduced motion (.motion-on on <html>).
   ══════════════════════════════════════════════════════════════════ */

/* reveal on scroll: from a small offset, never from nothing far away */
.motion-on [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity .9s var(--ease-out) calc(var(--i, 0) * 110ms),
    transform 1.1s var(--ease-out) calc(var(--i, 0) * 110ms);
}
.motion-on [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-all [data-reveal] { opacity: 1 !important; transform: none !important; }

/* the opening: words rise out of their own line, then the rest follows */
.motion-on [data-enter] { animation: enter 1s var(--ease-out) both; animation-delay: calc(120ms + var(--e, 0) * 70ms); }
.motion-on .tour-intro h1 .w[data-enter] { animation: none; }
.motion-on .tour-intro h1 .w > span { animation: word 1.05s var(--ease-out) both; animation-delay: calc(160ms + var(--e, 0) * 75ms); }
@keyframes enter { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes word { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }

/* the phone arrives turned away, and turns to face you */
.motion-on .device-enter { animation: device-in 1.6s var(--ease-out) .25s both; transform-origin: 50% 80%; }
@keyframes device-in {
  from { opacity: 0; transform: perspective(1600px) translate3d(0, 70px, 0) rotateY(30deg) rotateX(14deg) scale(.92); }
  to   { opacity: 1; transform: none; }
}
.motion-on .device-float { animation: float 7s ease-in-out 1.9s infinite; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -8px, 0); } }

/* the heartbeat draws itself, then keeps a slow pulse moving along it */
.motion-on .pulse .pulse-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.2s var(--ease-out) .7s forwards; }
.motion-on .pulse .pulse-blip { animation: blip 3.8s linear 2.4s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blip {
  0%   { stroke-dashoffset: 1000; opacity: 0; }
  6%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
.motion-on .pulse--invite .pulse-line { animation: none; stroke-dashoffset: 1000; }
.motion-on .invite.is-in .pulse--invite .pulse-line,
.motion-on .invite .pulse--invite.is-in .pulse-line { animation: draw 2.4s var(--ease-out) .2s forwards; }

/* the rule's cards come alive as they arrive */
.motion-on .proof .track i { left: 12%; transition: left 1.4s var(--ease-out) .55s; }
.motion-on .proof.is-in .track i { left: 50%; }
.motion-on .proof .metric { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
.motion-on .proof.is-in .metric { opacity: 1; transform: none; }
.motion-on .proof.is-in .metric:nth-child(1) { transition-delay: .25s; }
.motion-on .proof.is-in .metric:nth-child(2) { transition-delay: .35s; }
.motion-on .proof.is-in .metric:nth-child(3) { transition-delay: .45s; }
.motion-on .proof .pr-badge { transform: scale(.6); opacity: 0; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1) .45s, opacity .4s ease .45s; }
.motion-on .proof.is-in .pr-badge { transform: none; opacity: 1; }
.motion-on .proof .pr-gain { opacity: 0; transform: translate3d(8px, 0, 0); transition: opacity .6s ease .7s, transform .7s var(--ease-out) .7s; }
.motion-on .proof.is-in .pr-gain { opacity: 1; transform: none; }
.motion-on .proof .typed {
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  transition: -webkit-mask-position 1.8s var(--ease-out) .45s, mask-position 1.8s var(--ease-out) .45s;
}
.motion-on .proof.is-in .typed { -webkit-mask-position: 0 0; mask-position: 0 0; }
.motion-on .box--caret::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 11px;
  bottom: 11px;
  width: 2px;
  border-radius: 1px;
  background: var(--accent);
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* the privacy zeros land with a little weight */
.motion-on .fact .num { display: inline-block; transform: translate3d(0, 60%, 0); opacity: 0; transition: transform .9s var(--ease-out) calc(.2s + var(--i, 0) * 110ms), opacity .6s ease calc(.2s + var(--i, 0) * 110ms); }
.motion-on .fact.is-in .num { transform: none; opacity: 1; }

/* the icon in the invite breathes with the heartbeat */
.motion-on .invite.is-in .invite-icon,
.motion-on .invite-inner.is-in .invite-icon { animation: beat 3.8s ease-in-out 1.2s infinite; }
@keyframes beat {
  0%, 70%, 100% { transform: scale(1); }
  76% { transform: scale(1.045); }
  82% { transform: scale(.99); }
  88% { transform: scale(1.02); }
}

/* THE REEL, pinned. JS lays the phones out along an arc; the section's
   height is the scroll distance that plays it. */
.motion-on .reel {
  height: 420vh;
  height: 420svh;
  padding: 0;
}
.motion-on .reel .tour-backdrop { display: block; position: absolute; inset: 0; height: auto; margin: 0; }
.motion-on .reel .glow { right: auto; left: 50%; top: 58%; transform: translate3d(-50%, -50%, 0); width: 90vmax; height: 60vmax; }
.motion-on .reel-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: calc(var(--header-h) + clamp(20px, 5vh, 56px));
  padding-bottom: clamp(18px, 4vh, 40px);
}
.motion-on .reel-head { text-align: center; justify-items: center; display: grid; }
.motion-on .reel-head h2 { max-width: 18ch; margin-inline: auto; }
.motion-on .reel-head .lede { margin-inline: auto; }
.motion-on .reel-stage {
  --dw: min(250px, calc((100svh - var(--header-h) - 360px) * .45), 58vw);
  display: block;
  overflow: visible;
  padding: 0;
  perspective: 1400px;
  perspective-origin: 50% 40%;
}
.motion-on .reel-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--dw);
  margin-left: calc(var(--dw) / -2);
  margin-top: calc(var(--dw) * -1.06 - 30px);
  will-change: transform, opacity;
}
.motion-on .reel-item figcaption { opacity: 0; will-change: opacity; min-height: 3em; }
.motion-on .reel-meter {
  display: block;
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(220px, 40vw);
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.motion-on .reel-meter i {
  position: absolute; inset: 0;
  background: var(--stage-blue);
  transform-origin: left center;
  transform: scaleX(var(--meter, 0));
}
@media (max-width: 899px) {
  .motion-on .reel { height: 380vh; height: 380svh; }
  .motion-on .reel-stage { --dw: min(190px, calc((100svh - var(--header-h) - 300px) * .45), 50vw); }
}

@media (prefers-reduced-motion: reduce) {
  .device, .lens, .screen { will-change: auto; }
}
