/* Tuane's Cleaning: The Route. Transit wayfinding on white and cool grey, lines in three purples. */

@font-face {
  font-family: 'Overpass';
  src: url('/assets/fonts/overpass-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --field: #eef0f5;
  --rule: #d4d8e2;
  --ink: #2b0f3a;
  --ink-2: #4a4058;
  --muted: #5d6273;
  --deep: #4b1c9c;
  --deep-press: #3c1482;
  --mid: #7a44e0;
  --light: #c8b3f5;
  --tint: #f3eefe;
  --open: #2fbf71;
  --chip-on: #e3d7fb;
  --orchid: #b04fd8;
  --on-ink: #ddd2ee;
  --error: #b3261e;
  --placeholder: #6b7080;

  --font: 'Overpass', 'Helvetica Neue', Arial, sans-serif;
  --max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --indent: 88px;
  --line-x: 22px;
  --line-w: 8px;
  --bar-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  caret-color: var(--deep);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }

::selection { background: var(--light); color: var(--ink); }

a { color: var(--deep); text-underline-offset: 0.22em; text-decoration-thickness: 2px; }
a:hover { color: var(--mid); }

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

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--deep); color: var(--white); padding: 12px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }
.skip:hover { color: var(--white); }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Station tokens (buttons) ---------- */

.token {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 3px 22px 0 16px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 750; font-size: 1rem; line-height: 1; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.token:active { transform: translateY(1px); }

.token__stop {
  margin-top: -3px;
  width: 14px; height: 14px; flex: none; border-radius: 50%;
  background: var(--white); border: 3px solid var(--light);
  transition: box-shadow 220ms var(--ease);
}

.token--solid {
  background: var(--deep); color: var(--white);
  box-shadow: 0 10px 22px -12px rgba(75, 28, 156, 0.8);
}
.token--solid:hover { background: var(--deep-press); color: var(--white); transform: translateY(-1px); }
.token--solid:hover .token__stop { box-shadow: 0 0 0 5px rgba(200, 179, 245, 0.35); }

.token--line { background: var(--white); color: var(--deep); border-color: var(--deep); padding: 3px 22px 0 18px; }
.token--line:hover { background: var(--tint); color: var(--deep); }

.token--large { min-height: 58px; font-size: 1.08rem; padding: 3px 28px 0 20px; }
.token--large.token--line { padding: 3px 28px 0 22px; }
.token--large .token__stop { width: 16px; height: 16px; }
.token--compact { min-height: 44px; font-size: 0.95rem; padding: 3px 18px 0 13px; }
.token--compact.token--line { padding: 3px 18px 0 14px; }
.token--compact .token__stop { width: 12px; height: 12px; border-width: 3px; }

.token--on-dark.token--solid { background: var(--white); color: var(--ink); box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.6); }
.token--on-dark.token--solid .token__stop { border-color: var(--mid); }
.token--on-dark.token--solid:hover { background: var(--tint); color: var(--ink); }
.token--on-dark.token--line { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.85); }
.token--on-dark.token--line:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.token--on-dark:focus-visible { outline-color: var(--white); }

/* ---------- Header ---------- */

.bar {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.bar__inner {
  height: var(--bar-h);
  display: flex; align-items: center; gap: 32px;
  padding-inline: var(--edge);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand__logo { width: auto; height: 58px; }

.bar__nav { display: flex; gap: 4px; margin-left: auto; }
.bar__nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--ink-2); font-weight: 650; text-decoration: none; border-radius: 999px;
}
.bar__nav a:hover { color: var(--deep); background: var(--field); }
.bar__doors { display: flex; gap: 10px; }

/* ---------- Hero ---------- */

.hero {
  overflow-x: clip; /* the stop panel slides in from the right; never widen the page */
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  min-height: min(calc(100svh - var(--bar-h)), 900px);
}

.hero__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 7vh, 88px) clamp(32px, 5vw, 80px) clamp(40px, 7vh, 88px) var(--edge);
}

.hero h1 {
  font-size: clamp(2.75rem, 1.1rem + 5.1vw, 6rem);
  font-weight: 820;
  line-height: 0.94;
  letter-spacing: -0.035em;
  max-width: 11.5ch;
  text-wrap: balance;
  color: var(--ink);
}

.hero__lead {
  margin-top: clamp(20px, 3vh, 32px);
  max-width: 34em;
  font-size: clamp(1.1rem, 0.95rem + 0.45vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__doors { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 40px); }

.proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  margin-top: clamp(28px, 5vh, 48px);
  padding-top: 20px; border-top: 1px solid var(--rule);
  font-size: 0.95rem; font-weight: 650; color: var(--ink-2);
}
.proof li { display: inline-flex; align-items: center; }
.proof li + li::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mid);
  margin-right: 14px; align-self: center;
}
.proof strong { font-size: 1.15rem; font-weight: 850; color: var(--ink); font-variant-numeric: tabular-nums; }
.proof__sub { color: var(--muted); font-weight: 500; }
.proof__link { color: inherit; text-decoration: underline; text-decoration-color: var(--light); }
.proof__link:hover { color: var(--deep); text-decoration-color: currentColor; }
.leg__lead--docs { margin-top: 0; margin-bottom: 28px; font-size: 1.05rem; }

