/* Production copy of design/mobile-refresh/final/home.css, the owner-approved mockup (TABL Navy + ambient motion,
   2026-09-28), written by design/mobile-refresh/export.cjs. Per-page order: onlocation.styles.css, calculator.css (index,
   pricing), home.css (index) | pages.css (download, 404, privacy, eula), ambient.css (not on legal pages), tabl-navy.css last. */
/* TABL Mobile "On Location": home page sections (mockup: final/home.css; production folds it into onlocation.styles.css).
   Reads onlocation.css tokens only; the only literals are rgba() tints of a token and icon mask shapes.
   Spec: research/direction-final.md §3 (signature elements), §5 (index, section by section).
   Breakpoints shared with onlocation.css: 1100 / 960 / 880 / 720 / 480 / 400. */

/* ================= 1. Hero ================= */

.hero { overflow: clip; background: var(--paper); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  column-gap: clamp(32px, 4vw, 56px); padding-block: clamp(32px, 4vw, 56px) clamp(40px, 4.4vw, 64px);
}
.hero-copy { min-width: 0; container-type: inline-size; }
.nobr { white-space: nowrap; }
.hero-pills { margin-top: 16px; }
.hero h1 { margin-top: 22px; }
.hero h1 .line { display: block; }
/* "Built for the rush." is ~7.05x the font size wide, so 13.8cqi always fits the column. The <=480 clamp is untouched. */
@media (min-width: 481px) { .hero h1 { font-size: min(clamp(2.875rem, 1.5rem + 4vw, 4.875rem), 13.8cqi); } }
.hero .lede { margin-top: 22px; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 32px; }

/* Dock proof row: 5 separate logo tiles on one plate (no overlap, no clipping), then two stats split by a hairline. */
.dock { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.dock__plate {
  display: flex; flex: none; gap: 6px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-plate); box-shadow: var(--e1);
}
.dock__plate img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); }
/* The two stats never split apart: when the row is narrow the whole group wraps under the plate. */
.dock__stats { display: flex; flex: none; align-items: center; gap: 20px; }
.dock__stat { display: grid; gap: 3px; min-height: 44px; align-content: center; color: inherit; text-decoration: none; }
.dock__score { font: 600 1.25rem/1.1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dock__score .stars { margin-right: 2px; font-size: 0.95em; letter-spacing: 1px; }
.dock__sub { font-size: 0.875rem; line-height: 1.35; color: var(--ink-3); white-space: nowrap; }
a.dock__stat:hover .dock__sub { color: var(--ink); text-decoration: underline; }
.dock__stat--app { padding-left: 20px; border-left: 1px solid var(--line-strong); }

/* Hero phone: the Cart 2x master, static rings from the Tap to Pay row, four key/value hairline callouts (>720). */
.hero-media {
  --screen: 264px; --bz: 10px; --gap: 36px; --label: 216px;
  margin: 0; padding: 8px calc(var(--gap) + var(--label)) 8px 0;
}
.hero-device { position: relative; isolation: isolate; width: calc(var(--screen) + 2 * var(--bz)); }
.device--hero {
  padding: var(--bz); border-radius: var(--r-xl); background: var(--bezel);
  box-shadow: inset 0 0 0 1px rgba(232, 237, 239, 0.1), var(--e3);
}
.device__screen { position: relative; }
.device--hero img { width: var(--screen); border-radius: calc(var(--r-xl) - var(--bz)); }
.hero-rings {
  position: absolute; z-index: -1; left: 50%; top: calc(var(--bz) + 84.5% * 0.94); /* the Tap to Pay row */
  width: 1000px; height: 1000px; max-width: none; transform: translate(-50%, -50%); pointer-events: none;
  fill: none; stroke: var(--line-strong);
  -webkit-mask: linear-gradient(90deg, transparent 22%, #000 58%), radial-gradient(closest-side, #000 18%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent 22%, #000 58%) intersect, radial-gradient(closest-side, #000 18%, transparent 100%);
}
.hero-rings circle { vector-effect: non-scaling-stroke; stroke-width: 1px; }

/* Callout: dot on the element, a 1px hairline past the bezel, a borderless caps key + value above its end. */
.callout {
  position: absolute; z-index: 1; left: var(--x); top: var(--y);
  width: calc(100% - var(--x) + var(--bz) + var(--gap) + var(--label));
  display: flex; align-items: center; transform: translate(-5px, -50%); pointer-events: none;
}
.callout::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: var(--r-dot);
  background: var(--accent); box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px rgba(29, 88, 148, 0.22);
}
.callout--live::before { background: var(--signal-dot); box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px rgba(30, 143, 85, 0.24); }
.callout i { flex: 1; height: 1px; margin-left: 5px; background: var(--line-strong); }
.callout__label { position: absolute; right: 0; bottom: 7px; width: var(--label); display: grid; gap: 2px; }
.callout--below .callout__label { bottom: auto; top: 7px; }
.callout__label b { font: 600 0.8125rem/1.25 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.callout__label span { font-size: 0.875rem; line-height: 1.35; color: var(--ink-2); }
.hero-media figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Run of show: a hairline road with hour ticks, five stops as rings ---- */
.runsheet { position: relative; border-top: 1px solid var(--line-strong); background: var(--paper); }
.runsheet .container { padding-block: 22px 36px; }
.runsheet__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.runsheet__note { font-size: 0.9375rem; color: var(--ink-3); }
.runsheet__stops { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 22px; }
.runsheet__stops::before {
  content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 9px;
  background:
    linear-gradient(var(--ink-3), var(--ink-3)) 0 4px / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 24px) 0 0 / 100% 9px no-repeat;
}
.runsheet__stops li { position: relative; min-width: 0; padding-top: 30px; }
.runsheet__stops li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 15px; height: 15px;
  border: 2px solid var(--ink); border-radius: var(--r-dot); background: var(--paper);
}
.runsheet__stops li:first-child::before { background: var(--ink); }
.runsheet time { display: block; font-size: 1.5rem; line-height: 1; color: var(--ink); }
.runsheet__place { display: block; margin-top: 6px; font: 600 1.0625rem/1.2 var(--font-display); color: var(--ink); }
.runsheet li p { max-width: 26ch; margin-top: 6px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }

