/* Strides — website
 *
 * The site speaks the app's Home dialect: a flat neutral canvas, white slabs
 * with generous corners, one ink, a serif voice for the few sentences that
 * are said to the runner, and spaced capitals for labels. Colour is spent only
 * where it carries a fact: a run type, a route, a chart.
 *
 * Shape rule, stated once: cards 26, inner panels 18, cells 12, every action
 * is a capsule. Motion: one strong ease-out; nothing loops.
 */

@font-face { font-family: "Newsreader"; src: url("assets/fonts/Newsreader-Variable.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/DMSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/DMSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/DMSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Mrs Sheppards"; src: url("assets/fonts/MrsSheppards-Regular.woff2") format("woff2"); font-display: swap; }

:root {
  color-scheme: light dark;
  /* HomePalette */
  --canvas: #f1f1f3;
  --card: #ffffff;
  --well: #f4f4f6;
  --ink: #0b0b0c;
  --text-2: #5f5f64;      /* body copy: the app's grey, darkened to pass AA on the canvas */
  --secondary: #6c6c71;
  --tertiary: #aeaeb2;
  --on-ink: #ffffff;
  --inverted: #0e0e10;
  --inverted-raised: #1c1c1f;
  --on-inverted: #f5f5f7;
  --on-inverted-2: #9a9aa0;
  --on-inverted-3: #48484c;
  --hairline: #0000000f;
  --strong-hairline: #0000001f;
  --card-edge: transparent;
  --shadow-float: 0 1px 2px #0000000a, 0 12px 32px -8px #0000001f;
  /* IntentColors.chip */
  --recovery: #2a8a6a; --easy: #3a78b5; --speed: #a62f5c; --threshold: #e06a18; --long: #5c55a6; --race: #a67c1a;
  /* TrendsPalette */
  --better: #2f9e63; --worse: #d65a55; --heart: #e5484d; --comparison: #b9b9be; --grid: #0000000d;

  --serif: "Newsreader", "New York", ui-serif, Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --r-card: 26px; --r-inner: 18px; --r-cell: 12px;
  --page: 1160px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000000;
    --card: #121212;
    --well: #232326;
    --ink: #f5f5f7;
    --text-2: #a1a1a6;
    --secondary: #8e8e93;
    --tertiary: #5c5c61;
    --on-ink: #0b0b0c;
    --inverted: #1a1a1d;
    --inverted-raised: #2b2b2f;
    --on-inverted-3: #56565b;
    --hairline: #ffffff14;
    --strong-hairline: #ffffff29;
    --card-edge: #ffffff12;
    --shadow-float: 0 0 0 1px #ffffff14, 0 16px 40px -8px #000000cc;
    --recovery: #3aad84; --easy: #6ba3d9; --speed: #d45a8a; --threshold: #f08a3a; --long: #9b94d4; --race: #c9a84c;
    --better: #5dcb8b; --worse: #f07c76; --heart: #ff6369; --comparison: #55555a; --grid: #ffffff12;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* Every image here has fixed dimensions, so nothing needs scroll anchoring; and
 * anchoring on the section after the feed made filtering jump the page. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-anchor: none; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
h1, h2, h3, h4, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
::selection { background: color-mix(in srgb, var(--easy) 26%, transparent); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 500; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
.wrap { width: min(var(--page), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon .fill, .icon-fill { fill: currentColor; stroke: none; }

/* ---------- Type ---------- */

.display, .display-2, .verdict, .greeting, .plan-art-title, .estimate-figure {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  letter-spacing: -0.022em; text-wrap: balance;
}
.display { font-size: clamp(52px, 8.2vw, 104px); line-height: .98; letter-spacing: -0.028em; }
.display-2 { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -0.024em; }
.lede { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--text-2); max-width: 34em; text-wrap: pretty; }

/* The spaced-capital label — TODAY, THIS WEEK, INSIGHT. */
.label { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--secondary); line-height: 1.3; }
.label-on-ink { color: var(--on-inverted-2); }

/* ---------- Actions ---------- */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font-size: 16px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .16s var(--ease), background-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.pill:active { transform: scale(.97); }
.pill-ink { background: var(--ink); color: var(--on-ink); }
.pill-quiet { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--card-edge); }
.pill-quiet .icon { font-size: 18px; transition: transform .3s var(--ease); }
.pill-quiet:hover .icon { transform: translateY(2px); }
.pill-small { min-height: 38px; padding: 0 16px; font-size: 14.5px; }
@media (hover: hover) {
  .pill-ink:hover { background: color-mix(in srgb, var(--ink) 84%, var(--canvas)); }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--strong-hairline); background: var(--card); color: var(--ink);
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .16s var(--ease);
}
.chip:active { transform: scale(.96); }
.chip.is-selected { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--tertiary)); }
.chip.is-selected .dot { box-shadow: 0 0 0 1.5px var(--on-ink); }
.chips-on-ink .chip { background: transparent; color: var(--on-inverted); border-color: #ffffff2e; }
.chips-on-ink .chip.is-selected { background: var(--on-inverted); color: #0b0b0c; border-color: var(--on-inverted); }
@media (hover: hover) {
  .chip:not(.is-selected):hover { border-color: var(--secondary); }
  .chips-on-ink .chip:not(.is-selected):hover { border-color: #ffffff66; }
}

/* ---------- Surfaces ---------- */

.card { background: var(--card); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--card-edge); }

.badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  /* The identity hue, deepened toward the ink so small type still reads. */
  color: color-mix(in srgb, var(--c, var(--secondary)) 72%, var(--ink)); background: color-mix(in srgb, var(--c, var(--secondary)) 13%, transparent);
}
.badge-better { --c: var(--better); }

/* ---------- Nav ---------- */

.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease); }
.nav.is-scrolled { background: color-mix(in srgb, var(--canvas) 80%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--hairline); }
.nav-inner { height: 68px; display: flex; align-items: center; gap: 24px; }
.wordmark { font-family: "Mrs Sheppards", cursive; font-size: 34px; line-height: 1; letter-spacing: 0; padding-top: 4px; margin-right: auto; }
.nav-links { display: flex; gap: 4px; font-size: 15px; color: var(--text-2); }
.nav-links a { padding: 8px 12px; border-radius: 999px; transition: color .2s var(--ease), background-color .2s var(--ease); }
.nav-links a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.nav-links a.is-current { color: var(--ink); }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(116px, 15vh, 160px); text-align: center; overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 13px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); font-size: 14px; font-weight: 500; color: var(--text-2); }
.hero-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--better); box-shadow: 0 0 0 3px color-mix(in srgb, var(--better) 22%, transparent); }
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); font-size: 14px; font-weight: 500; color: var(--text-2);
}
.hero h1 { margin: 40px 0 24px; }
.hero .lede { max-width: 33em; margin-inline: auto; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }

