/* The Elo Factory: marketing site
   Plain CSS, no build step. Shared by every page in English and Spanish. */

:root {
  --ink: #0F1B3D;
  --ink-soft: #4A5677;
  --paper: #F2F4F8;
  --surface: #FFFFFF;
  --rule: #C9D1E3;
  --red: #D8352A;
  --red-strong: #B92A20;
  --green: #1E8E4E;
  --blue: #2560D8;
  --gold: #946A00;
  --on-accent: #FFFFFF;

  --bg: var(--paper);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --card: var(--surface);
  --line: var(--rule);
  --band: var(--ink);
  --band-text: #FFFFFF;
  --band-muted: #B9C3DB;
  --station: #FFFFFF;
  --station-ring: var(--ink);
  --bezel: #0B1229;
  --bezel-ring: transparent;
  --shadow: 0 1px 2px rgb(15 27 61 / 0.06), 0 12px 32px rgb(15 27 61 / 0.10);
  --shadow-phone: 0 2px 6px rgb(15 27 61 / 0.12), 0 30px 60px -12px rgb(15 27 61 / 0.35);
  --focus: #2560D8;

  /* spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 96px;
  --s10: 128px;

  --radius: 16px;
  --radius-lg: 24px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);

  --font-display: "Hammersmith One", "Arial Rounded MT Bold", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1230;
    --text: #EEF1F8;
    --muted: #AEB8D2;
    --card: #121D42;
    --line: #2A3868;
    --band: #050B22;
    --band-text: #FFFFFF;
    --band-muted: #AEB8D2;
    --red: #E2463B;
    --red-strong: #C7372D;
    --green: #3DBA74;
    --blue: #6E9BFF;
    --gold: #E0B23C;
    --station: #0A1230;
    --station-ring: #EEF1F8;
    --bezel: #030614;
    --bezel-ring: #34447A;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.35);
    --shadow-phone: 0 2px 6px rgb(0 0 0 / 0.4), 0 30px 60px -12px rgb(0 0 0 / 0.6);
    --focus: #8FB3FF;
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: var(--s2) var(--s4);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: var(--s4); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  white-space: nowrap;
  margin-right: auto;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--s1);
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: var(--s2) var(--s3);
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.nav .nav-section { display: none; }
.nav .lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
}
.nav .lang svg { width: 16px; height: 16px; }
.nav .nav-app { display: none; }

@media (min-width: 860px) {
  .nav .nav-section { display: inline-block; }
}
@media (min-width: 560px) {
  .nav .nav-app {
    display: inline-block;
    background: var(--text);
    color: var(--bg);
    margin-left: var(--s2);
  }
  .nav .nav-app:hover { background: var(--text); opacity: 0.88; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 52px;
  padding: 0 var(--s5);
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--text);
  color: var(--text);
  background: transparent;
  transition: background-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-red { background: var(--red); border-color: var(--red); color: var(--on-accent); }
.btn-red:hover { background: var(--red-strong); border-color: var(--red-strong); color: var(--on-accent); }
.on-band .btn { border-color: #fff; color: #fff; }
.on-band .btn:hover { background: #fff; color: var(--ink); }

/* Store buttons.
   Placeholders until the apps are published: see the comment in the HTML and STORE_LINKS in site.js. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: flex-start;
}
.store {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  min-width: 184px;
  padding: 0 var(--s5) 0 var(--s4);
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid #A6A6A6;
  transition: transform 0.15s, box-shadow 0.15s;
}
.store-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgb(0 0 0 / 0.25); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn small { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.02em; }
.store-btn strong { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.store-btn[aria-disabled="true"] { cursor: default; }
.store-btn[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
.soon {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.on-band .soon { color: var(--band-muted); }
.store.is-recommended { order: -1; }
@media (max-width: 420px) {
  .stores { gap: var(--s2); width: 100%; }
  .store { flex: 1 1 0; min-width: 0; }
  .store-btn { min-width: 0; width: 100%; height: 52px; padding: 0 var(--s3); gap: 8px; justify-content: center; }
  .store-btn svg { width: 22px; height: 22px; }
  .store-btn strong { font-size: 1.0625rem; }
  .store-btn small { font-size: 0.625rem; }
  .cta-row .web { width: 100%; }
  .cta-row .web .btn { width: 100%; }
  .cta-row .web .soon { display: none; }
}
.store.is-recommended .store-btn {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--red);
}
.on-band .store.is-recommended .store-btn { box-shadow: 0 0 0 3px var(--band), 0 0 0 5px var(--red); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--s3) var(--s4);
}
.cta-row .web { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cta-row .web .btn { min-height: 56px; }
.cta-row .web .soon { visibility: hidden; }

/* ---------- eyebrows, headings ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 6px;
  border-radius: 3px;
  background: var(--red);
}

.section { padding-block: var(--section); }
.section-head { max-width: 720px; display: grid; gap: var(--s4); margin-bottom: var(--s8); }
.section-head h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); }
.section-head p { color: var(--muted); font-size: 1.1875rem; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: var(--s7);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  gap: var(--s8);
  align-items: center;
}
.hero-copy { display: grid; gap: var(--s5); justify-items: start; position: relative; z-index: 1; }
.hero-icon {
  width: clamp(64px, 5vw + 44px, 84px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22%;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(2.875rem, 1.6rem + 5.6vw, 5.5rem);
  line-height: 1;
}
.hero h1 .accent { color: var(--red); }
.hero .lead {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  color: var(--muted);
  max-width: 34ch;
}
.hero .cta-row { margin-top: var(--s2); }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  padding: 0;
  margin: var(--s2) 0 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
}
.hero-facts li { display: inline-flex; align-items: center; gap: var(--s2); }
.hero-facts li::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2.5px solid var(--green);
  background: var(--station);
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}
.hero-line {
  position: absolute;
  left: -20%;
  right: -50vw;
  top: 60%;
  height: 14px;
  border-radius: 7px;
  background: var(--red);
}
.hero-line::before,
.hero-line::after {
  content: "";
  position: absolute;
}
/* a second route running alongside */
.hero-line::before {
  left: 0;
  right: 0;
  top: 28px;
  height: 14px;
  border-radius: 7px;
  background: var(--green);
}
/* a station on the line, left of the phones */
.hero-line::after {
  left: 0;
  top: -11px;
  width: 36px;
  height: 64px;
  border-radius: 18px;
  background: var(--station);
  border: 5px solid var(--station-ring);
}
.hero-station {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(470px, 92vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: color-mix(in srgb, var(--red) 9%, var(--bg));
}
.hero-phones {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 440px);
  padding: var(--s4) var(--s3);
}
.hero-phones .phone { grid-area: 1 / 1; }
.hero-phones .phone.front { width: 62%; justify-self: end; }
.hero-phones .phone.back {
  width: 54%;
  justify-self: start;
  margin-top: 14%;
  transform: rotate(-6deg);
}

@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: var(--s7); }
  .hero-phones { width: 500px; }
  .hero-station { width: 600px; }
  .hero-phones .phone.front { width: 300px; }
  .hero-phones .phone.back { width: 256px; }
}

