/* Teipa — marketing site.
   Tokens follow Teipa_Visual_Design_System.md (light + dark are both first-class).
   One chromatic accent per screen: sage by default, clay only for race day / the
   closed prep / the poster. No gradients outside imagery, no shadows. */

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0E0E0D;
  --charcoal: #1A1917;
  --graphite: #2A2926;
  --ivory: #F4F1EB;
  --night-text2: #B8B5AD;
  --night-text3: #817E76;
  --night-border: #34322D;

  --bg: #F4F1EB;
  --bg-2: #FBFAF7;
  --bg-3: #E9E6DE;
  --surface: #FBFAF7;
  --text: #0E0E0D;
  --text-2: #6B6A64;
  --text-3: #96938B;
  --border: #D9D6CE;
  --border-subtle: #E5E1D9;
  --sage: #8A9A7B;
  --sage-soft: rgba(138, 154, 123, .55);
  --clay: #C67F6A;
  --ink: #0E0E0D;      /* primary CTA fill */
  --on-ink: #F4F1EB;
  --heat-0: #E5E1D9; --heat-1: #E5E9DF; --heat-2: #CDD6C5; --heat-3: #AFBDA4; --heat-4: #8A9A7B; --heat-5: #5F7153;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --display: "Satoshi", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  --gutter: 20px;
  --max: 1180px;
  --settle: cubic-bezier(.22, 1, .36, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E0D; --bg-2: #1A1917; --bg-3: #24231F; --surface: #1A1917;
    --text: #F4F1EB; --text-2: #B8B5AD; --text-3: #817E76;
    --border: #34322D; --border-subtle: #292824;
    --sage: #9AAA89; --sage-soft: rgba(154, 170, 137, .5); --clay: #C9826D;
    --ink: #F4F1EB; --on-ink: #0E0E0D;
    --heat-0: #24231F; --heat-1: #2F3529; --heat-2: #44503A; --heat-3: #5F7153; --heat-4: #8A9A7B; --heat-5: #AFBDA4;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0E0D; --bg-2: #1A1917; --bg-3: #24231F; --surface: #1A1917;
  --text: #F4F1EB; --text-2: #B8B5AD; --text-3: #817E76;
  --border: #34322D; --border-subtle: #292824;
  --sage: #9AAA89; --sage-soft: rgba(154, 170, 137, .5); --clay: #C9826D;
  --ink: #F4F1EB; --on-ink: #0E0E0D;
  --heat-0: #24231F; --heat-1: #2F3529; --heat-2: #44503A; --heat-3: #5F7153; --heat-4: #8A9A7B; --heat-5: #AFBDA4;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 40px; } }

.display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 34em; }
.num { font-variant-numeric: tabular-nums; }

/* ——— Buttons ——————————————————————————————————————————————————————— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 14px;
  font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: opacity .2s var(--settle), background-color .2s var(--settle);
}
.btn:hover { opacity: .86; }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-ivory { background: var(--ivory); color: var(--black); }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 18px 0 16px; border-radius: 14px;
  border: 1px solid rgba(244, 241, 235, .28); color: var(--ivory);
}
.store-badge svg { width: 20px; height: 24px; }
.store-badge small { display: block; font-size: 11px; line-height: 1.2; color: var(--night-text2); }
.store-badge span { display: block; font-size: 16px; line-height: 1.2; font-weight: 500; }

/* ——— Header ———————————————————————————————————————————————————————— */
.site-head { position: absolute; inset: 0 0 auto; z-index: 5; color: var(--ivory); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(244, 241, 235, .12); }
.mark .wordmark { height: 13px; width: auto; }
.head-link { font-size: 15px; text-decoration: none; color: var(--night-text2); padding: 10px 0; }
.head-link:hover { color: var(--ivory); }

/* ——— Wordmark (drawn, not typeset) ——————————————————————————————————— */
.wordmark path { fill: none; stroke: currentColor; stroke-linejoin: miter; stroke-miterlimit: 12; }

