/* The landing page: a transit authority's poster campaign. On platform concrete: the headline set big across the
   top, the offer, and the mechanism as a strip map of one line (the Warehouse load train feeds Prepare report and
   terminates at Customer export, 09:00) that the visitor can delay. Below, the page's sections are stations on one
   black line; each section opens with a station sign and hangs a white enamel panel under it. The live wall is a
   split-flap departure board. Line orange (line 1) is the example launch only; it never means state. The rehearsal
   is a projection, so past the deadline it turns ultramarine (planned service), never vermilion. */

main.full-bleed:has(.lp-cover) { padding: 0; }
.lp-cover h1, .lp-sign h2, .lp-demo-title, .lp-key h3, .lp-plan h3, .lp-toc a, .lp-next { word-spacing: normal; }

/* ---------- The poster ---------- */
.lp-cover { padding: 44px 0 60px; }
.lp-cover-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px 44px; align-items: start;
}
.lp-cover h1 {
  grid-column: 1 / -1; margin: 0; font-weight: 800; font-stretch: 100%;
  font-size: clamp(2.875rem, 6.4vw + .5rem, 6.5rem); line-height: .94; letter-spacing: -0.045em; color: var(--ink);
  text-wrap: balance;
}
.lp-cover-copy { padding-top: 6px; }
.lp-lede { margin: 0; max-width: 40ch; font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lp-fine { margin: 16px 0 0; font-family: var(--mono); font-size: .6875rem; font-stretch: 87%; color: var(--ink-2); line-height: 1.6; }

/* The strip map: an enamel panel under a station sign. */
.lp-demo {
  --finish: .1818; --deadline: .2727;
  background: var(--paper); border: 1px solid #cfcdc6; border-radius: var(--radius-l); overflow: hidden; min-width: 0;
  scroll-margin-top: 16px;
}
.lp-demo-sign { border-radius: 0; padding: 18px 22px 12px; }
.lp-demo-sign .bullet { font-size: 1.125rem; }
.lp-demo-title { margin: 0; color: var(--on-sign); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.lp-demo-tag {
  margin-left: auto; font-family: var(--mono); font-size: .625rem; font-weight: 500; font-stretch: 87%;
  letter-spacing: 0; border: 1px solid #8b8a85; border-radius: var(--radius-s); padding: 2px 7px; color: #d8d7d2;
}
.lp-demo-body { padding: 22px 24px 20px; }

.lp-route { margin: 0 0 22px; }
.lp-route > .stop { padding-right: 10px; }
.lp-route > .stop.terminus { flex: 0 0 11.5rem; padding-right: 0; }
.lp-route b { display: block; font-weight: 750; font-size: 1.0625rem; line-height: 1.2; letter-spacing: -0.01em; }
.lp-route small { display: block; margin-top: 3px; color: var(--ink-3); font-size: .8125rem; line-height: 1.3; }
.lp-due {
  display: inline-block; background: var(--ink); color: var(--paper); border-radius: 2px; padding: 0 5px;
  font-variant-numeric: tabular-nums; font-weight: 750;
}
/* Past the deadline: the last leg becomes planned service and the terminus is hatched ultramarine. */
.lp-demo[data-late="true"] .lp-route > .stop:nth-child(2)::after {
  background: repeating-linear-gradient(90deg, var(--projected) 0 8px, transparent 8px 13px); height: 4px; top: 13px;
}
.lp-demo[data-late="true"] .lp-route > .terminus::before {
  border-color: var(--projected); background: repeating-linear-gradient(135deg, var(--projected) 0 3px, var(--paper) 3px 6px);
}
.lp-demo[data-late="true"] .lp-route > .terminus b { color: var(--projected); }
.lp-demo[data-late="true"] .lp-due { background: var(--projected); }

.lp-rehearsal { border-top: 2px solid var(--ink); padding-top: 14px; }
.lp-rehearsal label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-weight: 750; font-size: 1.0625rem; }
.lp-rehearsal output {
  font-weight: 800; font-stretch: 68%; font-size: 2.125rem; line-height: 1; color: var(--projected);
  font-variant-numeric: tabular-nums; letter-spacing: 0;
}
.lp-rehearsal input[type=range] { width: 100%; height: 28px; margin: 6px 0 0; accent-color: var(--projected); cursor: pointer; }
.lp-rehearsal input[type=range]:focus-visible { outline: 3px solid var(--line-2); outline-offset: 2px; }

/* The timetable: 08:00 to 11:40 along the line. The train (the arrival) moves; the 09:00 deadline stays put. */
.lp-timetable { position: relative; padding: 36px 16px 0 0; margin: 18px 0 30px; }
.lp-rail { position: relative; height: 10px; background: var(--line); border-radius: 5px; }
.lp-rail::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px 0 0 5px;
  width: calc(min(var(--finish), var(--deadline)) * 100%); background: var(--line-1);
}
.lp-rail-room {
  position: absolute; top: 3px; height: 4px;
  left: calc(min(var(--finish), var(--deadline)) * 100%); right: calc(100% - var(--deadline) * 100%);
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px);
}
.lp-rail-over {
  position: absolute; top: -3px; bottom: -3px; left: calc(var(--deadline) * 100%);
  width: calc(max(var(--finish) - var(--deadline), 0) * 100%);
  background: repeating-linear-gradient(135deg, var(--projected) 0 3px, var(--paper) 3px 6px); border: 1.5px solid var(--projected);
}
.lp-demo[data-late="true"] .lp-rail-over { border-width: 1.5px; }
.lp-demo:not([data-late="true"]) .lp-rail-over { border-width: 0; }
.lp-rail-mark { position: absolute; width: 0; }
.lp-rail-mark b { position: absolute; white-space: nowrap; font-size: .75rem; font-weight: 750; line-height: 1; }
/* The deadline: the terminus, a white capsule with a heavy ink ring. */
.lp-rail-mark.is-deadline { left: calc(var(--deadline) * 100%); top: -7px; }
.lp-rail-mark.is-deadline::before {
  content: ""; position: absolute; left: -15px; top: 0; width: 30px; height: 24px; box-sizing: border-box;
  background: var(--paper); border: 5px solid var(--ink); border-radius: 12px; z-index: 2;
}
.lp-rail-mark.is-deadline b { top: 32px; left: -15px; }
/* The train: a black car with a lit window; its label slides from its right to its left as it runs down the line. */
.lp-rail-mark.is-finish { left: calc(var(--finish) * 100%); top: -5px; z-index: 3; }
.lp-rail-mark.is-finish::before {
  content: ""; position: absolute; left: -13px; top: 0; width: 26px; height: 20px; box-sizing: border-box;
  background: linear-gradient(var(--line-2), var(--line-2)) 5px 4px / 16px 5px no-repeat, var(--ink);
  border-radius: 6px 6px 3px 3px;
}
.lp-rail-mark.is-finish b {
  bottom: 26px; left: 0; transform: translateX(calc(var(--finish) * -100%));
  background: var(--ink); color: var(--paper); padding: 4px 7px 3px; border-radius: var(--radius-s);
}
[data-verdict-off] { display: none; }
.lp-demo[data-late="true"] [data-verdict-on] { display: none; }
.lp-demo[data-late="true"] [data-verdict-off] { display: inline; }
.lp-demo[data-late="true"] .lp-rail-mark.is-finish b { background: var(--projected); }
.lp-ticks { position: relative; height: 14px; margin-top: 18px; font-family: var(--mono); font-size: .625rem; font-stretch: 87%; color: var(--ink-3); }
.lp-ticks span { position: absolute; left: calc(var(--at) * 100%); top: 0; }