/* ---------- Route map ---------- */

.route {
  --row: 34px;
  --dot: 20px;
  --dx: 16px;
  --bx: 44px;
  background: var(--field);
  padding: clamp(28px, 4.5vh, 48px) var(--edge) clamp(28px, 4vh, 40px) clamp(28px, 4vw, 64px);
  display: flex; flex-direction: column;
  min-width: 0;
}

.route__sign { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.route__sign img { width: 54px; height: auto; flex: none; }
.route__title { font-size: 1.35rem; font-weight: 820; letter-spacing: -0.01em; line-height: 1.1; }
.route__sub { color: var(--muted); font-size: 0.95rem; font-weight: 600; margin-top: 2px; }

/* the map: one grid row per station; the Eastside branch hangs off the junction to the right */
.route__map { position: relative; display: grid; grid-template-rows: repeat(var(--rows), var(--row)); }
.route__line { display: contents; }
.route__branch-label { display: none; }

.stop { position: relative; grid-row: var(--r); grid-column: 1; min-width: 0; }
.stop--branch { margin-left: var(--bx); }

.stop__btn {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  width: 100%; height: 100%;
  padding: 0 10px 0 0; margin: 0;
  background: transparent; border: 0; border-radius: 12px;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  transition: background-color 200ms var(--ease);
}
.stop__btn:hover { background: rgba(255, 255, 255, 0.7); }

.stop__dot {
  justify-self: center;
  width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--white); border: 5px solid var(--leg);
  transition: opacity 260ms var(--ease), border-color 220ms var(--ease), transform 320ms var(--ease), box-shadow 320ms var(--ease);
}

.stop__name { font-size: 1.05rem; font-weight: 750; line-height: 1.15; letter-spacing: 0.025em; display: flex; align-items: center; gap: 4px 10px; min-width: 0; }
.stop__label { padding-top: 2px; white-space: nowrap; }

.stop--home .stop__dot { width: 30px; height: 30px; border-width: 7px; border-color: var(--deep); box-shadow: 0 0 0 3px var(--field), 0 0 0 5px var(--deep); }
.stop--home .stop__name { font-size: 1.1rem; font-weight: 800; }
.stop--home .stop__label { background: var(--deep); color: var(--white); padding: 6px 10px 4px; border-radius: 7px; line-height: 1; }
.stop__home { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep); white-space: nowrap; }

.stop__days { display: flex; gap: 4px; }
.chip {
  display: inline-grid; place-items: center;
  min-width: 38px; height: 26px; padding: 2px 6px 0;
  border-radius: 7px; border: 1px solid transparent;
  font-size: 0.75rem; font-weight: 750; letter-spacing: 0.02em; color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: background-color 260ms var(--ease), color 260ms var(--ease), box-shadow 320ms var(--ease), border-color 260ms var(--ease);
}
.chip--on { background: var(--chip-on); color: var(--deep); font-weight: 850; }

/* legs */
.stop--leg-a { --leg: var(--deep); }
.stop--leg-b { --leg: var(--mid); }
.stop--leg-c { --leg: var(--light); }
.stop--leg-e { --leg: var(--orchid); }

/* segments: from a stop's dot down to the next stop of the same line, --span rows away */
.seg {
  position: absolute; z-index: 1;
  left: calc(var(--dx) - var(--line-w) / 2); top: 50%;
  width: var(--line-w); height: calc(var(--span, 1) * var(--row));
  border-radius: 4px;
  transition: opacity 260ms var(--ease);
}
.seg--leg-a { background: var(--deep); }
.seg--leg-b { background: var(--mid); }
.seg--leg-c { background: var(--light); }
.seg--leg-e { background: var(--orchid); }
/* the branch leaves the junction with a curve */
.seg--link {
  left: calc(var(--dx) - var(--bx) - var(--line-w) / 2);
  top: calc(50% - var(--row) / 2 - var(--line-w) / 2);
  width: calc(var(--bx) + var(--line-w)); height: calc(var(--row) / 2 + var(--line-w) / 2);
  border: solid var(--orchid); border-width: var(--line-w) var(--line-w) 0 0;
  border-radius: 0 14px 0 0;
  transition: opacity 260ms var(--ease), border-color 240ms var(--ease) calc(var(--d, 0) * 90ms);
}

.seg__lit {
  position: absolute; inset: 0; border-radius: inherit;
  background: var(--deep);
  transform: scaleY(0); transform-origin: 50% 0;
  transition: transform 240ms var(--ease) calc(var(--d, 0) * 90ms), box-shadow 300ms var(--ease);
}
.seg.is-up .seg__lit { transform-origin: 50% 100%; }
.seg.is-lit .seg__lit { transform: scaleY(1); box-shadow: 0 0 12px 1px rgba(122, 68, 224, 0.55); }
.seg--link.is-lit { border-color: var(--deep); filter: drop-shadow(0 0 5px rgba(122, 68, 224, 0.6)); }

