/* Calisthenics Care landing page.
   Tokens mirror docs/active-plans/design-system.md (Care design system v0.4, Bloom rebrand, 7 October 2026).
   Legacy names stay: forest is Stone, sage is Meadow, peach is Honey, clay is Arc. */

:root {
  /* One list of tokens for both themes: light-dark() picks the first value in the light
     theme and the second in the dark one. The theme follows the device until the reader
     chooses one with the theme button (theme.js). */
  color-scheme: light dark;

  --canvas: light-dark(#F8F6EF, #121A16);
  --surface: light-dark(#FFFFFF, #1B2620);
  --ink: light-dark(#1C2B24, #EEF3EC);
  --secondary: light-dark(#55645B, #B4C2B8);
  --forest: light-dark(#2D6A4F, #8BD26B);        /* Stone: primary actions */
  --forest-ink: light-dark(#FFFFFF, #12301F);
  --sage: light-dark(#E6F2DF, #24352B);          /* Meadow: quiet surfaces */
  --clay: light-dark(#F7A23B, #F9B65E);          /* Arc: decorative only, never text */
  --peach: light-dark(#FEF1DC, #3A2E1C);         /* Honey: brand art surfaces */
  --sun: light-dark(#F2545B, #FF7A7F);           /* effort and celebration: icons and fills only, never text */
  --leaf: light-dark(#8BD26B, #8BD26B);          /* logo figure, success fills; never text on light */
  --glow: light-dark(#FDE8E4, #3A2224);
  --bronze: light-dark(#A0522D, #E0A46A);      /* medal tier: 70% of the days done; fills and accents only */
  --silver: light-dark(#6B7883, #C3CDD6);      /* medal tier: 85% */
  --gold: light-dark(#9C7A00, #F2C14E);        /* medal tier: 99% */
  --paper: #FFF9EE;
  --line: light-dark(#D9DED2, #33443A);
  --danger: light-dark(#A3322F, #FF8A80);

  --radius-card: 24px;
  --radius-action: 18px;
  --gutter: 24px;
  --max: 1120px;
  --shadow: none;
  --phone-outline: light-dark(transparent, rgb(255 255 255 / 12%));
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); max-width: 22ch; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--forest); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow-wrap { max-width: 800px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--forest); color: var(--forest-ink);
  padding: 12px 16px; border-radius: 12px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.eyebrow {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: 12px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; min-height: 44px; white-space: nowrap; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.nav-list { display: flex; gap: 4px; list-style: none; justify-content: flex-end; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  color: var(--secondary); text-decoration: none; font-weight: 550; border-radius: 12px;
  white-space: nowrap;
}
.nav-list a:hover { color: var(--ink); background: var(--sage); }

/* The theme button: the light and the dark theme, and which one is on. */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; min-height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); cursor: pointer;
}
.theme-toggle:hover { background: var(--sage); }
.theme-toggle:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.theme-toggle svg { display: block; }
.theme-toggle svg[hidden] { display: none; }
.theme-toggle [data-theme-icon="sun"] { color: var(--sun); }

/* Below this width the navigation cannot share one line with the brand, so it takes
   a row of its own under it instead of running past the edge of the screen. */
@media (max-width: 1160px) {
  .header-row { flex-wrap: wrap; padding-block: 10px; row-gap: 2px; }
  .header-tools { flex: 1 0 100%; order: 2; justify-content: space-between; }
  .nav-list { flex-wrap: wrap; justify-content: flex-start; }
}
@media (max-width: 720px) { .site-header nav { display: none; } }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.lede { font-size: 1.25rem; color: var(--secondary); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 32px 0 16px; }
.store-pending {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 24px; border-radius: var(--radius-action);
  background: var(--forest); color: var(--forest-ink); font-weight: 650; font-size: 1.0625rem;
}
.store-pending svg { width: 20px; height: 20px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.analytics-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.analytics-actions button { min-height: 44px; padding: 12px 24px; border: 1px solid var(--line); border-radius: var(--radius-action); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.analytics-actions button:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 720px) { .analytics-actions button { width: 100%; } }
.fine { font-size: 0.9375rem; color: var(--secondary); }

/* A callout: one plain note that states a fact the reader needs. */
.callout {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 24px 0 8px; padding: 14px 18px; border: 1.5px solid var(--ink-outline);
  border-radius: var(--radius-card); background: var(--sage); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink-offset);
}
.callout-label {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px;
  border-radius: 999px; background: var(--forest); color: var(--forest-ink);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

@media (max-width: 880px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; }
}

/* Phone preview (decorative mock built in HTML) */
.phone-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.phone-figure figcaption { font-size: 0.875rem; color: var(--secondary); text-align: center; }
.phone {
  width: min(320px, 100%); aspect-ratio: 9 / 18.5;
  background: #1C2B24; border-radius: 48px; padding: 12px;
  box-shadow: 0 30px 60px rgb(32 42 37 / 18%);
  outline: 1px solid var(--phone-outline);
}
.phone-screen {
  height: 100%; border-radius: 38px; background: #F8F6EF; color: #1C2B24;
  padding: 18px 20px 20px; display: flex; flex-direction: column; overflow: hidden;
  font-size: 0.875rem; line-height: 1.4;
}
.ph-status { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.8rem; margin-bottom: 18px; }
.ph-dots { width: 40px; height: 10px; border-radius: 5px; background: #1C2B24; opacity: .8; }
.ph-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #55645B; margin: 0 0 4px; }
.ph-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.ph-sub { color: #55645B; margin: 0 0 12px; }
.ph-card { background: #FFFFFF; border-radius: 18px; }
.ph-art { padding: 8px; margin-bottom: 12px; }
.ph-art svg { display: block; width: 100%; height: auto; }
.ph-list { list-style: none; display: grid; gap: 6px; margin-bottom: 12px; }
.ph-list li { display: flex; align-items: center; gap: 8px; background: #FFFFFF; border-radius: 12px; padding: 7px 10px; }
.ph-dot { width: 8px; height: 8px; border-radius: 50%; }
.ph-dot.warm { background: #8C85C9; }
.ph-dot.strength { background: #2D6A4F; }
.ph-dot.stretch { background: #8FB29B; }
.ph-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ph-pills span { background: #E6F2DF; border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; font-weight: 600; }
.ph-button {
  margin-top: auto; background: #2D6A4F; color: #FFFFFF; font-weight: 650;
  text-align: center; border-radius: 16px; padding: 13px;
}

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--sage); }
.section-lede { color: var(--secondary); font-size: 1.125rem; max-width: 62ch; margin-bottom: 32px; }
.section-lede.narrow { margin: 32px 0 0; }
.note { margin-top: 24px; color: var(--secondary); font-size: 0.9375rem; max-width: 70ch; }
@media (max-width: 720px) { .section { padding: 64px 0; } }

.card-grid { list-style: none; display: grid; gap: 24px; margin-top: 32px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .card-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) { .card-grid.three { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .card-grid.four { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border-radius: var(--radius-card); padding: 28px;
  box-shadow: var(--shadow);
}
.card p { color: var(--secondary); margin: 0; }
.card.small { padding: 24px; }

.icon-badge {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 16px; background: var(--peach);
}
.icon-badge svg { width: 24px; height: 24px; fill: none; stroke: var(--forest); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; margin-bottom: 16px;
  background: var(--forest); color: var(--forest-ink); font-weight: 700;
}
.steps p { color: var(--secondary); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Paths */
.path-card { display: flex; flex-direction: column; }
.path-card > p:not(.path-tag) { margin-bottom: 20px; }
.path-tag {
  align-self: flex-start; width: fit-content; background: var(--sage); color: var(--ink) !important;
  font-size: 0.8125rem; font-weight: 650; border-radius: 999px; padding: 4px 12px; margin-bottom: 16px !important;
}
.meta { margin: auto 0 0; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.meta dt { font-size: 0.8125rem; font-weight: 700; color: var(--secondary); }
.meta dd { margin: 0; }

/* Player */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.checks { list-style: none; display: grid; gap: 14px; margin-top: 24px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--forest)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.checks li.muted { color: var(--secondary); font-size: 0.9375rem; padding-left: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.checks li.muted::before { display: none; }

.player-card {
  background: #FFFFFF; color: #1C2B24; border-radius: 32px; padding: 28px;
  box-shadow: 0 24px 48px rgb(32 42 37 / 12%); max-width: 440px; justify-self: center; width: 100%;
}
.pl-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #55645B; }
.pl-chip { background: #2D6A4F; color: #FFFFFF; border-radius: 999px; padding: 2px 12px; font-size: 0.8125rem; }
.pl-progress { height: 6px; background: #E6F2DF; border-radius: 3px; margin: 14px 0 24px; overflow: hidden; }
.pl-progress span { display: block; width: 33%; height: 100%; background: #2D6A4F; border-radius: 3px; }
.pl-name { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.pl-cue { color: #55645B; }
.pl-timer {
  font-size: 4.5rem; font-weight: 600; text-align: center; margin: 12px 0 20px;
  font-variant-numeric: tabular-nums; font-family: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif; letter-spacing: -.02em;
}
.pl-controls { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 10px; }
.pl-btn { display: grid; place-items: center; min-height: 56px; border-radius: 18px; background: #E6F2DF; font-weight: 650; }
.pl-btn.primary { background: #2D6A4F; color: #FFFFFF; }
.pl-next { text-align: center; color: #55645B; font-size: 0.9375rem; margin: 16px 0 0; }

/* Membership */
.membership { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.membership > div p { color: var(--secondary); font-size: 1.0625rem; max-width: 52ch; }
.membership .checks { margin-top: 0; }
@media (max-width: 880px) { .membership { grid-template-columns: 1fr; gap: 32px; } }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 0; font-weight: 650; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--sage); color: var(--forest); font-size: 1.25rem; font-weight: 500;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--secondary); padding-bottom: 20px; margin: 0; max-width: 64ch; }

/* Final CTA */
.final-cta { background: var(--forest); color: var(--forest-ink); text-align: center; padding: 96px 0; }
.final-cta h2 { margin: 0 auto 12px; }
.final-cta p { opacity: .9; font-size: 1.125rem; margin-bottom: 28px; }
.store-pending.light { background: var(--forest-ink); color: var(--forest); }

/* Footer */
.site-footer { padding: 32px 0 48px; color: var(--secondary); font-size: 0.9375rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.footer-row p { margin: 0; }

/* Legal pages (privacy, terms) */
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.legal h2 { font-size: 1.375rem; max-width: none; margin-top: 40px; }
.legal .lede { max-width: none; margin: 24px 0 8px; }
.legal ul { padding-left: 1.25em; display: grid; gap: 10px; margin-bottom: 16px; }
.legal li::marker { color: var(--secondary); }
.draft-banner { background: var(--peach); border-radius: var(--radius-action); padding: 14px 18px; margin-bottom: 32px; font-size: 0.9375rem; }
.nav-list a[aria-current="page"] { color: var(--ink); background: var(--sage); }
.site-footer a { color: inherit; }

/* v0.2: light surfaces, quiet structure, a single hero action. */
.hero { padding: 88px 0; }
.hero-copy h1 { max-width: 13ch; }
.store-pending { text-decoration: none; }
.ph-art { background: linear-gradient(135deg, var(--sage), var(--peach)); }
.card, .steps li { border: 1px solid var(--line); }
.values .card { background: transparent; border: 0; padding-left: 0; }
.player-card { box-shadow: none; border: 1px solid var(--line); }
.section.alt { background: color-mix(in srgb, var(--sage) 45%, var(--canvas)); }
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--canvas); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 56px; }
  .cta-row > a { width: 100%; justify-content: center; }
  .phone { aspect-ratio: auto; min-height: 600px; }
  .phone-screen { min-height: 576px; }
}

.phone { aspect-ratio: auto; }
.phone-screen { min-height: 600px; height: auto; overflow: visible; }
/* The button sits at the foot of the screen, the way the app's own does. */
.ph-button { margin-top: auto; }
/* Reflow long headings and grid items at accessibility text sizes. */
.hero-grid > *, .split > *, .membership > *, .card-grid > *, .steps > * { min-width: 0; }
h1, h2, h3, .brand, .store-pending, .ph-title, .pl-name { overflow-wrap: anywhere; }
.pl-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-btn { overflow-wrap: anywhere; padding: 8px; }
/* Movement catalogue: static content with optional progressive filtering. */
.catalogue-filters { display: flex; flex-wrap: wrap; gap: 24px; margin: 32px 0 16px; }
.catalogue-filters label { display: grid; gap: 8px; flex: 1 1 240px; font-weight: 600; }
.catalogue-filters input, .catalogue-filters select {
  width: 100%; min-height: 56px; padding: 12px 16px; border: 1px solid var(--line);
  border-radius: var(--radius-action); background: var(--surface); color: var(--ink); font: inherit;
}
.movement-card h2 { font-size: 1.4rem; }
.movement-card h2 a { color: var(--ink); text-decoration-thickness: 1px; }
.movement-card .fine { margin-top: 24px; font-size: .875rem; }
.media-empty { min-height: 160px; display: grid; place-items: center; text-align: center; padding: 24px; background: var(--sage); color: var(--secondary); border-radius: 18px; }
.movement-media h2 { font-size: 1.25rem; }
.movement-media img, .movement-media video { width: 100%; height: auto; }
.draft-instructions { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 16px; }
.draft-instructions summary { cursor: pointer; min-height: 44px; font-weight: 600; }
.draft-instructions ul, .draft-instructions ol { padding-left: 24px; margin: 16px 0; }
.draft-instructions li { margin-bottom: 12px; }
[hidden] { display: none !important; }
main.wrap.section { padding-inline: var(--gutter); }
.movement-card img { width: 100%; height: auto; border-radius: 18px; margin-bottom: 16px; }

/* Onboarding questionnaire (/start/) */
.quiz-wrap { max-width: 800px; }
.quiz h1, .quiz h2 { font-size: clamp(2rem, 5vw, 3rem); outline: none; }
.quiz-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz-fieldset legend { padding: 0; }
.quiz-fieldset legend .eyebrow { display: block; }
.quiz-options { display: grid; gap: 12px; margin-top: 8px; }
.quiz-options.days { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.quiz-option {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 18px;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius-action);
  font-weight: 600; cursor: pointer;
}
.quiz-option:has(input:checked) { border-color: var(--forest); background: var(--sage); }
.quiz-option input { width: 22px; height: 22px; accent-color: var(--forest); flex: none; margin: 0; }
.quiz-config { display: grid; gap: 16px; margin-top: 8px; }
.quiz-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quiz-field { display: grid; gap: 6px; font-weight: 600; }
.quiz-field input, .quiz-field select {
  min-height: 48px; padding: 8px 12px; font: inherit; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: 12px;
}
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 32px 0 16px; }
.quiz-actions button.store-pending { border: 0; cursor: pointer; font-family: inherit; }
.quiz-actions button.store-pending:disabled { opacity: .6; cursor: progress; }
.quiz-secondary {
  min-height: 48px; padding: 0 18px; border: 2px solid var(--line); border-radius: var(--radius-action);
  background: transparent; color: var(--forest); font: inherit; font-weight: 650; cursor: pointer;
}
.quiz-error { color: var(--ink); background: var(--peach); border-radius: 12px; padding: 12px 16px; margin-top: 16px; font-weight: 600; }
.plan-notice { background: var(--peach); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.plan-h { font-size: 1.5rem; margin-top: 40px; max-width: none; }
.plan-highlight::after { content: " · you asked for this"; font-size: 0.9375rem; font-weight: 600; color: var(--secondary); }
.plan-session h3 { margin-bottom: 8px; }
.plan-sub { font-weight: 700; color: var(--ink) !important; margin-top: 12px !important; }
.plan-moves { list-style: none; display: grid; gap: 6px; margin-top: 8px; }
.plan-moves li { display: flex; justify-content: space-between; gap: 12px; }
.plan-dose { color: var(--secondary); font-size: 0.9375rem; text-align: right; }
.plan-schedule { list-style: none; display: grid; gap: 8px; }
.plan-schedule li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plan-date { min-width: 9ch; font-weight: 650; }
@media (max-width: 560px) { .quiz-pair { grid-template-columns: 1fr; } }
/* Owner image admin: shared form and action tokens. */
.media-admin form { display: grid; gap: 24px; margin-block: 24px; }
.media-admin label { display: grid; gap: 8px; font-weight: 600; }
.media-admin input, .media-admin select, .media-admin button {
  width: 100%; min-width: 0; min-height: 56px; padding: 12px 16px;
  font: inherit; border: 1px solid var(--line); border-radius: var(--radius-action);
  background: var(--surface); color: var(--ink);
}
.media-admin button { cursor: pointer; }
.media-admin button.primary { background: var(--forest); color: var(--forest-ink); font-weight: 650; }
.media-admin button:disabled { opacity: .6; cursor: wait; }
.media-admin ul { padding-left: 24px; margin-block: 24px; overflow-wrap: anywhere; }
.media-admin li { margin-bottom: 16px; }
.movement-media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .movement-media { grid-template-columns: 1fr; } }
.media-admin li img { display: block; max-width: 100%; object-fit: contain; margin-block: 8px; }
.movement-card img, .movement-media img { aspect-ratio: 1; object-fit: contain; }

/* Published movement stills keep the full pose and equipment visible. */
.ph-art { height: 150px; flex-shrink: 0; }
.ph-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.player-card .fine { color: #55645B; }
.path-movement-image, .player-movement-image {
  display: block; width: 100%; height: 240px; object-fit: contain;
  background: var(--sage); border-radius: 24px; margin-block: 16px;
}

/* Landing flow: health facts with sources and the guidance-to-feature map (website-and-launch.md). */
.text-link { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; align-self: center; }
.fact { display: flex; flex-direction: column; gap: 12px; }
.fact-figure { font-size: 1.6rem; font-weight: 700; color: var(--forest); }
.source { margin-top: auto; font-size: 0.875rem; color: var(--secondary); }
.source a { color: inherit; }
.health-map { display: grid; gap: 16px; margin-top: 32px; }
.health-map > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.health-map dt { font-weight: 700; }
.health-map dd { margin: 0; color: var(--secondary); }
@media (max-width: 720px) { .health-map > div { grid-template-columns: 1fr; gap: 6px; } }
.quiz-option.unavailable { opacity: 0.4; cursor: not-allowed; }
.admin-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.admin-summary > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.admin-table { overflow-x: auto; }
.admin-table table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
.admin-table th, .admin-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }

/* Account pages: password reset and email confirmation, opened from account emails. */
.account-main { display: grid; place-items: start center; padding-top: 48px; padding-bottom: 64px; }
.account-card { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 36px 32px; }
.account-card h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); margin-bottom: 12px; }
.account-lede { color: var(--secondary); margin-bottom: 24px; }
.account-form { display: grid; gap: 16px; }
.account-field { display: grid; gap: 6px; font-weight: 600; font-size: 0.9375rem; }
.account-field input { font: inherit; font-weight: 400; color: var(--ink); background: var(--canvas); border: 1px solid var(--line); border-radius: 14px; min-height: 52px; padding: 12px 14px; width: 100%; }
.account-field input:focus-visible { border-color: var(--forest); }
.password-row { display: flex; gap: 8px; }
.password-row input { flex: 1; min-width: 0; }
.reveal { font: inherit; font-weight: 600; font-size: 0.875rem; color: var(--forest); background: var(--sage); border: 0; border-radius: 12px; padding: 0 14px; min-height: 52px; cursor: pointer; }
.password-rules { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 0.875rem; color: var(--secondary); margin: -4px 0 4px; }
.password-rules li::before { content: "○"; display: inline-block; width: 1.4em; color: var(--secondary); }
.password-rules li.met { color: var(--ink); }
.password-rules li.met::before { content: "✓"; color: var(--forest); font-weight: 700; }
.account-status { margin: 0; min-height: 1.5em; font-size: 0.9375rem; }
.account-status[data-tone="error"] { color: var(--danger); }
.account-status[data-tone="success"] { color: var(--forest); }
.account-button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; border: 0; border-radius: var(--radius-action); background: var(--forest); color: var(--forest-ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; margin-top: 8px; }
.account-button:disabled { opacity: 0.55; cursor: default; }
.account-done .account-lede { margin-top: 4px; }
@media (max-width: 520px) { .account-card { padding: 28px 20px; } .password-rules { grid-template-columns: 1fr; } }

/* Ink style (docs/design-system.md, 20 October 2026): a sketchbook page. Paper background, ink-outlined cards with a
   small offset shadow, serif headings, and the Ink sketch movement pictures framed on paper. */
:root {
  --canvas: light-dark(var(--paper), #121A16);
  --ink-outline: light-dark(rgb(28 43 36 / 80%), rgb(238 243 236 / 35%));
  --ink-offset: light-dark(rgb(28 43 36 / 14%), rgb(0 0 0 / 35%));
  --heading-font: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
}
body { background: var(--canvas); }
h1, h2, h3 { font-family: var(--heading-font); font-weight: 600; letter-spacing: -0.01em; }
.section.alt { background: color-mix(in srgb, var(--sage) 55%, var(--canvas)); border-block: 1.5px dashed var(--line); }
.card, .steps li, .account-card {
  border: 1.5px solid var(--ink-outline);
  box-shadow: 4px 4px 0 var(--ink-offset);
}
.values .card { border: 0; box-shadow: none; }
img[data-media-id] {
  background: var(--paper); border: 1.5px solid var(--ink-outline); border-radius: 16px;
  box-shadow: 3px 3px 0 var(--ink-offset); object-fit: contain;
}
.store-pending, .account-button { border: 1.5px solid var(--ink-outline); box-shadow: 3px 3px 0 var(--ink-offset); }
.eyebrow { letter-spacing: 0.14em; }

/* ---------------------------------------------------------------------------
   Sports-site layer (docs/superpowers/specs/2026-11-13-sports-site-homepage-design.md).
   Bold athletic editorial: a display type scale, a broadcast ticker, a scoreboard
   stat bar, a philosophy band and a horizontal challenges rail. The brand tokens
   are unchanged; Sun and Arc stay fills and icons, never text. */

:root {
  --display-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display-weight: 800;
  --display-tracking: -0.03em;
  --display-leading: 0.98;
}

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

/* The motion layer may only hide what it is certain it will reveal. `boot.js` adds
   `js` before the first paint and removes it again if the motion layer never boots,
   so a script failure leaves the page fully readable. */
html.js:not(.reduced-motion) .hero-line-inner { opacity: 0; }
html.js:not(.reduced-motion) .philosophy-line-inner { opacity: 0; }
html.js:not(.reduced-motion) .reveal-section > * { opacity: 0; }

/* Broadcast ticker */
.ticker {
  background: light-dark(var(--forest), var(--surface));
  color: light-dark(var(--forest-ink), var(--forest));
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.ticker-track { display: flex; width: max-content; }
.ticker-group { display: flex; align-items: center; gap: 2.5rem; margin: 0; padding: 0 1.25rem; list-style: none; }
.ticker-item {
  font-family: var(--display-font); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); text-transform: uppercase;
  font-size: 0.8125rem; line-height: 1; padding: 14px 0; white-space: nowrap;
}
.ticker-group li:not(:last-child)::after { content: "·"; margin-left: 2.5rem; opacity: .7; }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero-head { max-width: var(--max); }
.hero-title {
  font-family: var(--display-font); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); line-height: var(--display-leading);
  font-size: clamp(2.25rem, 6.2vw, 4.5rem); margin-bottom: 24px; max-width: none;
}
.hero-line { display: block; overflow: hidden; }
.hero-line-inner { display: block; }
.hero-figure-wrap { margin-top: 56px; }
.hero-figure { margin: 0; }
.hero-photo-wrap { position: relative; }
.hero-photo {
  display: block; width: 100%; height: auto; border-radius: var(--radius-card);
  border: 1.5px solid var(--ink-outline); box-shadow: 6px 6px 0 var(--ink-offset);
  aspect-ratio: 21 / 9; object-fit: cover;
}
.hero-figcaption { margin-top: 14px; font-size: 0.875rem; color: var(--secondary); }
.hero-card {
  /* The card floats on the photograph, never over the caption below it. */
  position: absolute; left: 32px; bottom: 32px; width: min(320px, 82%);
  background: var(--surface); border: 1.5px solid var(--ink-outline);
  border-radius: 20px; box-shadow: 5px 5px 0 var(--ink-offset); padding: 20px;
}
.hero-card-tag {
  font-family: var(--display-font); font-weight: var(--display-weight); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.6875rem; color: var(--forest); margin: 0 0 8px;
}
.hero-card-title { font-family: var(--display-font); font-weight: 800; font-size: 1.125rem; margin: 0 0 6px; line-height: 1.2; }
.hero-card-meta { font-size: 0.875rem; color: var(--secondary); margin: 0 0 10px; }
.hero-card-story { font-size: 0.875rem; color: var(--secondary); margin: 0; }
@media (max-width: 880px) {
  .hero { padding: 40px 0 72px; }
  .hero-figure-wrap { margin-top: 40px; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .hero-card { position: static; width: 100%; margin-top: 20px; box-shadow: 4px 4px 0 var(--ink-offset); }
}

/* Philosophy band */
.philosophy { padding: 88px 0; border-block: 1.5px dashed var(--line); background: var(--surface); }
.philosophy .wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.philosophy-quote { margin: 0; max-width: 24ch; }
.philosophy-lines {
  font-family: var(--heading-font); font-size: clamp(1.75rem, 4.4vw, 3rem);
  line-height: 1.16; letter-spacing: -0.015em; margin: 0 0 24px; color: var(--ink);
}
.philosophy-line { display: block; overflow: hidden; }
.philosophy-line-inner { display: block; }
.philosophy-source { font-size: 1rem; color: var(--secondary); }
.philosophy-source cite { font-style: italic; }
.philosophy-note {
  margin: 0; padding-left: 20px; border-left: 4px solid var(--sun);
  color: var(--secondary); max-width: 52ch; font-size: 1.0625rem;
}
@media (max-width: 880px) { .philosophy .wrap { grid-template-columns: 1fr; gap: 32px; align-items: start; } }
@media (max-width: 720px) { .philosophy { padding: 64px 0; } }

/* Scoreboard stat bar */
.stats { padding: 72px 0; background: var(--sage); }
.stats-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; }
.stat {
  display: flex; flex-direction: column; gap: 8px; padding: 8px 24px;
  border-left: 1.5px solid var(--ink-outline);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value {
  font-family: var(--display-font); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); line-height: 0.9;
  font-size: clamp(3rem, 6vw, 4.5rem); color: var(--forest);
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--secondary); font-size: 0.9375rem; max-width: 22ch; }
.stats-source { margin: 32px 0 0; font-size: 0.875rem; color: var(--secondary); }
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) { .stats-grid { grid-template-columns: 1fr; } .stat { border-left: 0; padding-left: 0; } }

/* The app, with its challenges */
.challenges { padding: 88px 0; border-block: 1.5px dashed var(--line); }
.challenges-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-bottom: 48px; }
.challenges-head .section-lede { margin-bottom: 0; }
.challenges-phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; margin-bottom: 56px; }
.challenges-phone { width: min(320px, 100%); }
.challenges-phone .phone-screen { min-height: 560px; }
.challenges-phone .ph-button { margin-top: auto; }
.rail-wrap { padding-left: 0; padding-right: 0; }
.challenges-phone .ph-counter {
  font-family: var(--display-font); font-weight: 800; font-size: 1.25rem;
  margin: 0 0 10px; letter-spacing: var(--display-tracking);
}
.ph-days { list-style: none; display: flex; gap: 6px; margin: 0 0 12px; }
.ph-day { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink-outline); background: var(--paper); }
.rail-viewport { overflow-x: auto; overflow-y: hidden; padding-bottom: 12px; scrollbar-width: thin; }
.rail-track { display: flex; gap: 20px; list-style: none; margin: 0; padding: 4px 24px 0; }
.challenge-card {
  flex: 0 0 320px; width: 320px; background: var(--surface);
  border: 1.5px solid var(--ink-outline); border-radius: var(--radius-card);
  box-shadow: 4px 4px 0 var(--ink-offset); padding: 24px; display: flex; flex-direction: column;
}
.challenge-tag {
  align-self: flex-start; background: var(--forest); color: var(--forest-ink);
  font-family: var(--display-font); font-weight: var(--display-weight); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.6875rem; border-radius: 999px; padding: 5px 12px; margin: 0 0 14px;
}
.challenge-title {
  font-family: var(--display-font); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); text-transform: uppercase;
  font-size: 1.25rem; line-height: 1.1; margin: 0 0 8px;
}
.challenge-target {
  font-family: var(--display-font); font-weight: 800; font-size: 0.9375rem;
  color: var(--forest); margin: 0 0 12px; font-variant-numeric: tabular-nums;
}
.challenge-story { color: var(--secondary); font-size: 0.9375rem; margin: 0 0 16px; }
.challenge-easier {
  margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--secondary); font-size: 0.875rem;
}
.challenge-easier-label {
  display: block; font-family: var(--display-font); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.6875rem; color: var(--ink); margin-bottom: 4px;
}
@media (max-width: 880px) {
  .challenges-head { grid-template-columns: 1fr; }
  .challenges-phones { gap: 32px; }
  .challenge-card { flex-basis: 280px; width: 280px; }
}
@media (max-width: 720px) { .challenges { padding: 64px 0; } }

/* Footer: the app, the partners and the way to talk to the founder */
.site-footer {
  padding: 64px 0 40px; color: var(--secondary); font-size: 0.9375rem;
  border-top: 1.5px solid var(--ink-outline); background: var(--surface);
}
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 48px; }
.footer-heading {
  font-family: var(--display-font); font-weight: var(--display-weight);
  text-transform: uppercase; letter-spacing: var(--display-tracking);
  font-size: 0.9375rem; color: var(--ink); margin: 0 0 14px;
}
.footer-note { margin: 0 0 20px; max-width: 40ch; }
.footer-links, .footer-partners, .footer-social { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-partners > li + li { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-links a, .footer-social a, .footer-partner, .talk-alt { color: var(--forest); font-weight: 600; }
.footer-partner {
  font-family: var(--display-font); font-weight: 800; font-size: 1.0625rem;
  letter-spacing: var(--display-tracking); text-decoration: none; display: inline-block;
}
.footer-partner:hover { text-decoration: underline; }
.footer-partner-note { display: block; margin-top: 4px; color: var(--secondary); font-size: 0.875rem; }
.footer-social { margin-top: 10px; gap: 6px; }
.footer-social a { font-size: 0.875rem; }
.talk-form { display: grid; gap: 8px; margin-bottom: 16px; }
.talk-label { font-weight: 650; color: var(--ink); font-size: 0.875rem; }
.talk-optional { color: var(--secondary); font-weight: 400; }
.talk-input, .talk-textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--canvas); border: 1.5px solid var(--ink-outline); border-radius: 14px;
}
.talk-textarea { min-height: 96px; resize: vertical; }
.talk-input:focus-visible, .talk-textarea:focus-visible { border-color: var(--forest); }
.talk-submit {
  min-height: 56px; margin-top: 8px; padding: 0 24px; border: 1.5px solid var(--ink-outline);
  border-radius: var(--radius-action); background: var(--forest); color: var(--forest-ink);
  font-family: var(--display-font); font-weight: var(--display-weight); font-size: 1rem;
  letter-spacing: var(--display-tracking); text-transform: uppercase; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink-offset);
}
.talk-submit:disabled { opacity: .6; cursor: default; }
.talk-status { margin: 4px 0 0; min-height: 1.5em; font-size: 0.9375rem; color: var(--ink); }
.talk-alt { font-size: 0.875rem; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem;
}
.footer-legal p { margin: 0; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; } }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Reduce Motion: the ticker becomes a static wrapped list and nothing moves. */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { transform: none !important; }
  .ticker-group:last-child { display: none; }
  .ticker-group { flex-wrap: wrap; row-gap: 0; }
}

/* ---------------------------------------------------------------------------
   The launch layer: the App Store badge, the live eyebrow and the Android list.
   The badge is Apple's own asset, kept on paper so it reads the same in both
   themes, and the Android counter is filled by the site's own route. */

.store-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border-radius: 16px;
  background: var(--paper); border: 1.5px solid var(--ink-outline);
  box-shadow: 3px 3px 0 var(--ink-offset);
  text-decoration: none; transition: transform .18s ease, box-shadow .18s ease;
}
.store-badge img { display: block; width: auto; height: 44px; }
.store-badge:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink-offset); }
.store-badge:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink-offset); }
.store-badge-light { padding: 10px 18px; }
.store-badge-light img { height: 48px; }
.get-the-app { margin: 24px 0 8px; }
@media (max-width: 560px) {
  .cta-row > .store-badge { width: auto; }
  .cta-row > .store-badge img { height: 40px; }
}

/* The eyebrow that says the app is live: a small dot that breathes. */
.eyebrow-live { display: inline-flex; align-items: center; gap: 10px; }
.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--forest);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--forest) 60%, transparent);
  animation: cc-pulse 2.4s ease-out infinite;
}
@keyframes cc-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--forest) 55%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* Android: the next build, and the count that unlocks it. */
.android-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.android-grid > * { min-width: 0; }
@media (max-width: 880px) { .android-grid { grid-template-columns: 1fr; gap: 36px; } }
.android-card {
  background: var(--surface); border: 1.5px solid var(--ink-outline);
  border-radius: var(--radius-card); box-shadow: 5px 5px 0 var(--ink-offset); padding: 28px;
}
.android-count-line { font-family: var(--display-font); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: 1.25rem; margin: 0 0 16px; }
.android-count-line strong { color: var(--forest); font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.android-progress {
  height: 14px; border-radius: 999px; background: var(--sage);
  border: 1.5px solid var(--ink-outline); overflow: hidden;
}
.android-progress-fill {
  display: block; width: var(--android-progress, 0%); height: 100%;
  background: var(--forest); border-radius: 999px;
  transition: width .9s cubic-bezier(.22, 1, .36, 1);
}
.android-form { display: grid; gap: 8px; margin: 24px 0 16px; }
.android-form .talk-input { background: var(--canvas); }
/* The hidden field: a bot fills it, a person never sees it. */
.android-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.android-card .fine { margin: 0; }

/* ---------------------------------------------------------------------------
   The bold layer (3 December 2026). The shape of the page follows a product
   site; the look stays ours — paper, ink, forest. Two rules hold it together:

   - nothing is left half empty. Every band pairs words with a picture or a
     panel that fills it, and the picture runs to the edge of the screen.
   - the words still have room. Generous padding inside every block, a measure
     that never runs wide, and a line height that breathes.

   The colours are the tokens above. This layer adds one tone — --band, the ink
   colour taken darker — for the band of facts and the band of numbers. */

:root {
  --band: light-dark(#16211C, #0C1411);
  --band-text: #F2EEE3;
  --band-line: rgb(242 238 227 / 24%);
}

/* --- The bar ------------------------------------------------------------- */

.store-badge-header { padding: 3px 8px; border-radius: 10px; box-shadow: none; }
.store-badge-header img { height: 26px; }
.store-badge-header:hover { transform: none; box-shadow: none; }
@media (max-width: 560px) {
  .site-header .brand span { display: none; }
  .store-badge-header img { height: 22px; }
}

/* --- The opening --------------------------------------------------------- */

.hero-launch { padding: 64px 0 0; text-align: center; overflow: hidden; }
.hero-launch .hero-center { max-width: 1080px; }
.hero-launch .lede { max-width: 58ch; margin-inline: auto; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); }
.hero-launch .cta-row { justify-content: center; gap: 20px 28px; }
.hero-launch .fine { max-width: 64ch; margin-inline: auto; }
.hero-title {
  font-family: var(--display-font); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); line-height: 0.93;
  font-size: clamp(2.5rem, 7.2vw, 5.5rem); margin-bottom: 26px;
}
.hero-title em { font-style: normal; color: var(--forest); }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px; border-radius: 999px;
  background: var(--forest); color: var(--forest-ink);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 30px;
}
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 32px; border-radius: 999px;
  border: 2px solid var(--ink); background: transparent;
  color: var(--ink); font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}
.btn-ghost:hover { background: var(--sage); transform: translateY(-2px); }
@media (max-width: 880px) { .hero-launch { padding: 40px 0 0; } }

/* The two screens of the app, large, running over the band below them. */
.hero-stage { margin-top: 64px; position: relative; z-index: 2; }
.phone-fan { display: flex; justify-content: center; align-items: flex-end; }
.phone-figure { margin: 0; width: min(360px, 42vw); }
.phone-figure-left { margin-right: -40px; transform: rotate(-4deg); z-index: 1; }
.phone-figure-right { margin-top: 22px; transform: rotate(4deg); z-index: 2; }
.phone-figure .phone { width: 100%; }
.hero-devices-note { margin: 0 0 28px; text-align: center; color: var(--secondary); font-size: 0.9375rem; }
@media (max-width: 720px) {
  .phone-figure { width: min(240px, 46vw); }
  .phone-figure-left { margin-right: -22px; transform: rotate(-3deg); }
  .phone-figure-right { transform: rotate(3deg); }
}

/* --- The band of facts --------------------------------------------------- */

.credentials {
  background: var(--band); color: var(--band-text);
  padding: 56px 0; position: relative; z-index: 1;
}
.credential-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; }
.credential-list li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 8px 28px; border-left: 1px solid var(--band-line);
}
.credential-list li:first-child { border-left: 0; padding-left: 0; }
.credential-list strong {
  font-family: var(--display-font); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); text-transform: uppercase; font-size: 1rem;
}
.credential-list span { color: var(--band-text); opacity: .72; font-size: 0.9375rem; }
.credential-list a { color: inherit; }
/* On the home page the screens of the app run into this band. */
.hero-launch + .credentials { margin-top: -120px; padding-top: 176px; }
@media (max-width: 880px) {
  .hero-launch + .credentials { margin-top: -64px; padding-top: 116px; }
  .credential-list { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .credential-list li:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .credential-list { grid-template-columns: 1fr; }
  .credential-list li { border-left: 0; padding-left: 0; }
}

/* --- The blocks ---------------------------------------------------------- */
/* A block is two halves of the screen: the words on one side, a picture or a
   panel that fills the other, edge to edge. */

.feature { padding: 0; background: var(--canvas); }
.feature-alt { background: color-mix(in srgb, var(--sage) 55%, var(--canvas)); border-block: 0; }
.feature > .wrap { padding-block: clamp(64px, 8vw, 112px); }
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  min-height: clamp(420px, 62vh, 660px);
}
.feature-grid > * { min-width: 0; }
.feature-grid .feature-copy { order: 1; }
.feature-grid .feature-media { order: 2; }
.feature-grid-reverse .feature-copy { order: 2; }
.feature-grid-reverse .feature-media { order: 1; }
.feature-copy {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(40px, 5vw, 88px);
}
.feature-copy > * { max-width: 34rem; }
.feature-title {
  font-family: var(--display-font); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); line-height: 0.98;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem); margin-bottom: 22px;
}
.feature-title-wide { max-width: none; }
.feature-lede { color: var(--secondary); font-size: 1.125rem; max-width: 34rem; margin-bottom: 30px; }
.feature-media { position: relative; overflow: hidden; display: grid; }
.feature-media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border: 0; border-radius: 0; box-shadow: none;
}
.feature-media-frame { background: var(--paper); place-items: center; padding: clamp(24px, 4vw, 64px); }
.feature-media-frame img { object-fit: contain; background: transparent; }
.feature-media-frame .fine { margin: 0; }
.feature-media-card { background: var(--surface); place-items: center; padding: clamp(20px, 3vw, 48px); }
.feature-media-card .membership-mini { height: 100%; display: flex; flex-direction: column; }
.feature-media-card .membership-mini-note { margin-top: auto; }
.feature-copy .checks { margin-top: 0; }
.feature-copy .text-link { margin-top: 26px; }
@media (max-width: 880px) {
  .feature-grid { grid-template-columns: 1fr; min-height: 0; }
  .feature-grid .feature-copy, .feature-grid .feature-media,
  .feature-grid-reverse .feature-copy, .feature-grid-reverse .feature-media { order: 0; }
  .feature-media { aspect-ratio: 4 / 3; max-height: 62vh; }
  .feature-copy { padding: 40px var(--gutter) 56px; }
  .feature-copy > * { max-width: 40rem; margin-inline: auto; }
}

