/* Archivo (SIL Open Font License, assets/fonts/OFL.txt), served from this site so no visitor data goes to a font CDN. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("assets/fonts/archivo.woff2") format("woff2"); }
/* Adapt website. Same Obsidian identity as the app (D-037): near-black, signal yellow, Archivo. */
:root {
  --obsidian: #07080a;
  --graphite: #101216;
  --raised: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --bone: #eef0f3;
  --ash: #8b93a0;
  --faint: #5c636e;
  --signal: #ffc93c;
  --bright: #ffe08a;
  --ember: #ff9f2e;
  --on-signal: #141006;
  --wide: "Archivo", system-ui, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--bone);
  font-family: var(--wide);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* Type: the expanded cut of Archivo for headlines and figures, normal width for reading. */
.display, h1, h2, h3 { font-stretch: 125%; font-weight: 750; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.04em; font-weight: 800; }
h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #c9ced6; max-width: 34ch; }
.muted { color: var(--ash); }
.measure { max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 650 16px/1 var(--wide); text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--bright), var(--signal) 45%, var(--ember)); color: var(--on-signal); box-shadow: 0 8px 28px rgba(255, 201, 60, 0.32); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(255, 201, 60, 0.42); }
.btn-ghost { background: var(--raised); color: var(--bone); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(7, 8, 10, 0.72); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px var(--wide); font-stretch: 125%; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links + .btn { margin-left: 0; }
.nav-links a { text-decoration: none; color: var(--ash); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--bone); }
.nav .btn { margin-left: auto; min-height: 40px; padding: 0 18px; font-size: 14px; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* Hero: the one bold moment. A yellow ring draws in behind the real Today screen. */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 1100px; height: 900px; left: 50%; top: -420px; transform: translateX(-30%);
  background: radial-gradient(closest-side, rgba(255, 201, 60, 0.22), rgba(255, 159, 46, 0.06) 55%, transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { margin-top: 8px; }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--faint); }
.stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.stage svg.ring { position: absolute; width: min(560px, 120%); height: auto; overflow: visible; }
.ring .track { stroke: rgba(255, 255, 255, 0.07); }
.ring .arc { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.8s cubic-bezier(.22, .9, .25, 1) 0.25s forwards; filter: drop-shadow(0 0 18px rgba(255, 201, 60, 0.55)); }
@keyframes draw { to { stroke-dashoffset: 330; } }
@media (prefers-reduced-motion: reduce) { .ring .arc { animation: none; stroke-dashoffset: 330; } html { scroll-behavior: auto; } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { min-height: 560px; }
}