/* ================= 2. Testimonials: one rail, app-card skin ================= */

.rail-controls { display: flex; align-items: center; gap: 10px; }
.rail-count { min-width: 64px; text-align: center; font-size: 1.125rem; line-height: 1; color: var(--ink-3); }
.rail-count b { font-weight: 600; color: var(--ink); }
.band--night .rail-count { color: var(--frost-2); }
.band--night .rail-count b { color: var(--frost); }
.icon-btn:disabled, .icon-btn[aria-disabled="true"] { opacity: 0.45; cursor: default; }

.rail {
  --inset: max(var(--gutter), calc((100% - var(--container)) / 2));
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px var(--inset) 12px; scroll-padding-inline: var(--inset);
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; }

.testimonial-card {
  --peek-n: 3.35; --peek-gaps: 60px;
  position: relative; flex: 0 0 clamp(300px, calc((100vw - max(var(--gutter), (100vw - var(--container)) / 2) - var(--peek-gaps)) / var(--peek-n)), 420px); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 16px; padding: 24px 24px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e1);
}
.testimonial-brand { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 12px; }
.testimonial-logo { width: 44px; height: 44px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.testimonial-logo:has(img[src*="light-logo"]) { background: var(--night); border-color: var(--night); }
.testimonial-logo img, .testimonial-logo picture { width: 100%; height: 100%; object-fit: cover; }
.testimonial-business { font: 600 1.1875rem/1.15 var(--font-display); color: var(--ink); }
.testimonial-owner { margin-top: 2px; font-size: 0.875rem; color: var(--ink-3); }
.testimonial-stars { padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9375rem; line-height: 1; letter-spacing: 2px; color: var(--ink); }
.testimonial-copy { font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
/* The clamp only runs with JS, which also reveals "Read full review" where it cuts; without JS the full quote shows. */
@media (scripting: enabled) {
  .testimonial-card:not(.is-open) .testimonial-copy { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; line-clamp: 8; overflow: hidden; }
}
.testimonial-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 4px; border-top: 1px solid var(--line); }
.testimonial-more {
  min-height: 44px; padding: 0; border: 0; background: none;
  font: 600 1rem/1 var(--font-display); color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em;
}
.testimonial-more:hover { color: var(--accent-hover); }
.testimonial-source {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: auto;
  font: 600 1rem/1 var(--font-display); color: var(--ink-2); text-decoration: none;
}
.testimonial-source svg { width: 16px; height: 16px; stroke-width: 2; }
.testimonial-source:hover { color: var(--accent); }

/* ================= 3. Product (night): the route, the Tap stage, run the business ================= */

.runs-on { gap: 10px; }
.runs-on__k { font-size: 0.9375rem; color: var(--frost-2); }
.route-controls { display: none; }
.route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.route__step { display: flex; flex-direction: column; min-width: 0; }
.route__node { display: flex; align-items: center; gap: 10px; font: 600 1.0625rem/1 var(--font-display); color: var(--frost); }
/* Dashed lane markings join stop to stop. */
.route__step:not(:last-child) .route__node::after {
  content: ""; flex: 1; height: 2px; margin-right: -24px;
  background: repeating-linear-gradient(90deg, rgba(232, 237, 239, 0.34) 0 12px, transparent 12px 22px);
}
.route__num {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: var(--r-dot);
  border: 1.5px solid var(--frost-2); font: 600 0.9375rem/1 var(--font-display); color: var(--frost);
}
.route__num--live { border-color: var(--signal-night); box-shadow: 0 0 0 4px rgba(61, 196, 130, 0.14); }
.route__step h3 { margin-top: 22px; }
.route__step > p:not(.route__node) { max-width: 38ch; margin-top: 10px; font-size: 1rem; line-height: 1.55; color: var(--frost-2); }
.route__step .pills { margin-top: 16px; }

/* Stages: fixed height; the phone top sits 36px in and the stage bottom crops it (the stage is always full).
   --sh is the full screen height at 208px, so chips are anchored in screenshot % whatever the crop. */
.stage {
  --sh: calc(208px * 800 / 368);
  position: relative; height: 255px; margin-top: 16px; overflow: hidden;
  background: var(--night-raised); border: 1px solid var(--night-line); border-radius: var(--r-lg);
}
.stage__device {
  position: absolute; top: 36px; left: 50%; width: 224px; margin-left: -112px; padding: 8px 8px 0;
  background: var(--bezel); border-radius: 30px 30px 0 0;
  box-shadow: inset 0 0 0 1px rgba(232, 237, 239, 0.12), 0 -12px 40px -12px rgba(0, 0, 0, 0.6);
}
.stage__screen { position: relative; width: 208px; }
.stage__screen img { width: 208px; border-radius: 22px 22px 0 0; }
/* Orders: the box stops at 46.75% of the screenshot (Mark as Ready starts at 49.6%), at every width. */
.stage__screen--orders img { height: calc(var(--sh) * 0.4675); object-fit: cover; object-position: top; }
.chip-hang {
  position: absolute; z-index: 1; display: grid; gap: 1px; padding: 7px 10px 8px;
  background: var(--surface); border-radius: var(--r-md);
  box-shadow: 0 0 0 1px rgba(15, 22, 27, 0.08), 0 14px 28px -12px rgba(0, 0, 0, 0.7);
  font: 600 0.875rem/1.2 var(--font-display); color: var(--ink); white-space: nowrap;
}
.chip-hang__k { font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); }
/* Covers the retired Quick Charge button (x 71.6-96.7%, y 7.6-12.4%) with the header's own words. */
.chip-hang--order { top: calc(var(--sh) * 0.05); left: 31%; right: -14px; }
/* One line hanging off the right bezel, centred on the gap between the tiles and the order card (y 30.5-35.6%), clear of the
   search field, the Active / Complete tiles and the order card's first line; it names the queue, it doesn't repeat the tiles. */