/* The card that sits in the picture half of a block. */
.membership-mini {
  width: 100%; max-width: 560px; padding: clamp(28px, 3vw, 44px);
  background: var(--paper); border: 1.5px solid var(--ink-outline);
  border-radius: var(--radius-card); box-shadow: 6px 6px 0 var(--ink-offset);
}
.membership-mini-tag {
  font-family: var(--display-font); font-weight: var(--display-weight); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.6875rem; color: var(--forest); margin: 0 0 12px;
}
.membership-mini-title {
  font-family: var(--display-font); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05; margin: 0 0 16px;
}
.membership-mini-note { color: var(--secondary); font-size: 0.9375rem; margin: 0; }
.membership-mini ul { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; }
.membership-mini li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; color: var(--ink); }
.membership-mini li::before { content: "✓"; color: var(--forest); font-weight: 700; flex: none; }

/* The list of what to write about, on the support page. */
.detail-list { list-style: none; display: grid; gap: 12px; margin: 20px 0 0; }
.detail-list li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; font-size: 0.9375rem; }
.detail-list strong { color: var(--ink); }
.detail-list span { color: var(--secondary); }
@media (max-width: 560px) { .detail-list li { grid-template-columns: 1fr; gap: 2px; } }

/* --- The numbers --------------------------------------------------------- */

