/* EVEN — laminated pace-band world.
   Cool white card, hairline steel rules, charcoal tabular numerals,
   one brushed sheen that follows the pointer. Nothing loud. */

:root {
  --paper: #FBFBFC;        /* laminated card */
  --ground: #F1F2F4;       /* pale silver ground */
  --ink: #1B1D20;          /* charcoal */
  --ink-2: #55595F;        /* secondary text */
  --ink-3: #6A6E74;        /* faint numerals — still ≥4.5:1 on paper */
  --hairline: #DCDEE2;
  --hairline-2: #E8EAED;
  --steel-a: #EEF0F3;
  --steel-b: #C9CCD2;
  --steel-c: #F6F7F9;
  --error: #A14A38;        /* muted brick, functional only */
  --shadow-soft: 0 1px 2px rgba(27,29,32,.05), 0 8px 28px rgba(27,29,32,.07);
  --shadow-lift: 0 2px 4px rgba(27,29,32,.06), 0 16px 44px rgba(27,29,32,.10);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --mono: "Spline Sans Mono", ui-monospace, monospace;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 { font-weight: 640; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); margin-bottom: .8rem; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p  { max-width: 62ch; }
.lede { font-size: 1.13rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.ta-r { text-align: right; }

/* Focus */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: fixed; top: -100px; left: 1rem; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: .55rem 1rem; border-radius: 4px; text-decoration: none;
  transition: top .2s var(--ease-out);
}
.skip:focus { top: 1rem; }

/* Icons — one stroke system */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ============ Header ============ */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: .75rem clamp(1.2rem, 4vw, 3rem);
  transition: background .35s, box-shadow .35s;
}
.top.is-solid {
  background: rgba(251, 251, 252, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 -1px 0 var(--hairline-2);
}
.mark {
  display: inline-flex; flex-direction: column; gap: 2px;
  font-weight: 800; letter-spacing: .34em; font-size: 1.02rem;
  text-decoration: none; line-height: 1;
}
.mark-rule { width: 44px; height: 8px; stroke: var(--ink); stroke-width: 2.6; }
.mark-rule path { stroke-dasharray: 40; }
.top-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.top-nav a {
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; position: relative; padding: .2rem 0;
}
.top-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--ink); transition: right .3s var(--ease-out);
}
.top-nav a:hover { color: var(--ink); }
.top-nav a:hover::after { right: 0; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.5rem; border-radius: 6px;
  font-weight: 600; font-size: .97rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s var(--ease-out), box-shadow .25s var(--ease-out),
              background .25s, border-color .25s, color .25s;
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn-solid {
  background: linear-gradient(180deg, #34373C, var(--ink) 55%);
  color: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 2px rgba(27,29,32,.25), 0 6px 18px rgba(27,29,32,.18);
}
.btn-solid:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 5px rgba(27,29,32,.24), 0 12px 30px rgba(27,29,32,.22); transform: translateY(-1px); }
.btn-ghost {
  background: rgba(251,251,252,.7); color: var(--ink);
  border-color: var(--hairline);
  box-shadow: 0 1px 2px rgba(27,29,32,.04);
}
.btn-ghost:hover { border-color: var(--ink-3); background: var(--paper); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-sm { padding: .5rem 1.05rem; font-size: .88rem; }
.btn[disabled] { cursor: default; opacity: .75; transform: none; }

/* ============ Split rail (desktop) ============ */
.rail {
  position: fixed; right: clamp(.8rem, 2vw, 1.6rem); top: 50%;
  transform: translateY(-50%); z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  height: min(62vh, 560px);
}
.rail-end { font: 300 .68rem/1 var(--mono); color: var(--ink-3); font-feature-settings: "tnum"; }
.rail-track { position: relative; flex: 1; width: 3px; border-radius: 2px; background: var(--hairline); }
.rail-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--steel-b), var(--ink));
}
.rail-thumb {
  position: absolute; top: 0; right: 9px; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
  padding: .32rem .5rem;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 5px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .3s;
}
.rail-thumb::after {          /* clasp pin toward the track */
  content: ""; position: absolute; top: 50%; right: -5px; width: 8px; height: 1px;
  background: var(--ink-3);
}
.rail-thumb.is-tick { box-shadow: var(--shadow-lift); }
.rail-km { font: 500 .82rem/1.1 var(--mono); font-feature-settings: "tnum"; }
.rail-km::after { content: " km"; color: var(--ink-3); font-size: .62rem; }
.rail-at { font: 300 .62rem/1.1 var(--mono); color: var(--ink-2); font-feature-settings: "tnum"; }