/* terminus bars at the ends of each line */
.stop--start::before, .stop--start::after, .stop--end::before, .stop--end::after {
  content: ''; position: absolute; z-index: 1; background: var(--leg); border-radius: 4px;
  transition: opacity 260ms var(--ease);
}
.stop--start::before, .stop--end::before { left: calc(var(--dx) - var(--line-w) / 2); width: var(--line-w); height: 20px; }
.stop--start::before { bottom: 50%; }
.stop--end::before { top: 50%; }
.stop--start::after, .stop--end::after { left: calc(var(--dx) - 14px); width: 28px; height: var(--line-w); }
.stop--start::after { top: calc(50% - 20px); }
.stop--end::after { top: calc(50% + 20px - var(--line-w)); }

/* once a stop is picked, the rest of the map steps back */
.route.has-pick .seg:not(.is-lit),
.route.has-pick .stop:not(.is-lit)::before,
.route.has-pick .stop:not(.is-lit)::after { opacity: 0.3; }
.route.has-pick .stop:not(.is-lit) .stop__dot { opacity: 0.55; }

/* the selected stop */
.stop.is-lit .stop__dot { border-color: var(--deep); }
.stop.is-picked .stop__dot {
  border-color: var(--deep); background: var(--light);
  transform: scale(1.18);
  box-shadow: 0 0 0 6px rgba(122, 68, 224, 0.2), 0 0 18px 2px rgba(122, 68, 224, 0.45);
}
.stop.is-picked .stop__btn { background: var(--white); }
.stop.is-picked .chip--on {
  background: var(--deep); border-color: var(--deep); color: var(--white);
  box-shadow: 0 0 0 3px rgba(122, 68, 224, 0.22), 0 4px 14px -2px rgba(122, 68, 224, 0.7);
}

/* platform: ZIP finder, replaced by the stop panel when a stop is picked */
.platform { margin-top: auto; padding-top: 22px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.platform > * { grid-area: 1 / 1; }
/* both finder and panel keep their box so opening a stop never moves the page */
.platform > [hidden] { display: block !important; visibility: hidden; }

.finder label { display: block; font-weight: 800; font-size: 1rem; margin-bottom: 8px; }
.finder__row { display: flex; gap: 8px; }
.finder input {
  flex: 1; min-width: 0; height: 52px; padding: 2px 16px 0;
  font: inherit; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
  color: var(--ink); background: var(--white);
  border: 2px solid var(--rule); border-radius: 14px;
  transition: border-color 180ms var(--ease);
}
.finder input::placeholder { color: var(--placeholder); font-weight: 600; }
.finder input:hover { border-color: var(--light); }
.finder input:focus { outline: none; border-color: var(--mid); box-shadow: 0 0 0 4px rgba(122, 68, 224, 0.18); }
.finder input[aria-invalid='true'] { border-color: var(--error); }
.finder__go {
  height: 52px; padding: 2px 20px 0; border-radius: 14px;
  font: inherit; font-weight: 750; color: var(--deep); background: var(--white);
  border: 2px solid var(--deep); cursor: pointer; white-space: nowrap;
  transition: background-color 180ms var(--ease);
}
.finder__go:hover { background: var(--tint); }
.finder__msg { margin-top: 10px; min-height: 1.5em; font-size: 0.95rem; font-weight: 600; color: var(--ink-2); }
.finder__msg.is-error { color: var(--error); }

.panel {
  position: relative;
  background: var(--ink); color: var(--white);
  border-radius: 18px;
  padding: 18px 22px 20px;
  box-shadow: 0 22px 40px -24px rgba(43, 15, 58, 0.8);
}
.panel.is-in { animation: panel-in 420ms var(--ease) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateX(28px); clip-path: inset(0 0 0 30% round 18px); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 18px); }
}
.panel__close {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 50%; color: rgba(255, 255, 255, 0.8); cursor: pointer;
}
.panel__close:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.panel__close:focus-visible { outline-color: var(--white); }
.open-dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--open); box-shadow: 0 0 0 4px rgba(47, 191, 113, 0.25); }
.panel__name { display: flex; align-items: center; gap: 12px; margin-top: 2px; font-size: 1.6rem; font-weight: 850; line-height: 1.1; letter-spacing: -0.015em; padding-right: 40px; }
.panel__days { margin-top: 6px; color: var(--on-ink); font-size: 1rem; max-width: 36em; }
.panel__doors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; }
.panel__page {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--white); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4);
}
.panel__page:hover { color: var(--white); text-decoration-color: var(--white); }
.panel__page:focus-visible { outline-color: var(--white); }
.panel__page .i { width: 18px; height: 18px; }

/* ---------- Legs: sections that sit on the page's spine ---------- */

.leg .wrap {
  position: relative;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(72px, 10vw, 136px) var(--gutter) clamp(72px, 10vw, 136px) calc(var(--gutter) + var(--indent));
}
.leg .wrap::before {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: calc(var(--gutter) + var(--line-x));
  width: var(--line-w); background: var(--mid);
}
.leg--fares .wrap::before { top: clamp(72px, 10vw, 136px); }
.leg + .leg .wrap { padding-top: 0; }