/* Phones */
.phone {
  position: relative; width: 300px; aspect-ratio: 390 / 800; border-radius: 46px; padding: 10px;
  background: linear-gradient(160deg, #2a2c31, #0d0e11 40%, #1b1c20); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone .screen { height: 100%; border-radius: 37px; overflow: hidden; background: var(--obsidian); position: relative; padding-top: 44px; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px); mask-image: linear-gradient(to bottom, transparent 0, #000 22px); }
.phone .screen::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 2; }
.phone.sm { width: 260px; }

/* Facts under the hero: plain statements, no icons. */
.facts { border-block: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts p { padding: 22px 20px 22px 0; font-weight: 600; font-size: 15px; color: #c9ced6; }
.facts p + p { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 760px) { .facts .wrap { grid-template-columns: 1fr; } .facts p + p { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } }

section { padding: 110px 0; }
@media (max-width: 760px) { section { padding: 76px 0; } }
.section-head { max-width: 760px; margin-bottom: 24px; }
.section-head p { margin-top: 18px; font-size: 19px; color: #c9ced6; }

/* Adaptation: the plan's own explanation, set as the product shows it. */
.adapt { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.change {
  border-radius: 26px; padding: 26px; border: 1px solid rgba(255, 201, 60, 0.38);
  background: linear-gradient(160deg, rgba(255, 201, 60, 0.15), rgba(255, 201, 60, 0.03) 55%, rgba(255, 255, 255, 0.02));
}
.change .tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--signal); }
.change h3 { margin-top: 8px; font-size: 24px; }
.change p { margin-top: 10px; color: #c9ced6; }
.change ul { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.change li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: #c9ced6; }
.change li b { color: var(--bone); font-weight: 600; }
.example { margin-top: 12px; font-size: 13px; color: var(--faint); }
.rules { display: grid; gap: 22px; margin-top: 30px; }
.rules div { padding-left: 18px; border-left: 2px solid var(--signal); }
.rules b { display: block; font-size: 17px; }
.rules span { color: var(--ash); font-size: 15.5px; }
@media (max-width: 900px) { .adapt { grid-template-columns: 1fr; } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; }
.feature h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.08; letter-spacing: -0.03em; }
.feature p { margin-top: 16px; color: #c9ced6; max-width: 46ch; }
.feature .small { margin-top: 14px; font-size: 14.5px; color: var(--ash); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 36px; } .feature.flip .feature-media { order: 0; } }

/* Athlete profile illustration (built in HTML, example values) */
.profile { width: min(420px, 100%); border-radius: 26px; padding: 26px; background: var(--raised); border: 1px solid var(--line); }
.profile .area { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.profile .area:last-of-type { border-bottom: 0; }
.profile .area span { font-weight: 600; }
.profile .area em { font-style: normal; font-size: 13px; color: var(--ash); }
.profile .area em.focus { color: var(--ember); font-weight: 600; }
.profile .bar { grid-column: 1 / -1; height: 7px; border-radius: 9px; background: rgba(255, 255, 255, 0.07); position: relative; overflow: hidden; }
.profile .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 9px; background: linear-gradient(90deg, var(--bright), var(--signal), var(--ember)); }
.profile .target { position: absolute; top: 0; bottom: 0; left: 77%; width: 2px; background: var(--bone); }

/* Substitutes */
.subs { width: min(440px, 100%); border-radius: 26px; padding: 22px 26px; background: var(--raised); border: 1px solid var(--line); }
.subs h4 { margin: 0 0 6px; font: 700 18px var(--wide); font-stretch: 115%; }
.subs .row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.subs .row b { font-weight: 600; }
.subs .rate { font-size: 13px; color: var(--signal); font-weight: 600; white-space: nowrap; }
.subs .rate.fb { color: var(--ash); }

/* Share cards */
.cards { display: flex; gap: 20px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.cards img { width: 250px; flex: none; border-radius: 22px; scroll-snap-align: start; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }

/* Steps: a real sequence, so numbered. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; padding: 0; margin: 0; }
.steps li { list-style: none; padding-top: 24px; border-top: 2px solid var(--signal); }
.steps li::before { counter-increment: step; content: counter(step); display: block; font: 800 46px/1 var(--wide); font-stretch: 125%; color: var(--signal); margin-bottom: 14px; }
.steps b { display: block; font-size: 19px; }
.steps span { display: block; margin-top: 8px; color: var(--ash); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Comparison */
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 14px; color: var(--ash); font-weight: 600; }
.compare thead th:last-child { color: var(--signal); }
.compare td:nth-child(2) { color: var(--faint); }
.compare td:last-child { color: var(--bone); font-weight: 600; }
.compare td:first-child { color: #c9ced6; width: 44%; }

/* Coach */
.coach h2 { font-size: clamp(30px, 3.6vw, 46px); }
.coach { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.coach blockquote { margin: 0; font: 650 clamp(24px, 2.6vw, 32px)/1.25 var(--wide); font-stretch: 112%; letter-spacing: -0.02em; }
.coach .by { margin-top: 18px; color: var(--ash); }
@media (max-width: 900px) { .coach { grid-template-columns: 1fr; gap: 28px; } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; font-weight: 650; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; color: var(--signal); font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: #c9ced6; max-width: 66ch; }

/* Join */
.join { text-align: center; position: relative; overflow: hidden; }
.join::before { content: ""; position: absolute; inset: 20% -20% -60%; background: radial-gradient(closest-side, rgba(255, 201, 60, 0.18), transparent); pointer-events: none; }
.join .wrap { position: relative; }
.join h2 { max-width: 15ch; margin-inline: auto; }
.join p { margin: 18px auto 0; color: #c9ced6; max-width: 46ch; }
.join form { display: flex; gap: 10px; max-width: 520px; margin: 34px auto 0; }
.join input[type="email"] {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--raised); color: var(--bone); font: 500 16px var(--wide);
}
.join input::placeholder { color: var(--faint); }
.join .status { min-height: 24px; margin-top: 14px; font-size: 15px; }
.join .status.ok { color: var(--signal); }
.join .status.err { color: #ff8a96; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 560px) { .join form { flex-direction: column; } }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: 14.5px; color: var(--ash); }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--bone); }
footer .legal { grid-column: 1 / -1; font-size: 13px; color: var(--faint); max-width: 80ch; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr; } }

/* Text pages (privacy, support) */
.page { padding: 64px 0 100px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); }
.page h2 { font-size: 24px; margin-top: 44px; letter-spacing: -0.02em; }
.page p, .page li { color: #c9ced6; }
.page p { margin-top: 14px; }
.page ul { padding-left: 20px; }
.page li { margin-top: 8px; }
.page .updated { margin-top: 12px; color: var(--ash); }

/* Founding Athlete Challenge page (D-053). */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.founding-hero .wrap { grid-template-columns: 1fr; }
.founding-hero h1 { max-width: 18ch; }
.founding-hero .lead { max-width: 52ch; }
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--signal); }
.deal { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.deal > div, .level { background: var(--graphite); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.deal h3, .level h3 { font-size: 22px; }
.ticks { margin: 18px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 26px; margin-top: 14px; color: #c9ced6; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 3px; background: var(--signal); }
.ticks b { color: var(--bone); }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.level .tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--signal); margin-bottom: 8px; }
.level p { margin-top: 10px; color: #c9ced6; }
.level b { color: var(--bone); }
.terms-note { color: var(--ash); font-size: 13px; text-decoration: underline; white-space: nowrap; }
.terms { padding-top: 0; }
.terms h2 { font-size: 18px; color: var(--ash); }
.terms ul { margin-top: 12px; padding-left: 18px; font-size: 13px; color: var(--ash); max-width: 80ch; }
.terms li { margin-top: 6px; }
.terms b { color: #c9ced6; }
@media (max-width: 900px) { .deal, .levels { grid-template-columns: 1fr; } }

.apply form { max-width: 760px; }
.apply fieldset { border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin: 0 0 20px; min-width: 0; }
.apply legend { padding: 0 8px; font-weight: 700; font-stretch: 125%; font-size: 18px; }
.apply .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.apply .field { margin-top: 14px; }
.apply label { display: block; font-weight: 600; font-size: 15px; }
.apply .req { color: var(--signal); }
.apply input:not([type="checkbox"]), .apply select, .apply textarea {
  display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--raised); color: var(--bone); font: 500 16px var(--wide);
}
.apply select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.apply select option { background: var(--graphite); color: var(--bone); }
.apply input[type="date"] { color-scheme: dark; }
.apply textarea { resize: vertical; line-height: 1.45; }
.apply input::placeholder, .apply textarea::placeholder { color: var(--faint); }
.apply :is(input, select, textarea)[aria-invalid="true"] { border-color: #ff8a96; }
.apply :is(input, select, textarea, .form-error) { scroll-margin-top: 110px; }
.apply .check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin-top: 16px; }
.apply .check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--signal); }
.apply .check label { font-weight: 500; color: #c9ced6; }
.apply .check .field-error { grid-column: 2; }
.apply .hint { margin: 6px 0 0; font-size: 14px; color: var(--ash); }
.apply .field-error { margin: 6px 0 0; font-size: 14px; color: #ff8a96; }
.apply .form-error { margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; border: 1px solid #ff8a96; color: #ffb3bb; }
.apply button[type="submit"] { margin-top: 8px; min-height: 52px; }
.apply button[disabled] { opacity: 0.55; cursor: not-allowed; }
.apply .status { min-height: 24px; margin-top: 14px; font-size: 16px; max-width: 760px; }
.apply .status.ok { color: var(--signal); }
.apply .status.err { color: #ff8a96; }
@media (max-width: 560px) { .apply .grid { grid-template-columns: 1fr; } .apply fieldset { padding: 18px 16px; } }
.join .join-actions { justify-content: center; margin-top: 28px; }
.join .join-alt { margin-top: 40px; font-size: 15px; }
.join .join-alt + form { margin-top: 16px; }
.eyebrow a { color: inherit; text-decoration: none; }