/* Mobile rail: a hairline band on top */
.railbar { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 3px; display: none; pointer-events: none; }
.railbar-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background: linear-gradient(90deg, var(--steel-b), var(--ink));
  display: block;
}
.railbar-km {
  position: absolute; top: 62px; right: 10px;
  font: 500 .68rem/1 var(--mono); font-feature-settings: "tnum";
  color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--hairline);
  box-shadow: var(--shadow-soft);
  padding: .22rem .45rem; border-radius: 4px;
  opacity: 0; transition: opacity .3s;
}
.railbar.is-on .railbar-km { opacity: 1; }

/* ============ The band (laminated strip) ============ */
.band {
  position: relative; display: flex; align-items: stretch;
  background: linear-gradient(180deg, #FFFFFF, #F7F8FA);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.band-cells {
  display: flex; flex: 1; list-style: none; overflow-x: auto;
  scrollbar-width: none;
}
.band-cells::-webkit-scrollbar { display: none; }
.band-cells li {
  flex: 1 0 auto; min-width: 74px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .1rem; padding: .8rem .6rem;
  border-left: 1px solid var(--hairline-2);
}
.band-cells span { font: 400 .62rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.band-cells strong { font: 500 1.06rem/1.15 var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; }
.band-cells em { font: 300 .68rem/1 var(--mono); font-style: normal; color: var(--ink-2); font-feature-settings: "tnum"; }
.band-clasp {
  display: flex; flex-direction: column; justify-content: center; gap: .15rem;
  padding: .8rem 1rem; min-width: 108px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 1px, rgba(0,0,0,0) 1px 3px),
    linear-gradient(180deg, var(--steel-c), var(--steel-b) 52%, var(--steel-a));
  border-right: 1px solid var(--hairline);
}
.band-clasp-end { border-right: 0; border-left: 1px solid var(--hairline); }
.band-title { font: 700 .68rem/1 var(--mono); letter-spacing: .14em; color: var(--ink-2); }
.band-goal { font: 600 1.05rem/1.15 var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; }

/* Lamination sheen — follows the pointer (JS sets --mx/--my) */
.band-sheen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(340px 180px at var(--mx, 30%) var(--my, -20%),
      rgba(255,255,255,.85), rgba(255,255,255,0) 62%),
    linear-gradient(115deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.32) 50%, rgba(255,255,255,0) 58%);
  mix-blend-mode: soft-light;
  opacity: .9;
}
.band-ghost { box-shadow: none; border-style: dashed; background: transparent; }
.band-ghost .band-clasp { opacity: .55; }
.band-ghost .band-cells strong, .band-ghost .band-cells em { color: var(--ink-3); }