/* ——— Hero ————————————————————————————————————————————————————————— */
.hero {
  position: relative; overflow: hidden;
  background: var(--black); color: var(--ivory);
  min-height: min(100svh, 980px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 140px 0 0;
}
.hero-body { position: relative; z-index: 2; padding-bottom: clamp(48px, 7vw, 88px); }
.hero-wordmark { width: min(78vw, 640px); height: auto; color: var(--ivory); }
.hero-wordmark path { stroke-width: 4.2; }
.hero h1 {
  margin-top: clamp(28px, 4vw, 48px);
  font-size: clamp(34px, 5.2vw, 64px);
}
.hero .lede { color: var(--night-text2); margin-top: 18px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; align-items: center; }
.hero-horizon {
  position: absolute; left: 0; right: 0; top: var(--ht); height: var(--hh);
  z-index: 1; pointer-events: none;
}
.hero { --ht: 18%; --hh: 62%; }
@media (max-width: 719px) {
  .hero { --ht: 9%; --hh: 30%; }
  .hero-meta .wrap > span:last-child { display: none; }
}
.hero-horizon svg { width: 100%; height: 100%; overflow: visible; }
.hero-horizon .h-line { stroke: var(--ivory); stroke-opacity: .5; stroke-width: 1.1; fill: none; stroke-linecap: round; }
.hero-point {
  position: absolute; z-index: 1; width: 18px; height: 18px; border-radius: 50%;
  left: calc(68.4% - 9px); top: calc(var(--ht) + var(--hh) * .057 - 9px);
  background: radial-gradient(circle at 38% 34%, #FFF8F0 0 18%, #FFF4E9 30%, #E5BE9F 100%);
  box-shadow: 0 0 36px 10px rgba(229, 162, 122, .28);
}
.hero-meta {
  position: relative; z-index: 2; border-top: 1px solid rgba(244, 241, 235, .12);
  color: var(--night-text3); font-size: 14px;
}
.hero-meta .wrap { display: flex; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 22px; }

/* Load sequence: wordmark draws, then the horizon, then the point. */
.js .hero-wordmark path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--settle) .15s forwards; }
.js .hero-horizon .h-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s cubic-bezier(.65, 0, .35, 1) .5s forwards; }
.js .hero-point { opacity: 0; transform: translateY(8px); animation: settle .9s var(--settle) 2.4s forwards; }
.js .hero .rise { opacity: 0; transform: translateY(8px); animation: settle .7s var(--settle) forwards; }
.js .hero .rise-1 { animation-delay: 1.0s; }
.js .hero .rise-2 { animation-delay: 1.2s; }
.js .hero .rise-3 { animation-delay: 1.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes settle { to { opacity: 1; transform: none; } }

/* ——— Thesis ——————————————————————————————————————————————————————— */
.thesis { padding: clamp(88px, 12vw, 168px) 0 clamp(72px, 10vw, 136px); }
.thesis h2 { font-size: clamp(34px, 5vw, 60px); max-width: 15ch; }
.thesis-cols { display: grid; gap: 28px; margin-top: clamp(40px, 6vw, 72px); }
.thesis-cols p { color: var(--text-2); max-width: 30em; }
.thesis-cols p strong { color: var(--text); font-weight: 500; }
@media (min-width: 900px) {
  .thesis-cols { grid-template-columns: 1fr 1fr; gap: 48px; margin-left: 33%; }
}

/* ——— The prep: a timeline the line runs through ————————————————————— */
.prep { position: relative; padding: 0 0 clamp(40px, 6vw, 80px); }
.prep-head { padding-bottom: clamp(32px, 5vw, 56px); }
.prep-head p { color: var(--text-2); max-width: 32em; margin-top: 14px; }
.prep-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.timeline { position: relative; }
.timeline-line {
  position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) - 2px); width: 40px; pointer-events: none;
}
.timeline-line svg { width: 100%; height: 100%; overflow: visible; }
.timeline-line .track { stroke: var(--text); stroke-opacity: .12; }
.timeline-line .drawn { stroke: var(--text); }
.timeline-line path { fill: none; stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.race-point {
  position: absolute; left: calc(var(--gutter) + 13px); bottom: -7px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--clay); background: transparent;
  transition: background-color .5s var(--settle);
}
.race-point.reached { background: var(--clay); }

