/*
Theme Name: MJM Run Club
Author: MJM Run Club
Description: Athletic-editorial theme for MJM Run Club — coaching for amateur runners by Olympic marathoner Mohammad Jafar Moradi. Persian RTL + English LTR.
Version: 2.1.0
Text Domain: mjm
*/

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/vazirmatn-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/vazirmatn-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("assets/fonts/vazirmatn-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Anton"; src: url("assets/fonts/anton-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2192, U+2212; }

/* ---------- Tokens ---------- */
:root {
    --ink: #06102e;
    --ink-2: #0c1a45;
    --blue: #1447ff;
    --blue-2: #0b34d6;
    --sky: #dfe7ff;
    --paper: #f3f5fa;
    --white: #fff;
    --volt: #d8ff3c;
    --muted: #5b6480;
    --line: #dbe0ec;
    --radius: 18px;
    --container: 1200px;
    --display: "Anton", "Vazirmatn", system-ui, sans-serif;
    --body: "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;
    --shadow: 0 24px 60px -24px rgba(6, 16, 46, .35);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.85; overflow-x: clip; }
.is-ltr { line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 900; }
p { margin: 0 0 1em; }
em { font-style: normal; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--volt); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
.section :focus-visible, .apply :focus-visible { outline-color: var(--blue); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent; font: 900 16px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-volt { background: var(--blue); color: var(--white); box-shadow: 0 12px 28px -12px rgba(20, 71, 255, .8); }
.btn-volt:hover { background: var(--blue-2); }
.hero .btn-volt, .apply .btn-volt, .section--blue .btn-volt, .section--ink .btn-volt, .free .btn-volt, .site-footer .btn-volt { background: var(--volt); color: var(--ink); box-shadow: 0 12px 28px -12px rgba(216, 255, 60, .6); }
.hero .btn-volt:hover, .apply .btn-volt:hover, .section--blue .btn-volt:hover, .section--ink .btn-volt:hover, .free .btn-volt:hover, .site-footer .btn-volt:hover { background: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }
.section--blue .btn-line, .section--ink .btn-line, .bib-quiz .btn-line { border-color: currentColor; color: inherit; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-reset { background: none; border: 0; color: inherit; opacity: .7; text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; margin-top: 10px; padding: 8px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 50; color: var(--white); transition: background .3s, box-shadow .3s; }
.site-header.is-solid { background: rgba(6, 16, 46, .92); backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(0, 0, 0, .15); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { font: 400 26px/1 var(--display); letter-spacing: .02em; background: var(--blue); color: var(--white); padding: 8px 10px 6px; border-radius: 8px; transform: skewX(-8deg); }
.brand__name { font: 400 18px/1 var(--display); letter-spacing: .12em; }
.nav__links { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 15px; }
.nav__links a:not(.btn) { text-decoration: none; opacity: .85; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__links a:not(.btn):hover, .nav__links a[aria-current="page"] { opacity: 1; border-color: var(--volt); }
.nav__free { color: var(--volt); }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .12); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav__toggle span:not(.sr-only) { width: 20px; height: 2px; background: var(--white); transition: transform .3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.9) contrast(1.05); animation: breathe 18s var(--ease) infinite alternate; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 16, 46, .55) 0%, rgba(6, 16, 46, .25) 35%, rgba(6, 16, 46, .92) 100%), linear-gradient(90deg, rgba(20, 71, 255, .35), transparent 60%); mix-blend-mode: normal; }
.hero::after { content: ""; position: absolute; inset-inline-end: -10%; bottom: 0; width: 60%; height: 14px; background: var(--blue); transform: skewX(-30deg); }
.hero__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; padding: 140px 0 84px; }
.hero__copy { max-width: 720px; }
.kicker { display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .02em; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; margin-bottom: 20px; backdrop-filter: blur(6px); }
.display { font-size: clamp(38px, 6.2vw, 78px); line-height: 1.12; letter-spacing: -.01em; }
.is-ltr .display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.02; letter-spacing: .005em; }
.display em { color: var(--volt); }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 600px; opacity: .92; margin-top: 20px; }
.photo-note { position: absolute; bottom: 22px; inset-inline-start: 16px; font-size: 11px; opacity: .55; }
@keyframes breathe { from { transform: scale(1.02); } to { transform: scale(1.1); } }