/* Building shimmer */
.band.is-building .band-cells strong,
.band.is-building .band-cells em,
.band.is-building .band-goal {
  color: transparent; border-radius: 3px;
  background: linear-gradient(90deg, var(--hairline-2) 25%, #fff 50%, var(--hairline-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { from { background-position: 160% 0; } to { background-position: -60% 0; } }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1rem, 3vw, 2.6rem);
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% 42%;
}
.hero-copy {
  position: relative; z-index: 2;
  max-width: 620px;
  margin: 0 auto 0 clamp(.4rem, 3.5vw, 3.4rem);
  padding-bottom: clamp(1.6rem, 4vh, 3.4rem);
}
.hero-copy h1 { margin-bottom: 1.1rem; }
.hero-copy > p { font-size: 1.16rem; color: var(--ink-2); max-width: 30rem; margin-bottom: 1.7rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-band { position: relative; z-index: 2; }
.hero-cue {
  font: 400 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: .6rem; padding-left: .2rem;
  transition: opacity .5s;
}
.hero-cue.is-done { opacity: .45; }

/* Load-in: the strip settles into place */
.hero-copy, .hero-band { animation: settle 1s var(--ease-out) both; }
.hero-band { animation-delay: .18s; }

/* …then the band is read once, cell by cell (JS sets --i per cell) */
#heroStrip .band-cells li { animation: readcell .55s var(--ease-out) both; animation-delay: calc(1.1s + var(--i, 0) * 90ms); }
@keyframes readcell {
  0%   { background: transparent; }
  45%  { background: var(--ground); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  #heroStrip .band-cells li { animation: none; }
}
@keyframes settle {
  from { opacity: 0; transform: translateY(22px); filter: blur(3px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ============ Sections / checkpoints ============ */
.km, .interlude, .finish { padding: clamp(3.2rem, 8vh, 6rem) clamp(1.2rem, 5vw, 4rem) clamp(4rem, 10vh, 7.5rem); }
.km-tint { background: var(--ground); }
.km > *, .interlude > *, .finish > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

.km-rule {
  display: flex; align-items: center; gap: .9rem;
  margin-bottom: clamp(2.2rem, 5vh, 3.6rem);
}
.km-rule::before { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(220,222,226,0), var(--hairline) 18%, var(--hairline)); }
.km-rule::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--steel-b); box-shadow: inset 0 0 0 1px var(--ink-3); order: 2; }
.km-tag {
  order: 3;
  font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); font-feature-settings: "tnum";
}

.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split-2 > div p + p { margin-top: .9rem; }

.even-note {
  display: flex; gap: .9rem; align-items: flex-start;
  margin-top: 1.8rem; padding: 1.05rem 1.2rem;
  background: linear-gradient(180deg, #FFFFFF, #F7F8FA);
  border: 1px solid var(--hairline); border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.even-note .ic { margin-top: .2rem; color: var(--ink-2); }
.even-note p { font-size: .95rem; color: var(--ink-2); }
.even-note strong { color: var(--ink); }

/* ============ Run card ============ */
.runcard {
  background: linear-gradient(180deg, #FFFFFF, #F8F9FB);
  border: 1px solid var(--hairline); border-radius: 10px;
  box-shadow: var(--shadow-lift);
  padding: 1.5rem 1.5rem 1.2rem;
}
.runcard-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.1rem; }
.runcard-when { font-size: .85rem; color: var(--ink-2); margin-top: .15rem; }
.even-score { position: relative; width: 74px; text-align: center; flex: none; }
.even-dial { width: 64px; height: 64px; transform: rotate(-90deg); }
.even-dial circle { fill: none; stroke-width: 4; }
.even-dial-bg { stroke: var(--hairline-2); }
.even-dial-arc {
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-dasharray: 175.9; stroke-dashoffset: 175.9;
  transition: stroke-dashoffset 1.4s var(--ease-out);
}
.even-num {
  position: absolute; top: 32px; left: 50%; transform: translate(-50%, -50%);
  font: 600 1.15rem/1 var(--mono); font-feature-settings: "tnum"; width: 64px;
  margin-left: -5px;
}
.even-lbl { display: block; font: 400 .6rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }

.runcard-stats { display: flex; gap: 1.6rem; padding: .9rem 0; border-top: 1px solid var(--hairline-2); border-bottom: 1px solid var(--hairline-2); }
.runcard-stats dt { font: 400 .64rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.runcard-stats dd { font: 500 1.35rem/1.15 var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.02em; }
.runcard-stats dd i { font-style: normal; font-size: .78rem; color: var(--ink-2); }

.splits { width: 100%; border-collapse: collapse; margin-top: .35rem; }
.splits th {
  font: 400 .64rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); text-align: left; font-weight: 400; padding: .45rem .35rem .3rem;
}
.splits th.ta-r { text-align: right; }
.splits td {
  font: 400 .92rem/1.4 var(--mono); font-feature-settings: "tnum";
  padding: .34rem .35rem; border-top: 1px solid var(--hairline-2);
  position: relative;
}
.splits tbody tr { transition: background .2s; cursor: default; }
.splits tbody tr:hover, .splits tbody tr.is-hot { background: var(--ground); }
.splits td[data-d]::after {
  content: attr(data-d) "s";
  display: inline-block; min-width: 44px; text-align: center;
  font-size: .72rem; line-height: 1.7; border-radius: 999px;
  border: 1px solid var(--hairline); color: var(--ink-2);
  opacity: .55; transition: opacity .2s, background .2s, color .2s, border-color .2s;
}
.splits td[data-d="0"]::after { content: "level"; }
.splits td[data-d^="-"]::after { border-color: var(--ink); }
.splits tbody tr:hover td[data-d]::after, .splits tbody tr.is-hot td[data-d]::after { opacity: 1; }
.splits tbody tr:hover td[data-d^="-"]::after, .splits tbody tr.is-hot td[data-d^="-"]::after { background: var(--ink); color: var(--paper); }
.runcard-foot { font-size: .88rem; color: var(--ink-2); margin-top: 1rem; max-width: none; }

/* ============ Builder ============ */
.band-head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vh, 2.8rem); }
.builder {
  display: grid; grid-template-columns: auto minmax(150px, 220px) auto auto;
  gap: 1.2rem 1.6rem; align-items: end;
  padding: 1.4rem 1.5rem;
  background: linear-gradient(180deg, #FFFFFF, #F8F9FB);
  border: 1px solid var(--hairline); border-radius: 10px;
  box-shadow: var(--shadow-soft);
  max-width: 1120px;
}
.b-field { border: 0; min-width: 0; }
.b-field legend, .b-field > label {
  display: block; font: 500 .7rem/1 var(--mono); text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-2); margin-bottom: .55rem; padding: 0;
}
.seg { display: inline-flex; background: var(--ground); border: 1px solid var(--hairline); border-radius: 7px; padding: 3px; gap: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: inline-block; padding: .42rem .85rem; border-radius: 5px;
  font-size: .9rem; font-weight: 550; color: var(--ink-2);
  transition: background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.seg input:checked + span {
  background: linear-gradient(180deg, #FFFFFF, #F4F5F7);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(27,29,32,.12), inset 0 0 0 1px var(--hairline);
}
.seg input:not(:checked):hover + span { color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.b-input {
  width: 100%; padding: .6rem .8rem;
  font: 500 1.05rem/1.3 var(--mono); font-feature-settings: "tnum";
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--hairline); border-radius: 7px;
  transition: border-color .2s, box-shadow .2s;
}
.b-input::placeholder { color: var(--ink-3); }
.b-input:hover { border-color: var(--ink-3); }
.b-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(27,29,32,.08); }
.b-input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 3px rgba(161,74,56,.12); }
.b-hint { font-size: .78rem; color: var(--ink-3); margin-top: .45rem; transition: color .2s; }
.b-hint.is-error { color: var(--error); }

.b-go { position: relative; min-width: 172px; }
.b-go-spin { width: 17px; height: 17px; display: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 42; stroke-dashoffset: 14; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.b-go.is-busy .b-go-spin { display: block; }
.b-go.is-busy { pointer-events: none; }

.b-result { max-width: 1120px; margin-top: 1.6rem; }
.b-empty { text-align: left; }
.b-empty p { font-size: .92rem; color: var(--ink-2); margin-top: .9rem; }
.b-out { animation: settle .7s var(--ease-out) both; }
.b-out-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.2rem; margin: 0 0 .8rem; }
.b-out-head h3 { font: 600 1.05rem/1.3 var(--sans); }
.b-out-head p { font: 400 .85rem/1.5 var(--mono); color: var(--ink-2); font-feature-settings: "tnum"; }
.b-actions { display: flex; gap: .7rem; margin-top: 1rem; flex-wrap: wrap; }
.b-note { font-size: .8rem; color: var(--ink-3); margin-top: .8rem; }
.restore {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 1rem; padding: .5rem .9rem;
  border: 1px dashed var(--hairline); border-radius: 999px;
  background: none; cursor: pointer;
  font-size: .85rem; color: var(--ink-2);
  transition: border-color .2s, color .2s;
}
.restore:hover { border-color: var(--ink-3); color: var(--ink); }

/* ============ Interlude ============ */
.interlude { background: var(--ink); color: var(--paper); }
.interlude .km-rule::before { background: linear-gradient(90deg, rgba(85,89,95,0), #3A3E44 18%, #3A3E44); }
.interlude .km-rule::after { background: #55595F; box-shadow: inset 0 0 0 1px #85898F; }
.interlude .km-tag { color: #9A9EA4; }
.interlude-fig { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.interlude-fig img { border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.interlude-fig blockquote p {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.35; font-weight: 500;
  letter-spacing: -0.015em; max-width: 24ch; text-wrap: balance;
}
.interlude-fig cite { display: block; margin-top: 1.2rem; font: 400 .8rem/1 var(--mono); font-style: normal; letter-spacing: .08em; color: #9A9EA4; }

/* ============ Training weeks ============ */
.split-2-rev { align-items: center; }
.block-fig img { border-radius: 10px; box-shadow: var(--shadow-lift); }
.weeks { list-style: none; margin-top: 1.6rem; border-top: 1px solid var(--hairline); }
.week { border-bottom: 1px solid var(--hairline); }
.week-btn {
  display: grid; grid-template-columns: 3.4rem 1fr auto 28px; align-items: center; gap: .8rem;
  width: 100%; padding: .8rem .2rem; background: none; border: 0; cursor: pointer;
  text-align: left; transition: background .2s;
}
.week-btn:hover { background: var(--ground); }
.week-no { font: 400 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-feature-settings: "tnum"; }
.week-name { font-weight: 600; font-size: .98rem; }
.week-km { font: 500 .92rem/1 var(--mono); font-feature-settings: "tnum"; color: var(--ink-2); }
.week-chev { width: 16px; height: 16px; color: var(--ink-3); transition: transform .35s var(--ease-out); justify-self: end; }
.week-btn[aria-expanded="true"] .week-chev { transform: rotate(180deg); }
.week-more {
  display: grid; grid-template-rows: 0fr; overflow: hidden;
  transition: grid-template-rows .4s var(--ease-out);
}
.week-more > p {
  overflow: hidden; min-height: 0;
  font-size: .9rem; color: var(--ink-2); padding: 0 .2rem;
}
/* the bottom gap lives as content so the collapsed row is truly 0 */
.week-more > p::after { content: ""; display: block; height: .9rem; }
.week.is-open .week-more { grid-template-rows: 1fr; }

/* ============ Plans ============ */
.plans { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.4rem; max-width: 880px !important; }
.plan {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #FFFFFF, #F8F9FB);
  border: 1px solid var(--hairline); border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.6rem 1.4rem;
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}
.plan:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.plan-club {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 1px, rgba(0,0,0,0) 1px 4px),
    linear-gradient(180deg, var(--steel-c), #E4E6EA 60%, var(--steel-a));
  border-color: var(--steel-b);
}
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--hairline-2); }
.plan-club .plan-head { border-color: rgba(27,29,32,.12); }
.plan-price { text-align: right; }
.plan-price strong { font: 600 1.6rem/1 var(--mono); letter-spacing: -0.03em; font-feature-settings: "tnum"; }
.plan-price span { display: block; font-size: .74rem; color: var(--ink-2); }
.plan-list { list-style: none; padding: 1.1rem 0 1.4rem; flex: 1; }
.plan-list li { position: relative; padding: .3rem 0 .3rem 1.5rem; font-size: .95rem; color: var(--ink-2); }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: .78rem;
  width: 14px; height: 5px;
  border-left: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3);
  transform: rotate(-45deg) scale(.9); transform-origin: left bottom;
}
.plan-btn { width: 100%; }

/* ============ Finish ============ */
.finish { padding-bottom: 1.6rem; }
.finish-inner { text-align: center; padding: clamp(1rem, 4vh, 3rem) 0 clamp(3rem, 8vh, 5rem); }
.finish-big {
  font: 300 clamp(4.4rem, 11vw, 8.5rem)/1 var(--mono);
  letter-spacing: -0.05em; font-feature-settings: "tnum";
  margin-bottom: .4rem;
  color: var(--ink);
}
.finish-big i { font-style: normal; font-size: .22em; letter-spacing: 0; margin-left: .18em; color: var(--ink-2); }
.finish-line { max-width: none; font-size: 1.12rem; color: var(--ink-2); margin: 0 auto 1.8rem; }
.finish-stores { max-width: none; font: 400 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 1.2rem; }
.foot-rule {
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
  padding-top: 1.4rem; border-top: 1px solid var(--hairline);
}
.mark-foot { font-size: .85rem; letter-spacing: .3em; }
.mark-foot .mark-rule { width: 36px; }
.foot-rule nav { display: flex; gap: 1.4rem; margin-left: auto; }
.foot-rule a { font-size: .84rem; color: var(--ink-2); text-decoration: none; }
.foot-rule a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-rule > p { font-size: .84rem; color: var(--ink-3); }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 1.4rem; z-index: 90;
  transform: translate(-50%, calc(100% + 2.2rem));
  display: flex; align-items: center; gap: .6rem;
  max-width: min(92vw, 480px);
  padding: .75rem 1.15rem;
  background: var(--ink); color: var(--paper);
  border-radius: 8px; box-shadow: 0 12px 40px rgba(27,29,32,.35);
  font-size: .92rem;
  transition: transform .45s var(--ease-out);
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); }
.toast .ic { width: 17px; height: 17px; }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(2px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), filter .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ============ Print: just the band ============ */
@media print {
  body.print-band > * { display: none !important; }
  body.print-band #band { display: block !important; background: #fff; padding: 1cm; }
  body.print-band #band .km-rule,
  body.print-band #band .band-head,
  body.print-band #band .builder,
  body.print-band #band .b-actions,
  body.print-band #band .b-note { display: none !important; }
  body.print-band .band { box-shadow: none; }
  body.print-band .band-sheen::after { display: none; }
  body.print-band .rail, body.print-band .railbar, body.print-band .toast, body.print-band .top { display: none !important; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-copy, .hero-band { animation: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .rail { display: none; }
  .railbar { display: block; }
}
@media (max-width: 900px) {
  .split-2 { grid-template-columns: 1fr; }
  .split-2-rev .block-fig { order: 2; }
  .builder { grid-template-columns: 1fr 1fr; }
  .b-go { grid-column: 1 / -1; justify-self: start; }
  .interlude-fig { grid-template-columns: 1fr; }
  .interlude-fig blockquote p { max-width: none; }
}
@media (max-width: 700px) {
  .top { gap: 1rem; }
  .top-nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero { padding-bottom: 1rem; }
  .hero-photo { object-position: 68% 40%; }
  .hero-copy { margin-left: 0; padding-top: 22vh; }
  .hero-copy > p { font-size: 1.05rem; }
  .band-cells li { min-width: 66px; padding: .65rem .45rem; }
  .band-clasp { min-width: 92px; padding: .65rem .8rem; }
  .builder { grid-template-columns: 1fr; padding: 1.2rem 1.1rem; }
  .seg { display: flex; }
  .seg label { flex: 1; }
  .seg span { display: block; text-align: center; padding-inline: .4rem; }
  .plans { grid-template-columns: 1fr; }
  .runcard { padding: 1.2rem 1.1rem 1rem; }
  .runcard-stats { gap: 1.1rem; }
  .runcard-stats dd { font-size: 1.15rem; }
  .foot-rule nav { margin-left: 0; }
  .finish-line { font-size: 1rem; }
}
