/* Penduses landing, version B: "Departures".
   Egress is a departure. The page borrows airport wayfinding: a split-flap
   board in the hero, yellow signage for section marks, tickets for steps and
   plans. Everything else stays quiet. */

@font-face { font-family: "Geist"; src: url("fonts/geist-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f2f3f0;      /* terminal floor: cool, not cream */
  --card: #ffffff;
  --concrete: #dcded9;
  --line: #c9ccc6;
  --muted: #5b6168;
  --ink: #15181b;
  --graphite: #23282d;
  --graphite-2: #2c3238;
  --signal: #ffc72c;     /* wayfinding yellow */
  --signal-deep: #f2b705;
  --go: #7ddba6;         /* board status only */
  --stop: #b42318;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(36px, 4.2vw, 60px);
  --r: 6px;
  --r-ticket: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: .9em; }
p code { background: var(--concrete); padding: .08em .35em; border-radius: 4px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.sec-dark :focus-visible, .board :focus-visible, .foot :focus-visible { outline-color: var(--signal); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }

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

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r); border: 1.5px solid transparent;
  font: 600 15px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--signal); color: var(--ink); border-color: var(--signal-deep); }
.btn-signal:hover { background: var(--signal-deep); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--graphite-2); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }

.link {
  font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 5px;
  transition: text-decoration-color .15s;
}
.link:hover { text-decoration-color: var(--ink); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-bar { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--sans); letter-spacing: -.03em; text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.brand-plate { fill: var(--signal); }
.brand-mark { stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.brand-dot { fill: var(--ink); }
.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.top-cta { margin-left: auto; min-height: 40px; padding: 0 16px; font-size: 14px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--ink); border-radius: var(--r); }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: 50px; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px; box-shadow: 0 18px 40px -18px rgba(21, 24, 27, .35); }
.menu a { display: block; padding: 11px 12px; border-radius: 6px; text-decoration: none; font-weight: 500; }
.menu a:hover { background: var(--paper); }