.station-head {
  position: relative;
  font-size: clamp(2rem, 1.1rem + 2.7vw, 3.6rem);
  font-weight: 820;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 19ch;
  text-wrap: balance;
}
.station-head::before {
  content: ''; position: absolute;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); border: 7px solid var(--deep);
  left: calc(-1 * var(--indent) + var(--line-x) + var(--line-w) / 2 - 15px);
  top: calc(0.51em - 15px);
}

.leg__lead { margin-top: 18px; max-width: 36em; font-size: 1.2rem; color: var(--ink-2); text-wrap: pretty; }

/* ---------- Fare board ---------- */

.board {
  margin-top: clamp(32px, 4vw, 48px);
  background: var(--field);
  border-radius: 24px;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 3.2vw, 44px) clamp(20px, 3vw, 32px);
}

.board__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: center;
  padding: 28px 0; border-top: 1px solid var(--rule);
}
.board__row:first-child { border-top: 0; padding-top: 4px; }
.board__service h3 { font-size: 1.5rem; font-weight: 820; letter-spacing: -0.015em; line-height: 1.15; }
.board__service p { margin-top: 6px; color: var(--ink-2); max-width: 32em; }

.more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }
.more .i { width: 18px; height: 18px; transition: transform 200ms var(--ease); }
.more:hover .i { transform: translateX(3px); }

.fare { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.fare__from { font-size: 1rem; font-weight: 700; color: var(--muted); }
.fare__price {
  display: inline-flex; align-items: flex-start;
  font-size: clamp(2.3rem, 1.4rem + 2.4vw, 4rem);
  font-weight: 850; line-height: 1; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
}
.fare__cur { font-size: 0.5em; margin-top: 0.12em; margin-right: 0.04em; color: var(--deep); }

.board__foot { padding-top: 24px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.board__foot p { max-width: 60ch; }
.board__doors { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- Three stops ---------- */

.trip {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
  margin-top: clamp(36px, 5vw, 56px);
}
.trip::before {
  content: ''; position: absolute; top: 11px; left: 15px; right: calc((100% - 80px) / 3 - 15px);
  height: var(--line-w); background: var(--light); border-radius: 4px;
}
.trip__stop { position: relative; padding-top: 52px; }
.trip__dot {
  position: absolute; top: 0; left: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); border: 7px solid var(--mid);
}
.trip__stop--end .trip__dot { border-color: var(--deep); background: var(--deep); box-shadow: inset 0 0 0 5px var(--white); }
.trip h3 { font-size: 1.45rem; font-weight: 820; letter-spacing: -0.015em; }
.trip p { margin-top: 8px; color: var(--ink-2); max-width: 30em; }
.trip__doors { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }

/* ---------- Photo plate ---------- */

.plate { position: relative; }
.plate img { width: 100%; height: clamp(340px, 50vw, 760px); object-fit: cover; }
/* photo crops: each img sets --pos-d (desktop) and --pos-m (phone) so faces and bodies stay centred */
.plate img, .phero__photo img { object-position: var(--pos-d, 50% 50%); }
.plate figcaption {
  position: absolute; left: var(--edge); bottom: clamp(16px, 3vw, 32px);
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--ink);
  padding: 9px 16px 7px 12px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 700;
  box-shadow: 0 10px 24px -14px rgba(43, 15, 58, 0.6);
}
.plate figcaption::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--mid); background: var(--white); }

/* ---------- Service lines ---------- */

.lines { margin-top: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--rule); }
.line-row {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px 28px;
  padding: 22px 16px 22px 0;
  border-top: 1px solid var(--rule);
  transition: background-color 200ms var(--ease);
}
.line-row:hover { background: var(--field); }
.line-row__mark {
  position: relative; height: var(--line-w); border-radius: 4px; margin-left: 4px;
  background: var(--mid);
}
.line-row__mark::after {
  content: ''; position: absolute; right: -6px; top: 50%;
  width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  background: var(--white); border: 5px solid currentColor;
}
.line-row__mark--deep { background: var(--deep); color: var(--deep); }
.line-row__mark--mid { background: var(--mid); color: var(--mid); }
.line-row__mark--light { background: var(--light); color: var(--light); }
.line-row h3 { font-size: 1.45rem; font-weight: 820; letter-spacing: -0.015em; line-height: 1.2; }
.line-row h3 a { color: var(--ink); text-decoration: none; }
.line-row h3 a::after { content: ''; position: absolute; inset: 0; }
.line-row:hover h3 a { color: var(--deep); text-decoration: underline; }
.line-row h3 a:focus-visible { outline: none; }
.line-row:has(a:focus-visible) { outline: 3px solid var(--mid); outline-offset: -3px; border-radius: 8px; }
.line-row p { margin-top: 4px; color: var(--ink-2); }
.line-row__fare { color: var(--muted); font-weight: 650; font-size: 0.95rem; text-align: right; white-space: nowrap; }
.line-row__fare strong { color: var(--ink); font-size: 1.9rem; font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-left: 4px; }
.lines__note { margin-top: 20px; color: var(--ink-2); max-width: 60ch; }