.stats { padding: clamp(72px, 9vw, 120px) 0; background: var(--band); color: var(--band-text); }
.stats-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; }
.stat {
  display: flex; flex-direction: column; gap: 10px; padding: 8px 28px;
  border-left: 1px solid var(--band-line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value {
  font-family: var(--display-font); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); line-height: 0.86;
  font-size: clamp(3.5rem, 7.5vw, 5.75rem); color: var(--leaf);
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--band-text); opacity: .78; font-size: 0.9375rem; max-width: 22ch; }
.stats-source { margin: 40px 0 0; font-size: 0.875rem; color: var(--band-text); opacity: .62; }
.stats-source a { color: inherit; }
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; }
}

/* --- The guidance -------------------------------------------------------- */
/* The facts sit in columns divided by hairlines, not in cards: a card around
   three lines of text is mostly empty space. */

.facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 40px 0 0; }
.fact { display: flex; flex-direction: column; gap: 14px; padding: 8px 32px; border-left: 1px solid var(--ink-outline); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-figure {
  font-family: var(--display-font); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); line-height: 1;
  font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--forest); margin: 0;
}
.fact p { color: var(--secondary); margin: 0; }
.fact .source { margin-top: auto; font-size: 0.875rem; }
@media (max-width: 880px) {
  .facts { grid-template-columns: 1fr; gap: 28px; }
  .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink-outline); padding-top: 22px; }
  .fact:first-child { border-top: 0; padding-top: 0; }
}