.chip-hang--queue { top: calc(var(--sh) * 0.3); right: -14px; display: flex; gap: 6px; padding: 5px 10px; }
.chip-hang--queue .chip-hang__k::after { content: " ·"; }

/* The Tap stage: the one green stage. nfc glyph + static rings, the lens crop on a 16px plate, a readout pill. */
/* The readout pill bridges the lens plate's top edge (over the crop's blank top strip); the glyph sits centred above. */
.band--night .lens .stage__readout {
  position: absolute; z-index: 1; top: 0; left: 0; transform: translateY(-50%); white-space: nowrap;
  background: var(--night-raised); border-color: rgba(232, 237, 239, 0.24); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7);
}
.tap-glyph { position: absolute; top: 20px; left: 50%; margin-left: -24px; display: grid; place-items: center; width: 48px; height: 48px; }
.tap-glyph__tile {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-dot);
  background: rgba(61, 196, 130, 0.12); border: 1px solid rgba(61, 196, 130, 0.42); color: var(--signal-night);
}
.tap-glyph__tile svg { width: 24px; height: 24px; stroke-width: 2; }
.tap-glyph__rings {
  position: absolute; left: 50%; top: 50%; width: 400px; height: 400px; max-width: none; transform: translate(-50%, -50%);
  fill: none; stroke: var(--frost); stroke-opacity: 0.14; pointer-events: none;
  -webkit-mask: radial-gradient(closest-side, #000 12%, transparent 92%); mask: radial-gradient(closest-side, #000 12%, transparent 92%);
}
.tap-glyph__rings circle { vector-effect: non-scaling-stroke; stroke-width: 1px; }
.lens {
  position: absolute; left: 20px; right: 20px; bottom: 20px; max-width: 320px; margin-inline: auto; padding: 8px;
  background: var(--surface); border-radius: var(--r-plate); box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.75);
}
.lens img { width: 100%; border-radius: 10px; }