/* The arrival board: three flap figures on the dark device. */
.lp-impact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 12px 6px; }
.lp-impact p { margin: 0; padding: 2px 12px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.lp-impact p + p { border-left: 1px solid var(--screen-line); }
.lp-impact span { font-size: .6875rem; font-weight: 700; font-stretch: 80%; letter-spacing: .06em; text-transform: uppercase; color: #aeb4bf; }
.lp-impact strong.flap { justify-self: start; font-size: 1.875rem; font-weight: 800; font-stretch: 66%; line-height: 1.1; padding: 3px 9px; }
.lp-impact[data-late="true"] .is-added span { color: #b8c2ff; }
.lp-impact[data-late="true"] .is-added strong.flap { color: #fff; background: #2f47c4; box-shadow: inset 0 0 0 2px #b8c2ff; }
.lp-chain-note { margin: 14px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--ink-3); }

/* A flap: two leaves meeting at a dark seam. */
.lp-impact .flap, .lp-monitor .flap, .lp-lane-flap {
  background: linear-gradient(#25292f 0 calc(50% - .5px), #07090c calc(50% - .5px) calc(50% + .5px), #1a1d22 calc(50% + .5px));
}

/* ---------- The line of sections ---------- */
.lp-toc { padding: 22px 0 18px; }
.lp-toc-head { margin: 0 0 6px; color: #cfcfcb; font-size: .8125rem; font-weight: 700; }
.lp-toc ol { list-style: none; margin: 0; padding: 0; display: flex; }
.lp-toc li { flex: 1 1 0; min-width: 0; }
.lp-toc a {
  position: relative; display: block; padding: 40px 6px 4px; text-align: center; color: var(--on-sign);
  text-decoration: none; font-weight: 750; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.2;
}
.lp-toc a::after { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 6px; background: var(--on-sign); }
.lp-toc li:first-child a::after { left: 50%; }
.lp-toc li:last-child a::after { right: 50%; }
.lp-toc-no {
  position: absolute; left: 50%; top: 2px; z-index: 1; width: 30px; height: 30px; margin-left: -15px;
  display: grid; place-items: center; background: var(--sign); color: var(--on-sign); border: 4px solid var(--on-sign);
  border-radius: 50%; font-size: .75rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.lp-toc li:last-child .lp-toc-no { width: 44px; margin-left: -22px; border-radius: 15px; }
.lp-toc a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--line-2); }
.lp-toc a:hover .lp-toc-no { background: var(--line-2); color: var(--ink); }
.lp-toc a:focus-visible { outline: 3px solid var(--on-sign); outline-offset: -3px; border-radius: var(--radius-s); }

/* ---------- Stations: a sign, then an enamel panel hung under it ---------- */
.lp-chapter { padding: 64px 0 0; scroll-margin-top: 8px; }
.lp-chapter:last-of-type { padding-bottom: 80px; }
.lp-sign { border-radius: var(--radius-l) var(--radius-l) 0 0; padding: 22px 24px 16px; gap: 18px; }
.lp-sign h2 {
  margin: 0; min-width: 0; color: var(--on-sign); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.375rem); font-weight: 800;
  line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance;
}
.lp-next {
  margin-left: auto; flex: none; align-self: center; display: inline-flex; align-items: baseline; gap: 6px;
  color: var(--on-sign); text-decoration: none; font-size: .8125rem; font-weight: 600; letter-spacing: 0;
  border: 2px solid #6a6b70; border-radius: var(--radius-m); padding: 7px 12px;
}
.lp-next b { font-weight: 800; }
.lp-next::after { content: "→"; font-weight: 800; }
.lp-next:hover { border-color: var(--on-sign); text-decoration: none; }
.lp-next:focus-visible { outline: 3px solid var(--on-sign); outline-offset: 2px; }

.lp-panel {
  background: var(--paper); border: 1px solid #cfcdc6; border-top: 0; border-radius: 0 0 var(--radius-l) var(--radius-l);
  padding: 34px 36px 38px;
}
.lp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 48px; align-items: start; }
.lp-prose { margin: 0; max-width: 46ch; font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); }
.lp-prose code { font-size: .75em; }

/* The map key */
.lp-key h3 { font-size: 1.125rem; font-weight: 800; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.lp-key ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.lp-key li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; align-items: center; color: var(--ink-2); line-height: 1.45; }
.lp-key li b { color: var(--ink); font-weight: 750; }
.lp-key-mark { position: relative; display: block; height: 24px; }
.lp-key-mark::before, .lp-key-mark::after { content: ""; position: absolute; box-sizing: border-box; }
.lp-key-mark.k-line::before, .lp-key-mark.k-transfer::before { left: 0; right: 0; top: 8px; height: 8px; background: var(--transit); }
.lp-key-mark.k-line::after { left: 23px; top: 3px; width: 18px; height: 18px; background: var(--paper); border: 4px solid var(--transit); border-radius: 50%; }
.lp-key-mark.k-transfer::after { left: 17px; top: 3px; width: 30px; height: 18px; background: var(--paper); border: 4px solid var(--ink); border-radius: 9px; }
.lp-key-mark.k-planned::before { left: 0; right: 0; top: 10px; height: 4px; background: repeating-linear-gradient(90deg, var(--projected) 0 8px, transparent 8px 13px); }
.lp-key-mark.k-failed::before { left: 0; right: 0; top: 9px; height: 6px; background: var(--ink-3); }
.lp-key-mark.k-failed::after { left: 24px; top: 4px; width: 16px; height: 16px; background: var(--down); border-radius: 2px; transform: rotate(45deg); }

/* ---------- The departure board (live wall) ---------- */
.lp-wall { display: grid; gap: 26px; }
.lp-wall .lp-prose { max-width: 60ch; }
.lp-monitor { margin: 0; padding: 0; overflow: hidden; }
.lp-monitor-bar {
  display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--screen-line);
}
.lp-monitor-title { font-weight: 800; font-stretch: 72%; font-size: 1.375rem; letter-spacing: .04em; text-transform: uppercase; color: var(--flap-ink); line-height: 1; }
.lp-monitor-title span { margin-left: 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; color: var(--screen-ink-2); }
.lp-clock { margin-left: auto; font-weight: 700; font-stretch: 68%; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.lp-pause {
  font: inherit; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--flap-ink); background: transparent; border: 1.5px solid var(--screen-ink-2); border-radius: var(--radius-s);
  padding: 5px 12px; cursor: pointer;
}
.lp-pause:hover { border-color: var(--flap-ink); }
.lp-pause:focus-visible { outline: 3px solid var(--flap-ink); outline-offset: 2px; }