/* ---------- Pair plate and crew leg ---------- */

.plate--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.plate--pair img { height: clamp(320px, 40vw, 620px); }

.signs { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 28px 0 32px; font-weight: 750; font-size: 1.1rem; letter-spacing: 0.02em; }
.signs li { display: inline-flex; align-items: center; gap: 10px; }
.signs li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--mid); background: var(--white); flex: none; margin-top: -2px; }

/* ---------- Terminus ---------- */

.terminus { background: var(--ink); color: var(--white); }
.terminus__inner {
  position: relative;
  max-width: var(--max); margin-inline: auto;
  padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(88px, 11vw, 144px) calc(var(--gutter) + var(--indent));
}
.terminus__bar {
  position: absolute; top: 0; left: calc(var(--gutter) + var(--line-x));
  width: var(--line-w); height: clamp(112px, 13vw, 176px);
  background: var(--mid); border-radius: 0 0 4px 4px;
}
.terminus__bar::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  width: 44px; height: var(--line-w); margin-left: -22px; border-radius: 4px;
  background: var(--mid);
}
.terminus h2 {
  font-size: clamp(2.75rem, 1.1rem + 5vw, 5.75rem);
  font-weight: 850; line-height: 0.95; letter-spacing: -0.035em;
  max-width: 12ch; text-wrap: balance;
}
.terminus p { margin-top: 22px; font-size: 1.25rem; color: var(--on-ink); max-width: 32em; }
.terminus__doors { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.terminus ::selection { background: var(--mid); color: var(--white); }

/* ---------- Footer ---------- */

.foot { background: var(--field); color: var(--ink-2); font-size: 0.97rem; }
.foot__inner {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px;
  padding: 64px var(--edge) 40px;
}
.brand--foot .brand__logo { height: 60px; }
.foot address { font-style: normal; margin-top: 16px; line-height: 1.7; }
.foot address a { font-weight: 700; }
.foot__nav { display: flex; flex-direction: column; align-items: flex-start; }
.foot__head { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.foot__nav a { color: var(--ink-2); text-decoration: none; padding: 5px 0; min-height: 32px; }
.foot__nav a:hover { color: var(--deep); text-decoration: underline; }
.foot__nav--stops a { display: inline-flex; align-items: center; gap: 10px; }
.foot__nav--stops a::before { content: ''; width: 11px; height: 11px; border-radius: 50%; border: 3px solid var(--mid); background: var(--white); flex: none; }
.foot__legal { padding: 20px var(--edge) 28px; border-top: 1px solid var(--rule); font-size: 0.88rem; color: var(--muted); }


/* ---------- Inner pages ---------- */

.phero { min-height: 0; }
.phero .hero__copy { padding-block: clamp(40px, 7vh, 88px); }
.phero h1 { font-size: clamp(2.3rem, 1.4rem + 2.4vw, 4rem); line-height: 0.98; max-width: 17ch; }
.phero__visual { background: var(--field); display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(28px, 4.5vh, 48px) var(--edge) clamp(28px, 4vh, 40px) clamp(28px, 4vw, 64px); }
.phero__visual:has(.phero__photo) { padding: 0; }
.phero__photo { height: 100%; min-height: 420px; }
.phero__photo picture, .phero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.token--solid.token--line-alt { background: var(--white); color: var(--deep); border-color: var(--deep); box-shadow: none; }
.token--solid.token--line-alt:hover { background: var(--tint); color: var(--deep); }
.token--solid.token--line-alt .token__stop { border-color: var(--mid); }

/* "you are here": a slice of the line around one stop */
.sign { --leg: var(--deep); }
/* the sign draws its slice of line in the station's own leg colour, like the map */
.sign.stop--leg-b { --leg: var(--mid); }
.sign.stop--leg-c { --leg: var(--light); }
.sign.stop--leg-e { --leg: var(--orchid); }
.sign__stops { position: relative; margin: 6px 0 18px; }
.sign__stops::before { content: ''; position: absolute; left: calc(16px - var(--line-w) / 2); top: 32px; bottom: 32px; width: var(--line-w); background: var(--leg); border-radius: 4px; }
.sign__stop { position: relative; display: flex; align-items: center; gap: 16px; min-height: 64px; font-weight: 750; letter-spacing: 0.02em; color: var(--muted); text-decoration: none; }
a.sign__stop:hover { color: var(--deep); }
.sign__dot { position: relative; z-index: 1; flex: none; width: 22px; height: 22px; margin-left: 5px; border-radius: 50%; background: var(--white); border: 5px solid var(--leg); }
.sign__stop--here .sign__dot { width: 34px; height: 34px; margin-left: -1px; border-width: 8px; border-color: var(--deep); box-shadow: 0 0 0 3px var(--field), 0 0 0 5px var(--deep); }
.sign__stop--terminus .sign__dot { width: 30px; height: var(--line-w); margin-left: 1px; border: 0; border-radius: 4px; background: var(--leg); }
.sign__plate { background: var(--deep); color: var(--white); padding: 10px 16px 6px; border-radius: 7px; font-size: clamp(1.5rem, 1rem + 1.5vw, 2.2rem); font-weight: 850; letter-spacing: 0.01em; line-height: 1; }
.sign__days { display: flex; flex-wrap: wrap; gap: 4px; margin-left: 50px; }
.sign__note { margin-top: 16px; color: var(--ink-2); max-width: 34em; }
.sign--list .sign__note { margin-top: 20px; }

.leg--first .wrap::before { top: clamp(72px, 10vw, 136px); }
.leg__lead + .leg__lead { margin-top: 12px; }
.leg__lead--after { margin-top: 28px; }
.leg__lead a, .scope__out a { font-weight: 700; }
.signs--places { margin-bottom: 0; }

.scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; margin-top: 28px; }
.scope li { display: flex; gap: 14px; align-items: baseline; font-size: 1.12rem; font-weight: 650; }
.scope li::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--mid); background: var(--white); transform: translateY(1px); }
.scope--tight { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 6px; }
.scope__note { margin-top: 28px; max-width: 60ch; font-weight: 700; color: var(--ink); }
.scope__out { margin-top: 16px; max-width: 70ch; color: var(--ink-2); font-size: 0.97rem; }