/* ---------- Race clock ---------- */
.race-clock { display: inline-flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.race-clock__time { display: flex; align-items: baseline; font: 400 clamp(64px, 11vw, 150px)/.9 var(--display); color: var(--white); letter-spacing: .01em; }
.race-clock__time i { font-style: normal; color: var(--volt); padding-inline: .04em; animation: blink 1s steps(1) infinite; }
.race-clock__time span { font-variant-numeric: tabular-nums; }
.race-clock__label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; opacity: .9; }
.race-clock__label .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 4px rgba(255, 59, 59, .25); animation: pulse 1.6s infinite; }
.hero__side .race-clock__time { font-size: clamp(72px, 9vw, 130px); }
.section:not(.section--ink):not(.section--blue) .race-clock__time, .author-card .race-clock__time { color: var(--ink); }
.stat-card .race-clock__time, .author-card .race-clock__time { font-size: clamp(56px, 7vw, 92px); }
.author-card .race-clock__time { font-size: 54px; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 59, 59, 0); } }

/* ---------- Ticker ---------- */
.ticker { background: var(--blue); color: var(--white); overflow: hidden; border-block: 3px solid var(--ink); transform: rotate(-1deg); margin: -10px 0 0; position: relative; z-index: 2; }
.ticker__track { display: flex; width: max-content; gap: 28px; padding: 16px 0; font-weight: 900; font-size: 18px; white-space: nowrap; animation: marquee 38s linear infinite; }
.ticker__track b { color: var(--volt); }
[dir="rtl"] .ticker__track { animation-name: marquee-rtl; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tight { padding-top: 48px; }
.section--ink { background: var(--ink); color: var(--white); }
.section--blue { background: var(--blue); color: var(--white); overflow: hidden; }
.section--blue::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: -8%; width: 38%; background: repeating-linear-gradient(-60deg, rgba(255, 255, 255, .07) 0 14px, transparent 14px 40px); pointer-events: none; }
.section--paper { background: var(--paper); }
.sec-head { margin-bottom: 44px; max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 14px; color: var(--blue); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 4px; background: currentColor; transform: skewX(-30deg); }
.section--ink .eyebrow, .eyebrow--volt, .sec-head--light .eyebrow { color: var(--volt); }
.sec-head h2, .apply h2, .free h2 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.2; letter-spacing: -.01em; }
.is-ltr .sec-head h2, .is-ltr .apply h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.05; }
.sec-head h2 em, .apply h2 em { color: var(--blue); }
.section--ink .sec-head h2 em, .apply h2 em { color: var(--volt); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.section--ink .lead, .section--blue .lead, .lead--light { color: rgba(255, 255, 255, .82); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
.row-head .sec-head { margin: 0; }
.todo-inline { display: inline-block; font-size: 13px; background: #fff6cc; color: #6b5500; border: 1px dashed #d9b400; padding: 6px 12px; border-radius: 8px; margin-top: 18px; }
.todo-inline--light { background: rgba(255, 255, 255, .1); color: var(--white); border-color: rgba(255, 255, 255, .4); }
.sources { font-size: 13px; color: var(--muted); margin-top: 28px; }

/* ---------- Bib quiz ---------- */
.bib-quiz { background: var(--white); color: var(--ink); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); position: relative; max-width: 460px; margin-inline-start: auto; }
.bib-quiz--compact { margin-inline: auto; text-align: start; }
.bib-quiz__head { border-bottom: 2px dashed var(--line); padding-bottom: 16px; margin-bottom: 18px; position: relative; }
.pin { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); top: -12px; }
.bib-quiz__head .pin:first-child { inset-inline-start: -12px; }
.bib-quiz__head .pin:nth-child(2) { inset-inline-end: -12px; }
.bib-quiz__title { font-weight: 900; font-size: 22px; margin: 0; }
.bib-quiz__sub { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.bib-quiz__steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 14px 0 0; }
.bib-quiz__steps li { flex: 1; height: 5px; border-radius: 4px; background: var(--line); transition: background .3s; }
.bib-quiz__steps li.is-on { background: var(--blue); }
.bib-quiz__q { border: 0; padding: 0; margin: 0 0 14px; }
.js .bib-quiz__q[data-later], .js .bib-quiz__q.is-done { display: none; }
.bib-quiz__q legend { font-weight: 900; font-size: 17px; margin-bottom: 12px; padding: 0; }
.bib-quiz__q .num { color: var(--blue); font-size: 13px; margin-inline-end: 6px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: flex; align-items: center; min-height: 52px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 15px; line-height: 1.4; transition: border-color .2s, background .2s, transform .2s; }
.chip:hover span { border-color: var(--blue); transform: translateY(-1px); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.bib-quiz__result { text-align: center; animation: pop .5s var(--ease); }
.bib { position: relative; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 18px 16px 16px; display: grid; gap: 2px; }
.bib .pin { top: 8px; background: var(--white); border-color: var(--ink); width: 9px; height: 9px; }
.bib .pin:nth-child(1) { inset-inline-start: 8px; } .bib .pin:nth-child(2) { inset-inline-end: 8px; }
.bib .pin:nth-child(3) { inset-inline-start: 8px; top: auto; bottom: 8px; } .bib .pin:nth-child(4) { inset-inline-end: 8px; top: auto; bottom: 8px; }
.bib__brand { font: 400 13px/1 var(--display); letter-spacing: .2em; color: var(--blue); }
.bib__num { font: 400 88px/1 var(--display); color: var(--ink); }
.bib__goal { font-weight: 900; font-size: 15px; background: var(--volt); padding: 4px 10px; border-radius: 6px; justify-self: center; }
.bib-quiz__verdict { margin: 16px 0 0; font-weight: 700; }
.bib-quiz__result .actions { justify-content: center; margin-top: 16px; }
.bib-quiz__result .btn-volt { background: var(--blue); color: var(--white); box-shadow: none; }
.bib-quiz__result .btn-line { border-color: var(--ink); color: var(--ink); }
@keyframes pop { from { transform: scale(.9) rotate(-2deg); opacity: 0; } }

/* ---------- Paths ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.path { position: relative; display: block; min-height: 460px; border-radius: var(--radius); overflow: hidden; color: var(--white); text-decoration: none; isolation: isolate; background: var(--ink); }
.path img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.path::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 25%, rgba(6, 16, 46, .95)); transition: background .4s; }
.path:hover img { transform: scale(1.07); }
.path:hover::before { background: linear-gradient(180deg, rgba(20, 71, 255, .2) 0%, rgba(20, 71, 255, .95)); }
.path__bib { position: absolute; top: 18px; inset-inline-start: 18px; font: 400 32px/1 var(--display); background: var(--white); color: var(--ink); padding: 10px 14px 8px; border-radius: 10px; }
.path__body { position: absolute; inset-inline: 22px; bottom: 22px; }
.path .eyebrow { color: var(--volt); margin-bottom: 6px; }
.path h3 { font-size: 24px; margin-bottom: 6px; }
.path p { opacity: .85; margin-bottom: 12px; }
.path__go { font-weight: 900; color: var(--volt); }

/* ---------- Pain list / diagnosis ---------- */
.pain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pain-list li { display: flex; gap: 18px; padding: 22px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08); }
.pain-list h3 { font-size: 19px; margin-bottom: 4px; }
.pain-list p { margin: 0; color: rgba(255, 255, 255, .7); }
.spl { font-variant-numeric: tabular-nums; }
.pain-list .spl, .apply__steps .spl { font: 400 30px/1 var(--display); color: var(--volt); flex: none; }
.diag { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.diag article { padding: 24px 20px; border-radius: var(--radius); background: var(--paper); border-top: 5px solid var(--blue); }
.diag span { font: 400 36px/1 var(--display); color: var(--blue); }
.diag h3 { font-size: 18px; margin: 14px 0 6px; }
.diag p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Coach ---------- */
.coach__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.coach__photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper); }
.coach__photo img { width: 100%; height: 100%; object-fit: cover; }
.coach__photo::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, rgba(20, 71, 255, .55)); }
.coach__photo figcaption { position: absolute; bottom: 14px; inset-inline-start: 14px; z-index: 1; font-size: 12px; color: var(--white); background: rgba(6, 16, 46, .6); padding: 4px 10px; border-radius: 6px; }
.splits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 28px 0; border-block: 2px solid var(--ink); }
.splits div { padding: 16px 0; border-inline-start: 1px solid var(--line); padding-inline: 14px; }
.splits div:first-child { border: 0; padding-inline-start: 0; }
.splits dt { font-size: 13px; color: var(--muted); font-weight: 700; }
.splits dd { margin: 0; font: 400 clamp(28px, 3.5vw, 42px)/1.1 var(--display); color: var(--blue); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.steps li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(4px); }
.step__n { display: block; font: 400 64px/1 var(--display); color: var(--volt); margin-bottom: 14px; }
.steps h3 { font-size: 22px; margin-bottom: 6px; }
.steps p { margin: 0; opacity: .85; }

