/* Run For Life · runforlife.fit. Colours and fonts match the iOS app. */

@font-face { font-family: "Bungee"; src: url("fonts/Bungee-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("fonts/BeVietnamPro-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0E1116;
  --surface: #171C24;
  --ink: #F3F5F7;
  --muted: #9AA4B2;
  --blue: #3B82F6;
  --blue-step: #2B6BD6;
  --red: #E5484D;
  --red-deep: #5A1216;
  --gold: #F5B83D;
  --green: #7BC47F;
  --paper: #F3F5F7;
  --paper-step: #E1E6EC;
  --paper-ink: #0E1116;
  --paper-soft: #3C4651;
  --accent: var(--gold);
  --accent-ink: #0E1116;

  --font-display: "Bungee", "Arial Black", Impact, sans-serif;
  --font-text: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;

  --step-small: 0.9375rem;                                  /* 15px */
  --step-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.1875rem); /* 18–19px */
  --step-lead: clamp(1.375rem, 1.2rem + 0.7vw, 1.5rem);     /* 22–24px */
  --step-head: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);        /* 36–56px */
  --step-display: clamp(6rem, 11vw, 11rem);                 /* 96–176px */

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.5rem);
  --nav: 4rem;
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;

  /* header colours, switched per section by site.js */
  --nav-bg: var(--bg);
  --nav-ink: var(--ink);
  --nav-btn: var(--accent);
  --nav-btn-ink: var(--accent-ink);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: var(--nav); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.only-wide { display: none; }
@media (min-width: 52em) { .only-wide { display: inline; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, .display { font-family: var(--font-display); font-weight: 400; text-wrap: balance; hyphens: none; letter-spacing: 0; }
h2 { font-size: var(--step-head); line-height: 1.05; }
h3 { font-size: var(--step-lead); line-height: 1.2; font-weight: 700; text-wrap: balance; hyphens: none; }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.small { font-size: var(--step-small); line-height: 1.45; }
.nums { font-variant-numeric: tabular-nums; }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.chapter { position: relative; min-height: 90svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--nav) + 2rem) 5rem; }
.chapter--dark { background: var(--bg); color: var(--ink); }
.chapter--gold { background: var(--gold); color: var(--accent-ink); }
.chapter--paper { background: var(--paper); color: var(--paper-ink); }
.chapter--green { background: var(--green); color: var(--paper-ink); }
.chapter--blue { background: var(--blue); color: var(--ink); }