.hero-stage { position: relative; width: min(1040px, 100%); margin: 64px auto 0; height: clamp(440px, 58vw, 640px); padding-inline: var(--gutter); }
.hero-stage::after { /* The canvas rises over the phone's foot, so it stands in the page rather than on it. */
  content: ""; position: absolute; inset: auto 0 0; height: 34%; z-index: 4; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--canvas) 0%, transparent), var(--canvas) 78%);
}
.phone {
  --bezel: 11px;
  position: relative; border-radius: 58px; padding: var(--bezel); background: #0d0d0f;
  box-shadow: inset 0 0 0 1.5px #3a3a3e, inset 0 0 0 4px #0d0d0f, 0 0 0 1px #00000014, 0 40px 80px -30px #00000059, 0 18px 36px -18px #00000040;
}
.phone img { border-radius: 47px; width: 100%; }
@media (prefers-color-scheme: dark) {
  .phone { background: #1c1c1f; box-shadow: inset 0 0 0 1.5px #4a4a50, inset 0 0 0 4px #1c1c1f, 0 0 0 1px #ffffff12, 0 40px 90px -30px #000; }
}
.phone-hero { position: absolute; left: 50%; top: 0; width: clamp(300px, 34vw, 372px); translate: -50% 0; z-index: 2; }

.hero-card { position: absolute; z-index: 3; width: 250px; will-change: transform; }
.float-inner { background: var(--card); border-radius: 22px; padding: 18px 20px; text-align: left; box-shadow: var(--shadow-float); }
.hero-card-left { left: calc(50% - 450px); top: 200px; width: 262px; }
.hero-card-right { right: calc(50% - 430px); top: 92px; width: 236px; }
.float-figure { font-family: var(--serif); font-size: 32px; letter-spacing: -.02em; line-height: 1.1; margin-top: 8px; font-variant-numeric: lining-nums; }
.float-note { font-size: 13.5px; color: var(--secondary); margin-top: 6px; }
.float-ink { background: var(--inverted); color: var(--on-inverted); }
.float-ink .label { color: var(--on-inverted-2); }
.float-ink .float-note { color: var(--on-inverted-2); margin: 3px 0 14px; }
.float-ink .badge { color: #fff; background: color-mix(in srgb, var(--c) 52%, #0e0e10); }
.float-ink .profile i { background: var(--on-inverted-3); }
.float-ink .profile i.is-work { background: var(--on-inverted); }
.float-row { display: flex; justify-content: space-between; align-items: center; }
.float-title { font-family: var(--serif); font-size: 25px; letter-spacing: -.02em; line-height: 1.15; margin-top: 8px; }
.float-trend { display: block; width: 100%; height: auto; margin-top: 10px; }
.better { color: color-mix(in srgb, var(--better) 72%, var(--ink)); font-weight: 500; }

.proof { text-align: center; font-size: 14.5px; color: var(--secondary); padding: 0; position: relative; z-index: 5; margin-top: 8px; }
.proof strong { color: var(--ink); font-weight: 500; }
.proof span { padding: 0 8px; color: var(--tertiary); }

/* ---------- Chapters ---------- */

.chapter { padding-top: clamp(96px, 13vw, 168px); }
.chapter-head .label { margin-bottom: 18px; }
.chapter-head .display-2 { margin-bottom: 20px; }
.chapter-head-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.chapter-head-center .lede { margin-inline: auto; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.split-reverse > :first-child { order: 2; }

.ticks { margin-top: 30px; display: grid; gap: 12px; font-size: 16px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; }
.ticks .icon { font-size: 14px; margin-top: 3px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--on-ink); stroke-width: 2.4; }

/* ---------- Stat rows ---------- */

.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
.stats div { display: flex; flex-direction: column; padding: 0 22px; border-left: 1px solid var(--strong-hairline); }
.stats div:first-child { padding-left: 0; border: 0; }
.stats strong { font-size: 22px; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.stats span { font-size: 13.5px; color: var(--secondary); }

/* ---------- Workout profile ---------- */

.profile { display: flex; align-items: flex-end; gap: 3px; height: 30px; }
.profile i { height: calc(var(--h) * 100%); flex: var(--w) 1 0; border-radius: 4px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.profile i.is-work { background: var(--ink); }

/* ---------- Today: the Home screen, scrolled for you ---------- */

.tour { position: relative; height: calc(100vh + var(--travel, 1700px)); margin-top: clamp(72px, 9vw, 120px); }
.tour-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 68px; }
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 110px); align-items: center; }
.tour-copy .label { margin-bottom: 18px; }
.tour-copy .display-2 { margin-bottom: 18px; }
.tour-steps { margin-top: 30px; display: grid; gap: 2px; max-width: 30em; }
.tour-steps button { display: grid; gap: 3px; width: 100%; padding: 12px 0 12px 20px; border: 0; background: none; text-align: left; position: relative; opacity: .38; transition: opacity .35s var(--ease); }
.tour-steps button::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--ink); transform: scaleY(0); transition: transform .45s var(--ease); }
.tour-steps li.is-active button { opacity: 1; }
.tour-steps li.is-active button::before { transform: none; }
@media (hover: hover) { .tour-steps li:not(.is-active) button:hover { opacity: .7; } }
.tour-steps strong { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.tour-steps span { font-size: 15px; color: var(--text-2); line-height: 1.45; }
.tour-device { display: flex; flex-direction: column; align-items: center; }
.tour-phone { width: min(372px, calc((100vh - 130px) * .46)); --bezel: 10px; border-radius: 56px; }
.tour-screen { position: relative; aspect-ratio: 780 / 1696; overflow: hidden; border-radius: 46px; background: var(--canvas); isolation: isolate; }
.tour-screen picture, .tour-screen img { display: block; }
.tour-page { position: absolute; top: 0; left: 0; width: 100%; border-radius: 0 !important; will-change: transform; transform: translate3d(0, var(--y, 0px), 0); }
.tour-top { position: absolute; top: 0; left: 0; width: 100%; z-index: 2; border-radius: 0 !important; }
/* The app's header frosts what passes under it; a fade stands in for the blur. */
.tour-fade { position: absolute; left: 0; right: 0; top: calc(223 / 1696 * 100%); height: 6%; z-index: 2; background: linear-gradient(var(--canvas), color-mix(in srgb, var(--canvas) 0%, transparent)); opacity: var(--fade, 0); pointer-events: none; }
.tour-controls { position: absolute; left: 0; bottom: 0; width: 100%; z-index: 3; border-radius: 0 !important; }
.tour-caption { display: none; }

/* ---------- Plan slab ---------- */

.plan-slab {
  margin: clamp(96px, 13vw, 168px) auto 0; width: min(1240px, calc(100% - 2 * var(--gutter)));
  background: var(--inverted); color: var(--on-inverted); border-radius: 34px;
  padding: clamp(40px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); box-shadow: inset 0 0 0 1px var(--card-edge);
}
.plan-slab .wrap { width: min(var(--page), calc(100% - 2 * clamp(20px, 4vw, 64px))); }
.plan-slab .lede { color: var(--on-inverted-2); }
.plan-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.plan-copy .label { margin-bottom: 18px; }
.plan-copy .display-2 { margin-bottom: 20px; font-size: clamp(38px, 4.2vw, 54px); }
.plan-question { margin-top: 30px; }
.question-label { font-size: 15px; font-weight: 500; margin-bottom: 12px; color: var(--on-inverted); }

.plan-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid #ffffff14; }
.feature-row { display: flex; gap: 16px; align-items: flex-start; }
.feature-row h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.feature-row p { font-size: 15px; color: var(--on-inverted-2); line-height: 1.5; }
.disc { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--inverted-raised); color: var(--on-inverted); font-size: 19px; }

