/* ============================================================
   FormBase — Editorial / Quiet Luxury
   Newsreader display serif + Geist sans, white + warm paper.
   ============================================================ */

:root {
  /* Backgrounds: white page, warm paper for cards */
  --cream:        #ffffff;
  --cream-2:      #f9f7f1;
  --cream-3:      #f1ece0;
  --cream-4:      #dcd5c1;
  --paper:        #faf6ec;

  /* Inks */
  --ink:          #1d1a16;
  --ink-2:        #2b2722;
  --ink-3:        #4a443c;
  --taupe:        #8a8275;
  --taupe-soft:   #b8b09e;
  --hair:         rgba(29, 26, 22, 0.10);
  --hair-strong:  rgba(29, 26, 22, 0.18);

  /* Accents */
  --coral:        #c5552e;
  --coral-soft:   rgba(197, 85, 46, 0.08);
  --sage:         #9bb39a;
  --sage-soft:    rgba(155, 179, 154, 0.20);
  --gold:         #d4a541;
  --gold-soft:    rgba(212, 165, 65, 0.18);
  --gold-ink:     #8a6a14;
  --lavender:     #b3afca;

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", "Georgia", serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:  "Geist Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Section-by-section snap scrolling. Proximity is gentler than mandatory:
   the page nudges toward the next section as you scroll near a boundary,
   but doesn't force-snap, so internal scrolling inside the triptych still
   feels free. scroll-padding-top offsets the sticky topnav so snapped
   sections aren't covered by it. */
html {
  scroll-snap-type: y proximity;
  scroll-padding-top: 72px;  /* offset so sticky topnav doesn't cover snapped section tops */
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--coral); color: var(--cream); }

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px max(32px, calc((100vw - 1240px) / 2));
  background: #faf4ee;
  border-bottom: 1px solid var(--hair);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: inline-block;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  vertical-align: middle;
  object-fit: contain;
}
.brand-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1;
}
.brand-name-form { color: var(--ink); }
.brand-name-base { color: var(--coral); }

.topnav-center {
  display: flex;
  gap: 30px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-3);
}
.topnav-center a { transition: color 0.2s ease; color: inherit; }
.topnav-center a:hover { color: var(--ink); }

.topnav-right {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.ios-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--taupe);
  padding: 6px 10px;
  border: 1px solid var(--hair-strong);
  border-radius: 999px;
}
.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--cream);
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.1px;
  transition: background 0.18s ease, transform 0.18s ease;
}
.cta-pill:hover { background: var(--ink-2); transform: translateY(-1px); }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 32px 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 32px 0 48px;
  min-height: calc(100vh - 72px);   /* full viewport minus topnav */
  scroll-snap-align: start;
}

/* Highlighter sweep across the H1 — fires on page load. */
.highlight {
  background-image: linear-gradient(transparent 58%, rgba(197, 85, 46, 0.32) 58%, rgba(197, 85, 46, 0.32) 92%, transparent 92%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
  animation: highlightSweep 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
  padding: 0 4px;
  margin: 0 -4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
@keyframes highlightSweep {
  to { background-size: 100% 100%; }
}

.hero-right {
  /* Nudge phone up so its visual top aligns higher than the H1 baseline. */
  transform: translateY(-30px);
}

/* Right-side phone mockup using Today page screenshot. Straight, no tilt. */
.hero-device {
  width: 320px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  padding: 11px;
  background: var(--ink);
  border-radius: 48px;
  box-shadow: 0 36px 70px -32px rgba(29, 26, 22, 0.42);
  overflow: hidden;
  position: relative;
}
.hero-device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
  display: block;
  background: var(--paper);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 22px;
}

.pre-launch {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 28px;
}

.display {
  font-family: var(--serif);
  font-size: clamp(48px, 7.2vw, 92px);
  line-height: 0.96;
  letter-spacing: -1.8px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 28px;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  letter-spacing: -0.2px;
  color: var(--ink-3);
  max-width: 52ch;
  margin: 0 0 36px;
}
/* When two ledes stack (e.g. hero), tighten the gap between them. */
.lede + .lede { margin-top: -24px; }

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn.primary {
  background: var(--ink);
  color: var(--cream);
}
.btn.primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair-strong);
}
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { padding: 9px 14px; font-size: 12px; }