/* ---------- phone frame ---------- */

.phone {
  position: relative;
  border-radius: 46px;
  padding: 10px;
  background: var(--bezel);
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px var(--bezel-ring), inset 0 0 0 3px #1c2445;
  margin: 0;
}
.phone .screen {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #F2F4F8;
}
.phone .status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 22px 0 26px;
  font: 600 13px/1 var(--font-body);
  color: #0F1B3D;
  background: #F2F4F8;
}
.phone .island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 32%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.phone .status i {
  display: inline-block;
  width: 22px;
  height: 10px;
  border: 1.5px solid #0F1B3D;
  border-radius: 3px;
  position: relative;
}
.phone .status i::after {
  content: "";
  position: absolute;
  inset: 1.5px 5px 1.5px 1.5px;
  background: #0F1B3D;
  border-radius: 1px;
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1300;
  object-fit: cover;
  object-position: top;
}
.phone.small { border-radius: 38px; padding: 8px; }
.phone.small .screen { border-radius: 30px; }
.phone.small .status { height: 30px; font-size: 11px; padding: 0 18px 0 22px; }
.phone.small .island { top: 8px; height: 18px; }

/* ---------- decorative route band ---------- */

.route-band {
  display: block;
  width: 100%;
  height: clamp(84px, 10vw, 140px);
  max-width: none;
}
.route-band .station { fill: var(--station); stroke: var(--station-ring); stroke-width: 5; }
.route-band .interchange { fill: var(--station); stroke: var(--station-ring); stroke-width: 5; }
.route-band .train { fill: var(--station-ring); }
@media (prefers-reduced-motion: no-preference) {
  .route-band .train { animation: ride 14s linear infinite; }
}
@keyframes ride {
  from { transform: translateX(-80px); }
  to { transform: translateX(1520px); }
}