.lp-board-cols, .lp-lane {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 150px 230px; gap: 18px; align-items: center;
  padding-left: 20px; padding-right: 20px;
}
.lp-board-cols {
  padding-top: 9px; padding-bottom: 7px; border-bottom: 1px solid var(--screen-line);
  font-size: .6875rem; font-weight: 700; font-stretch: 80%; letter-spacing: .08em; text-transform: uppercase; color: var(--screen-ink-2);
}
.lp-lanes { display: grid; }
.lp-lane { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--screen-line); }
.lp-lane:last-child { border-bottom: 0; }
.lp-lane[data-state="down"] { background: color-mix(in srgb, var(--trace-down) 12%, transparent); }
.lp-lane-info { display: grid; gap: 5px; min-width: 0; }
.lp-lane-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lp-lane-flap {
  display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--flap-ink); padding: 4px 9px 3px; border-radius: 2px;
  font-weight: 700; font-stretch: 75%; font-size: 1.125rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
}
.lp-lane-sched { padding-left: 32px; font-family: var(--mono); font-size: .625rem; font-stretch: 87%; color: var(--screen-ink-2); }
/* The signal head on each row: shape first (filled, half, diamond, ring), colour second. */
.lp-lane .signal .dot { border: 0; }
.lp-lane[data-state="up"] .signal .dot { background: #5fcf64; }
.lp-lane[data-state="late"] .signal .dot { border: 2px solid var(--trace-late); background: linear-gradient(90deg, var(--trace-late) 50%, transparent 50%); }
.lp-lane[data-state="down"] .signal .dot { background: var(--trace-down); border-radius: 1px; transform: rotate(45deg) scale(.9); animation: lp-blink 1s steps(2, jump-none) infinite; }
.lp-lane[data-state="paused"] .signal .dot { background: transparent; border: 2px solid #8b8a85; }
/* Each row's track: checkpoints along a thin rail; pings are trains passing them, drawn by landing.js. */
.lp-pings { display: block; width: 100%; height: 30px; }
.lp-readout { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.lp-readout b.flap { font-size: 1.625rem; font-weight: 800; font-stretch: 64%; line-height: 1.05; padding: 2px 8px; min-width: 2.2em; text-align: center; letter-spacing: .02em; }
.lp-readout span { font-family: var(--mono); font-size: .5625rem; font-stretch: 87%; color: var(--screen-ink-2); white-space: nowrap; }
.lp-lane-state { min-width: 0; }
.lp-lane-state .flap { display: inline-block; max-width: 100%; font-size: 1rem; font-stretch: 72%; padding: 5px 9px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-lane[data-state="up"] .lp-lane-state .flap { color: var(--trace-up); }
.lp-lane[data-state="late"] .lp-lane-state .flap { color: var(--trace-late); }
.lp-lane[data-state="down"] .lp-lane-state .flap { color: #fff; background: #8f1f14; }
.lp-lane[data-state="paused"] .lp-lane-state .flap { color: #aeb4bf; }

/* The service-update line along the foot of the board. */
.lp-board-msg {
  display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px 20px; border-top: 1px solid var(--screen-line);
  font-weight: 600; font-size: .9375rem; color: var(--flap-ink);
}
.lp-board-msg-label { flex: none; font-size: .6875rem; font-weight: 800; font-stretch: 80%; letter-spacing: .08em; text-transform: uppercase; color: var(--flap-lamp); }
.lp-alarm { display: none; align-items: center; gap: 10px; min-width: 0; }
.lp-alarm::before { content: ""; flex: none; width: 9px; height: 9px; }
.lp-alarm.is-down, .lp-alarm.is-up { display: inline-flex; }
.lp-alarm.is-down { color: #ffc9c2; }
.lp-alarm.is-down::before { background: var(--trace-down); transform: rotate(45deg); animation: lp-blink 1s steps(2, jump-none) infinite; }
.lp-alarm.is-up { color: #c9f0b4; }
.lp-alarm.is-up::before { background: var(--trace-up); border-radius: 50%; }
.lp-board-msg:has(.lp-alarm.is-down, .lp-alarm.is-up) .lp-alarm-idle { display: none; }
.lp-alarm-idle { color: #c9ccd2; }
@keyframes lp-blink { 50% { opacity: .2; } }
/* Key to the train marks on the tracks. */
.lp-pings-key {
  list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 20px;
  border-top: 1px solid var(--screen-line); font-size: .8125rem; color: #c9ccd2;
}
.lp-pings-key li { display: inline-flex; align-items: center; gap: 8px; }
.lp-pings-key i { flex: none; display: inline-block; width: 16px; height: 7px; border-radius: 4px; }
.lp-pings-key .k-done { background: var(--screen-ink); }
.lp-pings-key .k-start { border: 1.5px solid var(--screen-ink); }
.lp-pings-key .k-fail { width: 16px; background: var(--trace-down); border-radius: 0; clip-path: polygon(0 50%, 4px 0, 12px 0, 100% 50%, 12px 100%, 4px 100%); }
.lp-pings-key .k-closed { width: 22px; height: 3px; border-radius: 0; background: repeating-linear-gradient(90deg, var(--trace-down) 0 5px, transparent 5px 8px); }
.lp-monitor figcaption { border-top: 1px solid var(--screen-line); padding: 12px 20px 16px; font-size: .875rem; line-height: 1.5; color: #aeb4bf; }

/* ---------- Status board ---------- */
.lp-status { border: 2px solid var(--ink); border-radius: var(--radius-l); background: var(--paper); overflow: hidden; }
.lp-status-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 16px 18px 10px; }
.lp-status-title { font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.02em; }
.lp-url { font-family: var(--mono); font-size: .6875rem; font-stretch: 87%; color: #d8d7d2; }
.lp-ok { margin: 0; display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.015em; }
.lp-ok .signal .dot { background: #5fcf64; border: 0; }
.lp-uptime { padding: 14px 18px 0; }
.lp-uptime-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; margin-bottom: 7px; font-weight: 750; }
.lp-uptime-top span:last-child { font-family: var(--mono); font-size: .6875rem; font-weight: 400; font-stretch: 87%; }
.lp-good { font-size: .8125rem; font-weight: 700; color: var(--up); }
.lp-days { display: flex; gap: 2px; height: 26px; }
.lp-days i, .lp-status-legend i { flex: 1; min-width: 1px; background: var(--up); border-radius: 1px; }
.lp-days i.part, .lp-status-legend i.part { background: repeating-linear-gradient(180deg, var(--late) 0 3px, var(--paper) 3px 5px); }
.lp-days i.out, .lp-status-legend i.out { background: var(--down); }
.lp-status-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px 14px; font-family: var(--mono); font-size: .625rem; font-stretch: 87%; color: var(--ink-3); }
.lp-status-legend { display: inline-flex; align-items: center; gap: 6px; }
.lp-status-legend i { flex: none; display: inline-block; width: 6px; height: 12px; }
.lp-status-legend i + i, .lp-status-legend i.out { margin-left: 8px; }

/* ---------- Slow runs: journey times ---------- */
.lp-runs { margin: 0; border: 2px solid var(--ink); border-radius: var(--radius-l); background: var(--paper); padding: 22px 22px 16px; }
.lp-runs-chart { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 160px; border-bottom: 2px solid var(--ink); }
.lp-runs-chart i { flex: 1; height: calc(var(--h) * 100%); background: var(--ink); border-radius: 2px 2px 0 0; }
.lp-runs-chart i.slow { background: repeating-linear-gradient(180deg, var(--late) 0 4px, color-mix(in srgb, var(--late) 55%, var(--paper)) 4px 6px); outline: 2px solid var(--ink); outline-offset: -2px; }
.lp-median { position: absolute; left: 0; right: 0; bottom: calc(var(--m) * 100%); border-top: 2px dashed var(--paper); pointer-events: none; z-index: 1; }
.lp-median span { position: absolute; left: 0; bottom: 6px; font-size: .75rem; font-weight: 750; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius-s); padding: 1px 6px; }
.lp-runs-axis { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: .625rem; font-stretch: 87%; color: var(--ink-3); }
.lp-runs figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.lp-flag { display: inline-flex; align-items: center; gap: 8px; }
.lp-flag b { font-weight: 800; }
.lp-runs figcaption > span:last-child { color: var(--ink-2); }

/* ---------- Alerts and setup ---------- */
.lp-request { border: 2px solid var(--ink); border-radius: var(--radius-l); background: var(--paper-2); overflow: hidden; min-width: 0; }
.lp-request-head { display: flex; gap: 10px; align-items: center; padding: 11px 16px; background: var(--sign); color: var(--on-sign); font-weight: 750; font-size: .9375rem; }
.lp-method { font-family: var(--mono); font-size: .625rem; font-weight: 600; background: var(--line-2); color: var(--ink); border-radius: 2px; padding: 1px 6px; }
.lp-request pre { margin: 0; padding: 16px 18px; overflow-x: auto; line-height: 1.75; }
.lp-request pre code { font-size: .6875rem; }
.lp-request .h { color: var(--ink-3); }
.lp-request .s-down-ink { color: var(--down); font-weight: 600; }
.lp-code { min-width: 0; }
.lp-code .tabs { overflow-x: auto; scrollbar-width: none; }
.lp-code .tabs::-webkit-scrollbar { display: none; }
.lp-code .tabs button { text-transform: none; letter-spacing: -0.005em; font-size: .9375rem; font-weight: 750; white-space: nowrap; border-radius: var(--radius-s) var(--radius-s) 0 0; }
.lp-code .tabs button:focus-visible { outline: 3px solid var(--line-2); outline-offset: -3px; }
.lp-code .snippet { margin: 0; white-space: pre; border: 2px solid var(--ink); border-radius: 0 0 var(--radius-m) var(--radius-m); font-size: .75rem; }

/* ---------- Pricing: the fares, at the terminus ---------- */
.lp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 0; margin-top: 26px; }
.lp-plan { padding: 20px 22px 24px 0; }
.lp-plan + .lp-plan { padding-left: 22px; border-left: 1px solid var(--ink); }
.lp-plan h3 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.lp-price { margin: 10px 0 0; font-weight: 800; font-stretch: 64%; font-size: 3.75rem; line-height: .95; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.lp-price.is-soon { font-size: 2.25rem; line-height: 1.05; }
.lp-plan-n { margin: 8px 0 18px; font-family: var(--mono); font-size: .75rem; font-stretch: 87%; }
.lp-plan .lp-fine { font-family: var(--font); font-size: .9375rem; color: var(--ink-2); }
/* What every fare includes, as the stops of one short line. */
.lp-included {
  position: relative; list-style: none; margin: 0; padding: 22px 0 22px 22px; border-left: 1px solid var(--ink);
  display: grid; gap: 12px; align-content: start; font-weight: 700;
}
.lp-included::before { content: ""; position: absolute; left: 30px; top: 32px; bottom: 32px; width: 6px; background: var(--ink); }
.lp-included li { position: relative; padding-left: 32px; }
.lp-included li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; box-sizing: border-box;
  background: var(--paper); border: 4px solid var(--ink); border-radius: 50%;
}

footer.site.lp-footer { padding: 30px 0 36px; font-family: var(--font); font-size: .9375rem; color: var(--on-sign); }
.lp-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px 28px; flex-wrap: wrap; padding-top: 6px; }
.lp-footer p { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.lp-footer nav { display: flex; gap: 22px; }
.lp-footer a { color: var(--on-sign); font-weight: 750; text-decoration-color: rgba(255, 255, 255, .5); }
.lp-footer a:focus-visible { outline-color: var(--on-sign); }

/* ---------- Narrower ---------- */
@media (max-width: 1000px) {
  .lp-cover-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-lede { max-width: 52ch; }
  .lp-split { grid-template-columns: minmax(0, 1fr); }
  .lp-prose { max-width: 60ch; }
  .lp-board-cols, .lp-lane { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 128px 190px; gap: 14px; }
  .lp-plans { grid-template-columns: 1fr 1fr; }
  .lp-included { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ink); padding-left: 0; }
  .lp-included::before { left: 8px; }
}
@media (max-width: 760px) {
  .lp-next { display: none; }
  .lp-board-cols { display: none; }
  .lp-lane {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info readout" "state state" "trace trace";
    gap: 10px 12px; padding-left: 14px; padding-right: 14px;
  }
  .lp-lane-info { grid-area: info; }
  .lp-readout { grid-area: readout; justify-items: end; }
  .lp-lane-state { grid-area: state; }
  .lp-pings { grid-area: trace; }
  .lp-lane-flap { white-space: normal; }
  .lp-monitor-bar { flex-wrap: wrap; gap: 10px 14px; padding: 12px 14px; }
  .lp-board-msg { flex-wrap: wrap; gap: 4px 12px; padding: 10px 14px; }
  /* Key to the train marks on the tracks. */
.lp-pings-key {
  list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 12px 20px;
  border-top: 1px solid var(--screen-line); font-size: .8125rem; color: #c9ccd2;
}
.lp-pings-key li { display: inline-flex; align-items: center; gap: 8px; }
.lp-pings-key i { flex: none; display: inline-block; width: 16px; height: 7px; border-radius: 4px; }
.lp-pings-key .k-done { background: var(--screen-ink); }
.lp-pings-key .k-start { border: 1.5px solid var(--screen-ink); }
.lp-pings-key .k-fail { width: 16px; background: var(--trace-down); border-radius: 0; clip-path: polygon(0 50%, 4px 0, 12px 0, 100% 50%, 12px 100%, 4px 100%); }
.lp-pings-key .k-closed { width: 22px; height: 3px; border-radius: 0; background: repeating-linear-gradient(90deg, var(--trace-down) 0 5px, transparent 5px 8px); }
.lp-monitor figcaption { padding: 12px 14px 14px; }

  /* The line of sections runs down the page instead of across it. */
  .lp-toc { padding: 20px 0 16px; }
  .lp-toc ol { display: grid; }
  .lp-toc a { padding: 9px 4px 9px 50px; text-align: left; font-size: 1.0625rem; }
  .lp-toc a::after { left: 13px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; }
  .lp-toc li:first-child a::after { left: 13px; top: 50%; }
  .lp-toc li:last-child a::after { right: auto; bottom: 50%; }
  .lp-toc-no { left: 16px; top: 50%; margin-top: -15px; }
  .lp-toc li:last-child .lp-toc-no { width: 30px; height: 40px; margin-left: -15px; margin-top: -20px; }
}
@media (max-width: 640px) {
  .lp-cover { padding: 26px 0 40px; }
  .lp-cover-grid { gap: 20px; }
  .lp-lede { font-size: 1.0625rem; }
  .lp-ctas .btn { flex: 1 1 auto; }
  .lp-demo-sign { padding: 16px 14px 10px; }
  .lp-demo-title { font-size: 1.25rem; }
  .lp-demo-body { padding: 18px 14px 16px; }
  .lp-route b { font-size: .9375rem; }
  .lp-route small { font-size: .75rem; }
  .lp-route > .stop.terminus { flex: 1.15 1 0; }
  .lp-rehearsal label { font-size: 1rem; }
  .lp-impact { grid-template-columns: minmax(0, 1fr); padding: 6px 4px; }
  .lp-impact p { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 8px 10px; }
  .lp-impact p + p { border-left: 0; border-top: 1px solid var(--screen-line); }
  .lp-impact strong.flap { font-size: 1.5rem; justify-self: end; }

  .lp-chapter { padding-top: 44px; }
  .lp-chapter:last-of-type { padding-bottom: 56px; }
  .lp-sign { padding: 18px 14px 12px; gap: 12px; align-items: flex-start; }
  .lp-panel { padding: 22px 16px 26px; }
  .lp-prose { font-size: 1.0625rem; }
  .lp-key li { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; font-size: .9375rem; }
  .lp-key-mark.k-line::after { left: 17px; }
  .lp-key-mark.k-transfer::after { left: 11px; }
  .lp-key-mark.k-failed::after { left: 18px; }
  .lp-monitor { margin: 0 -8px; }
  .lp-status-foot { flex-wrap: wrap; }
  .lp-status-legend { order: 3; width: 100%; }
  .lp-runs { padding: 16px 14px 12px; }
  .lp-runs-chart { gap: 2px; height: 130px; }
  .lp-plans { grid-template-columns: 1fr; }
  .lp-plan { padding-right: 0; }
  .lp-plan + .lp-plan { padding-left: 0; border-left: 0; border-top: 1px solid var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-alarm.is-down::before, .lp-lane[data-state="down"] .signal .dot { animation: none; }
}