.faq { margin-top: 28px; border-bottom: 1px solid var(--rule); max-width: 880px; }
.faq__item { border-top: 1px solid var(--rule); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 44px; padding: 20px 4px 18px 0; cursor: pointer; list-style: none;
  font-size: clamp(1.1rem, 0.95rem + 0.45vw, 1.3rem); font-weight: 750; letter-spacing: -0.005em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; flex: none; width: 18px; height: 18px; margin-right: 2px; background: var(--deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 220ms var(--ease);
}
.faq__item[open] summary::after { transform: rotate(180deg); }
.faq__item summary:hover { color: var(--deep); }
.faq__item p { padding: 0 0 22px; max-width: 65ch; color: var(--ink-2); }

.stops { margin-top: 28px; border-bottom: 1px solid var(--rule); }
.stops__row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px 18px; padding: 14px 0; border-top: 1px solid var(--rule); }
.stops__dot { width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 5px solid var(--leg); }
.stops__name { font-size: clamp(1.1rem, 0.95rem + 0.45vw, 1.3rem); font-weight: 800; color: var(--ink); text-decoration: none; }
.stops__name:hover { color: var(--deep); text-decoration: underline; }
.stops__days { display: flex; flex-wrap: wrap; gap: 4px; }

.zones { margin-top: 28px; border-bottom: 1px solid var(--rule); }
.zone { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 28px; padding: 20px 0; border-top: 1px solid var(--rule); }
.zone h3 { font-size: 1.45rem; font-weight: 820; }
.zone p { margin-top: 2px; color: var(--ink-2); max-width: 60ch; }

.rhythms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin: 32px 0 8px; }
.rhythms h3 { display: flex; align-items: center; gap: 12px; font-size: 1.45rem; font-weight: 820; }
.rhythms h3::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 5px solid var(--mid); background: var(--white); }
.rhythms p { margin-top: 8px; color: var(--ink-2); }

.reach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; margin-top: 28px; }
.reach h3 { font-size: 1.45rem; font-weight: 820; }
.reach p { margin-top: 6px; color: var(--ink-2); }

.leg--doc .wrap h2 { font-size: 1.45rem; font-weight: 820; margin: 40px 0 10px; }
.leg--doc .wrap p { max-width: 68ch; color: var(--ink-2); margin-bottom: 12px; }
.doc__date { margin-top: 12px; font-weight: 700; color: var(--muted); }

.phero__fare { margin-top: 14px; font-size: 1.05rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.phero__fare strong { font-size: 1.45rem; font-weight: 850; color: var(--ink); letter-spacing: -0.02em; }
.sign__note .open-dot { display: inline-block; width: 10px; height: 10px; margin-right: 10px; vertical-align: 1px; }
.sign__fare { margin-top: 10px; font-weight: 700; color: var(--ink-2); }
.sign__fare strong { color: var(--ink); font-size: 1.2em; }

/* /pricing hero: the starting fares posted like a board */
.fsign__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 20px;
  padding: 18px 0; border-top: 1px solid var(--rule); color: var(--ink); text-decoration: none;
}
.fsign__row:hover .fsign__name { color: var(--deep); text-decoration: underline; }
.fsign__name { font-size: 1.45rem; font-weight: 820; letter-spacing: -0.015em; }
.fsign__per { grid-column: 2; justify-self: end; margin-top: -4px; font-size: 0.95rem; font-weight: 650; color: var(--muted); }
.fsign .sign__note { border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 0; }

.zone__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; }
.zone__links a { font-weight: 700; }
.zone:target { background: var(--tint); }


/* ---------- Home first screens: by ZIP (v-b, live) and pick your city (v-c, rollback) ---------- */

.proof-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: clamp(22px, 4vh, 36px); font-size: 0.95rem; font-weight: 650; color: var(--ink-2); }
.proof-line > * { display: inline-flex; align-items: center; gap: 6px; }
.proof-line > * + *::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mid); margin-right: 12px; }
.proof-line strong { font-size: 1.1rem; font-weight: 850; color: var(--ink); }