/* ---------- how it works: stations on a line ---------- */

.route {
  list-style: none;
  margin: 0;
  padding: 0 0 0 52px;
  display: grid;
  gap: var(--s8);
}
.stop { position: relative; display: grid; gap: var(--s3); align-content: start; }
/* each stop draws the stretch of line to the next one */
.stop:not(:last-child)::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 17px;
  bottom: calc(-1 * var(--s8) - 17px);
  width: 8px;
  background: var(--red);
}
.stop-marker {
  position: absolute;
  z-index: 1;
  left: -52px;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--station);
  border: 5px solid var(--station-ring);
}
.stop-label {
  display: block;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 34px;
}
.stop h3 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); }
.stop p { color: var(--muted); max-width: 36ch; }
.stop .phone { width: min(250px, 100%); margin-top: var(--s4); }
.phone.crop {
  padding-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, #000 86%, transparent);
}
.phone.crop .screen { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.phone.crop img { aspect-ratio: 600 / 1030; }

@media (min-width: 900px) {
  .route {
    padding: 0;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s6);
  }
  .stop:not(:last-child)::before {
    left: 17px;
    right: calc(-1 * var(--s6) - 17px);
    top: 13px;
    bottom: auto;
    width: auto;
    height: 8px;
  }
  .stop-marker { position: relative; left: auto; display: block; }
  .stop-label { line-height: 1.4; margin-top: var(--s3); }
  .stop .phone { width: min(260px, 100%); }
}

.cards-title {
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  margin: clamp(80px, 10vw, 140px) 0 var(--s6);
}

/* ---------- feature rows ---------- */

.rows { display: grid; gap: clamp(72px, 10vw, 140px); }
.row {
  display: grid;
  gap: var(--s7);
  align-items: center;
}
.row-copy { display: grid; gap: var(--s4); justify-items: start; }
.row-copy h3 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); }
.row-copy > p { color: var(--muted); font-size: 1.1875rem; max-width: 40ch; }
.row .phone { width: min(280px, 78vw); margin-inline: auto; }
.row-art { position: relative; display: flex; justify-content: center; }
.row-art::before {
  content: "";
  position: absolute;
  inset: 12% 0 18% 0;
  border-radius: 40px;
  background: color-mix(in srgb, var(--accent, var(--red)) 12%, transparent);
  z-index: 0;
}
.row-art .phone { position: relative; z-index: 1; }

.line-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--accent, var(--red));
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.ticks {
  list-style: none;
  margin: var(--s2) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s3);
}
.ticks li {
  position: relative;
  padding-left: 32px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 4px solid var(--accent, var(--red));
  background: var(--station);
}
.ticks li::before { z-index: 1; }
.ticks li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(0.32em + 8px);
  bottom: calc(-1 * var(--s3) - 0.32em - 8px);
  width: 4px;
  background: var(--accent, var(--red));
}

@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; gap: var(--s9); }
  .row.flip .row-art { order: -1; }
  .row-art::before { inset: 12% 4% 18% 4%; }
  .row .phone { width: 300px; }
}

/* ---------- small feature cards ---------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s6) var(--s5);
  display: grid;
  gap: var(--s3);
  align-content: start;
}
.card h3 { font-size: 1.5rem; }
.card p { color: var(--muted); }
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent, var(--red)) 14%, transparent);
  color: var(--accent, var(--red));
  margin-bottom: var(--s2);
}
.card .icon svg { width: 24px; height: 24px; }

/* ---------- openings ---------- */

.openings-section { background: var(--card); border-block: 1px solid var(--line); }
.openings {
  display: grid;
  gap: var(--s5);
}
@media (min-width: 900px) { .openings { grid-template-columns: 1fr 1fr 0.8fr; } }

