/* Summit Run Club: asphalt, track orange and park green on pale grey.
   Change the colours and fonts here; base.css reads these variables. */
:root {
  --bg: #F3F5F2;
  --surface: #FFFFFF;
  --soft: #E9ECE7;
  --ink: #1E2226;
  --muted: #59606A;
  --line: #DADFD7;
  --line-strong: #C0C7BD;
  --asphalt: #1E2226;
  --track: #FF5A1F;
  --park: #2F6B4F;
  --brand: #E2470F;
  --brand-hover: #C63C0A;
  --brand-ink: #FFFFFF;
  --brand-text: #C63C0A;
  --eyebrow: #C63C0A;
  --head: "Barlow Condensed", Impact, sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --radius: 6px;
  --radius-lg: 12px;
  --btn-radius: 6px;
  --wrap: 1200px;
  --gap: 18px;
}
h1, h2, h3 { font-weight: 800; text-transform: uppercase; letter-spacing: .005em; }
h1 em, h2 em, .f-statement em { font-style: normal; color: var(--track); }
.eyebrow { letter-spacing: .16em; }
.btn { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.btn svg { width: 18px; height: 18px; }
.text-link { color: var(--brand-text); font-weight: 700; text-underline-offset: 5px; }
details summary { text-transform: none; }
.track-lines { height: 18px; background: repeating-linear-gradient(0deg, #FFFFFF 0 2px, var(--track) 2px 6px); }
.tt-class[data-type="easy"] { --type: var(--park); }
.tt-class[data-type="speed"] { --type: var(--track); }
.tt-class[data-type="long"] { --type: var(--asphalt); }
.tt-class[data-type="strength"] { --type: #7B61FF; }
.tt-class[data-type="trail"] { --type: #A0702A; }

/* ---------- header ---------- */
.header { background: rgba(243,245,242,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 44px; height: 30px; }
.logo span { display: grid; line-height: 1; }
.logo b { font: 800 1.9rem var(--head); text-transform: uppercase; letter-spacing: .02em; }
.logo small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.nav a { color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--track); border-radius: 0; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(32px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-art { max-width: 420px; } }
.hero h1 { font-size: clamp(3.4rem, 9vw, 7.4rem); line-height: .86; margin: 16px 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.next-run { display: inline-grid; gap: 2px; margin-top: 22px; padding: 10px 16px; border-left: 4px solid var(--track); background: var(--surface); text-decoration: none; }
.next-run span { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.route-line { animation: march 2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -48; } }

/* ---------- sections ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2, .sec-title { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: .9; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stats div { display: grid; padding: 20px 0; border-top: 4px solid var(--ink); }
.stats b { font: 800 clamp(2.8rem, 6vw, 4rem)/1 var(--head); }
.stats span { color: var(--muted); font-weight: 600; }
.tools-band { background: var(--asphalt); }
.tool-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 760px) { .tool-cards { grid-template-columns: minmax(0, 1fr); } }
.tc { display: grid; gap: 8px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); background: #2A2F34; color: #D7DCE0; text-decoration: none; border-bottom: 6px solid var(--track); transition: transform .2s; }
.tc:hover { transform: translateY(-4px); }
.tc .eyebrow { color: var(--track); }
.tc b { font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--head); text-transform: uppercase; color: #fff; }

/* ---------- pace calculator (signature) ---------- */
.pace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
@media (max-width: 1000px) { .pace { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .splits-wrap { grid-column: 1 / -1; } }
@media (max-width: 680px) { .pace { grid-template-columns: minmax(0, 1fr); } }
.pace-in, .pace-out, .splits-wrap { display: grid; gap: 16px; padding: clamp(18px, 2.6vw, 26px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.pace-out { background: var(--asphalt); color: #D7DCE0; border: 0; }
.pace-out h3, .splits-wrap h3 { font-size: 1.4rem; }
.pace-out h3 { color: #fff; }
.hms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hms label { display: flex; align-items: center; gap: 6px; }
.hms small { color: var(--muted); font-weight: 600; }
.po-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.po-big b { font: 800 clamp(3.6rem, 8vw, 5rem)/1 var(--head); color: var(--track); font-variant-numeric: tabular-nums; }
.po-speed { font-weight: 600; }
.predict { list-style: none; display: grid; gap: 6px; }
.predict li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius); background: rgba(255,255,255,.06); }
.predict li.is-you { box-shadow: inset 3px 0 0 var(--track); }
.predict b { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pace-out .form-note { color: #9AA3AB; }
.splits { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.splits th, .splits td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.splits thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.splits td { text-align: right; font-weight: 700; }
.splits-wrap .table-scroll { max-height: 420px; overflow-y: auto; }

/* ---------- training plan ---------- */
.tp { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
@media (max-width: 900px) { .tp { grid-template-columns: minmax(0, 1fr); } }
.tp-in, .tp-out { display: grid; gap: 16px; padding: clamp(18px, 2.6vw, 26px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.tp-warn { display: none; padding: 12px 14px; border-radius: var(--radius); background: #FFF1EA; border-left: 3px solid var(--track); font-weight: 600; }
.tp-warn.is-on { display: block; }
.weeks { display: flex; align-items: end; gap: 3px; height: 200px; padding-bottom: 4px; border-bottom: 2px solid var(--ink); }
.wk { flex: 1; min-width: 4px; border-radius: 3px 3px 0 0; transition: height .3s; }
.ph-base { background: var(--park); }
.ph-build { background: #E9A23B; }
.ph-peak { background: var(--track); }
.ph-taper { background: #7B61FF; }
.ph-race { background: var(--asphalt); }
.phase-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .86rem; font-weight: 600; }
.phase-legend span { background: none; }
.phase-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.phase-legend .ph-base::before { background: var(--park); }
.phase-legend .ph-build::before { background: #E9A23B; }
.phase-legend .ph-peak::before { background: var(--track); }
.phase-legend .ph-taper::before { background: #7B61FF; }
.phase-legend .ph-race::before { background: var(--asphalt); }
.tp-out .btn { justify-self: start; }

/* ---------- inner pages ---------- */
.page-head { border-bottom: 1px solid var(--line); margin-bottom: clamp(24px, 4vw, 48px); }
.page-head h1 { font-size: clamp(3rem, 8vw, 5.6rem); line-height: .9; }
.card h2, .done h2, .faq-group h2 { font-size: 1.8rem; }
.plan-price b { color: var(--track); }
.coach-art { border-radius: var(--radius-lg); }

/* ---------- CTA + footer ---------- */
.cta-band { padding-block: clamp(56px, 8vw, 104px); text-align: center; background: var(--track); color: #fff; }
.cta-band h2 { font-size: clamp(3rem, 8vw, 6rem); line-height: .9; }
.cta-band h2 em { color: var(--asphalt); }
.cta-band p { margin: 14px auto 0; max-width: 52ch; }
.cta-band .btn-primary { background: var(--asphalt); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.footer { background: var(--asphalt); color: #A9B0B7; --footer-line: rgba(255,255,255,.12); padding-top: 0; }
.footer > .wrap { padding-top: 56px; }
.f-statement { font: 800 clamp(3rem, 8vw, 5.6rem)/.88 var(--head); text-transform: uppercase; color: #fff; margin-bottom: 48px; }
.footer .logo b { color: #fff; }
.footer .logo small { color: #8C949C; }
.footer .logo-mark path:first-child { fill: #fff; }
.footer h2 { color: var(--track); opacity: 1; }
.f-about { margin: 14px 0 10px; max-width: 34ch; }
.footer .credit a { color: #fff; }
@media (prefers-reduced-motion: reduce) { .route-line { animation: none; } }