/* Run the whole business from your phone: six icon-tile items. */
.business { margin-top: clamp(56px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--night-line); }
.business__label { font: 600 1.375rem/1.2 var(--font-display); color: var(--frost); }
.business__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 28px; }
.business__grid li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; align-content: start; }
.business__grid li > :not(.icon-tile) { grid-column: 2; }
.business__grid .icon-tile { grid-row: 1 / span 2; }
.business__grid h4 { margin-top: 1px; font: 600 1.25rem/1.2 var(--font-display); color: var(--frost); text-wrap: balance; }
.business__grid p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--frost-2); }

/* ================= 4. Screens (paper): portrait tab gallery, Menu first ================= */

.screens-stage {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr;
  column-gap: clamp(32px, 4.5vw, 64px); padding: clamp(24px, 3vw, 40px);
  background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-lg);
}
/* Each panel spans the stage on its grid (subgrid), so its phone and caption land in the stage's tracks. */
.screens-panel { grid-area: 1 / 1 / -1 / -1; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; transition: opacity 200ms var(--ease); }
.screens-panel > .device { grid-area: 1 / 1 / -1 / 2; align-self: center; }
.screens-caption { grid-area: 2 / 2; }
@starting-style { .screens-panel { opacity: 0; } }
.device--stage {
  --bz: 10px; width: calc(264px + 2 * var(--bz)); padding: var(--bz);
  border-radius: var(--r-xl); background: var(--bezel); box-shadow: inset 0 0 0 1px rgba(232, 237, 239, 0.1), var(--e2);
}
.device--stage img { width: 264px; border-radius: calc(var(--r-xl) - var(--bz)); }
.screens-readout {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
  font-size: 0.9375rem; line-height: 1; color: var(--ink);
}
.screens-title { margin-top: 18px; font: 600 clamp(1.375rem, 1.1rem + 0.6vw, 1.625rem)/1.15 var(--font-display); color: var(--ink); text-wrap: balance; }
.screens-text { max-width: 46ch; margin-top: 10px; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); }

.screens-tabs { grid-area: 3 / 2; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; margin-top: 32px; }
.screen-card {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; align-content: center; column-gap: 14px; row-gap: 2px;
  width: 100%; min-height: 64px; padding: 12px 16px 12px 12px; text-align: left;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-md); color: inherit;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.screen-card:hover { border-color: var(--line-strong); background: rgba(240, 241, 241, 0.5); }