.opening {
  border: 2px solid var(--text);
  border-radius: var(--radius-lg);
  padding: var(--s6);
  display: grid;
  gap: var(--s3);
  align-content: start;
  background: var(--bg);
}
.opening .side {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--muted);
}
.opening .side::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--text);
  background: transparent;
}
.opening.black .side::before { background: var(--text); }
.opening h3 { font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.375rem); }
.opening p { color: var(--muted); }
.opening .mini-route { margin-top: var(--s4); width: 100%; height: 28px; }
.opening .lines {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  padding: 0;
  margin: var(--s2) 0 0;
  list-style: none;
}
.opening .lines li {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
}
.opening.soon-card {
  border-style: dashed;
  border-color: var(--line);
  background: transparent;
  align-content: center;
  justify-items: start;
}
.opening.soon-card .side::before { border-style: dashed; border-color: var(--muted); }
.opening.soon-card h3 { font-size: 1.75rem; }

/* ---------- languages ---------- */

.langs {
  display: grid;
  gap: var(--s7);
  align-items: center;
}
@media (min-width: 900px) { .langs { grid-template-columns: 1fr 1fr; gap: var(--s9); } }
.langs .section-head { margin-bottom: 0; }
.bubbles { display: grid; gap: var(--s4); }
.bubble {
  margin: 0;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s3);
  align-items: start;
}
.bubble .coach {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--text);
  display: grid;
  place-items: center;
  background: var(--card);
}
.bubble .coach svg { width: 22px; height: 22px; }
.bubble blockquote {
  margin: 0;
  background: var(--card);
  border: 2px solid var(--red);
  border-radius: 12px;
  padding: var(--s4) var(--s5);
  display: grid;
  gap: var(--s2);
}
.bubble blockquote p:first-child { font-weight: 700; font-size: 1.125rem; line-height: 1.4; }
.bubble blockquote p + p { color: var(--muted); font-size: 0.9375rem; }
.bubble .tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- final call to action ---------- */

.final {
  background: var(--band);
  color: var(--band-text);
  position: relative;
  overflow: hidden;
}
.final .wrap { position: relative; z-index: 1; display: grid; gap: var(--s6); justify-items: center; text-align: center; }
.final h2 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); max-width: 16ch; }
.final p.lead { color: var(--band-muted); font-size: 1.1875rem; max-width: 44ch; }
.final .cta-row { justify-content: center; }
.final .facts {
  list-style: none;
  padding: 0;
  margin: var(--s4) 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3) var(--s6);
  color: var(--band-muted);
  font-weight: 600;
  font-size: 0.9375rem;
}
.final .facts li { display: inline-flex; gap: var(--s2); align-items: center; }
.final .facts svg { width: 18px; height: 18px; color: #5BD08F; flex: none; }
.final .route-band { position: absolute; left: 0; right: 0; opacity: 0.35; }
.final .route-band.top { top: 0; }
.final .route-band.bottom { bottom: 0; transform: scaleX(-1); }
.final .route-band .station, .final .route-band .interchange { fill: var(--band); stroke: #fff; }
.final .route-band .train { fill: #fff; }

/* ---------- footer ---------- */

.site-footer {
  padding-block: var(--s8) var(--s7);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}
.site-footer .wrap { display: grid; gap: var(--s6); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s5);
}
.footer-top .brand { color: var(--text); }
.footer-top p { margin-top: var(--s3); max-width: 32ch; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
  color: var(--text);
}
.footer-links a { text-decoration: none; padding: 4px 0; display: inline-block; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s2) var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

/* ---------- legal pages ---------- */

.legal { padding-block: clamp(40px, 6vw, 80px) var(--section); }
.legal .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal header { display: grid; gap: var(--s4); margin-bottom: var(--s7); }
.legal h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem); }
.legal .updated { color: var(--muted); font-weight: 600; }
.draft-note {
  border-left: 6px solid var(--red);
  background: var(--card);
  border-radius: 0 12px 12px 0;
  padding: var(--s4) var(--s5);
  color: var(--muted);
  font-size: 0.9375rem;
}
.prose { display: grid; gap: var(--s4); }
.prose h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  margin-top: var(--s6);
}
.prose ul { margin: 0; padding-left: 1.25em; display: grid; gap: var(--s2); }
.prose li::marker { color: var(--red); }
.prose a { color: var(--text); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-weight: 700; background: color-mix(in srgb, var(--text) 4%, transparent); }
@media (max-width: 640px) {
  .prose table { min-width: 0; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { display: block; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
  .prose tr:last-child { border-bottom: 0; }
  .prose td { display: block; border: 0; padding: var(--s1) var(--s4); }
  .prose td:first-child { font-weight: 700; }
  .prose td:not(:first-child)::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--muted);
  }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.final .hero-icon { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18), 0 12px 32px rgb(0 0 0 / 0.35); }