.hero-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--hair);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.8px;
  color: var(--ink-3);
}
.chip.muted { color: var(--taupe); }
.chip.strava { color: #fc4c02; }
.chip .check { color: var(--sage); font-weight: 700; }

/* ----------------------------------------------------------
   DEVICE MOCKUP
   ---------------------------------------------------------- */
.hero-right { display: flex; justify-content: center; }

.device {
  width: 320px;
  background: var(--cream-2);
  border-radius: 36px;
  padding: 18px 16px 14px;
  border: 1px solid var(--hair);
  box-shadow:
    0 30px 60px -28px rgba(197, 85, 46, 0.35),
    0 12px 28px -12px rgba(0, 0, 0, 0.18);
  position: relative;
}

.device-statusbar {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  padding: 0 8px 6px;
}
.device-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 12px;
}
.device-greeting {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.device-add {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-3);
  font-size: 16px;
  color: var(--ink);
}

.device-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--taupe);
  padding: 0 6px 8px;
}
.today-label { color: var(--ink); }
.arr { color: var(--ink-3); font-size: 14px; }

.device-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 14px;
}
.dw {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  border-radius: 8px;
  font-family: var(--sans);
}
.dw .dwd { font-size: 9px; letter-spacing: 0.8px; color: var(--taupe); text-transform: uppercase; }
.dw .dwn { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.dw.active { background: var(--ink); }
.dw.active .dwd, .dw.active .dwn { color: var(--cream); }

.device-card {
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.dc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.dc-meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--taupe);
  text-transform: uppercase;
}
.dc-chev { color: var(--taupe); }
.dc-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}
.dc-sub {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--taupe);
  margin-bottom: 10px;
}
.dc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.dc-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-2);
}
.dc-list .tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--taupe);
}
.dc-list .pb { font-size: 11px; }
.dc-more {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.8px;
  color: var(--coral);
  text-transform: uppercase;
  margin-top: 4px;
}
.dc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--hair);
}
.dc-time {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1.2px;
  color: var(--taupe);
}
.dc-start {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--coral);
  font-weight: 600;
  text-transform: uppercase;
}

.device-tabs {
  display: flex;
  justify-content: space-around;
  padding-top: 8px;
  border-top: 1px solid var(--hair);
  margin-top: 4px;
}
.dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--taupe);
  padding: 6px 0;
}
.dt.active { color: var(--ink); position: relative; }
.dt.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 16px;
  height: 2px;
  background: var(--coral);
  transform: translateX(-50%);
  border-radius: 1px;
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair-strong);
  border-bottom: 1px solid var(--hair-strong);
  margin-bottom: 96px;
}
.stat {
  padding: 30px 26px;
  border-right: 1px solid var(--hair);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin-bottom: 8px;
}
.stat.coral .stat-num { color: var(--coral); }
.stat-sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.8px;
  color: var(--taupe);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.sect {
  padding: 56px 0 96px;
  border-top: 1px solid var(--hair);
}
.sect-eye {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 24px;
}
.sect-h {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 24px;
  max-width: 22ch;
}
.sect-lede {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.1px;
  color: var(--ink-3);
  max-width: 60ch;
  margin: 0 0 56px;
}