.moment {
  display: grid; gap: 40px; align-items: center;
  padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 7vw, 96px) 52px;
}
.moment + .moment { border-top: 1px solid var(--border-subtle); }
.moment-when { font-size: 14px; color: var(--text-3); position: relative; }
.moment-when::before {
  content: ""; position: absolute; left: -38px; top: .45em; width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--text);
}
.moment h3 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; margin-top: 14px; max-width: 14ch; }
.moment p { color: var(--text-2); margin-top: 16px; max-width: 28em; }
.moment ul { list-style: none; margin: 22px 0 0; padding: 0; max-width: 28em; }
.moment li { padding: 11px 0; border-top: 1px solid var(--border-subtle); font-size: 15px; color: var(--text-2); }
.moment li b { font-weight: 500; color: var(--text); }
.moment-visual { display: flex; justify-content: center; }
@media (min-width: 900px) {
  .moment { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; padding-left: 96px; }
  .moment-when::before { left: -82px; }
  .timeline-line { left: calc(var(--gutter) + 6px); }
  .race-point { left: calc(var(--gutter) + 21px); }
}

/* ——— Phone + recreated screens ———————————————————————————————————— */
.phone {
  --k: .74;
  position: relative; flex: none;
  width: calc(390px * var(--k) + 20px); height: calc(844px * var(--k) + 20px);
  padding: 10px; border-radius: calc(56px * var(--k) + 10px);
  background: #000; box-shadow: inset 0 0 0 1px #2A2926;
}
.phone-screen {
  position: relative; width: calc(390px * var(--k)); height: calc(844px * var(--k));
  border-radius: calc(48px * var(--k)); overflow: hidden; background: var(--bg);
}
.screen {
  position: absolute; left: 0; top: 0; width: 390px; height: 844px;
  transform: scale(var(--k)); transform-origin: 0 0;
  font-family: var(--sans); color: var(--text); line-height: 1.25; font-size: 16px;
  background: var(--bg);
}
.island { position: absolute; z-index: 9; top: 11px; left: 50%; width: 120px; height: 34px; margin-left: -60px; border-radius: 20px; background: #000; }
.sb { position: absolute; z-index: 8; top: 0; left: 0; right: 0; height: 54px; display: flex; justify-content: space-between; align-items: center; padding: 6px 34px 0 42px; font: 600 16px/1 var(--sans); color: var(--text); }
.sb.on-dark { color: var(--ivory); }
.sb i { display: inline-flex; gap: 6px; align-items: center; }
.sb i::after { content: ""; width: 25px; height: 12px; border-radius: 4px; border: 1.2px solid currentColor; opacity: .9; box-shadow: inset 0 0 0 2px var(--bg-3), inset 18px 0 0 0 currentColor; }
.sb.on-dark i::after { box-shadow: inset 0 0 0 2px #2A2926, inset 18px 0 0 0 currentColor; }
@media (min-width: 1100px) { .phone { --k: .8; } }
@media (max-width: 380px) { .phone { --k: .66; } }

.s-pad { padding: 0 20px; }
.s-eyebrow { font: 500 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.s-card { background: var(--surface); border-radius: 20px; padding: 18px; border: .75px solid var(--border); }
.s-rule { height: .5px; background: var(--border-subtle); }
.s-title { font: 600 17px/1.2 var(--sans); }
.s-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.s-label { font: 500 13px/1.2 var(--sans); color: var(--text-2); }
.s-sat { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; }
.s-mono { font-family: var(--mono); font-size: 11px; }
.s-btn { height: 52px; border-radius: 14px; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; font: 500 16px/1 var(--sans); }
.s-chip { height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; font: 500 13px/1 var(--sans); background: var(--surface); border: .75px solid var(--border); }
.s-chip.on { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.s-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.s-ground { position: relative; background: var(--graphite); color: var(--ivory); overflow: hidden; }
.s-ground > svg.ghost { position: absolute; left: -40px; width: calc(100% + 80px); opacity: .22; }
.s-ground .s-eyebrow { color: rgba(244, 241, 235, .8); }
.s-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; display: flex; padding: 8px 8px 0; background: var(--bg-2); border-top: .5px solid var(--border-subtle); }
.s-tabs div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--text-3); }
.s-tabs div.on { color: var(--text); font-weight: 500; }
.s-tabs svg { height: 24px; width: 22px; }
.s-home { position: absolute; bottom: 8px; left: 50%; margin-left: -70px; width: 140px; height: 5px; border-radius: 3px; background: var(--text); }
.face { width: 40px; height: 40px; }
.face circle.ring { fill: none; stroke: var(--border); }
.face.on circle.ring { fill: var(--sage); stroke: var(--sage); }
.face .ink { fill: var(--text-2); }
.face path.ink { fill: none; stroke: var(--text-2); }
.face.on .ink { fill: #fff; }
.face.on path.ink { stroke: #fff; fill: none; }
.heat { display: grid; grid-template-columns: repeat(6, auto); justify-content: space-between; column-gap: 8px; row-gap: 14px; }
.heat .m { font-size: 10px; color: var(--text-3); margin-bottom: 5px; }
.heat .g { display: grid; grid-template-columns: repeat(7, 6.2px); gap: 1.5px; }
.heat .g span { width: 6.2px; height: 6.2px; border-radius: 1.2px; background: var(--heat-0); }
.heat .g span.b { background: transparent; }
.heat .g span[data-l="1"] { background: var(--heat-2); }
.heat .g span[data-l="2"] { background: var(--heat-3); }
.heat .g span[data-l="3"] { background: var(--heat-4); }
.heat .g span[data-l="4"] { background: var(--heat-5); }

/* ——— The ritual: closing + poster (always night) ————————————————————— */
.ritual { background: var(--black); color: var(--ivory); padding: clamp(88px, 12vw, 160px) 0; position: relative; overflow: hidden; }
.ritual .lede { color: var(--night-text2); }
.ritual h2 { font-size: clamp(34px, 5vw, 60px); max-width: 13ch; }
.ritual-top .ritual-copy { margin-top: 28px; }
.ritual-art { margin-top: clamp(56px, 7vw, 96px); }
.ritual-copy p + p { margin-top: 16px; }
.ritual-copy .quiet { font-size: 15px; color: var(--night-text3); }
.ritual-art { position: relative; display: flex; gap: clamp(20px, 4vw, 56px); align-items: flex-end; justify-content: center; }
@media (min-width: 900px) {
  .ritual-top { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: end; }
  .ritual-copy { columns: 2; column-gap: 48px; }
  .ritual-copy p { break-inside: avoid; }
}
.ritual-copy .lede { font-size: 17px; }
.ritual .phone { box-shadow: inset 0 0 0 1px #34322D; }
/* Inside the ritual the recreated screen stays in light mode — it is the app, shown on the night canvas. */
.ritual .screen, .ritual .phone-screen {
  --bg: #F4F1EB; --bg-2: #FBFAF7; --bg-3: #E9E6DE; --surface: #FBFAF7;
  --text: #0E0E0D; --text-2: #6B6A64; --text-3: #96938B; --border: #D9D6CE; --border-subtle: #E5E1D9;
  --ink: #0E0E0D; --on-ink: #F4F1EB; --clay: #C67F6A;
}

.poster-frame { --pk: .34; width: calc(1080px * var(--pk)); height: calc(1528px * var(--pk)); position: relative; flex: none; outline: 1px solid #2A2926; }
.poster {
  position: absolute; left: 0; top: 0; width: 1080px; height: 1528px; transform: scale(var(--pk)); transform-origin: 0 0;
  background: #0E0E0D; color: var(--ivory); padding: 72px; overflow: hidden; font-family: var(--sans);
}
.poster .p-top { display: flex; justify-content: space-between; font: 500 20px/1 var(--sans); letter-spacing: .14em; position: relative; }
.poster .p-top b { color: #C67F6A; font-weight: 500; }
.poster .p-name { position: relative; font-family: var(--display); font-weight: 500; font-size: 150px; line-height: .98; letter-spacing: -.035em; margin-top: 150px; }
.poster .p-date { position: relative; font-size: 22px; letter-spacing: .14em; color: #D9D6CE; margin-top: 36px; }
.poster .p-line { position: absolute; left: -40px; top: 130px; width: 1070px; height: 770px; }
.poster .p-time { position: absolute; left: 72px; top: 930px; font-weight: 200; font-size: 210px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.poster .p-stats { position: absolute; left: 72px; right: 72px; top: 1180px; display: flex; border-top: 1px solid rgba(244, 241, 235, .18); padding-top: 24px; }
.poster .p-stats div { flex: 1; font-size: 44px; font-variant-numeric: tabular-nums; }
.poster .p-stats small { display: block; font-size: 20px; color: #817E76; margin-top: 4px; }
.poster .p-weeks { position: absolute; left: 72px; right: 72px; top: 1330px; height: 70px; display: flex; align-items: flex-end; gap: 6px; }
.poster .p-weeks span { flex: 1; background: rgba(244, 241, 235, .85); }
.poster .p-weeks span.peak { background: #C67F6A; }
.poster .p-foot { position: absolute; left: 72px; right: 72px; bottom: 48px; display: flex; justify-content: space-between; align-items: center; }
.poster .p-foot .s-mono { font-size: 18px; color: #817E76; }
.poster .p-foot svg { height: 22px; width: auto; color: var(--ivory); }
.poster .p-foot svg path { stroke-width: 6.5; }
@media (min-width: 720px) { .poster-frame { --pk: .4; } }
@media (min-width: 1100px) { .poster-frame { --pk: .44; } }
@media (max-width: 560px) {
  .ritual-art { flex-direction: column; align-items: center; gap: 32px; }
  .poster-frame { --pk: .3; }
}

.also { margin-top: clamp(64px, 8vw, 104px); padding-top: 28px; border-top: 1px solid rgba(244, 241, 235, .12); display: grid; gap: 20px; }
.also h3 { font-family: var(--display); font-size: 24px; letter-spacing: -.01em; }
.also p { color: var(--night-text2); max-width: 36em; }
@media (min-width: 900px) { .also { grid-template-columns: 5fr 7fr; gap: 72px; } }

/* ——— Strava ——————————————————————————————————————————————————————— */
.strava { padding: clamp(80px, 10vw, 128px) 0; border-bottom: 1px solid var(--border-subtle); }
.strava .wrap { display: grid; gap: 28px; }
.strava h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 16ch; }
.strava p { color: var(--text-2); max-width: 32em; }
.strava p + p { margin-top: 14px; }
.compat { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; font: 500 14px/1 var(--sans); color: var(--text-2); padding: 12px 16px; border: 1px solid var(--border); border-radius: 999px; }
@media (min-width: 900px) { .strava .wrap { grid-template-columns: 5fr 7fr; gap: 72px; } }

/* ——— Closing call: your own countdown ————————————————————————————— */
.close { padding: clamp(96px, 13vw, 176px) 0 clamp(80px, 10vw, 128px); }
.close h2 { font-size: clamp(34px, 5vw, 60px); max-width: 14ch; }
.close .lede { margin-top: 18px; }
.countdown { margin-top: clamp(40px, 6vw, 64px); display: grid; gap: 28px; align-items: end; }
.countdown label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.countdown input {
  font: 400 18px/1 var(--sans); color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; height: 52px; padding: 0 16px; min-width: 220px;
}
.cd-days { font-weight: 300; font-size: clamp(88px, 14vw, 168px); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cd-unit { font-size: clamp(20px, 2.2vw, 26px); color: var(--text-2); margin-top: 6px; }
.cd-line { height: clamp(48px, 7vw, 90px); margin-top: 28px; }
.cd-line svg { width: 100%; height: 100%; overflow: visible; }
.cd-line path { fill: none; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cd-line .track { stroke: var(--text); stroke-opacity: .14; }
.cd-line .drawn { stroke: var(--text); transition: stroke-dashoffset .7s var(--settle); }
.cd-ends { display: flex; justify-content: space-between; font: 400 12px/1 var(--mono); color: var(--text-3); margin-top: 10px; letter-spacing: .04em; }
.cd-note { font-size: 15px; color: var(--text-2); min-height: 1.5em; }
@media (min-width: 900px) { .countdown { grid-template-columns: 4fr 8fr; gap: 64px; } }
.close-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(48px, 6vw, 72px); align-items: center; }
.close-cta .quiet { font-size: 15px; color: var(--text-3); }

/* ——— Footer ——————————————————————————————————————————————————————— */
.foot { border-top: 1px solid var(--border-subtle); padding: 40px 0 48px; font-size: 14px; color: var(--text-2); }
.foot .wrap { display: grid; gap: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { text-decoration: none; padding: 6px 0; }
.foot nav a:hover { color: var(--text); }
.foot .wordmark { height: 14px; width: auto; color: var(--text); }
.foot .wordmark path { stroke-width: 6.5; }
.foot .legal { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); max-width: 60em; }
@media (min-width: 900px) { .foot .wrap { grid-template-columns: auto 1fr auto; align-items: center; } .foot nav { justify-content: center; } }

/* ——— Document pages (privacy, terms, support) ———————————————————————— */
.doc-head { border-bottom: 1px solid var(--border-subtle); }
.doc-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.doc-head .wordmark { height: 14px; width: auto; color: var(--text); }
.doc-head .wordmark path { stroke-width: 6.5; }
.doc-head a.back { font-size: 15px; color: var(--text-2); text-decoration: none; }
.doc { max-width: 720px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) clamp(72px, 9vw, 120px); }
.doc h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 52px); letter-spacing: -.02em; line-height: 1.05; }
.doc .updated { color: var(--text-3); font-size: 14px; margin-top: 14px; }
.doc .intro { font-size: 19px; color: var(--text-2); margin-top: 28px; }
.doc h2 { font-family: var(--display); font-size: 24px; letter-spacing: -.01em; margin-top: 56px; }
.doc h3 { font-size: 17px; font-weight: 600; margin-top: 28px; }
.doc p, .doc ul, .doc table { margin-top: 14px; }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 8px; }
.doc li, .doc p { color: var(--text-2); }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--text); text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--border-subtle); color: var(--text-2); }
.doc th { color: var(--text); font-weight: 600; }
.doc .table-scroll { overflow-x: auto; }
.doc .draft { margin-top: 28px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; font-size: 14px; color: var(--text-2); background: var(--surface); }
.doc details { border-top: 1px solid var(--border-subtle); padding: 18px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--border-subtle); }
.doc summary { cursor: pointer; font-weight: 500; color: var(--text); list-style: none; }
.doc summary::-webkit-details-marker { display: none; }
.doc summary::after { content: "+"; float: right; color: var(--text-3); }
.doc details[open] summary::after { content: "–"; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ——— The line, small (inside recreated screens) ————————————————————— */
.ln { position: relative; }
.ln svg { width: 100%; height: 100%; overflow: visible; }
.ln path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ln .tr { stroke-opacity: .16; }
.ln .pt { position: absolute; right: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--clay); }
.ln .pt.fill { background: var(--clay); }
.ln.thick path { stroke-width: 2; }
.ln.thick .pt { width: 10px; height: 10px; right: -5px; top: -5px; }
.poster .p-line { color: #F4F1EB; }
.bars > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bars i { display: block; width: 6px; border-radius: 3px; background: var(--sage-soft); align-self: center; }
.bars s { display: block; width: 4px; height: 4px; border-radius: 2px; background: var(--border); margin-top: 40px; text-decoration: none; }
.bars > div { justify-content: flex-end; height: 64px; }
.bars b { font-size: 10px; font-weight: 400; color: var(--text-3); }
.bars .today i { background: var(--text); }
.bars .today b { font-weight: 600; color: var(--text); }
.ms > div { padding: 16px; background: var(--surface); border-radius: 14px; border: .75px solid var(--border); }
.ms .s-label { display: flex; justify-content: space-between; align-items: center; }
.ms .s-label i { width: 6px; height: 6px; border-radius: 3px; background: var(--clay); }
.ms .num { font-size: 20px; margin-top: 6px; }
.ms small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
@media (max-width: 600px) {
  .doc thead { display: none; }
  .doc tr { display: block; border-top: 1px solid var(--border-subtle); padding: 12px 0; }
  .doc td { display: block; border: 0; padding: 2px 0; }
  .doc td:first-child { color: var(--text); }
}