/* ---------- Club ---------- */
.spots { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.spots li { padding: 10px 16px; border-radius: 999px; background: var(--sky); color: var(--blue-2); font-size: 15px; }
.spots li::before { content: "● "; color: var(--blue); }
.club__photo { margin: 0; border-radius: var(--radius); overflow: hidden; transform: rotate(1.5deg); box-shadow: var(--shadow); }

/* ---------- Proof ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proof-bib { position: relative; background: var(--white); border: 2px dashed #b8c2dd; border-radius: var(--radius); padding: 30px 24px 22px; text-align: center; }
.proof-bib .pin { top: 10px; background: var(--paper); }
.proof-bib .pin:first-child { inset-inline-start: 12px; } .proof-bib .pin:nth-child(2) { inset-inline-end: 12px; }
.proof-bib__label { font-weight: 900; font-size: 14px; color: var(--blue); }
.proof-bib strong { display: block; font: 400 64px/1.1 var(--display); color: #c3cbe0; }
.proof-bib__arrow { font: 400 26px/1 var(--display); color: var(--blue); }
.proof-bib p { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Free plan ---------- */
.free { background: var(--ink); color: var(--white); padding: clamp(72px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.free::before { content: "30"; position: absolute; inset-inline-end: -2%; top: 50%; transform: translateY(-50%); font: 400 min(46vw, 560px)/1 var(--display); color: rgba(20, 71, 255, .22); pointer-events: none; }
.free__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.free__tag { display: inline-block; background: var(--volt); color: var(--ink); font-weight: 900; padding: 6px 16px; border-radius: 999px; transform: rotate(-3deg); margin-bottom: 18px; }
.free p { color: rgba(255, 255, 255, .82); font-size: 18px; margin-top: 16px; }
.checks, .crosses { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li, .crosses li { display: flex; gap: 12px; align-items: baseline; font-weight: 700; }
.checks li::before { content: "✓"; color: var(--volt); font-weight: 900; }
.section:not(.section--ink) .checks li::before { color: var(--blue); }
.crosses li::before { content: "✕"; color: #ff5a5a; font-weight: 900; }
.free__card, .apply__card { background: var(--white); color: var(--ink); border-radius: 22px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }

/* ---------- Forms ---------- */
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 12px; font: 400 16px/1.6 var(--body); color: var(--ink); background: var(--paper); transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); }
.field textarea { resize: vertical; min-height: 96px; }
.field textarea.is-filled { border-color: var(--blue); background: var(--sky); }
.lead-form .btn-volt { background: var(--blue) !important; color: var(--white) !important; }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); margin: 0; }
.notice { background: var(--volt); color: var(--ink); font-weight: 700; padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; }

/* ---------- Apply ---------- */
.apply { background: var(--blue); color: var(--white); padding: clamp(72px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.apply::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(255, 255, 255, .1) calc(12.5% - 1px) 12.5%); pointer-events: none; }
.apply::after { content: "FINISH"; position: absolute; bottom: -.18em; inset-inline-start: -.05em; font: 400 min(22vw, 300px)/1 var(--display); color: rgba(6, 16, 46, .18); pointer-events: none; }
.apply__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; z-index: 1; }
.apply__copy p { color: rgba(255, 255, 255, .85); font-size: 18px; margin-top: 18px; }
.apply__steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.apply__steps li { display: flex; align-items: center; gap: 16px; font-weight: 700; font-size: 17px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 2px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--blue); }
.faq summary { cursor: pointer; list-style: none; font-weight: 900; font-size: 18px; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--display); color: var(--blue); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Bio: split table ---------- */
.split-table { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--ink); }
.split-table li { display: grid; grid-template-columns: 150px 1fr; gap: 6px 28px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: background .3s, padding .3s; }
.split-table li:hover { background: var(--paper); padding-inline: 16px; }
.split-table__km { grid-row: span 2; font: 400 36px/1 var(--display); color: var(--blue); }
.split-table strong { font-size: 21px; }
.split-table p { margin: 0; color: var(--muted); }
.split-table li.is-key { background: var(--ink); color: var(--white); padding-inline: 20px; border-radius: 14px; border: 0; margin: 6px 0; }
.split-table li.is-key p { color: rgba(255, 255, 255, .78); }
.split-table li.is-key .split-table__km { color: var(--volt); }
.big-quote { font-size: clamp(30px, 4.6vw, 56px); font-weight: 900; line-height: 1.35; margin: 12px 0 28px; }
.big-quote em { color: var(--volt); }
.principles { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.principles li { padding: 16px 20px; background: var(--paper); border-inline-start: 5px solid var(--blue); border-radius: 10px; }

/* ---------- Beginner ---------- */
.fears { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.fear { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--paper); overflow: hidden; transition: transform .3s var(--ease), background .3s, color .3s; }
.fear:hover { transform: translateY(-4px); background: var(--blue); color: var(--white); }
.fear:hover p { color: rgba(255, 255, 255, .85); }
.fear__q { position: absolute; top: -18px; inset-inline-end: 12px; font: 900 110px/1 var(--body); color: rgba(20, 71, 255, .12); }
.fear h3 { font-size: 20px; margin-bottom: 8px; position: relative; }
.fear p { margin: 0; color: var(--muted); position: relative; }
.weeks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid rgba(255, 255, 255, .4); }
.weeks li { padding: 24px 20px 0 0; position: relative; }
.weeks li::before { content: ""; position: absolute; top: -9px; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 5px rgba(216, 255, 60, .25); }
.weeks span { font: 400 44px/1 var(--display); color: var(--volt); }
.weeks h3 { font-size: 21px; margin: 10px 0 4px; }
.weeks p { opacity: .85; margin: 0; padding-inline-end: 12px; }
.photo-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-stack img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.photo-stack img:last-child { margin-top: 48px; }
.compare { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 16px; }
.compare th { text-align: start; padding: 12px 14px; font-size: 14px; background: var(--ink); color: var(--white); }
.compare th:last-child { background: var(--blue); }
.compare td { padding: 16px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare td:first-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255, 59, 59, .5); }
.compare td:last-child { font-weight: 700; }
.compare--dark td { border-color: rgba(255, 255, 255, .12); }
.compare--dark td:first-child { color: rgba(255, 255, 255, .55); }
.section--paper .bib-quiz { margin-top: 32px; }