.screen-card .icon-tile { grid-row: 1 / span 2; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.screen-card__eyebrow { align-self: end; font: 600 0.8125rem/1.2 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.screen-card__title { align-self: start; font: 600 1.125rem/1.25 var(--font-display); color: var(--ink); }
.screen-card[aria-selected="true"] { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--e1), inset 3px 0 0 var(--accent); }
.screen-card[aria-selected="true"] .icon-tile { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ================= 5. Ecosystem (sunk): three rows + the "One queue" diagram ================= */

.eco-lead { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--line-strong); }
.eco-lead .pill { flex: none; }
.eco-lead p { max-width: 72ch; padding-top: 3px; color: var(--ink-2); }
.eco-lead strong { color: var(--ink); }
.eco-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; margin-top: 8px; }
.eco-list { display: grid; }
.eco-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; padding: 24px 0; }
.eco-row + .eco-row { border-top: 1px solid var(--line-strong); }
.eco-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 44px; }
.eco-row h3 { font-size: 1.5rem; }
.eco-row__tagline { margin-top: 2px; color: var(--ink-2); }
.checks {
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  display: grid; gap: 6px; margin-top: 12px;
}
.checks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.checks li::before {
  content: ""; width: 16px; height: 16px; margin-top: 3px; background: var(--ink-2);
  -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat;
}
.eco-row__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; font: 600 1.0625rem/1 var(--font-display); text-decoration: none; }
.eco-row__link:hover { text-decoration: underline; }

.queue {
  display: flex; flex-direction: column; justify-content: center; margin: 24px 0 0; padding: 24px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--e1);
}
.queue__k { font: 600 0.8125rem/1.2 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.queue__sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.queue__src {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  font: 600 0.9375rem/1.15 var(--font-display); color: var(--ink);
}
.queue__src img, .queue__src svg { flex: none; width: 20px; height: 20px; border-radius: 5px; color: var(--ink-2); }
.queue { container-type: inline-size; }
/* A narrow plate (961-1100px) drops the source icons so each label stays on one line. */
@container (max-width: 440px) { .queue__src img, .queue__src svg { display: none; } }
/* Lane dashes: three sources merge into one ticket, one lane runs on to the Kitchen Display. */
.queue__lanes { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 1 1 36px; min-height: 36px; max-height: 88px; }
.queue__lanes i { justify-self: center; width: 2px; background: repeating-linear-gradient(var(--field-border) 0 6px, transparent 6px 11px); }
.queue__lanes::after { content: ""; position: absolute; left: 16.66%; right: 16.66%; bottom: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--field-border) 0 6px, transparent 6px 11px); }
.queue__lanes--one { grid-template-columns: minmax(0, 1fr); flex-basis: 24px; min-height: 24px; max-height: 56px; }
.queue__lanes--one::after { content: none; }
.queue__tickets { display: grid; gap: 8px; }
.ticket {
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--e2);
}
/* #86, ahead in the queue: a quieter row on paper, so #87 stays the one being read. */
.ticket--prev {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center;
  margin-inline: 10px; padding: 10px 14px; background: var(--paper); border-color: var(--line); box-shadow: none;
}
.ticket--prev .ticket__title { font-size: 1rem; }
.ticket--next .ticket__line { font: 600 0.8125rem/1.3 var(--font-display); letter-spacing: 0.04em; color: var(--ink-3); }
.ticket--prev .ticket__line { grid-column: 1; margin-top: 2px; font-size: 0.875rem; color: var(--ink-2); }
.ticket--prev .ticket__total { grid-area: 1 / 2 / 3 / 3; font-size: 1.0625rem; color: var(--ink-2); }
.ticket__no { margin-top: 2px; font-size: 0.875rem; color: var(--ink-3); }
.ticket__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ticket__title { font: 700 1.1875rem/1.2 var(--font-display); color: var(--ink); }
.ticket__time { margin-left: 6px; font-size: 0.875rem; font-weight: 500; color: var(--ink-3); }
.ticket__total { font-size: 1.3125rem; font-weight: 700; line-height: 1; color: var(--accent); }
.ticket__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ticket__tags li { padding: 3px 8px; border-radius: var(--r-sm); background: var(--sunk); font: 600 0.8125rem/1.3 var(--font-display); letter-spacing: 0.04em; color: var(--ink-2); }
.ticket__tags .ticket__tag--paid { background: var(--signal-wash); color: var(--signal); }
.ticket__tags .ticket__tag--open { background: var(--accent-wash); color: var(--accent); }
.ticket__tags .ticket__type { padding: 3px 0 3px 6px; background: none; font: 400 0.9375rem/1.3 var(--font-body); letter-spacing: 0; color: var(--ink); }
.ticket__tags .ticket__count { margin-left: auto; padding: 3px 0; background: none; font: 400 0.875rem/1.3 var(--font-body); letter-spacing: 0; color: var(--ink-3); }
.ticket__item { margin-top: 10px; font-size: 0.9375rem; color: var(--ink); }
.ticket__item .fig { color: var(--accent); font-weight: 700; }
.ticket__mods { margin-top: 2px; padding-left: 22px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); }
.ticket__mods li::before { content: "·"; margin: 0 6px 0 -10px; }
.queue__dest {
  display: inline-flex; align-items: center; gap: 10px; align-self: center; min-height: 44px; padding: 0 16px;
  background: var(--night); border-radius: var(--r-md); font: 600 1rem/1 var(--font-display); color: var(--frost);
}
.queue__dest svg { color: var(--frost-2); }
.queue__cap { padding-top: 18px; }