/* --- The questions ------------------------------------------------------- */

.faq { margin-top: 40px; border-top: 1.5px solid var(--ink-outline); }
.faq details { border-bottom: 1.5px solid var(--ink-outline); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 76px; padding: 18px 0; font-weight: 650; font-size: clamp(1.0625rem, 1.7vw, 1.3125rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--sage); color: var(--forest); font-size: 1.25rem; font-weight: 500;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--secondary); padding-bottom: 24px; margin: 0; max-width: 64ch; }

/* --- The closing --------------------------------------------------------- */

.final-cta { background: var(--forest); color: var(--forest-ink); text-align: center; padding: clamp(80px, 10vw, 140px) 0; }
.final-cta h2 {
  font-family: var(--display-font); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); line-height: 0.96;
  font-size: clamp(2.25rem, 5.6vw, 4.25rem); max-width: 18ch; margin: 0 auto 18px;
}
.final-cta p { opacity: .92; font-size: 1.125rem; margin-bottom: 32px; }

/* --- The inner pages ----------------------------------------------------- */
/* Every page other than the home page opens the same way and closes the same
   way: a kicker, a headline, one action, then the download. */

.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); text-align: center; }
.page-hero .wrap { max-width: 940px; }
.page-title {
  font-family: var(--display-font); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); line-height: 0.96;
  font-size: clamp(2.25rem, 6vw, 4.5rem); margin: 0 0 22px;
}
.page-lede { color: var(--secondary); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); max-width: 58ch; margin: 0 auto 4px; }
.page-hero .cta-row { justify-content: center; }
.page-hero .fine { max-width: 62ch; margin-inline: auto; }