.v-hero .bar__doors .token--solid { display: none; }

/* B: the ZIP field is the call to action (owner choice, 24 Sep 2026) */
.zipcta { margin-top: clamp(22px, 4vh, 36px); max-width: 34rem; }
.zipcta__label { display: block; font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; }
.zipcta__row { display: flex; gap: 10px; }
.zipcta__row input {
  flex: 1; min-width: 0; height: 58px; padding: 3px 18px 0;
  font: inherit; font-size: 1.45rem; font-weight: 800; letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
  color: var(--ink); background: var(--white); border: 2px solid var(--rule); border-radius: 14px;
}
.zipcta__row input::placeholder { color: var(--placeholder); font-weight: 650; }
.zipcta__row input:focus { outline: none; border-color: var(--mid); box-shadow: 0 0 0 4px rgba(122, 68, 224, 0.18); }
.zipcta__row input[aria-invalid='true'] { border-color: var(--error); }
.zipcta__msg { min-height: 1.6em; margin-top: 12px; font-weight: 700; color: var(--ink-2); }
.zipcta__msg.is-error { color: var(--error); }
.zipcta__msg .open-dot { display: inline-block; width: 10px; height: 10px; margin-right: 10px; vertical-align: 1px; }
.zipcta__next { margin-top: 4px; }
.v-b .route .finder { display: none; }

.v-c .route .finder { display: none; }