/* ================= 6. Pricing band shell (content: partials/pricing-band.html, owned by pricing) ================= */
.calc-more { display: none; } /* phones only (<=720), where the band hides rows 5+ */
/* ================= 8. FAQ: onlocation.css (.faq-layout); nothing page-specific ================= */

/* ================= Responsive ================= */

@media (max-width: 1280px) {
  .testimonial-card { --peek-n: 2.35; --peek-gaps: 40px; }
}

@media (max-width: 1100px) {
  .hero-grid { column-gap: 28px; }
  .hero-media { --screen: 232px; --bz: 9px; --gap: 24px; --label: 188px; }
  .device--hero { border-radius: 36px; }
  .device--hero img { border-radius: 27px; }
  .runsheet__stops { gap: 16px; }
  .screen-card__title { font-size: 1rem; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .hero .lede { max-width: 46ch; }
  .hero-media { justify-self: center; }
  /* Run of show as compact rows: time and place on one line, the fact under it. */
  .runsheet__stops { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 12px; }
  .runsheet__stops::before { left: 7px; right: auto; top: 18px; bottom: 26px; width: 1px; height: auto; background: var(--line-strong); }
  .runsheet__stops li { padding: 9px 0 9px 32px; }
  .runsheet__stops li::before { top: 13px; }
  .runsheet time { display: inline; font-size: 1.1875rem; }
  .runsheet__place { display: inline; margin: 0 0 0 10px; }
  .runsheet li p { max-width: none; margin-top: 2px; }
  /* Route as rows: stage left, text right. */
  .route { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .route__step { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 32px; align-content: start; }
  .route__step > * { grid-column: 2; }
  .route__step .stage { grid-column: 1; grid-row: 1 / span 5; margin-top: 0; }
  .route__step:not(:last-child) .route__node::after { display: none; }
  .route__step h3 { margin-top: 16px; }
  .business__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .eco-grid { grid-template-columns: minmax(0, 1fr); }
  /* Screens: the right column is too narrow for tab titles; the caption above already names the selected screen. */
  .screen-card { min-height: 60px; }
  .screen-card__title { display: none; }
  .screen-card__eyebrow { grid-row: 1 / span 2; align-self: center; }
}

@media (max-width: 720px) {
  /* Phone band padding (page-length gate): 56px on this page's bands. See crossFileRequests for the shared token. */
  .testimonials, #product, .screens, .ecosystem, .faq { --section-pad: 56px; }
  /* Hero phone: numbered pins on the bezel edge (never on screen text) + a legend under the phone. */
  .hero-grid { row-gap: 32px; padding-bottom: 32px; }
  .hero h1 { margin-top: 18px; }
  .hero .lede { margin-top: 16px; }
  .hero-actions, .dock { margin-top: 24px; }
  .hero-media { --screen: 216px; --bz: 8px; padding: 0; justify-self: stretch; }
  .hero-device { margin-inline: auto; }
  .device--hero { border-radius: var(--r-phone-sm); }
  .device--hero img { border-radius: 22px; }
  /* Rings: 720px, faded out from the Tap to Pay row down, so they stop inside the phone and never reach the legend. */
  .hero-rings {
    width: 720px; height: 720px;
    -webkit-mask: linear-gradient(#000 42%, transparent 54%), radial-gradient(closest-side, #000 18%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask: linear-gradient(#000 42%, transparent 54%) intersect, radial-gradient(closest-side, #000 18%, transparent 100%);
  }
  .callout { left: calc(100% + var(--bz)); width: auto; transform: translate(-36%, -50%); }
  .callout i, .callout__label { display: none; }
  .callout::before {
    content: attr(data-n); display: grid; place-items: center; width: 24px; height: 24px;
    font: 700 0.8125rem/1 var(--font-display); color: var(--on-accent); box-shadow: 0 0 0 2px var(--paper);
  }
  .callout--live::before { background: var(--signal); }
  .hero-media figcaption { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin-top: 20px; }
  .legend { display: grid; gap: 8px; }
  .legend li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: start; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
  .legend b { color: var(--ink); }
  .legend__n { display: grid; place-items: center; width: 24px; height: 24px; margin-top: -1px; border-radius: var(--r-dot); background: var(--accent); font: 700 0.8125rem/1 var(--font-display); color: var(--on-accent); }
  .legend__n--live { background: var(--signal); }

  .runsheet .container { padding-block: 18px 24px; }
  .runsheet__head { flex-direction: column; gap: 4px; }
  .runsheet__stops li { padding-block: 5px; }
  .runsheet__stops li::before { top: 9px; }
  .runsheet time { font-size: 1.0625rem; }
  .runsheet__place { font-size: 1rem; }
  .runsheet li p { font-size: 0.875rem; line-height: 1.4; }

  .testimonial-card { padding: 20px 20px 8px; }
  @media (scripting: enabled) { .testimonial-card:not(.is-open) .testimonial-copy { -webkit-line-clamp: 7; line-clamp: 7; } }

  /* #product: a native scroll-snap rail, one stop per 86vw card with the next one peeking. */
  .route-controls { display: flex; margin: -8px 0 16px; }
  .route {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .route::-webkit-scrollbar { display: none; }
  .route:focus-visible { outline-offset: -2px; } /* full-bleed, so the ring draws inside */
  .route__step { display: flex; flex: 0 0 86vw; scroll-snap-align: start; }
  .route__step .stage { margin-top: 14px; }
  .route__step:not(:last-child) .route__node::after { display: block; margin-right: 0; }
  .route__step h3 { margin-top: 18px; }
  .business { margin-top: 40px; padding-top: 20px; }
  .business__grid { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 8px; }
  .business__grid li { padding: 14px 0; border-bottom: 1px solid var(--night-line); }
  .business__grid li:last-child { border-bottom: 0; }

  /* Screens: phone, caption, then the 3x2 tabs, all inside the stage. */
  .screens-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; padding: 20px; }
  .screens-panel { grid-area: 1 / 1; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; justify-items: center; gap: 20px; }
  .screens-panel > .device { grid-area: auto; }
  .screens-caption { grid-area: auto; justify-self: stretch; }
  .screens-tabs { grid-area: 2 / 1; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
  .device--stage { --bz: 8px; width: calc(216px + 2 * var(--bz)); border-radius: var(--r-phone-sm); }
  .device--stage img { width: 216px; border-radius: 22px; }
  .screens-title { margin-top: 12px; font-size: 1.375rem; }
  .screens-text { max-width: none; margin-top: 6px; font-size: 1rem; }
  .screens-tabs { gap: 6px; }
  .screen-card { grid-template-columns: minmax(0, 1fr); justify-items: start; row-gap: 6px; min-height: 0; padding: 8px 10px 10px; background: rgba(240, 241, 241, 0.35); }
  .screen-card .icon-tile { grid-row: auto; width: 36px; height: 36px; }
  .screen-card__title { display: none; }
  .screen-card__eyebrow { grid-row: auto; align-self: auto; }

  .eco-lead { flex-direction: column; gap: 12px; padding-bottom: 20px; }
  /* Rows: the icon joins the title line so tagline, checks and link use the full width. */
  .eco-row { position: relative; display: block; padding: 16px 0; }
  .eco-row .icon-tile { position: absolute; top: 16px; left: 0; }
  .eco-row__head .pill { display: none; } /* the lead pill already says every product is included */
  .checks { gap: 3px; margin-top: 8px; }
  .eco-row__link { margin-top: 0; }
  .eco-row__head { min-height: 40px; padding-left: 54px; }
  .eco-row__tagline { margin-top: 8px; }
  .eco-row h3 { font-size: 1.3125rem; }
  /* The diagram compresses to one chip row plus the ticket. */
  .queue { margin-top: 8px; padding: 18px; }
  .queue__sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .queue__src { min-height: 32px; padding: 4px 9px; font-size: 0.875rem; }
  .queue__src img, .queue__src svg { display: none; }
  .queue__lanes { flex: none; min-height: 0; height: 10px; }
  .queue__lanes--one, .queue__cap { display: none; }
  .queue__lanes i, .queue__lanes::after { display: none; }
  .queue__k { display: none; }
  .queue__sources { margin-top: 0; }
  .ticket { padding: 12px 14px; }
  .ticket__tags { margin-top: 8px; }
  .ticket__item { margin-top: 6px; }
  .ticket__mods { display: flex; flex-wrap: wrap; gap: 0 14px; padding-left: 26px; }
  .ticket--prev, .ticket__no, .ticket__count { display: none; } /* phones: the one ticket carries the diagram */
  .queue__dest { align-self: flex-start; margin-top: 10px; min-height: 36px; }
}

@media (max-width: 720px) {
  /* Home pricing band, phones: TABL plus the three next-cheapest rows; all ten are on /pricing ("See How We Stack Up"). */
  .pricing-cta .provider-row:nth-child(n + 5):not(.provider-row--tabl) { display: none; }
  .pricing-cta .calc-more { display: block; padding: 10px var(--row-px) 0; border-top: 1px solid var(--line); font-size: 0.875rem; line-height: 1.45; color: var(--ink-3); }
  .pricing-cta .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .hero-media { --screen: 200px; }
  .testimonials .intro, #product .intro, .screens .intro, .ecosystem .intro { font-size: 1.0625rem; }
  .device--stage { width: calc(192px + 2 * var(--bz)); }
  .device--stage img { width: 192px; }
  .screens-stage { padding: 16px; }
  .screens-title { font-size: 1.25rem; }
  @media (scripting: enabled) { .testimonial-card:not(.is-open) .testimonial-copy { -webkit-line-clamp: 6; line-clamp: 6; } }
  .hero-actions .btn-lg { flex: 1 1 100%; }
  .dock { gap: 14px 20px; }
  .dock__stats { gap: 16px; }
  .dock__stat--app { padding-left: 16px; }
  .hero-pills .pill { padding: 0 10px; font-size: 0.875rem; }
  /* Compact rows (§12 reduction 2). */
  .business__grid li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; padding: 11px 0; }
  .business__grid .icon-tile { width: 36px; height: 36px; }
  .business__grid h4 { font-size: 1.0625rem; }
  .business__grid p { margin-top: 1px; font-size: 0.875rem; line-height: 1.45; }
}

/* ================= Forced colours / increased contrast (§2.5) =================
   Last in the file on purpose: it has to beat the <=720 pin colours (same specificity), or pins 1, 2 and 4 go white on white. */
@media (forced-colors: active), (prefers-contrast: more) {
  .hero-rings, .tap-glyph__rings { display: none; }
  .callout::before, .legend__n { forced-color-adjust: none; background: Canvas; color: CanvasText; box-shadow: 0 0 0 2px CanvasText; }
  .callout i { forced-color-adjust: none; background: CanvasText; }
  .chip-hang, .lens, .ticket, .queue__src, .screens-readout { border: 1px solid CanvasText; }
  .screen-card[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: 2px; }
  .runsheet__stops::before { forced-color-adjust: none; background: CanvasText; }
  .runsheet__stops li::before { forced-color-adjust: none; border-color: CanvasText; background: Canvas; }
}
@media (forced-colors: active) and (min-width: 961px), (prefers-contrast: more) and (min-width: 961px) {
  .runsheet__stops::before { top: 8px; height: 1px; } /* the road without its gradient hour ticks */
}

/* No JS: the tabs can't switch, so every screen shows, stacked with its caption, and the dead tab buttons go.
   (onlocation.css hides [hidden] with !important, so the un-hide needs it too.) */
@media (scripting: none) {
  .screens-stage { grid-template-rows: none; row-gap: 40px; }
  .screens-panel { grid-area: auto / 1 / auto / -1; grid-template-rows: 1fr auto 1fr; }
  .screens-panel[hidden] { display: grid !important; }
  .screens-tabs { display: none; }
}
@media (scripting: none) and (max-width: 720px) {
  .screens-panel { grid-template-rows: none; }
}