/* The questionnaire sits in a card of its own, so the questions are the only
   thing on the page that moves. */
.quiz-card {
  max-width: 800px; margin: 0 auto; padding: clamp(28px, 4vw, 44px);
  background: var(--surface); border: 1.5px solid var(--ink-outline);
  border-radius: var(--radius-card); box-shadow: 6px 6px 0 var(--ink-offset);
}
.quiz-card .quiz { min-height: 320px; }
.quiz-card .lede { max-width: 56ch; }
@media (max-width: 560px) { .quiz-card { padding: 24px 20px; } }

/* A sub-heading inside a feature block, and the list of links under it. */
.feature-sub { margin: 36px 0 12px; }
.related-list { list-style: disc; padding-left: 1.25em; display: grid; gap: 8px; }
.related-list li { padding-left: 4px; }
/* The steps of a movement, in order. */
.feature-copy ol { list-style: decimal; padding-left: 1.25em; display: grid; gap: 8px; }
.feature-copy ol li { padding-left: 4px; }

/* The blocks the motion layer reveals, one idea each. */
html.js:not(.reduced-motion) .reveal-block > * { opacity: 0; }
html.js:not(.reduced-motion) .page-title { opacity: 0; }

/* Below 720px the navigation is gone, so the bar keeps the brand, the theme
   button and the store button on one line instead of wrapping them apart. */