/* the city pills */
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(20px, 3.5vh, 30px); max-width: 38rem; }
.cityp {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 3px 14px 0 10px;
  border: 2px solid var(--rule); border-radius: 999px; background: var(--white);
  font: inherit; font-size: 0.98rem; font-weight: 750; letter-spacing: 0.01em; color: var(--ink); cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.cityp:hover { border-color: var(--light); }
.cityp__dot { width: 12px; height: 12px; margin-top: -3px; border-radius: 50%; background: var(--white); border: 3px solid var(--leg); flex: none; }
.cityp[aria-pressed='true'] { background: var(--deep); border-color: var(--deep); color: var(--white); }
.cityp[aria-pressed='true'] .cityp__dot { border-color: var(--white); background: var(--deep); }
.cities__msg { min-height: 1.6em; margin-top: 14px; font-weight: 700; color: var(--ink-2); }
.cities__msg .open-dot { display: inline-block; width: 10px; height: 10px; margin-right: 10px; vertical-align: 1px; }
.hero--c .hero__doors { margin-top: 14px; }

@media (max-width: 900px) {
  .v-hero .bar__doors { display: none; }
  .hero--c .hero__doors .token { flex: 1 1 100%; }
  .zipcta__go { padding-inline: 16px; }
  .cityp { min-height: 40px; font-size: 0.92rem; padding: 3px 12px 0 9px; }
}


/* pages that sell only by text: long CTA labels may wrap */
.token--wrap { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px 9px; }
.dock--single .dock__btn { flex: 1 1 100%; }

@media (min-width: 901px) {
  /* desktop map: the doubled ring and the deep plate mark Lynnwood; the caption stays for screen readers only,
     so it never collides with the day chips at narrower desktop widths */
  .route .stop__home { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* narrow desktops (901-1180px): the map gets half the width and slimmer day chips, so names never meet the days */
@media (min-width: 901px) and (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .route { --bx: 36px; padding-left: 28px; }
  .route .stop__days { gap: 3px; }
  .route .chip { min-width: 32px; padding-inline: 4px; font-size: 0.7rem; }
}

/* ---------- Mobile dock ---------- */

.dock { display: none; }

/* ---------- Scroll + motion ---------- */

.route__line::-webkit-scrollbar { height: 6px; }
.route__line::-webkit-scrollbar-thumb { background: var(--light); border-radius: 3px; }

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

/* ---------- Narrower desktop ---------- */

@media (max-width: 1180px) {
  .bar__nav { display: none; }
  .bar__doors { margin-left: auto; }
  .board__row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Tablet and phone ---------- */

@media (max-width: 900px) {
  .plate img, .phero__photo img { object-position: var(--pos-m, var(--pos-d, 50% 50%)); }
  :root { --bar-h: 64px; --indent: 44px; --line-x: 8px; --line-w: 6px; }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__copy { padding: 36px var(--gutter) 32px; }
  .hero h1 { max-width: 12ch; }
  .proof { gap: 8px 16px; font-size: 0.9rem; }
  .proof li + li::before { margin-right: 10px; }

  .route { padding: 28px 0 28px; }
  .route__sign, .platform { padding-inline: var(--gutter); }

  /* each line becomes a horizontal strip */
  .route__map { display: block; }
  .route__line {
    --col: 132px;
    display: flex; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
    padding: 4px var(--gutter) 14px;
    scrollbar-width: thin; scrollbar-color: var(--light) transparent;
  }
  .stop { flex: 0 0 var(--col); scroll-snap-align: start; }
  .stop--branch { margin-left: 0; }
  .route__branch-label {
    display: flex; align-items: center; gap: 10px;
    margin: 8px var(--gutter) 10px; font-weight: 800; font-size: 0.95rem; color: var(--ink);
  }
  .route__branch-label::before { content: ''; width: 28px; height: var(--line-w); border-radius: 4px; background: var(--orchid); }
  .stop__btn {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    padding: 0 10px 12px 0; height: auto; min-height: 44px;
  }
  .stop__name { font-size: 1rem; min-height: 2.4em; align-items: flex-start; flex-direction: column; gap: 6px; }
  .stop__label { white-space: normal; }
  .stop__days { flex-wrap: wrap; max-width: 118px; }
  .chip { min-width: 34px; height: 24px; font-size: 0.7rem; }

  .seg {
    top: calc(var(--dot) / 2 - var(--line-w) / 2); left: calc(var(--dot) / 2);
    width: var(--col); height: var(--line-w);
  }
  .stop--home .seg { top: calc(15px - var(--line-w) / 2); left: 15px; }
  .seg--link { display: none; }
  .seg__lit { transform: scaleX(0); transform-origin: 0 50%; }
  .seg.is-up .seg__lit { transform-origin: 100% 50%; }
  .seg.is-lit .seg__lit { transform: scaleX(1); }

  .platform { min-height: 0; margin-top: 6px; }
  .panel { margin-inline: 0; }

  .fare__price { font-size: clamp(2.2rem, 1.4rem + 3vw, 2.8rem); }

  .trip { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .trip::before { top: 11px; bottom: 60px; left: 11px; right: auto; width: var(--line-w); height: auto; }
  .trip__stop { padding: 0 0 0 52px; }

  .line-row { grid-template-columns: 36px minmax(0, 1fr); padding-right: 8px; }
  .line-row { align-items: start; }
  .line-row__mark { margin-left: 0; margin-top: 15px; }
  .line-row__mark::after { width: 16px; height: 16px; margin-top: -8px; border-width: 4px; right: -4px; }
  .line-row__fare { grid-column: 2; text-align: left; }
  .line-row__fare strong { font-size: 1.5rem; }

  .plate--pair img { height: clamp(240px, 72vw, 420px); }
  .signs { gap: 10px 22px; font-size: 1rem; }

  .stop--start::before, .stop--end::before { top: calc(var(--dot) / 2 - var(--line-w) / 2); bottom: auto; width: 16px; height: var(--line-w); }
  .stop--start::before { left: -6px; }
  .stop--end::before { left: calc(var(--dot) / 2); }
  .stop--start::after, .stop--end::after { top: calc(var(--dot) / 2 - 12px); width: var(--line-w); height: 24px; }
  .stop--start::after { left: -6px; }
  .stop--end::after { left: calc(var(--dot) / 2 + 16px - var(--line-w)); }
  .stop--home .stop__label { padding: 6px 10px 4px; }

  .dock-on .bar__doors { opacity: 0; visibility: hidden; }
  .bar__doors { transition: opacity 200ms var(--ease); }

  .foot__inner { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding: 48px var(--gutter) 32px; }
  .foot__id { grid-column: 1 / -1; }
  .foot__legal { padding-inline: var(--gutter); padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }


  .phero .hero__copy { padding: 36px var(--gutter) 32px; }
  .phero__visual { padding: 28px var(--gutter); }
  .phero__photo { min-height: 0; height: clamp(260px, 70vw, 420px); }
  .scope, .rhythms, .reach { grid-template-columns: minmax(0, 1fr); }
  .stops__row { grid-template-columns: 26px minmax(0, 1fr); }
  .stops__days { grid-column: 2; }
  .zone { grid-template-columns: minmax(0, 1fr); }
  .dock {
    display: flex; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white); border-top: 1px solid var(--rule);
    box-shadow: 0 -10px 24px -18px rgba(43, 15, 58, 0.5);
    transform: translateY(110%); visibility: hidden;
    transition: transform 320ms var(--ease), visibility 0s linear 320ms;
  }
  .dock.is-on { transform: none; visibility: visible; transition: transform 320ms var(--ease), visibility 0s; }
  .dock__btn { flex: 1; }
}

@media (max-width: 560px) {
  .phero h1 { font-size: clamp(2rem, 1.1rem + 2.7vw, 3.6rem); }
  .brand__logo { height: 48px; }
  .bar__text { display: none; }
  .hero__lead { font-size: 1.05rem; }
  .hero__doors { flex-wrap: nowrap; gap: 10px; }
  .hero__doors .token { flex: 1 1 0; min-width: 0; min-height: 54px; font-size: 1rem; padding-inline: 12px; gap: 8px; }
  .trip__doors .token, .terminus__doors .token, .board__doors .token { flex: 1 1 100%; }
  .proof { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-top: 16px; }
  .proof li { align-items: flex-start; gap: 8px; line-height: 1.3; }
  .proof li::before,
  .proof li + li::before { content: ''; display: block; width: 7px; height: 7px; margin: 0.45em 0 0; border-radius: 50%; background: var(--mid); flex: none; }
  .proof__sub { display: block; }
  .finder__go { padding-inline: 14px; }
}