/* ============================================================
   PILLARS (§ 01)
   ============================================================ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pillar {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.pillar:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -28px rgba(29, 26, 22, 0.28);
  border-color: var(--hair-strong);
}
.pillar:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}
.pillar.sage  { background: var(--sage-soft); border-color: rgba(155, 179, 154, 0.35); }
.pillar.gold  { background: var(--gold-soft); border-color: rgba(212, 165, 65, 0.35); }
.pillar-eye {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--taupe);
  margin-bottom: 16px;
}
.pillar-eye .sm-sign { color: var(--coral); }
.pillar h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin: 0 0 10px;
  color: var(--ink);
}
.pillar p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0 0 22px;
}
.kv {
  margin: auto 0 0;
  display: grid;
  gap: 8px;
}
.kv > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding-top: 8px;
  border-top: 1px solid var(--hair);
}
.kv dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0;
}
.kv dd {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

/* ============================================================
   ZONES (§ 02)
   ============================================================ */
.zones-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.zones-list {
  display: flex;
  flex-direction: column;
}
.zone-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--hair);
}
.zone-row:last-child { border-bottom: none; }
.zone-tag {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
  letter-spacing: 0.4px;
}
.zone-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.zone-em {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--taupe);
}

.zone-cards { display: flex; flex-direction: column; gap: 16px; }
.zone-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 22px;
}
.zone-card.live { background: var(--sage-soft); border-color: rgba(155, 179, 154, 0.35); }
.zc-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}
.zc-zone {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--ink);
}
.zc-tier {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--taupe);
}
.zc-tier .ck { color: var(--sage); font-weight: 700; margin-left: 4px; }
.zc-pace {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -1.5px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 12px;
}
.zc-unit { font-size: 18px; color: var(--taupe); letter-spacing: 0; }
.zc-note {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--taupe);
  margin-bottom: 10px;
}
.zc-gap {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--coral);
  letter-spacing: 0.4px;
}

/* ============================================================
   RACE PROJECTION (§ 03)
   ============================================================ */
.proj-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 22px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
  align-items: start;
}
.proj-row { display: flex; flex-direction: column; gap: 8px; }
.proj-row.top { grid-column: 1; }
.proj-row.main { grid-column: 2; align-items: flex-end; text-align: right; }
.proj-eye {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--taupe);
}
.proj-eye .ir {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--sage-soft);
  color: #3a6a3a;
  border-radius: 4px;
  font-weight: 600;
}
.proj-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}
.proj-title strong { font-weight: 600; }
.proj-sub {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--taupe);
}
.proj-time {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -2px;
  color: var(--ink);
  line-height: 1;
}

.proj-forecasts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  padding-top: 24px;
}
.fc {
  padding: 0 22px;
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fc:first-child { padding-left: 0; }
.fc:last-child { border-right: none; padding-right: 0; }
.fc-letter {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--taupe);
}
.fc-a .fc-letter { color: var(--sage); }
.fc-b .fc-letter { color: var(--coral); }
.fc-c .fc-letter { color: var(--gold-ink); }
.fc-time {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.8px;
  color: var(--ink);
}
.fc-sub {
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  color: var(--taupe);
}

.proj-chart {
  grid-column: 1 / -1;
  margin-top: 8px;
}
.pc-head {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--taupe);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.pc-svg {
  width: 100%;
  height: 140px;
  display: block;
}
.pc-grid line {
  stroke: var(--hair);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.pc-line {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}
.proj-chart.on .pc-line {
  animation: drawCurve 2.2s cubic-bezier(0.2, 0.7, 0.3, 1) 0.2s forwards;
}
.pc-line.shadow { stroke: var(--coral); stroke-width: 8; opacity: 0.12; filter: blur(4px); }
@keyframes drawCurve { to { stroke-dashoffset: 0; } }

.pc-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--taupe);
  margin-top: 6px;
}

/* ============================================================
   ROMAN STEPS (§ 04)
   ============================================================ */
.roman-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.roman-steps li {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 240px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.roman-steps li:hover { transform: translateY(-4px); border-color: var(--hair-strong); }
.roman {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1;
  color: var(--coral);
}
.roman-steps h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
  color: var(--ink);
}
.roman-steps p {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0;
}

/* ============================================================
   COACH MARKETPLACE (§ 05)
   ============================================================ */