@media (max-width: 720px) {
  .header-row { flex-wrap: nowrap; padding-block: 8px; }
  .header-tools { flex: 0 0 auto; order: 0; justify-content: flex-end; gap: 8px; }
}

/* --- The remaining bands ------------------------------------------------- */
/* The hairline dashes and the small serif headings belonged to the sketchbook
   look. The bands are now full and the headings are large. */

.section.alt { border-block: 0; }
.challenges { border-block: 0; }
.section:not(.legal) h2, .challenges-head h2 {
  font-family: var(--display-font); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); line-height: 0.98;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem); max-width: 18ch;
}
.challenge-title { font-size: 1.375rem; }
.challenge-card { box-shadow: 6px 6px 0 var(--ink-offset); }

/* --- The band of challenges ---------------------------------------------- */
/* On a wide screen the band fills the screen and stays there while the cards
   move across it. The number is the anchor of each card. */

@media (min-width: 900px) {
  .challenges {
    min-height: calc(100vh - 72px); display: flex; flex-direction: column;
    padding-block: clamp(48px, 6vw, 80px);
  }
  .challenges-head { flex: none; }
  .rail-wrap { flex: 1 1 auto; display: flex; align-items: stretch; }
  .rail-viewport { width: 100%; display: flex; align-items: stretch; padding-bottom: 16px; }
  .rail-track { height: 100%; align-items: stretch; }
  .challenge-card { height: 100%; }
}