/* ---------- hero ---------- */
@property --hero-light-x { syntax: "<percentage>"; inherits: false; initial-value: 88%; }
@property --hero-light-y { syntax: "<percentage>"; inherits: false; initial-value: 12%; }
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(40px, 6vw, 84px) 0 var(--sec);
  background:
    radial-gradient(ellipse at var(--hero-light-x, 88%) var(--hero-light-y, 12%), rgb(255 199 44 / 14%), transparent 48%),
    radial-gradient(ellipse at 8% 35%, rgb(105 132 151 / 8%), transparent 48%);
  transition: --hero-light-x .2s ease-out, --hero-light-y .2s ease-out;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgb(71 83 92 / 17%) 1px, transparent 1.5px),
    linear-gradient(rgb(71 83 92 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(71 83 92 / 4%) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(#000, rgb(0 0 0 / 55%) 50%, transparent 90%);
}
.hero-head { display: grid; gap: clamp(28px, 3.4vw, 44px); }
.hero h1 {
  font: 700 clamp(42px, 7.4vw, 104px)/.95 var(--sans);
  letter-spacing: -.048em;
}
.hero h1 span { display: block; }
.hero-eyebrow { margin-bottom: 18px; font: 600 14px/1.5 var(--mono); color: var(--muted); }

/* Two-tone headline. The first line keeps moving (deploys change); the
   second holds one fixed ink-to-amber gradient (the IP does not). */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 span {
    width: fit-content;
    /* room for descenders: background-clip:text only paints inside the box */
    padding-bottom: .1em; margin-bottom: -.1em;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
  }
  .h1-flow {
    background-image: linear-gradient(100deg,
      #15181b 0%, #566a7f 18%, #8394a4 30%, #566a7f 42%, #15181b 50%,
      #566a7f 68%, #8394a4 80%, #566a7f 92%, #15181b 100%);
    background-size: 200% 100%;
    animation: h1-flow 9s linear infinite;
  }
  .h1-fixed {
    background-image: linear-gradient(100deg, #15181b 0%, #15181b 34%, #6b4f0a 62%, #b98300 84%, #d49a05 100%);
  }
  @media (max-width: 640px) {
    /* the second line wraps here, so let the amber land on the last word */
    .h1-fixed { background-image: linear-gradient(172deg, #15181b 0%, #15181b 34%, #6b4f0a 56%, #b98300 80%, #d49a05 100%); }
  }
  .hero h1 span::selection { -webkit-text-fill-color: var(--ink); background: var(--signal); }
}
@keyframes h1-flow { to { background-position: 200% 0; } }
.hero-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.hero-side .actions { margin-top: 0; }
.lede { font-size: clamp(17px, 1.45vw, 19px); line-height: 1.55; color: #343a40; max-width: 100%; }
.lede strong { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 28px; }

/* ---------- the departures board ---------- */
.board-figure { margin-top: clamp(32px, 5vw, 60px); container-type: inline-size; }
.board {
  --P: clamp(14px, 2.4cqi, 30px);
  --G: clamp(14px, 2cqi, 26px);
  --dest: 18;
  --N: 55;      /* tiles across all visible columns */
  --cols: 5;
  --tw: min(19px, calc((100cqi - 2 * var(--P) - (var(--cols) - 1) * var(--G)) / var(--N) - 2px));
  --th: calc(var(--tw) * 1.52);
  background: var(--graphite);
  color: #e9eae4;
  border-radius: 12px;
  padding: calc(var(--P) * .8) var(--P) var(--P);
  box-shadow: inset 0 0 0 1px #343a40, 0 30px 60px -36px rgba(21, 24, 27, .55);
}
.board-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: calc(var(--P) * .7); margin-bottom: calc(var(--P) * .6); border-bottom: 1px solid #3a4148; }
.board-title { display: inline-flex; align-items: center; gap: 10px; font: 600 clamp(15px, 1.6cqi, 20px)/1 var(--sans); letter-spacing: -.01em; color: var(--signal); }
.board-title svg { width: 1.3em; height: 1.3em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.board-clock { font: 500 clamp(14px, 1.5cqi, 19px)/1 var(--mono); color: #c9ccc6; font-variant-numeric: tabular-nums; }

.board-head, .board-rows .row, .board-foot { display: flex; justify-content: space-between; gap: var(--G); }
.board .c { flex: none; width: calc(var(--n) * (var(--tw) + 2px)); }
.c-time { --n: 8; } .c-dep { --n: 8; } .c-dest { --n: var(--dest); } .c-gate { --n: 13; } .c-stat { --n: 8; }

.board-head { margin-bottom: 10px; font: 500 clamp(11px, 1.05cqi, 13px)/1.2 var(--sans); color: #9aa1a8; }
.board-head .c-gate { color: var(--signal); }
.board-rows { display: grid; gap: calc(var(--tw) * .42); }
.board-rows .c { font: 600 calc(var(--tw) * 1.02)/var(--th) var(--mono); white-space: nowrap; overflow: hidden; }
.board-rows .c-gate { color: var(--signal); }
.board-rows .c-stat { color: var(--go); }
.board-foot { margin-top: 14px; font: 500 clamp(11px, 1.05cqi, 13px)/1.3 var(--sans); color: #9aa1a8; }
.board-foot .c-gate { color: var(--signal); }
.board-foot .c-gate::before, .board-foot .c-dep::before { content: "↑ "; }
.board-foot .c-dep:empty::before, .board-foot .c-gate:empty::before { content: none; }

/* Board tiles, built by b.js. Keep glyphs clear of decorative seams. */
.t {
  position: relative; display: inline-block; vertical-align: top;
  width: var(--tw); height: var(--th); margin-right: 2px;
  border-radius: 2px;
  background: linear-gradient(#353b42, #2e343a);
  color: #eeefe9; text-align: center;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .35);
}
.c-gate .t { background: linear-gradient(var(--signal), var(--signal-deep)); color: var(--ink); }
.c-stat .t { color: var(--go); }
.t.fa { animation: flapA 80ms linear; }
.t.fb { animation: flapB 80ms linear; }
@keyframes flapA { 50% { transform: scaleY(.18); filter: brightness(.75); } }
@keyframes flapB { 50% { transform: scaleY(.18); filter: brightness(.75); } }

@container (max-width: 1000px) {
  .board { --N: 45; --cols: 4; --dest: 16; }
  .board .c-time { display: none; }
}
@container (max-width: 640px) {
  .board { --N: 21; --cols: 2; --G: 18px; --tw: min(17px, calc((100cqi - 2 * var(--P) - var(--G)) / 21 - 2px)); }
  .board .c-dest, .board .c-stat { display: none; }
  .board-head, .board-rows .row, .board-foot { justify-content: flex-start; }
}



/* ---------- sections ---------- */
.sec { padding: var(--sec) 0; border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(28px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head h2 {
  display: flex; gap: .32em; align-items: flex-start;
  font: 700 clamp(32px, 4.2vw, 54px)/1.02 var(--sans); letter-spacing: -.035em;
  text-wrap: balance;
}
.sec-head > p { color: var(--muted); max-width: 44ch; padding-bottom: 4px; }
.sign { flex: none; display: grid; place-items: center; width: .86em; height: .86em; margin-top: .07em; border-radius: .12em; background: var(--signal); }
.sign svg { width: 68%; height: 68%; fill: none; stroke: var(--ink); stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- boarding pass ---------- */
.pass {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--card); border-radius: var(--r-ticket);
  box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--concrete);
}
.leg { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); }
.leg + .leg { border-left: 2px dashed var(--concrete); }
.leg + .leg::before, .leg + .leg::after {
  content: ""; position: absolute; left: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--concrete);
}
.leg + .leg::before { top: -12px; clip-path: inset(50% 0 0 0); }
.leg + .leg::after { bottom: -12px; clip-path: inset(0 0 50% 0); }
.leg-top { display: flex; align-items: center; gap: 14px; }
.leg-no, .pin {
  flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 5px;
  background: var(--signal); font: 700 17px/1 var(--sans); color: var(--ink);
}
.leg h3 { font: 700 26px/1.1 var(--sans); letter-spacing: -.025em; }
.leg-lead { margin-top: 16px; font-size: 18px; line-height: 1.4; font-weight: 500; }
.fields { margin-top: 22px; display: grid; }
.fields div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid var(--concrete); }
.fields div:last-child { border-bottom: 1px solid var(--concrete); }
.fields dt { font-size: 14px; color: var(--muted); }
.fields dd { font-size: 15px; font-weight: 500; text-align: right; }
.fields dd.mono { font: 600 15px/1.3 var(--mono); }
.fields dd.hl { background: var(--signal); padding: 2px 7px; border-radius: 3px; }
.fields dd.refused { color: var(--stop); font-weight: 600; }
.leg-note { margin-top: auto; padding-top: 22px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.mini-term { margin-top: 22px; background: var(--graphite); color: #e3e5df; border-radius: 8px; padding: 16px 16px 12px; font-family: var(--mono); font-size: 13.5px; }
.mini-term code { display: block; color: var(--signal); padding-bottom: 12px; border-bottom: 1px solid #3a4148; margin-bottom: 8px; overflow-wrap: anywhere; }
.mini-term dl div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.mini-term dt { color: #9aa1a8; }
.mini-term dd.ok { color: var(--go); }
.aside-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- code ---------- */
.code-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.code-panel { background: var(--graphite); color: #e6e7e1; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(21, 24, 27, .6); }
.code-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 20px; border-bottom: 1px solid #3a4148; font-size: 14px; }
.code-bar > span:first-child { font-family: var(--mono); font-weight: 500; color: #f2f3f0; }
.code-meta { color: #9aa1a8; }
.copy { margin-left: auto; font: 600 13px/1 var(--sans); color: var(--ink); background: var(--signal); border: 0; border-radius: 4px; padding: 8px 12px; cursor: pointer; }
.copy:hover { background: var(--signal-deep); }
.code-panel pre { margin: 0; padding: 22px 20px 26px 54px; overflow-x: auto; font: 400 14px/1.7 var(--mono); tab-size: 2; }
.code-panel pre code { font-size: inherit; }
.cm { color: #8c949c; }
.fn { color: var(--signal); }
/* Code blocks pair with the three steps. Each has a numbered gutter tile and
   a rail; the active one stays bright while the others recede. */
.ln { display: block; position: relative; transition: opacity .35s ease; }
.ln + .ln { margin-top: 1.7em; }
.ln::before {
  content: attr(data-pin); position: absolute; left: -36px; top: .15em;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 3px;
  background: #3a4148; color: #c9ccc6; font: 700 11.5px/1 var(--sans);
  transition: background-color .35s, color .35s;
}
.ln::after { content: ""; position: absolute; left: -10px; top: 2px; bottom: 2px; width: 2px; border-radius: 1px; background: transparent; transition: background-color .35s; }
.code-panel[data-active] .ln { opacity: .3; }
.code-panel[data-active="1"] .ln[data-pin="1"]::before,
.code-panel[data-active="2"] .ln[data-pin="2"]::before,
.code-panel[data-active="3"] .ln[data-pin="3"]::before { background: var(--signal); color: var(--ink); }
.code-panel[data-active="1"] .ln[data-pin="1"]::after,
.code-panel[data-active="2"] .ln[data-pin="2"]::after,
.code-panel[data-active="3"] .ln[data-pin="3"]::after { background: var(--signal); }
.code-panel[data-active="1"] .ln[data-pin="1"],
.code-panel[data-active="2"] .ln[data-pin="2"],
.code-panel[data-active="3"] .ln[data-pin="3"] { opacity: 1; }

.pins li { display: flex; gap: 16px; padding: 18px 16px; margin: 0 -16px; border-radius: 8px; cursor: default; transition: background-color .25s, opacity .35s; }
.pins li + li { border-top: 1px solid var(--concrete); }
.pins li:hover, .pins li:focus-visible { background: var(--card); }
.pins .pin { transition: background-color .35s, color .35s; }

/* Wide screens: the code stays put while the steps scroll past it. */
@media (min-width: 1021px) {
  .code-panel { position: sticky; top: 100px; }
  .pins { position: relative; padding-left: 26px; }
  .pins::before, .pins::after { content: ""; position: absolute; left: 0; top: 18px; width: 2px; border-radius: 1px; }
  .pins::before { bottom: 18px; background: var(--concrete); }
  .pins::after { height: calc((100% - 36px) * var(--fill, 0)); background: var(--ink); transition: height .45s cubic-bezier(.3, .7, .2, 1); }
  .pins li { min-height: 34vh; margin: 0; padding: 18px 0; border-radius: 0; background: none; }
  .pins li + li { border-top: 0; }
  .pins li:hover, .pins li:focus-visible, .pins li.on { background: none; }
  .pins.is-stepping li:not(.on) { opacity: .38; }
  .pins.is-stepping li:not(.on) .pin { background: var(--concrete); color: var(--muted); }
  .pins li:last-child { min-height: 22vh; }
}
.pins h3 { font: 700 19px/1.2 var(--sans); letter-spacing: -.015em; }
.pins p { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.reqs { margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--ink); }
.reqs h3 { font: 600 16px/1.3 var(--sans); }
.reqs ul { margin-top: 10px; }
.reqs li { position: relative; padding: 6px 0 6px 20px; font-size: 15.5px; line-height: 1.5; color: #343a40; }
.reqs li::before { content: ""; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; background: var(--signal); border-radius: 1px; }
.reqs .actions { margin-top: 22px; }

/* ---------- compatibility ---------- */
.fit-table { border-top: 2px solid var(--ink); }
.fit-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(150px, 2fr); gap: 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.fit-th { padding: 12px 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.fit-row > span { font-size: 15.5px; line-height: 1.55; color: #343a40; }
.fit-row > span.fit-name { font: 600 19px/1.3 var(--sans); letter-spacing: -.015em; color: var(--ink); }
.fit-name small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.fit-row > span:last-child { justify-self: end; }
.tag { display: inline-block; padding: 7px 11px; border-radius: 4px; font: 600 13.5px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.tag-go { background: var(--ink); color: var(--paper); }
.tag-repo { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.tag-no { background: var(--concrete); color: var(--muted); }
.tag-ask { background: var(--signal); color: var(--ink); }
.tag-ask:hover { background: var(--signal-deep); }

/* ---------- control (dark) ---------- */
.sec-dark { background: var(--graphite); color: #eceee8; border-top: 0; }
.sec-dark .sec-head > p { color: #a9afb5; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #3f464d; }
.rule { padding: 30px 40px 34px 0; border-bottom: 1px solid #3f464d; }
.rule:nth-child(even) { padding: 30px 0 34px 40px; border-left: 1px solid #3f464d; }
.rule h3 { font: 700 22px/1.2 var(--sans); letter-spacing: -.02em; }
.rule h3::before { content: ""; display: block; width: 28px; height: 4px; background: var(--signal); margin-bottom: 18px; }
.rule p { margin-top: 10px; color: #b3b9be; font-size: 16px; line-height: 1.6; max-width: 52ch; }

/* ---------- plans ---------- */
.fares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.fare { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-ticket); overflow: hidden; box-shadow: 0 0 0 1px var(--concrete); }
.fare-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; background: var(--graphite); color: var(--paper); padding: 22px clamp(22px, 3vw, 32px); }
.fare-head h3 { font: 700 32px/1 var(--sans); letter-spacing: -.035em; }
.fare-head span { font: 600 14px/1 var(--sans); color: var(--signal); }
.fare-body { padding: 24px clamp(22px, 3vw, 32px) 28px; flex: 1; }
.fare-desc { font-size: 18px; font-weight: 500; line-height: 1.4; }
.fare .fields { margin-top: 18px; }
.fare .fields dd { max-width: 62%; }
.fields dd.quote { font-weight: 600; }
.fare-stub { position: relative; padding: 22px clamp(22px, 3vw, 32px) 26px; border-top: 2px dashed var(--concrete); }
.fare-stub::before, .fare-stub::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--concrete); }
.fare-stub::before { left: -12px; clip-path: inset(0 0 0 50%); }
.fare-stub::after { right: -12px; clip-path: inset(0 50% 0 0); }
.fare-stub .btn { width: 100%; }
.fine { margin-top: 24px; font-size: 14px; color: var(--muted); max-width: 80ch; }

.price-promise { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--ink); max-width: 80ch; }
.price-promise h3 { font: 700 24px/1.2 var(--sans); letter-spacing: -.02em; }
.price-promise > p { margin-top: 12px; }
.final-cta .email-note { margin: 0; font-size: 14px; line-height: 1.5; }

/* ---------- faq ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-head { display: block; position: sticky; top: 108px; margin: 0; }
.faq-head > p { margin-top: 20px; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 22px 0; font: 600 19px/1.35 var(--sans); letter-spacing: -.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px; margin-top: -1px; border-radius: 4px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat,
    var(--concrete);
  transition: background-color .15s, transform .2s;
}
.faq details[open] summary::after {
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    var(--signal);
}
.faq summary:hover::after { background-color: var(--signal); }
.faq details p { padding: 0 50px 24px 0; color: #3d434a; font-size: 16.5px; line-height: 1.6; max-width: 66ch; }

/* ---------- other products ---------- */
.other-title { font: 700 clamp(26px, 2.8vw, 34px)/1.1 var(--sans); letter-spacing: -.03em; margin-bottom: 28px; }
.other { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.other > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.other h3 { font: 700 21px/1.2 var(--sans); letter-spacing: -.02em; }
.other p { margin: 8px 0 16px; color: var(--muted); font-size: 16px; max-width: 54ch; }

/* ---------- final ---------- */
.final { background: var(--signal); padding: clamp(48px, 6vw, 84px) 0; }
.final-inner { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; }
.final h2 { font: 700 clamp(32px, 4.4vw, 58px)/1.02 var(--sans); letter-spacing: -.04em; text-wrap: balance; }
.final p { margin-top: 20px; max-width: 58ch; font-size: 17px; color: #2d2a1c; }
.final-cta { display: grid; justify-items: start; gap: 16px; }
.final-mail { font: 600 16px/1 var(--sans); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #c9ccc6; padding: 40px 0; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.brand-light { color: var(--paper); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot nav a { font-size: 14.5px; text-decoration: none; }
.foot nav a:hover { color: var(--signal); }
.foot p { margin-left: auto; font-size: 14px; color: #8c949c; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .top-cta { display: none; }
  .menu { display: block; margin-left: auto; }
  .hero-head, .sec-head, .code-layout, .faq-layout, .final-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-side { padding-bottom: 0; }
  .faq-head { position: static; }
  .pass { grid-template-columns: minmax(0, 1fr); }
  .leg + .leg { border-left: 0; border-top: 2px dashed var(--concrete); }
  .leg + .leg::before { top: -12px; left: -12px; clip-path: inset(0 0 0 50%); }
  .leg + .leg::after { top: -12px; bottom: auto; left: auto; right: -12px; clip-path: inset(0 50% 0 0); }
  .leg-note { padding-top: 18px; }
}
@media (max-width: 760px) {
  .fares, .other, .rules { grid-template-columns: minmax(0, 1fr); }
  .rule, .rule:nth-child(even) { padding: 26px 0 28px; border-left: 0; }
  .fit-th { display: none; }
  .fit-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .fit-row > span:nth-child(1) { grid-column: 1; grid-row: 1; }
  .fit-row > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .fit-row > span:nth-child(3) { grid-column: 2; grid-row: 1; }
  .faq details p { padding-right: 0; }
  .foot p { margin-left: 0; }
}
@media (max-width: 520px) {
  .actions .btn { flex: 1 1 auto; }
  .fields div { flex-direction: column; gap: 2px; }
  .fields dd, .fare .fields dd { text-align: left; max-width: none; }
}

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