.coach-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.assigned-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 26px;
}
.ac-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.ac-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--taupe);
}
.ac-new {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--coral);
  font-weight: 600;
}
.ac-coach { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ac-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}
.ac-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.ac-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--taupe);
  margin-top: 2px;
}
.ac-built {
  padding: 16px;
  background: var(--cream-2);
  border-radius: 12px;
  margin-bottom: 18px;
}
.ac-built-eye {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--taupe);
  margin-bottom: 6px;
}
.ac-built-title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}
.ac-built-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  color: var(--taupe);
  margin-top: 4px;
}
.ac-cta { display: flex; gap: 10px; }

.optin-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 26px;
}
.oc-eye {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--taupe);
  margin-bottom: 8px;
}
.oc-head {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 18px;
}
.oc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.oc-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-2);
}
.oc-list li:last-child { border-bottom: none; }
.toggle {
  display: inline-block;
  width: 34px;
  height: 20px;
  background: var(--cream-3);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  transition: left 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.toggle.on { background: var(--coral); }
.toggle.on::after { left: 16px; }

.directory {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 26px;
}
.dir-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dir-eye {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--taupe);
}
.dir-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.dir-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 14px 16px;
}
.dir-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 17px;
}
.dir-avatar.sage { background: var(--sage); color: var(--ink); }
.dir-avatar.gold { background: var(--gold); color: var(--ink); }
.dir-name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.dir-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.6px;
  color: var(--taupe);
  margin-top: 2px;
}
.dir-price {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}

/* ============================================================
   INTEGRATIONS (§ 06)
   ============================================================ */
.int-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.int-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 28px 26px 24px;
  position: relative;
  min-height: 200px;
  transition: transform 0.3s ease;
}
.int-card:hover { transform: translateY(-4px); }
.int-card.live { background: rgba(252, 76, 2, 0.06); border-color: rgba(252, 76, 2, 0.25); }
.int-letter {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--cream-2);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 18px;
}
.int-card.live .int-letter { background: #fc4c02; color: #fff; }
.int-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
  color: var(--ink);
}
.int-card p {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0 0 22px;
}
.int-status {
  position: absolute;
  top: 28px;
  right: 26px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--ink);
  font-weight: 600;
}
.int-status.soon { background: var(--cream-3); color: var(--taupe); }

/* ============================================================
   TRIPTYCH — Full-bleed Strength | Running | Hyrox columns.
   Breaks out of .page (1240px max-width) to span the viewport.
   Each lane: full-width photo with discipline-tinted gradient,
   white mono label overlaid bottom-left, copy block below.
   ============================================================ */
.triptych {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  min-height: 100vh;
  scroll-snap-align: start;
}

.lane {
  display: flex;
  flex-direction: column;
  text-align: left;
  color: inherit;
  text-decoration: none;
  border-right: 1px solid var(--hair);
  background: var(--cream);
  transition: background 0.35s ease;
  position: relative;
}
.lane:last-child { border-right: none; }
.lane:hover { background: var(--cream-2); }
.lane:focus-visible { outline: 2px solid var(--coral); outline-offset: -4px; }

.lane-photo {
  position: relative;
  width: 100%;
  /* Tall photo dominates the lane. Source images are 1024×1448+ so we
     have resolution to render at ~720px. The lane container fills the
     100vh triptych; this gives photo ~72vh, text below ~28vh. All three
     photos render at identical box dimensions regardless of their source
     aspect ratios (object-fit: cover crops each). */
  height: clamp(480px, 72vh, 820px);
  overflow: hidden;
}
.lane-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.lane:hover .lane-photo img { transform: scale(1.04); }

/* Brand-tinted gradient overlay blends dark photo into the page. */
.lane-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(29, 26, 22, 0.50) 100%
  );
}
.lane-strength .lane-photo::after {
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(197, 85, 46, 0.28) 75%,
    rgba(29, 26, 22, 0.78) 100%
  );
}
.lane-run .lane-photo::after {
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(155, 179, 154, 0.28) 75%,
    rgba(29, 26, 22, 0.78) 100%
  );
}
.lane-hyrox .lane-photo::after {
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(212, 165, 65, 0.30) 75%,
    rgba(29, 26, 22, 0.78) 100%
  );
}