.challenge-count { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; }
.challenge-count-number {
  font-family: var(--display-font); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); line-height: 0.82;
  font-size: clamp(3.25rem, 5vw, 4.5rem); color: var(--forest);
}
.challenge-count-label {
  font-family: var(--display-font); font-weight: var(--display-weight);
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.6875rem;
  color: var(--secondary); max-width: 12ch;
}

/* The list inside a card keeps its own shape: no tick, and the label beside the
   value rather than above it. */
.membership-mini .detail-list li::before { content: none; }
.membership-mini .detail-list li { grid-template-columns: 7rem minmax(0, 1fr); align-items: baseline; }

/* Two short texts side by side, instead of two bands of their own. */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two-up-col { border-left: 1.5px solid var(--ink-outline); padding-left: 40px; }
.two-up-col:first-child { border-left: 0; padding-left: 0; }
.two-up-col p { color: var(--secondary); max-width: 46ch; }
@media (max-width: 880px) {
  .two-up { grid-template-columns: 1fr; gap: 32px; }
  .two-up-col { border-left: 0; padding-left: 0; border-top: 1.5px solid var(--ink-outline); padding-top: 24px; }
  .two-up-col:first-child { border-top: 0; padding-top: 0; }
}

/* The opening and the band that follows it are one thought, so they do not
   leave a long gap between them. */
.page-hero + .feature > .wrap { padding-top: clamp(28px, 4vw, 56px); }