/* ---------- Plan: the build and the reveal, inside the phone ---------- */

.plan-device { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.plan-phone { width: min(360px, 100%); --bezel: 10px; border-radius: 56px; background: #1d1d20; box-shadow: inset 0 0 0 1.5px #4a4a50, inset 0 0 0 4px #1d1d20, 0 40px 90px -30px #000; }
.plan-screen { position: relative; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 46px; background: var(--canvas); color: var(--ink); }
.plan-app { position: absolute; top: 0; left: 0; width: 390px; height: 844px; transform-origin: 0 0; transform: scale(var(--s, .87)); }
.app-status { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 50px; font-size: 16px; font-weight: 600; transform-origin: 0 0; transform: scale(var(--s, .87)); width: 390px; }
.app-status .island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.status-icons { display: flex; gap: 6px; align-items: center; }
.status-icons svg { height: 12px; width: auto; }
.status-icons svg:last-child { height: 13px; }
.replay { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid #ffffff2e; background: transparent; color: var(--on-inverted); font-size: 14.5px; font-weight: 500; transition: border-color .2s var(--ease), opacity .3s var(--ease), transform .16s var(--ease); }
.replay:hover { border-color: #ffffff66; }
.replay:active { transform: scale(.96); }
.replay .icon { font-size: 16px; }
.replay[hidden] { display: inline-flex; visibility: hidden; opacity: 0; }

/* App pages, at the app's own point sizes. */
.pa-page { position: absolute; inset: 0; padding: 74px 20px 24px; display: flex; flex-direction: column; gap: 20px; }
.pa-page.is-leaving { animation: pa-leave .3s var(--ease) forwards; }
@keyframes pa-leave { to { opacity: 0; transform: scale(1.02); filter: blur(6px); } }
.pa-stage { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--k, 0) * 110ms); }
.pa-page.is-in .pa-stage { opacity: 1; transform: none; }
.pa-label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--secondary); }
.pa-title { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.12; letter-spacing: -.02em; margin-top: 10px; white-space: pre-line; }
.pa-swap { display: grid; }
.pa-swap > * { grid-area: 1 / 1; transition: opacity .3s var(--ease), filter .3s var(--ease); }
.pa-swap > .is-out { opacity: 0; filter: blur(6px); }
.pa-readout { position: relative; display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px 10px; }
.pa-percent { font-size: 44px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.pa-week { font-size: 14px; font-weight: 500; color: var(--secondary); font-variant-numeric: tabular-nums; }
.pa-progress { position: absolute; left: 2px; right: 2px; bottom: -2px; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.pa-progress i { position: absolute; inset: 0; background: var(--ink); border-radius: 3px; transform-origin: 0 0; transform: scaleX(var(--p, 0)); }
.pa-chart { position: relative; background: var(--card); border-radius: 26px; padding: 16px; box-shadow: inset 0 0 0 1px var(--card-edge); }
.pa-chart svg { display: block; width: 100%; height: 170px; overflow: visible; }
.pa-peak { position: absolute; right: 16px; top: 12px; font-size: 11px; font-weight: 500; color: var(--secondary); font-variant-numeric: tabular-nums; transition: opacity .3s var(--ease); }
.pa-steps { background: var(--card); border-radius: 20px; padding: 4px 16px; box-shadow: inset 0 0 0 1px var(--card-edge); }
.pa-step { display: flex; gap: 14px; align-items: flex-start; padding: 11px 0; }
.pa-step + .pa-step { border-top: 1px solid var(--hairline); }
.pa-mark { position: relative; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--tertiary); transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.pa-mark::after { content: ""; position: absolute; left: 6.2px; top: 3px; width: 4.5px; height: 9px; border: solid var(--on-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.pa-step.is-active .pa-mark { border-color: var(--ink); border-right-color: transparent; animation: spin .75s linear infinite; }
.pa-step.is-done .pa-mark { background: var(--ink); border-color: var(--ink); }
.pa-step.is-done .pa-mark::after { transform: rotate(45deg) scale(1); }
@keyframes spin { to { transform: rotate(360deg); } }
.pa-step-title { font-size: 15px; font-weight: 600; color: var(--tertiary); transition: color .3s var(--ease); }
.pa-step:not(.is-pending) .pa-step-title { color: var(--ink); }
.pa-step-detail { font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s var(--ease), opacity .35s var(--ease); }
.pa-step:not(.is-pending) .pa-step-detail { max-height: 20px; opacity: 1; margin-top: 2px; }

.pa-hero { background: var(--inverted); color: var(--on-inverted); border-radius: 26px; padding: 22px; display: grid; gap: 18px; }
.pa-hero-head { display: flex; align-items: center; gap: 12px; }
.pa-medal { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #2b2b2f; box-shadow: inset 0 0 0 1.5px #ffffff26; font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; }
.pa-hero-name { font-size: 16px; font-weight: 600; }
.pa-hero-cap { font-size: 13px; font-weight: 500; color: var(--on-inverted-2); }
.pa-clock { font-size: 54px; font-weight: 600; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.pa-hero-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pa-faster { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #7ce3a4; background: #34c7592e; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .4s var(--ease); }
.pa-hero.is-landed .pa-faster { opacity: 1; }
.pa-likely { font-size: 13px; font-weight: 500; color: var(--on-inverted-2); font-variant-numeric: tabular-nums; }
.pa-trajectory { display: block; width: 100%; height: 92px; overflow: visible; }
.pa-ends { display: flex; justify-content: space-between; }
.pa-ends div { display: grid; gap: 2px; }
.pa-ends div:last-child { text-align: right; }
.pa-ends span { font-size: 12px; font-weight: 500; color: var(--on-inverted-2); }
.pa-ends strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pa-group-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 10px; }
.pa-group-note { font-size: 12.5px; color: var(--secondary); }
.pa-rows { background: var(--card); border-radius: 20px; padding: 2px 18px; box-shadow: inset 0 0 0 1px var(--card-edge); }
.pa-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.pa-row + .pa-row { border-top: 1px solid var(--hairline); }
.pa-row-name { font-size: 15px; font-weight: 600; }
.pa-row-name small { display: block; font-size: 12.5px; font-weight: 400; color: var(--secondary); }
.pa-row-time { text-align: right; }
.pa-row-time strong { display: block; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pa-row-time span { font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--better) 72%, var(--ink)); font-variant-numeric: tabular-nums; }
/* The status bar sits on paper, so a page scrolling under it never collides with the clock. */
.plan-screen::before { content: ""; position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 13%; background: linear-gradient(var(--canvas) 55%, color-mix(in srgb, var(--canvas) 0%, transparent)); pointer-events: none; }
.pa-reveal { overflow: hidden; }
.pa-flow { display: flex; flex-direction: column; gap: 22px; transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); }
.pa-cta-wrap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 20px 26px; background: linear-gradient(color-mix(in srgb, var(--canvas) 0%, transparent), var(--canvas) 42%); }
.pa-cta { height: 54px; border-radius: 999px; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; font-weight: 600; }

/* ---------- Phones in sections ---------- */

.phone-stage { position: relative; height: clamp(420px, 36vw, 520px); overflow: hidden; background: var(--card); }
.phone-stage .phone { position: absolute; width: 46%; --bezel: 9px; border-radius: 50px; }
.phone-stage .phone img { border-radius: 41px; }
.phone-stage-left { left: 3%; top: 40px; }
.phone-stage-right { right: 3%; top: 96px; }
@media (prefers-color-scheme: dark) { .phone-stage { background: #0c0c0d; } }

/* ---------- Activities: the month slab ---------- */

.month-slab { margin-top: 18px; background: var(--inverted); color: var(--on-inverted); border-radius: var(--r-card); padding: 22px 22px 18px; box-shadow: inset 0 0 0 1px var(--card-edge); }
.month-head { display: flex; justify-content: space-between; align-items: center; }
.month-link { display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; color: var(--on-inverted-2); }
.month-link .icon { font-size: 14px; }
.month-name { font-family: var(--serif); font-size: 32px; letter-spacing: -.02em; line-height: 1.1; margin-top: 8px; }
.month-bars { position: relative; display: grid; grid-template-columns: repeat(30, 1fr); align-items: end; height: 70px; margin-top: 18px; }
.month-bars i { justify-self: center; width: 3px; height: 3px; border-radius: 2px; background: var(--on-inverted-3); }
.month-bars i.is-run { width: 7px; height: calc(var(--h) * 100%); background: var(--on-inverted); transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.3, 1.25, .5, 1), opacity .3s var(--ease); transition-delay: calc(var(--k, 0) * 60ms); }
.month-bars i.is-run.is-dim { opacity: .25; }
.js .month-slab:not(.is-drawn) .month-bars i.is-run { transform: scaleY(0); }
.month-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; padding-top: 14px; border-top: 1px solid #ffffff1f; }
.month-stats div { display: flex; flex-direction: column; padding-left: 16px; border-left: 1px solid #ffffff1f; }
.month-stats div:first-child { padding-left: 0; border: 0; }
.month-stats strong { font-size: 21px; font-weight: 500; font-variant-numeric: tabular-nums; }
.month-stats span { font-size: 13px; color: var(--on-inverted-2); }

/* ---------- Activities feed ---------- */

.feed-demo { min-width: 0; }
#activities { align-items: start; }
#activities .chapter-head { position: sticky; top: 120px; }
.feed-demo .chips { padding-bottom: 4px; }
.feed-demo .chips::-webkit-scrollbar { display: none; }
.feed { position: relative; margin-top: 18px; display: grid; gap: 10px; }
.feed-month { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px 2px; }
.feed-month h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -.02em; }
.feed-month span { font-size: 14px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.run { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 20px 18px 16px; transition: opacity .3s var(--ease), transform .45s var(--ease); }
.run-glyph { width: 92px; height: 64px; }
.run-glyph path { fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.run-glyph .treadmill { stroke: var(--tertiary); stroke-width: 2; }
.run-glyph .start { fill: var(--c); stroke: none; }
.run-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.run-title { font-family: var(--serif); font-size: 21px; line-height: 1.15; letter-spacing: -.015em; }
.run-date { font-size: 13.5px; color: var(--secondary); margin-top: 2px; }
.run .stats { margin-top: 10px; }
.run .stats div { padding: 0 16px; }
.run .stats div:first-child { padding-left: 0; }
.run .stats strong { font-size: 17px; }
.run .stats span { font-size: 12.5px; }
.feed .is-hidden { display: none; }
.run.is-entering { animation: run-in .45s var(--ease) both; animation-delay: calc(var(--k, 0) * 40ms); }
@keyframes run-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.feed-empty { padding: 28px; text-align: center; color: var(--secondary); font-size: 15px; }

/* ---------- Trends ---------- */

.trends-hero { padding: clamp(24px, 3.4vw, 40px) clamp(20px, 3.4vw, 40px) 24px; }
.trends-hero-head { display: flex; justify-content: space-between; align-items: flex-start; }
.verdict { font-size: clamp(52px, 7vw, 84px); line-height: 1; letter-spacing: -.03em; }
.trends-hero { margin-top: 48px; }
.pill-menu { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--strong-hairline); font-size: 15px; font-weight: 500; }
.readout { display: flex; gap: 14px; align-items: center; margin-top: 22px; min-height: 52px; }
.readout-disc { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--better) 14%, transparent); color: var(--better); font-size: 19px; flex: none; }
.readout-main { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.readout-sub { font-size: 15px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.mileage-chart { position: relative; margin-top: 18px; height: clamp(200px, 26vw, 280px); touch-action: pan-y; cursor: crosshair; }
.mileage-chart svg { width: 100%; height: 100%; overflow: visible; }
.mileage-chart .grid-line { stroke: var(--grid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mileage-chart .area { fill: url(#mileage-fill); }
.mileage-chart .series { fill: none; stroke: var(--easy); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.mileage-chart .avg { fill: none; stroke: var(--comparison); stroke-width: 1.8; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.axis { position: absolute; font-size: 11.5px; font-weight: 500; color: var(--secondary); letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; pointer-events: none; }
.axis-y { right: 0; transform: translateY(-50%); letter-spacing: 0; }
.axis-x { bottom: -26px; transform: translateX(-50%); }
.scrub-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--strong-hairline); left: 0; opacity: 0; transition: opacity .2s var(--ease); pointer-events: none; }
.scrub-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--card); border: 2.5px solid var(--easy); left: 0; top: 0; opacity: 0; transition: opacity .2s var(--ease); pointer-events: none; }
.mileage-chart.is-scrubbing .scrub-line, .mileage-chart.is-scrubbing .scrub-dot { opacity: 1; }
.chart-legend { display: flex; align-items: center; gap: 8px; margin-top: 40px; font-size: 13px; color: var(--secondary); flex-wrap: wrap; }
.key { display: inline-block; width: 16px; height: 0; border-top: 2.4px solid var(--easy); border-radius: 2px; }
.key-dash { border-top: 2px dashed var(--comparison); margin-left: 12px; }
.chart-hint { margin-left: auto; }
.trends-copy { margin-top: 28px; }
.trends-copy .lede { max-width: 38em; }

.group-label { text-align: center; font-size: 11.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--secondary); margin: clamp(56px, 7vw, 88px) 0 18px; }
/* Trends, in bento: small titled cards, each answering one question at a glance. */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(206px, auto); gap: 12px; }
.bento-card { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 16px; border-radius: var(--r-card); background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); }
.bento-race { grid-column: span 2; grid-row: span 2; }
.bento-pace, .bento-conditions { grid-column: span 2; }
.bento-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bento-head h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.bento-head p { font-size: 13px; color: var(--secondary); margin-top: 1px; }
.delta { flex: none; display: inline-flex; flex-direction: column; align-items: flex-end; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: color-mix(in srgb, var(--better) 72%, var(--ink)); }
.delta small { font-size: 11.5px; font-weight: 500; color: var(--secondary); }
.delta-worse { color: color-mix(in srgb, var(--worse) 78%, var(--ink)); padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--worse) 12%, transparent); }
.bento-figure { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 14px; }
.bento-figure strong { font-size: 27px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--c, var(--ink)); }
.bento-race .bento-figure strong { font-size: 34px; }
.bento-figure span { font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.bento-note { font-size: 12.5px; font-weight: 500; color: var(--secondary); margin-top: 2px; }
.bento-note.better { color: color-mix(in srgb, var(--better) 72%, var(--ink)); }
.bento-chart { display: block; width: 100%; flex: 1; min-height: 64px; margin-top: 12px; overflow: visible; }
.bento-race .bento-chart { min-height: 220px; }
.bento-mini .bento-chart { flex: none; height: 54px; min-height: 0; margin-top: auto; }
.bento-chart text { font-family: var(--sans); font-size: 10.5px; font-weight: 500; fill: var(--secondary); font-variant-numeric: tabular-nums; }
.bento-chart .grid { stroke: var(--grid); stroke-width: 1; }
.fine { font-size: 13.5px; color: var(--secondary); margin-top: 18px; text-align: center; }

/* ---------- The app: four screens ---------- */

.segmented { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 30px; padding: 4px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); }
.segmented button { position: relative; z-index: 1; min-width: 96px; height: 38px; padding: 0 20px; border: 0; background: none; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .3s var(--ease); }
.segmented button[aria-checked="true"] { color: var(--on-ink); }
/* One capsule slides between the options; it never fades out and back in. */
.segmented-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 2); border-radius: 999px; background: var(--ink); transform: translateX(calc(var(--at, 0) * 100%)); transition: transform .45s cubic-bezier(.3, 1.15, .4, 1); }