.lane-label {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.lane-text {
  padding: 28px 32px 44px;
}

.lane-h {
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 18ch;
}

.lane-sub {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 38ch;
  margin: 0 0 24px;
}

.lane-cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: -0.1px;
  display: inline-block;
  transition: color 0.25s ease, transform 0.25s ease;
}
.lane:hover .lane-cta { color: var(--coral); transform: translateX(4px); }

@media (max-width: 900px) {
  /* On mobile, drop section snap: each triptych lane is one item, and
     stacked snap would force three full-viewport snaps just for the
     triptych, which is jarring on touch. */
  html { scroll-snap-type: none; }
  .hero { min-height: auto; padding: 32px 0 48px; }
  .triptych {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .lane {
    border-right: none;
    border-bottom: 1px solid var(--hair);
  }
  .lane:last-child { border-bottom: none; }
  .lane-photo { height: clamp(320px, 70vw, 480px); }
  .lane-text { padding: 24px 22px 40px; }
}

/* ============================================================
   DEEP DIVE — Combined zones panel + race-goal projection card.
   Single 100vh scroll-snap section after the triptych.
   ============================================================ */
.deepdive {
  min-height: 100vh;
  /* Intentionally no scroll-snap-align: as the last main section before
     the footer, snapping it would pull the user away from the footer
     when they scroll to the bottom. Hero + triptych still snap. */
  padding: 56px 0 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 72px;
}
.deepdive-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.deepdive-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.deepdive-left .sect-h { max-width: 22ch; margin: 0; }
.deepdive-left .sect-lede { max-width: 52ch; margin: 0; }
.deepdive-right .proj-card { width: 100%; max-width: 100%; }

.deepdive-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.deepdive-cta-h {
  color: var(--coral);
  max-width: none;
  margin: 0;
}

@media (max-width: 900px) {
  .deepdive {
    gap: 48px;
    min-height: auto;
    padding: 48px 0 64px;
  }
  .deepdive-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================================
   MCP / Claude connector page — chat-bubble component for the
   example conversations. Cards hold one user message + one
   Claude reply each. User bubbles right-aligned in coral; Claude
   bubbles left-aligned in white with a hairline border.
   ============================================================ */
/* MCP hero — compact, no min-height push, ledes tight together. */
.mcp-hero { padding: 32px 0 16px; min-height: auto; }
.mcp-hero .display { margin-bottom: 24px; }
.mcp-hero .lede { margin-bottom: 12px; max-width: 64ch; }
.mcp-hero .lede + .lede { margin-top: 0; }
.mcp-hero-foot { color: var(--taupe); }

.chat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.chat-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 22px;
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chat-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 4px;
}
.chat-row { display: flex; }
.chat-row.you { justify-content: flex-end; text-align: right; }
.chat-row.claude { justify-content: flex-start; text-align: left; }
.chat-row > div { max-width: 88%; }
.chat-who {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--taupe);
  display: block;
  margin-bottom: 6px;
}
.chat-bubble {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 18px;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.5;
  text-align: left;
}
.chat-row.you .chat-bubble {
  background: var(--coral);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.chat-row.claude .chat-bubble {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--hair);
  border-bottom-left-radius: 6px;
}

@media (max-width: 900px) {
  .chat-grid { grid-template-columns: 1fr; gap: 16px; }
  .chat-bubble { font-size: 15px; }
}

/* MCP compatibility row — clickable cards. Tap opens a modal with
   setup instructions for that AI. */