/* ---------- Performance ---------- */
.stat-card { background: var(--ink-2); border-radius: 22px; padding: 30px; border: 1px solid rgba(255, 255, 255, .1); }
.stat-card p { color: rgba(255, 255, 255, .8); }
.stat-card b { color: var(--volt); font-family: var(--display); font-weight: 400; font-size: 26px; }
.stat-card img { border-radius: 14px; margin-top: 12px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.fit { padding: 32px; border-radius: var(--radius); background: var(--sky); height: 100%; }
.fit h3 { font-size: 24px; }
.fit--no { background: var(--paper); }

/* ---------- Blog ---------- */
.blog-hero { background: var(--ink); color: var(--white); padding: 150px 0 64px; position: relative; overflow: hidden; }
.blog-hero::after { content: "BLOG"; position: absolute; inset-inline-start: -1%; bottom: -.2em; font: 400 min(30vw, 380px)/1 var(--display); color: rgba(20, 71, 255, .25); pointer-events: none; }
.blog-hero .container { position: relative; z-index: 1; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.cat-chips a { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); text-decoration: none; font-weight: 700; font-size: 15px; transition: background .2s, color .2s; }
.cat-chips a:hover, .cat-chips a[aria-current="page"] { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: 20px 22px 24px; }
.post-card h3 { font-size: 19px; line-height: 1.55; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }
.post-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.post-meta .cat { background: var(--sky); color: var(--blue-2); padding: 3px 10px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.post-meta .spl { color: var(--muted); font-weight: 700; }
.post-card--featured { display: grid; grid-template-columns: 1.3fr 1fr; margin-bottom: 26px; background: var(--ink); color: var(--white); border: 0; }
.post-card--featured .post-card__media { aspect-ratio: auto; min-height: 380px; }
.post-card--featured .post-card__body { padding: clamp(24px, 4vw, 48px); align-self: center; }
.post-card--featured h3 { font-size: clamp(24px, 3vw, 36px); line-height: 1.4; }
.post-card--featured h3 a:hover { color: var(--volt); }
.post-card--featured p { color: rgba(255, 255, 255, .78); margin-top: 14px; }
.post-card--featured .post-meta .spl { color: rgba(255, 255, 255, .7); }
.pager { margin-top: 40px; }
.pager .nav-links { display: flex; gap: 8px; justify-content: center; }
.pager .page-numbers { padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; }
.pager .current { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* Article */
.article__hero { position: relative; min-height: 72svh; display: flex; align-items: flex-end; color: var(--white); background: var(--ink); isolation: isolate; overflow: hidden; }
.article__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.article__head { padding: 150px 0 56px; }
.display--article { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.35; }
.crumbs { font-size: 14px; opacity: .8; margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article__meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 22px; font-size: 14px; }
.split-badge { background: var(--volt); color: var(--ink); font-weight: 900; padding: 6px 14px; border-radius: 999px; }
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 80px); padding: 64px 0 88px; align-items: start; }
.prose { font-size: 18px; line-height: 2.05; max-width: 720px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 1.8em 0 .6em; position: relative; padding-inline-start: 18px; }
.prose h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .25em; bottom: .25em; width: 5px; background: var(--blue); border-radius: 3px; transform: skewX(-10deg); }
.prose blockquote { margin: 1.8em 0; padding: 28px 30px; background: var(--blue); color: var(--white); border-radius: var(--radius); font-size: clamp(20px, 2.2vw, 26px); font-weight: 900; line-height: 1.6; position: relative; }
.prose blockquote::before { content: "«"; position: absolute; top: -26px; inset-inline-start: 18px; font-size: 80px; color: var(--volt); line-height: 1; }
.prose a { color: var(--blue); }
.article__lede { font-size: 21px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--line); padding-bottom: 24px; margin-bottom: 28px; }
.article__aside { position: sticky; top: 100px; }
.author-card { background: var(--paper); border-radius: var(--radius); padding: 26px; border-top: 5px solid var(--blue); }
.author-card strong { display: block; font-size: 20px; }
.author-card p { color: var(--muted); font-size: 15px; }
.author-card .race-clock { margin: 6px 0 16px; }
.author-card .race-clock__label { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .8); overflow: hidden; }
.footer__big { font: 400 clamp(60px, 11vw, 160px)/1 var(--display); color: var(--blue); white-space: nowrap; padding: 48px 0 20px; animation: marquee 40s linear infinite; width: max-content; }
.footer__big span { color: var(--volt); padding-inline: .3em; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer .brand { color: var(--white); }
.footer__about { max-width: 420px; margin: 18px 0; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col strong { color: var(--white); margin-bottom: 4px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--volt); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0 32px; font-size: 13px; border-top: 1px solid rgba(255, 255, 255, .12); }
.sticky-cta { display: none; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; } .reveal:nth-child(3) { transition-delay: .16s; } .reveal:nth-child(4) { transition-delay: .24s; } .reveal:nth-child(5) { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .diag { grid-template-columns: repeat(3, 1fr); }
    .nav__links { gap: 16px; font-size: 14px; }
}
@media (max-width: 920px) {
    .nav__toggle { display: flex; }
    .nav__links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 12px 16px 24px; transform: translateY(-120%); transition: transform .35s var(--ease); max-height: calc(100svh - 76px); overflow: auto; }
    .nav__links.is-open { transform: none; }
    .nav__links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 17px; }
    .nav__links .btn { margin-top: 16px; }
    .site-header { background: rgba(6, 16, 46, .75); backdrop-filter: blur(10px); }
    .hero__inner, .split, .coach__grid, .free__grid, .apply__grid, .article__grid, .post-card--featured { grid-template-columns: 1fr; }
    .hero__inner { padding: 120px 0 64px; gap: 32px; }
    .bib-quiz { margin-inline: 0; max-width: none; }
    .paths, .steps, .proof-grid, .post-grid { grid-template-columns: 1fr 1fr; }
    .paths .path:last-child, .steps li:last-child { grid-column: 1 / -1; }
    .weeks { grid-template-columns: 1fr 1fr; row-gap: 36px; }
    .article__aside { position: static; }
    .coach__photo { aspect-ratio: 16 / 11; }
    .post-card--featured .post-card__media { min-height: 240px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .paths, .steps, .proof-grid, .post-grid, .diag, .lead-form, .splits { grid-template-columns: 1fr; }
    .splits div { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline: 0; }
    .splits div:first-child { border-top: 0; }
    .path { min-height: 380px; }
    .chips { grid-template-columns: 1fr 1fr; }
    .split-table li { grid-template-columns: 1fr; }
    .split-table__km { grid-row: auto; font-size: 28px; }
    .photo-stack img:last-child { margin-top: 24px; }
    .compare { font-size: 14px; }
    .bib-quiz { padding: 20px; }
    .sticky-cta { display: block; position: fixed; inset-inline: 12px; bottom: 12px; z-index: 40; transform: translateY(140%); transition: transform .35s var(--ease); }
    .sticky-cta.is-on { transform: none; }
    .sticky-cta .btn { background: var(--blue); color: var(--white); box-shadow: 0 16px 36px -10px rgba(6, 16, 46, .6); }
    .site-footer { padding-bottom: 76px; }
}
.admin-bar .site-header { top: 32px; } @media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.free .todo-inline { color: #6b5500; font-size: 13px; }
section[id] { scroll-margin-top: 80px; }
.hero__img { object-position: 50% 28%; }
.coach__photo img { object-position: 50% 22%; }