.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.screen-stage { position: relative; aspect-ratio: 25 / 32; overflow: hidden; border-radius: var(--r-card); background: var(--card); box-shadow: inset 0 0 0 1px var(--card-edge); transition: background-color .5s var(--ease); }
.screens.is-dark .screen-stage { background: #141416; }
.screens.is-light .screen-stage { background: var(--card); }
.screen-stage .phone { position: absolute; left: 50%; top: 9%; width: 78%; translate: -50% 0; --bezel: 7px; border-radius: 40px; }
.screen-stage .phone img { border-radius: 33px; transition: opacity .25s var(--ease); }
.screen-stage .phone .screen-incoming { position: absolute; inset: var(--bezel); width: calc(100% - 2 * var(--bezel)); }
.screen figcaption { display: flex; flex-direction: column; padding: 14px 6px 0; }
.screen figcaption strong { font-size: 16px; font-weight: 600; }
.screen figcaption span { font-size: 14.5px; color: var(--secondary); }

/* ---------- Compare ---------- */

.compare-card { margin-top: 48px; padding: 8px 0; overflow: hidden; }
.compare-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--hairline); }
.compare th[scope="row"] { text-align: left; font-weight: 400; padding-left: 28px; width: 46%; }
.compare thead th { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--secondary); padding-top: 20px; }
.compare thead th.is-strides { color: var(--ink); }
.compare td.is-strides, .compare th.is-strides { background: color-mix(in srgb, var(--ink) 3.5%, transparent); }
.compare tfoot th, .compare tfoot td { border-bottom: 0; padding-top: 20px; padding-bottom: 20px; }
.compare tfoot small { display: block; font-size: 12.5px; color: var(--secondary); }
.compare tfoot th small { margin-top: 2px; }
.compare tfoot strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.yes, .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 15px; }
.yes { background: var(--ink); color: var(--on-ink); }
.yes .icon { stroke-width: 2.6; }
.no { color: var(--tertiary); box-shadow: inset 0 0 0 1.5px var(--strong-hairline); font-size: 13px; }
.no .icon { stroke-width: 2.2; }
.sources { margin: 14px auto 0; max-width: 760px; }
.sources summary { list-style: none; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer; padding: 8px; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary .icon { transition: transform .3s var(--ease); }
.sources[open] summary .icon { transform: rotate(180deg); }
.sources-body { font-size: 13.5px; color: var(--secondary); display: grid; gap: 10px; padding: 8px 4px 0; line-height: 1.6; }
.sources-body a { text-decoration: underline; text-decoration-color: var(--strong-hairline); text-underline-offset: 3px; }

/* ---------- FAQ ---------- */

.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { padding: 6px 0; }
.faq-list details { border-bottom: 1px solid var(--hairline); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; cursor: pointer; border-radius: 20px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-mark { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--well); font-size: 16px; transition: transform .35s var(--ease), background-color .25s var(--ease), color .25s var(--ease); }
.faq-mark .icon { stroke-width: 2; }
.faq-list details[open] .faq-mark { transform: rotate(45deg); background: var(--ink); color: var(--on-ink); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 26px 24px; color: var(--text-2); font-size: 16px; max-width: 36em; }
.inline-link, .faq-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--strong-hairline); }