.mcp-compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  gap: 20px;
  justify-content: start;
  margin-top: 8px;
}
.mcp-compat-card {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}
.mcp-compat-card:hover {
  transform: translateY(-3px);
  border-color: var(--hair-strong);
  box-shadow: 0 20px 40px -28px rgba(29, 26, 22, 0.25);
}
.mcp-compat-card:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}
.mcp-compat-logo {
  width: 44px;
  height: 44px;
  display: block;
  margin-bottom: 14px;
}
.mcp-compat-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.4px;
  color: var(--ink);
  margin: 0;
}
.mcp-compat-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 4px 0 0;
}
.mcp-compat-status {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sage);
  padding: 4px 10px;
  border: 1px solid rgba(155, 179, 154, 0.5);
  border-radius: 999px;
}

/* MODAL — connector setup instructions. Triggered by .mcp-compat-card.
   Centered card on a blurred backdrop. Closed by clicking backdrop,
   the X button, or pressing Esc. */
/* Hide by default (and respect the [hidden] attribute even when other
   modal styles try to set display). Only show when explicitly opened. */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
}
.modal:not([hidden]) {
  display: grid;
  animation: modalFadeIn 0.18s ease-out;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 26, 22, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 22px;
  padding: 40px 44px 36px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 50px 100px -30px rgba(29, 26, 22, 0.4);
  animation: modalRise 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--taupe);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.18s ease, color 0.18s ease;
}
.modal-close:hover { background: var(--cream-3); color: var(--ink); }
.modal-eye {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
.modal-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin: 0 0 24px;
}
.modal-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
}
.modal-step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--coral);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--coral);
  display: grid;
  place-items: center;
}
.modal-steps li > div {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-3);
  padding-top: 2px;
}
.modal-steps strong { color: var(--ink); font-weight: 600; }
.modal-foot {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--taupe);
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}

/* Copyable connector fields inside the modal — click to copy. */
.copy-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.copy-field {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--cream-2);
  border: 1px solid var(--hair);
  border-radius: 12px;
  transition: background 0.18s ease, border-color 0.18s ease;
  width: 100%;
}
.copy-field:hover { background: var(--cream-3); border-color: var(--hair-strong); }
.copy-field:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.copy-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--taupe);
}
.copy-value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-all;
}
.copy-status {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--taupe);
  white-space: nowrap;
  transition: color 0.18s ease;
}
.copy-field.is-copied { background: rgba(155, 179, 154, 0.18); border-color: rgba(155, 179, 154, 0.5); }
.copy-field.is-copied .copy-status { color: var(--sage); }

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalRise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
  .modal { padding: 16px; }
  .modal-card { padding: 32px 24px 28px; }
  .modal-card h3 { font-size: 22px; }
}

/* ============================================================
   FEATURES SECTIONS — features.html uses a 2-column layout
   per discipline: prose on the left, iPhone-bezel screenshot
   on the right (sticky during scroll).
   ============================================================ */
.features-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 72px;
  align-items: start;
}
.features-right {
  position: sticky;
  top: 100px;
  justify-self: center;
}
.features-shot {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  background: var(--ink);
  border-radius: 42px;
  box-shadow: 0 30px 60px -32px rgba(29, 26, 22, 0.35);
  overflow: hidden;
}
.features-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
  background: var(--paper);
}

@media (max-width: 900px) {
  .features-section { grid-template-columns: 1fr; gap: 32px; }
  .features-right { position: static; }
  .features-shot { max-width: 240px; margin: 0 auto; }
}

/* ============================================================
   FINALE
   ============================================================ */
.finale {
  padding: 120px 0 140px;
  border-top: 1px solid var(--hair);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.finale-eye {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--taupe);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.finale-h {
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -1.5px;
  font-weight: 500;
  margin: 0 0 22px;
  color: var(--ink);
}
.finale-sub {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 48ch;
  margin: 0 auto 36px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  margin: 0;
  padding: 24px max(32px, calc((100vw - 1240px) / 2)) 28px;
  background: #faf4ee;
  border-top: 1px solid var(--hair);
}
.foot-meta {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--taupe);
}
.foot-nav {
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--taupe);
}
.foot-nav a { color: inherit; }
.foot-nav a:hover { color: var(--ink); }