/* ---------- buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; white-space: nowrap; border-radius: var(--radius); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .button:hover { background: var(--ink); color: var(--bg); } }

/* ---------- navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; height: var(--nav); display: flex; align-items: center; gap: 1.5rem; padding-inline: var(--margin); background: var(--nav-bg); color: var(--nav-ink); transition: color 300ms ease, background-color 300ms ease; }
.nav__mark { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 17px; text-decoration: none; margin-right: auto; }
.nav__mark img { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 1.5rem; }
.nav__links a { text-decoration: none; font-weight: 700; }
.nav .button { background: var(--nav-btn); color: var(--nav-btn-ink); min-height: 2.75rem; padding-inline: 1.2rem; transition: transform var(--t-press) var(--ease-out), background-color 300ms ease, color 300ms ease; }
html[data-chapter="blue"] { --nav-bg: var(--blue); }
html[data-chapter="gold"] { --nav-bg: var(--gold); --nav-ink: var(--accent-ink); --nav-btn: var(--accent-ink); --nav-btn-ink: var(--gold); }
html[data-chapter="paper"] { --nav-bg: var(--paper); --nav-ink: var(--paper-ink); }
html[data-chapter="green"] { --nav-bg: var(--green); --nav-ink: var(--paper-ink); }
@media (max-width: 51.99em) {
  :root { --nav: 3.5rem; }
  .nav { gap: 0.75rem; }
  .nav__links { display: none; }
  .nav__mark span { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-rows: 50svh 80svh; isolation: isolate; }
.hero__top { background: var(--blue); }
.hero__bottom { background: var(--red); }
.hero__title { position: absolute; left: 50%; top: 50svh; width: min(92vw, 20ch); transform: translate(-50%, -66.67%); text-align: center; font-size: var(--step-display); line-height: 0.9; margin: 0; z-index: 1; }
.hero__title span { display: block; }
.hero__title .is-above { color: var(--ink); clip-path: inset(0 0 33.33% 0); }
.hero__title .is-below { position: absolute; inset: 0; color: var(--red-deep); clip-path: inset(66.67% 0 0 0); }
.hero__lead { position: absolute; left: 50%; top: calc(100svh - 56px); transform: translate(-50%, -100%); width: min(90vw, 44ch); text-align: center; font-size: 1.25rem; line-height: 1.4; color: var(--ink); z-index: 1; }
.hero__lead p { max-width: none; }
@media (max-width: 51.99em) {
  .hero { grid-template-rows: 46svh 66svh; }
  .hero__title { top: 46svh; font-size: 15vw; width: 94vw; }
  .hero__lead { font-size: 1rem; width: min(88vw, 30ch); top: calc(100svh - 40px); }
}

/* ---------- stages ---------- */
.stages { position: relative; min-height: 88svh; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; isolation: isolate; }
.stages__field { position: absolute; top: 0; bottom: 0; width: 50%; z-index: -1; }
.stages__field.is-left { left: 0; background: var(--bg); }
.stages__field.is-right { right: 0; background: var(--surface); }
.stages__text { padding: calc(var(--nav) + 1.5rem) var(--margin) 2rem; display: flex; flex-direction: column; justify-content: center; }
.stages__ui { display: grid; place-items: center; padding: calc(var(--nav) + 1rem) var(--margin) 2rem; }
.js .stack { display: grid; }
.js .stack > * { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 200ms ease, visibility 0s 200ms; pointer-events: none; }
.js .stack > .is-on { opacity: 1; visibility: visible; transition: opacity 200ms ease, visibility 0s; pointer-events: auto; }
.stage__clause { font-size: clamp(1.75rem, 4vw, 3.75rem); font-weight: 400; line-height: 1.08; max-width: 18ch; }
.stage__note { margin-top: 1.5rem; max-width: 36ch; }
.no-js .stack > * + * { margin-top: 2.5rem; }
.stages__slider { grid-column: 1 / -1; padding: 0 28px 28px; }
.slider { position: relative; height: 32px; }
.slider__fill { position: absolute; left: 0; top: 12px; height: 8px; width: 0; background: var(--ink); pointer-events: none; }
.slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 8px; background: var(--muted); }
.slider input::-moz-range-track { height: 8px; background: var(--muted); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 32px; height: 32px; margin-top: -12px; background: var(--accent); border: 0; border-radius: 0; transition: transform var(--t-press) var(--ease-out); }
.slider input::-moz-range-thumb { width: 32px; height: 32px; background: var(--accent); border: 0; border-radius: 0; }
.slider input:active::-webkit-slider-thumb { transform: scale(1.12); }
.stages__names { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 0.75rem; }
.stages__names button { text-align: left; color: var(--muted); font-size: var(--step-small); font-weight: 700; padding: 0.5rem 0; transition: color var(--t-hover) ease; }
.stages__names button:nth-child(2) { text-align: center; }
.stages__names button:nth-child(3) { text-align: center; }
.stages__names button:nth-child(4) { text-align: right; }
.stages__names button.is-on { color: var(--ink); }
@media (max-width: 51.99em) {
  .stages { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .stages__field { display: none; }
  .stages__ui { order: 1; background: var(--surface); min-height: 46svh; padding: calc(var(--nav) + 1rem) 0 0; overflow: hidden; align-items: end; }
  .stages__slider { order: 2; background: var(--bg); padding: 20px 20px 0; }
  .stages__text { order: 3; background: var(--bg); padding: 1.5rem 20px 3rem; }
  .stage__clause { font-size: 8vw; }
  .stages__names { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .stages__names button { text-align: left !important; min-height: 44px; }
  .slider input::-webkit-slider-thumb { width: 40px; height: 40px; margin-top: -16px; }
  .slider { height: 40px; }
  .slider__fill { top: 16px; }
}

/* ---------- phone screens ---------- */
[data-ui].phone { width: 390px; max-width: 100%; background: var(--bg); color: var(--ink); border-radius: 28px; overflow: hidden; font-size: 15px; line-height: 1.35; }
[data-ui] .ph-map { position: relative; height: 170px; background: var(--surface); }
[data-ui] .ph-map img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
[data-ui] .ph-pin { position: absolute; left: 16px; bottom: 14px; background: rgba(14,17,22,.82); padding: 6px 10px; border-radius: 10px; font-weight: 700; font-size: 14px; }
[data-ui] .ph-pin.is-right { left: auto; right: 16px; }
[data-ui] .ph-body { padding: 16px 16px 18px; }
[data-ui] .ph-title { font-size: 20px; font-weight: 700; }
[data-ui] .ph-sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
[data-ui] .ph-roles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
[data-ui] .ph-role { border-radius: 14px; padding: 12px 10px; min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; font-weight: 700; font-size: 13px; background: var(--surface); border: 2px solid transparent; }
[data-ui] .ph-role b { font-family: var(--font-display); font-weight: 400; font-size: 15px; line-height: 1.3; }
[data-ui] .ph-role.is-human { border-color: var(--blue); color: var(--ink); }
[data-ui] .ph-role.is-human b { color: var(--blue); }
[data-ui] .ph-role.is-zombie b { color: #FF7A7E; }
[data-ui] .ph-role.is-random b { color: var(--gold); }
[data-ui] .ph-chip { display: inline-block; margin-top: 12px; padding: 6px 10px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 700; }
[data-ui] .ph-chip.is-zombie { color: #FF7A7E; }
[data-ui] .ph-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
[data-ui] .ph-row span:last-child { color: var(--muted); font-size: 14px; }
[data-ui] .ph-cta { margin-top: 16px; height: 56px; border-radius: 16px; background: #2563EB; color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; }
[data-ui] .ph-role-chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--surface); }
[data-ui] .ph-role-chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
[data-ui] .ph-role-chip.is-zombie i { background: var(--red); }
[data-ui] .ph-km { font-family: var(--font-display); font-size: 72px; line-height: 1.1; margin-top: 14px; color: #FFFFFF; font-variant-numeric: tabular-nums; }
[data-ui] .ph-km small { font-family: var(--font-text); font-size: 20px; font-weight: 700; margin-left: 6px; }
[data-ui] .ph-stats { display: flex; gap: 18px; color: var(--muted); font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
[data-ui] .ph-voice { margin-top: 16px; background: var(--surface); border-radius: 16px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
[data-ui] .ph-voice p { max-width: none; font-size: 15px; }
[data-ui] .ph-voice p b { color: var(--blue); }
[data-ui] .ph-play { width: 44px; height: 44px; border-radius: 50%; background: #2563EB; color: var(--ink); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
[data-ui] .ph-play[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
[data-ui] .ph-safe { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; }
[data-ui] .ph-safe b { color: var(--green); }
[data-ui] .ph-safe span { color: var(--muted); font-size: 14px; }
[data-ui] .ph-chase { color: #FF7A7E; font-weight: 700; font-size: 17px; }
[data-ui] .ph-count { font-family: var(--font-display); font-size: 110px; line-height: 1; color: #FFFFFF; margin-top: 8px; font-variant-numeric: tabular-nums; }
[data-ui] .ph-count small { font-family: var(--font-text); font-size: 15px; font-weight: 700; color: var(--muted); display: block; margin-top: -6px; }
[data-ui] .ph-target { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
[data-ui] .ph-target div { background: var(--surface); border-radius: 14px; padding: 10px 12px; font-size: 14px; color: var(--muted); font-weight: 700; }
[data-ui] .ph-target b { display: block; color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }
[data-ui] .ph-bar { margin-top: 14px; height: 10px; border-radius: 5px; background: var(--surface); overflow: hidden; }
[data-ui] .ph-bar i { display: block; height: 100%; width: 40%; background: var(--red); border-radius: 5px; }
[data-ui] .ph-bar + span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); font-weight: 700; }
[data-ui] .ph-loot { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
[data-ui] .ph-loot div { background: var(--surface); border-radius: 12px; padding: 8px; font-size: 14px; color: var(--muted); font-weight: 700; }
[data-ui] .ph-loot b { display: block; color: var(--green); font-size: 20px; font-family: var(--font-display); font-weight: 400; }
[data-ui] .ph-line { margin-top: 10px; font-size: 15px; }
[data-ui] .ph-line b { color: var(--blue); }
[data-ui] .ph-radio { margin-top: 12px; background: var(--surface); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
[data-ui] .ph-radio b { display: block; color: var(--ink); font-size: 15px; }
[data-ui] .ph-radio span { color: var(--muted); }
@media (max-width: 51.99em) {
  .stages__ui [data-ui].phone { border-radius: 28px 28px 0 0; }
}

/* ---------- pace ---------- */
.pace { padding-top: 0.5rem; }
.pace__line { display: flex; align-items: baseline; gap: 0.15em; font-family: var(--font-display); font-size: clamp(3rem, 8vw, 8.25rem); line-height: 1.05; }
.pace__input { width: 4.2ch; min-width: 0; background: transparent; border: 0; padding: 0; margin: 0; color: var(--accent-ink); caret-color: var(--accent-ink); font-variant-numeric: tabular-nums; border-radius: 0; }
.pace__input:focus-visible { outline-offset: 6px; }
.pace__unit { font-size: 0.45em; }
.pace__answer { margin-top: 48px; width: 560px; max-width: 100%; background: var(--bg); color: var(--ink); border-radius: 20px; padding: 18px 20px 20px; font-size: 15px; }
.pace__answer p { max-width: none; }
.pace__answer .ph-chase { font-size: 15px; }
.pace__answer dl { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 12px; }
.pace__answer dt { color: var(--muted); font-weight: 700; font-size: 14px; }
.pace__answer dd { font-family: var(--font-display); font-size: 32px; line-height: 1.2; font-variant-numeric: tabular-nums; color: #FFFFFF; }
.pace__answer dd small { font-family: var(--font-text); font-size: 14px; font-weight: 700; color: var(--muted); display: block; }
.pace__answer .ph-bar { margin-top: 14px; }
.pace__examples { display: flex; gap: 1.5rem; margin-top: 2.5rem; }
.pace__examples button { font-size: var(--step-body); font-weight: 700; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; min-height: 44px; }
.pace__rule { margin-top: 2rem; max-width: 46ch; }
.pace__pic { display: none; }
@media (min-width: 52em) {
  .chapter--pace { display: grid; grid-template-columns: 7fr 5fr; column-gap: var(--gutter); align-items: center; }
  .pace__pic { display: block; width: 100%; height: 72svh; object-fit: cover; }
}
@media (max-width: 51.99em) {
  .pace__line { font-size: 15vw; }
  .pace__answer { margin-top: 28px; width: 100%; }
  .pace__answer dl { grid-template-columns: 1fr; gap: 8px; }
  .pace__answer dd { font-size: 26px; }
  .pace__examples { flex-wrap: wrap; gap: 8px; margin-top: 1.75rem; }
  .pace__examples button { text-decoration: none; background: var(--accent-ink); color: var(--gold); padding: 0 1rem; min-height: 44px; }
}

/* ---------- picture sections ---------- */
.pic { min-height: 90svh; display: grid; grid-template-columns: 5fr 7fr; }
.pic--left { grid-template-columns: 7fr 5fr; }
.pic__text { padding: calc(var(--nav) + 2rem) var(--margin) 4rem; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.25rem; }
.pic__text p { max-width: 40ch; }
.pic__img { position: relative; overflow: hidden; }
.pic__img img { width: 100%; height: 100%; min-height: 90svh; object-fit: cover; }
.pic--city .pic__img img { object-position: 60% 30%; }
@media (min-width: 52em) { .pic--city .pic__img img { position: absolute; inset: 0; min-height: 0; } }
.pic--base .pic__img { padding: calc(var(--nav) + 2rem) 0 4rem var(--margin); }
.pic--base .pic__img img { min-height: 0; max-height: 82svh; width: auto; height: 82svh; object-fit: contain; object-position: left center; }
.pic--ward { display: block; }
.pic--ward .pic__img img { min-height: 0; height: 60svh; object-fit: cover; object-position: center 40%; }
.pic--ward .pic__text { padding-top: 3rem; padding-bottom: 5rem; display: grid; grid-template-columns: 5fr 7fr; column-gap: var(--gutter); align-items: start; }
.pic--ward .pic__text p { max-width: 48ch; }
.pic__points { margin-top: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); row-gap: 0.5rem; font-weight: 700; }
.pic__points span { font-size: var(--step-lead); margin-right: 0.3em; }
@media (max-width: 51.99em) {
  .pic, .pic--left { grid-template-columns: 1fr; }
  .pic__img { order: -1; }
  .pic__img img, .pic--city .pic__img img { min-height: 0; height: 62svh; }
  .pic--base .pic__img { padding: var(--nav) 0 0; }
  .pic--base .pic__img img { width: 100%; height: 64svh; object-fit: cover; object-position: center 45%; }
  .pic__text { padding: 1.75rem 20px 3.5rem; }
  .pic--ward .pic__img img { height: 70svw; }
  .pic--ward .pic__text { grid-template-columns: 1fr; row-gap: 1rem; padding-top: 1.75rem; }
}

/* ---------- about ---------- */
.about { padding: 120px var(--margin); }
.about__lead { max-width: none; text-wrap: balance; font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1.12; color: var(--paper-soft); }
.about b { color: var(--paper-ink); font-weight: 700; }
.about__rows { margin-top: 3rem; }
.about__rows div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: 1.25rem; border-top: 1px solid var(--paper-step); }
.about__rows dt { grid-column: 1 / 4; font-size: var(--step-lead); line-height: 1.35; font-weight: 700; color: var(--paper-ink); }
.about__rows dt::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.5em; background: var(--c); }
.about__rows dd { grid-column: 4 / 11; max-width: 52ch; font-size: var(--step-lead); line-height: 1.35; color: var(--paper-soft); text-wrap: pretty; }
.about__cta { display: inline-block; margin-top: 2.5rem; padding: 0.3em 0.5em; background: var(--gold); color: var(--paper-ink); font-size: var(--step-lead); font-weight: 700; text-decoration: none; }
@media (max-width: 51.99em) {
  .about { padding: 72px 18px; }
  .about__rows { margin-top: 2rem; }
  .about__rows div { grid-template-columns: 1fr; row-gap: 0.35rem; }
  .about__rows dt, .about__rows dd { grid-column: 1; font-size: 1.125rem; }
  .about__cta { display: block; }
}

/* ---------- gear ---------- */
.gear { padding-top: var(--nav); }
.band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; min-height: 20vh; padding: 1.25rem var(--margin); background: var(--bg); color: var(--muted); transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.band__text { grid-column: 1 / 11; }
.band__text p { max-width: none; font-size: clamp(1.375rem, 2.4vw, 2.125rem); line-height: 1.15; font-weight: 700; }
.band__result { margin-top: 0.5rem; font-size: var(--step-body); font-weight: 400; max-width: none; display: none; }
.band__switch { grid-column: 11 / 13; justify-self: end; }
.band.is-on, .band:has(input:checked) { color: var(--ink); }
.band.is-on .band__result, .band:has(input:checked) .band__result { display: block; }
.band--blue.is-on, .band--blue:has(input:checked) { background: var(--blue); }
.band--red.is-on, .band--red:has(input:checked) { background: var(--red); }
.band--gold.is-on, .band--gold:has(input:checked) { background: var(--gold); color: var(--accent-ink); }
.band--green.is-on, .band--green:has(input:checked) { background: var(--green); color: var(--accent-ink); }
.band--paper.is-on, .band--paper:has(input:checked) { background: var(--paper); color: var(--paper-ink); }
.switch { position: relative; display: inline-block; width: 2.1em; height: 1.1em; font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; background: var(--surface); border-radius: 1em; transition: background-color var(--t-ui) ease; }
.switch__track::after { content: ""; position: absolute; top: 0.1em; left: 0.1em; width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--muted); transition: transform var(--t-ui) var(--ease-out), background-color var(--t-ui) ease; }
.switch input:checked + .switch__track { background: var(--ink); }
.switch input:checked + .switch__track::after { transform: translateX(1em); background: var(--bg); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--accent); outline-offset: 3px; }
.band--gold .switch input:checked + .switch__track, .band--green .switch input:checked + .switch__track, .band--paper .switch input:checked + .switch__track { background: var(--accent-ink); }
.band--gold .switch input:checked + .switch__track::after { background: var(--gold); }
.band--green .switch input:checked + .switch__track::after { background: var(--green); }
.band--paper .switch input:checked + .switch__track::after { background: var(--paper); }
.gear__sum { padding: 2.5rem var(--margin) 5rem; }
.gear__sum p { max-width: 60ch; }
@media (max-width: 51.99em) {
  .band { min-height: 132px; padding: 1.25rem 20px; column-gap: 0; }
  .band__text { grid-column: 1 / 10; }
  .band__text p { font-size: 22px; }
  .band__result { font-size: 17px; }
  .band__switch { grid-column: 10 / 13; }
  .switch { font-size: 1.75rem; }
  .gear__sum { padding: 2rem 20px 4rem; }
}

/* ---------- radio ---------- */
.radio { padding: calc(var(--nav) + 2rem) var(--margin) 5rem; }
.radio__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.radio__head h2 span { display: block; }
.radio__head h2 .is-soft { color: var(--paper-soft); }
.radio__head .button { flex: none; }
.radio__body { margin-top: 56px; display: grid; grid-template-columns: 150px 1fr; column-gap: 40px; align-items: start; }
.tabs { display: grid; gap: 6px; }
.tab { position: relative; display: block; height: 64px; background: var(--paper-step); color: var(--paper-ink); padding: 10px 12px; cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.tab input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tab b { display: block; font-size: 15px; line-height: 1.2; }
.tab span { display: block; font-size: 14px; line-height: 1.2; margin-top: 2px; color: var(--paper-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab.is-on, .tab:has(input:checked) { background: var(--paper-ink); color: var(--paper); }
.tab.is-on span, .tab:has(input:checked) span { color: var(--paper); }
.tab input:focus-visible ~ b { outline: 3px solid var(--accent); outline-offset: 6px; }
.js .season { display: none; }
.js .season.is-on { display: grid; }
.season { display: grid; gap: 4px; }
.no-js .season + .season { margin-top: 40px; }
.ep { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; column-gap: 16px; min-height: 76px; padding: 10px 20px; background: var(--paper-step); }
.ep:nth-child(even) { background: var(--paper); }
.ep__km { font-size: var(--step-body); font-weight: 700; font-variant-numeric: tabular-nums; }
.ep__km small { display: block; font-size: 14px; font-weight: 400; color: var(--paper-soft); }
.ep__title { font-weight: 700; font-size: var(--step-body); line-height: 1.25; }
.ep__note { display: block; font-size: 15px; font-weight: 400; color: var(--paper-soft); margin-top: 2px; }
.ep__who { font-family: var(--font-display); font-size: 14px; padding: 6px 10px; background: #2563EB; color: var(--ink); }
.ep__who.is-hive { background: var(--red); }
@media (max-width: 51.99em) {
  .radio { padding: calc(var(--nav) + 1rem) 20px 4rem; }
  .radio__head { flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .radio__body { grid-template-columns: 1fr; margin-top: 32px; row-gap: 20px; }
  .tabs { grid-template-columns: repeat(3, 1fr); position: sticky; top: var(--nav); z-index: 2; background: var(--paper); padding-block: 8px; }
  .tab { height: 56px; padding: 8px 10px; }
  .ep { grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding: 16px; row-gap: 6px; }
  .ep__km { grid-row: 1; font-size: 17px; }
  .ep__km small { display: inline; margin-left: 4px; }
  .ep__who { grid-row: 1; grid-column: 2; }
  .ep__title { grid-column: 1 / -1; }
}

/* ---------- faq ---------- */
.faq__head { min-height: 40svh; display: flex; align-items: flex-end; padding: calc(var(--nav) + 1rem) var(--margin) 2rem; background: var(--gold); color: var(--accent-ink); }
.faq__head h2 { font-size: clamp(3rem, 7vw, 8rem); line-height: 1; }
.qa { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: 56px var(--margin); background: var(--bg); color: var(--ink); }
.qa:nth-of-type(even) { background: var(--surface); }
.qa h3 { grid-column: 1 / 6; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; }
.qa p { grid-column: 7 / 13; max-width: 60ch; }
@media (max-width: 51.99em) {
  .faq__head { min-height: 30svh; padding: calc(var(--nav) + 1rem) 20px 1.5rem; }
  .faq__head h2 { font-size: 13vw; }
  .qa { grid-template-columns: 1fr; padding: 32px 20px; row-gap: 0.75rem; }
  .qa h3 { grid-column: 1; font-size: 22px; }
  .qa p { grid-column: 1; font-size: 17px; }
}

/* ---------- sign-up ---------- */
.cta { padding: calc(var(--nav) + 2rem) var(--margin) 5rem; }
.cta__sentence { font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.15; font-weight: 700; max-width: none; grid-column: 1 / 12; }
.cta__sentence input { width: 6em; max-width: 100%; height: 1.15em; vertical-align: baseline; background: var(--blue-step); color: var(--ink); border: 0; padding: 0 0.2em; margin: 0; font: inherit; border-radius: var(--radius); }
.cta__sentence input::placeholder { color: var(--ink); opacity: 0.6; }
.cta__sentence button { height: 1.15em; padding: 0 0.3em; background: var(--accent); color: var(--accent-ink); font: inherit; line-height: 1; vertical-align: baseline; white-space: nowrap; border-radius: var(--radius); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.cta__sentence button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .cta__sentence button:hover { background: var(--ink); } }
.cta__after { grid-column: 1 / 9; margin-top: 1.5rem; font-size: var(--step-small); max-width: 60ch; }
.cta__after a { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
@media (max-width: 51.99em) {
  .cta { padding: calc(var(--nav) + 1rem) 20px 4rem; }
  .cta__sentence { font-size: 24px; }
  .cta__sentence button { max-width: 100%; }
  .cta__sentence input { display: block; width: 100%; margin: 0.15em 0; }
  .cta__after { font-size: 15px; }
}

/* ---------- footer ---------- */
.footer { padding: calc(var(--nav) + 1rem) var(--margin) 2rem; background: var(--bg); color: var(--ink); }
.blocks { display: flex; gap: 4px; align-items: flex-end; height: 34svh; min-height: 180px; }
.blocks span { flex: 1 1 0; display: grid; place-items: center; font-family: var(--font-display); font-size: clamp(2rem, 7.2vw, 8.5rem); line-height: 1; color: var(--bg); background: var(--blue); }
.blocks span:nth-child(5n+2) { background: var(--red); }
.blocks span:nth-child(5n+3) { background: var(--gold); }
.blocks span:nth-child(5n+4) { background: var(--green); }
.blocks span:nth-child(5n+5) { background: var(--paper); }
.blocks .gap { flex: 0 0 2vw; background: none; }
.footer__links { margin-top: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.5rem; }
.footer__links ul { grid-column: span 2; display: grid; gap: 0.5rem; font-size: 15px; }
.footer__links ul a { text-decoration: none; font-weight: 700; }
.footer__contact { grid-column: 9 / 13; font-size: 15px; display: grid; gap: 0.5rem; align-content: start; }
.footer__contact a { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
.footer__bottom { margin-top: 3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 15px; }
.footer__bottom .button { min-height: 2.5rem; padding-inline: 1rem; font-size: 15px; }
@media (max-width: 51.99em) {
  .footer { padding: var(--nav) 20px 1.5rem; }
  .blocks { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 11svh; height: auto; min-height: 0; align-items: end; }
  .blocks span { font-size: 11vw; }
  .blocks .gap, .blocks .break { display: none; }
  .footer__links { grid-template-columns: 1fr 1fr; }
  .footer__links ul { grid-column: span 1; }
  .footer__contact { grid-column: 1 / -1; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__bottom { transform: translateY(100%); animation: tide 1100ms var(--ease-in-out) 200ms forwards; }
  .js .hero__title { opacity: 0; animation: appear 700ms var(--ease-out) 900ms forwards; }
  .js .hero__lead { opacity: 0; transform: translate(-50%, calc(-100% + 18px)); animation: lead-up 700ms var(--ease-out) 1300ms forwards; }
  @supports (animation-timeline: view()) {
    .js .pic--city .pic__img img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes tide { to { transform: none; } }
@keyframes appear { to { opacity: 1; } }
@keyframes lead-up { to { opacity: 1; transform: translate(-50%, -100%); } }
@keyframes drift { from { transform: scale(1.08) translateY(3%); } to { transform: scale(1.08) translateY(-3%); } }