/* ---------- Launch ---------- */

.launch { padding-top: clamp(96px, 13vw, 168px); }
.launch-card { position: relative; background: var(--inverted); color: var(--on-inverted); border-radius: 34px; padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 64px) clamp(36px, 5vw, 56px); text-align: center; display: flex; flex-direction: column; align-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px var(--card-edge); }
.launch-art { width: min(560px, 100%); height: auto; margin-bottom: 30px; overflow: visible; }
.launch-card .label { margin-bottom: 16px; }
.launch-card .display-2 { margin-bottom: 18px; }
.launch-card .lede { color: var(--on-inverted-2); max-width: 30em; margin-inline: auto; }
.signup { width: min(480px, 100%); margin-top: 34px; }
.signup-field { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--inverted-raised); box-shadow: inset 0 0 0 1px #ffffff14; transition: box-shadow .2s var(--ease); }
.signup-field:focus-within { box-shadow: inset 0 0 0 1.5px #ffffff66; }
.signup input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 16px; font-size: 16px; color: var(--on-inverted); outline: none; }
.signup input::placeholder { color: #7c7c82; }
.signup button { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--on-inverted); color: #0b0b0c; font-size: 15.5px; font-weight: 500; white-space: nowrap; transition: transform .16s var(--ease), opacity .2s var(--ease); }
.signup button:active { transform: scale(.97); }
.signup button:disabled { cursor: default; }
.signup-check { position: absolute; font-size: 20px; stroke-width: 2.4; opacity: 0; transform: scale(.5); transition: opacity .25s var(--ease), transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.signup-label { transition: opacity .2s var(--ease); }
.signup[aria-busy="true"] .signup-label { opacity: .45; }
.signup.is-done .signup-label { opacity: 0; }
.signup.is-done .signup-check { opacity: 1; transform: scale(1); }
.signup.is-done input { color: var(--on-inverted-2); }
.signup-status { min-height: 24px; margin-top: 12px; font-size: 14.5px; color: var(--on-inverted); }
.signup-status.error { color: #ff8a84; }
.signup-note { font-size: 13.5px; color: #7c7c82; margin-top: 2px; }
.signup-note a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #ffffff3d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.road-line { fill: none; stroke: var(--on-inverted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.road-dash { fill: var(--on-inverted); }
.road-faint { fill: none; stroke: #ffffff33; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.road-fill { fill: var(--inverted); }
.road-sun-disc { fill: var(--on-inverted); }
.road-sun { opacity: 0; transform: translateY(34px); }
.launch-art.is-drawn .road-sun { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1.4s var(--ease); transition-delay: .5s; }
.launch-art .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.launch-art.is-drawn .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-in-out); transition-delay: calc(var(--i, 0) * 120ms); }
.launch-art .dash { opacity: 0; transform-box: fill-box; transform-origin: center; }
.launch-art.is-drawn .dash { opacity: 1; transition: opacity .4s var(--ease); transition-delay: calc(900ms + var(--i) * 70ms); }

/* ---------- Footer ---------- */

.footer { padding: clamp(64px, 8vw, 104px) 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: end; padding-top: 32px; border-top: 1px solid var(--hairline); }
.footer .wordmark { font-size: 40px; }
.footer-inner p { color: var(--secondary); font-size: 15px; margin-top: 8px; }
.footer nav { display: flex; gap: 6px; font-size: 15px; }
.footer nav a { padding: 8px 12px; border-radius: 999px; color: var(--text-2); transition: color .2s var(--ease), background-color .2s var(--ease); }
.footer nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.footer-legal { grid-column: 1 / -1; font-size: 13.5px !important; color: var(--tertiary) !important; }

/* ---------- Motion ---------- */

/* Entrances are a progressive enhancement: without the script, everything is simply there. */
.js [data-enter] { opacity: 0; transform: translateY(14px); }
.js.is-loaded [data-enter] { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms + 60ms); }
.js .phone-hero[data-enter] { transform: translateY(56px); }
.js.is-loaded .phone-hero[data-enter] { transform: none; transition-duration: 1s, 1.4s; }
.js .hero-card .float-inner { opacity: 0; transform: translateY(16px) scale(.96); }
.js.is-loaded .hero-card .float-inner { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: 620ms; }
.js.is-loaded .hero-card-right .float-inner { transition-delay: 760ms; }

.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-enter], .js [data-reveal], .js .hero-card .float-inner { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-card-left { left: calc(50% - 390px); }
  .hero-card-right { right: calc(50% - 380px); }
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  .split, .plan-grid, .faq { grid-template-columns: minmax(0, 1fr); }
  .split-reverse > :first-child { order: 0; }
  .phone-pair { max-width: 560px; margin-inline: auto; width: 100%; }
  .plan-features { grid-template-columns: 1fr; gap: 22px; }
  #activities .chapter-head { position: static; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-race { grid-row: auto; }
  .bento-race .bento-chart { min-height: 170px; }
  .tour { height: calc(100svh + var(--travel, 1500px)); }
  .tour-sticky { height: 100svh; padding-top: 60px; align-items: stretch; }
  .tour-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 16px; padding: 18px 0 14px; }
  .tour-copy .lede, .tour-steps { display: none; }
  .tour-copy .label { margin-bottom: 8px; }
  .tour-copy .display-2 { font-size: clamp(28px, 7.4vw, 38px); margin: 0; }
  .tour-device { min-height: 0; justify-content: flex-start; }
  .tour-phone { width: min(330px, calc((100svh - 250px) * .46)); --bezel: 8px; border-radius: 46px; }
  .tour-screen { border-radius: 38px; }
  .tour-caption { display: block; margin-top: 14px; font-size: 15px; font-weight: 600; transition: opacity .25s var(--ease); }
  .screens { grid-template-columns: repeat(4, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .screens::-webkit-scrollbar { display: none; }
  .screen { scroll-snap-align: center; }
  .hero-card { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --gutter: 16px; }
  .nav-inner { height: 60px; }
  .wordmark { font-size: 30px; }
  .hero { padding-top: 104px; }
  .hero h1 { margin: 30px 0 18px; font-size: clamp(38px, 10.6vw, 52px); }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .hero-stage { margin-top: 48px; height: 470px; }
  .phone-hero { width: 290px; }
  .phone { --bezel: 9px; border-radius: 46px; }
  .phone img { border-radius: 37px; }
  .proof { margin-top: -28px; font-size: 13.5px; }
  .proof span { padding: 0 5px; }
  .week-demo { padding: 20px 14px 14px; margin-inline: calc(-1 * 6px); }
  .week-demo-top { padding-inline: 6px; }
  .day { padding: 10px 0 11px; }
  .day-num { font-size: 18px; }
  .day-name { font-size: 13px; }
  .session { padding: 18px; }
  .session-body { grid-template-columns: minmax(0, 1fr); }
  .session-glyph { width: 120px; height: 52px; }
  .stats div { padding: 0 14px; }
  .stats strong { font-size: 19px; }
  .plan-slab { border-radius: 28px; }
  .plan-art-card { padding: 20px 18px 18px; }
  .plan-steps { grid-template-columns: 1fr; }
  .plan-estimate { grid-template-columns: 1fr; gap: 10px; }
  .phone-stage { height: 420px; }
  .phone-stage .phone { width: 46%; --bezel: 6px; border-radius: 34px; }
  .phone-stage .phone img { border-radius: 28px; }
  .phone-stage-left { left: 3%; top: 28px; }
  .phone-stage-right { right: 3%; top: 72px; }
  .feed-demo .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .feed-demo .chips::-webkit-scrollbar { display: none; }
  .screens { grid-template-columns: repeat(4, 76%); }
  .run { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 16px 16px 16px 12px; }
  .run-glyph { width: 64px; height: 48px; }
  .run-title { font-size: 19px; }
  .run .stats div { padding: 0 11px; }
  .run .badge { display: none; }
  .trends-hero-head .pill-menu { display: none; }
  .chart-hint { display: none; }
  .faq-list summary { padding: 20px 18px; font-size: 17px; }
  .faq-body p { padding: 0 18px 20px; }
  .signup-field { flex-direction: column; border-radius: 26px; padding: 6px; }
  .signup input { min-height: 48px; text-align: center; }
  .signup button { width: 100%; min-height: 50px; }
  .footer-inner { grid-template-columns: 1fr; }
  .bento-card:not(.bento-mini) { grid-column: span 2; }
  .bento { grid-auto-rows: minmax(180px, auto); }
  .plan-art-head .label { letter-spacing: .12em; }
  .plan-art-title { font-size: 23px; }
  .plan-peak strong { font-size: 26px; }
  .compare { min-width: 0; font-size: 14px; }
  .compare th, .compare td { padding: 13px 6px; }
  .compare th[scope="row"] { padding-left: 16px; width: auto; line-height: 1.35; }
  .compare thead th { font-size: 10.5px; letter-spacing: .06em; }
  .compare tfoot strong { font-size: 15.5px; }
  .compare tfoot small { font-size: 11.5px; }
  .compare tfoot th small { display: none; }
  .yes, .no { width: 22px; height: 22px; font-size: 13px; }
  .footer nav { margin-left: -12px; }
}

/* ---------- Support & privacy ---------- */

.doc { padding: 120px 0 0; }
.doc-card { max-width: 760px; margin-inline: auto; padding: clamp(28px, 5vw, 56px); }
.doc-card .label { margin-bottom: 14px; }
.doc-card h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 60px); line-height: 1.02; letter-spacing: -.03em; }
.doc-card .doc-meta { color: var(--secondary); font-size: 15px; margin-top: 12px; }
.doc-card h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 40px 0 10px; }
.doc-card p, .doc-card li { color: var(--text-2); font-size: 16.5px; line-height: 1.65; }
.doc-card p + p { margin-top: 12px; }
.doc-card ul { display: grid; gap: 8px; margin: 12px 0; }
.doc-card li { position: relative; padding-left: 20px; }
.doc-card li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--tertiary); }
.doc-card strong { color: var(--ink); font-weight: 600; }
.doc-card a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--strong-hairline); }
.doc-lead { font-size: 18px !important; margin-top: 22px; }
.help-rows { display: grid; gap: 10px; margin-top: 32px; }
.help-row { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r-inner); background: var(--well); }
.help-row .disc { background: var(--ink); color: var(--on-ink); width: 40px; height: 40px; font-size: 18px; }
.help-row h2 { margin: 0 0 4px; font-size: 17px; }
.help-row p { font-size: 15.5px !important; }
.doc .nav { background: color-mix(in srgb, var(--canvas) 80%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
@media (max-width: 640px) { .doc { padding-top: 84px; } .doc-card { border-radius: 22px; } }
.doc-action { margin-top: 28px; }
.doc-action .icon { font-size: 18px; }
.doc-card a.pill { color: var(--on-ink); text-decoration: none; }
.doc-card p.label { font-size: 11.5px; color: var(--secondary); line-height: 1.3; }
.doc-card p.doc-meta { font-size: 15px; color: var(--secondary); margin: 12px 0 18px; }

/* Without the script, the live demos would be empty frames: leave the copy and the real screens. */
html:not(.js) .plan-device, html:not(.js) .feed-demo, html:not(.js) .trends-hero, html:not(.js) .segmented { display: none; }
html:not(.js) .tour { height: auto; }
html:not(.js) .tour-sticky { position: static; height: auto; padding: 0; }
html:not(.js) .plan-grid, html:not(.js) #activities { grid-template-columns: minmax(0, 1fr); }