/* ============================================================
   ANIMATIONS / REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1),
              transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance — staggered fade up for headline + lede. */
.display { animation: fadeUp 1.1s cubic-bezier(0.16, 0.84, 0.44, 1) 0.05s both; }
.lede     { animation: fadeUp 1.1s cubic-bezier(0.16, 0.84, 0.44, 1) 0.2s both; }
.hero-ctas { animation: fadeUp 1.1s cubic-bezier(0.16, 0.84, 0.44, 1) 0.35s both; }
.hero-chips { animation: fadeUp 1.1s cubic-bezier(0.16, 0.84, 0.44, 1) 0.5s both; }
.hero-right { animation: fadeUp 1.3s cubic-bezier(0.16, 0.84, 0.44, 1) 0.25s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Subtle device float */
.device {
  animation: deviceFloat 6s ease-in-out infinite;
}
@keyframes deviceFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-bottom: 56px; }
  .hero-right { order: -1; }
  .stats-row { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--hair); }
  .stat:last-child { border-bottom: none; }
  .pillar-grid,
  .int-grid { grid-template-columns: 1fr; }
  .zones-split,
  .coach-split { grid-template-columns: 1fr; gap: 24px; }
  .dir-grid { grid-template-columns: 1fr; }
  .roman-steps { grid-template-columns: repeat(2, 1fr); }
  .proj-card { grid-template-columns: 1fr; }
  .proj-row.main { grid-column: 1; align-items: flex-start; text-align: left; }
  .topnav { grid-template-columns: auto 1fr; padding: 14px 20px; }
  .topnav-center { display: none; }
  .page { padding: 32px 20px 0; }
  .site-footer { grid-template-columns: 1fr; text-align: center; padding: 28px 20px 36px; }
  .foot-nav { justify-content: center; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .roman-steps { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--hair); }
  .stat:last-child { border-bottom: none; }
  .ios-pill { display: none; }
  .proj-time { font-size: 48px; }
  .zc-pace { font-size: 44px; }
  .device { width: 290px; }
  .topnav-right .cta-pill { font-size: 12px; padding: 8px 12px; }
}

/* ============================================================
   PROSE — bare-element typography for legal pages, support, and
   editorial section body copy. Apply `.prose` to a container and
   its bare h1/h2/h3/p/ul/ol/li/strong/a/code/em inherit the
   editorial serif treatment. No layout rules — the parent
   (.page, .page.narrow, or .sect) handles width.
   ============================================================ */
.page.narrow {
  max-width: 760px;
  padding: 48px 28px 96px;
}

.prose :where(h1) {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 60px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 14px;
  color: var(--ink);
}
.prose :where(h2) {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.22;
  margin: 44px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
  letter-spacing: -0.3px;
  color: var(--ink);
}
.prose :where(h2:first-of-type) { border-top: none; padding-top: 0; margin-top: 24px; }
.prose :where(h3) {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  margin: 28px 0 8px;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.prose :where(p, ul, ol) {
  font-family: var(--serif);
  color: var(--ink-3);
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.65;
}
.prose :where(ul, ol) { padding-left: 22px; }
.prose :where(li) { margin-bottom: 8px; }
.prose :where(strong) { color: var(--ink); font-weight: 600; }
.prose :where(em) { font-style: italic; }
.prose :where(a) {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.prose :where(a):hover { text-decoration-thickness: 2px; }
.prose :where(code) {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-2);
  background: var(--paper);
  padding: 2px 6px;
  border-radius: 4px;
}
.prose .muted { margin-bottom: 24px; display: block; }

.muted {
  color: var(--taupe);
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.6px;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .display, .lede, .hero-ctas, .hero-chips, .hero-right { opacity: 1 !important; transform: none !important; }
  .highlight { background-size: 100% 100% !important; }
  .pc-line { stroke-dashoffset: 0 !important; }
}
