/* American One Trans — site styles
   Brand: black, silver and red from the A1 logo.
   The page is a dispatcher's desk: a black console at the top, daylight sections after it,
   a road marking that runs through the page, and black again at the contacts. */
:root {
  --red: #D4202A;
  --red-hover: #B9161F;
  --red-bright: #F03A44; /* small red text on black: 4.9:1 */
  --ink: #0E0E10;
  --panel: #17181C;
  --ink-line: rgba(255, 255, 255, 0.12);
  --silver: #C9CDD3;
  --text: #15171B;
  --muted: #5C6470;
  --bg: #F2F3F5;
  --white: #FFFFFF;
  --green: #2FB36B;
  --display: 'Unbounded', 'Arial Black', Impact, sans-serif;
  --text-font: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --plate-font: 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --wrap: clamp(1200px, 82vw, 1680px); /* grows with the screen: 1200px at 1440, 1680px from 2050px up */
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--muted) transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--text-font);
  font-size: clamp(16px, 0.6vw + 8.4px, 21px); /* 17px at 1440, 20px at 1920 */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(212, 32, 42, 0.2);
  accent-color: var(--red);
  /* the footer sits at the bottom of the screen even when the page is short */
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
main { flex: 1 0 auto; }
::selection { background: var(--red); color: var(--white); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; }

h1, h2, h3 {
  font-family: var(--display);
  margin: 0;
  line-height: 1.08;
  font-weight: 700;
  text-wrap: balance;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(34px, 9vw, 56px); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; text-wrap: wrap; }
h2 { font-size: clamp(28px, 3.2vw, 56px); margin-bottom: clamp(20px, 1.6vw, 30px); }
h3 { font-size: clamp(18px, 1.4vw, 26px); font-weight: 600; margin-bottom: 10px; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(18px, 0.8vw + 7px, 26px); color: var(--muted); }
.section-lead { font-size: clamp(18px, 0.7vw + 9px, 24px); color: var(--muted); max-width: 58ch; margin-bottom: clamp(32px, 4vw, 48px); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 7vw, 150px) 0; }
.section-white { background: var(--white); }

/* The road: one dashed line, drawn in whatever colour the surface gives it */
.road { height: 2px; background: repeating-linear-gradient(90deg, currentColor 0 26px, transparent 26px 44px); }

/* Skip link */
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--ink); color: var(--white); padding: 8px 12px; border-radius: 6px;
}
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: clamp(48px, 2.4vw + 18px, 60px); padding: 0 clamp(18px, 1.5vw, 28px); border-radius: var(--radius);
  font-family: var(--text-font); font-weight: 600; font-size: clamp(16px, 0.5vw + 10px, 20px); text-decoration: none;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--text); }
.btn-secondary:hover { background: rgba(21, 23, 27, 0.06); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.btn-primary:focus-visible { outline-color: var(--text); }
.site-header :focus-visible, .hero :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }
.hero .btn-primary:focus-visible { outline-color: var(--white); }

/* Header: black, like the logo's own ground; the hero continues the same black */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--white); }
.header-row { display: flex; align-items: center; gap: 32px; min-height: clamp(68px, 3.6vw + 24px, 92px); }
.brand { display: flex; flex: none; align-items: center; gap: 14px; text-decoration: none; color: var(--white); }
.brand-mark { height: clamp(36px, 2vw + 15px, 56px); width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: clamp(13px, 0.4vw + 9px, 18px); letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver); }
.brand-name b { color: var(--red-bright); font-weight: inherit; }
.brand-tag { font-size: clamp(12px, 0.3vw + 8.5px, 15px); color: rgba(255, 255, 255, 0.6); margin-top: 6px; }
.nav { display: none; gap: clamp(16px, 1.4vw, 28px); margin-left: auto; }
.nav a { color: var(--silver); text-decoration: none; font-weight: 500; font-size: clamp(14px, 0.5vw + 8px, 18px); white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.15s ease, border-color 0.15s ease; }
.nav a:hover { color: var(--white); border-bottom-color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; flex: none; }
.header-login { min-height: clamp(42px, 2vw + 14px, 52px); padding: 0 clamp(16px, 1.2vw, 22px); font-size: clamp(14px, 0.4vw + 9px, 17px); }
.lang { font-weight: 700; font-size: 13px; letter-spacing: 0.08em; line-height: 1; color: var(--silver); text-decoration: none; padding: 9px 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.24); transition: color 0.15s ease, border-color 0.15s ease; }
.lang:hover { color: var(--white); border-color: var(--white); }
@media (min-width: 960px) {
  .nav { display: flex; }
  .nav + .header-actions { margin-left: 0; } /* next to the menu on the home page; alone, the actions keep to the right edge */
}
/* 960-1059px: the row is tight, so two optional nav items hide (see .nav-opt) */
@media (min-width: 960px) and (max-width: 1059px) { .header-row { gap: 24px; } }
@media (max-width: 480px) {
  .brand-mark { height: 36px; }
  .brand-name { font-size: 13px; }
}

/* Hero: the dispatcher's desk at night. Black, the console on the right, the road along the bottom edge */
.hero {
  position: relative; background: var(--ink); color: var(--white);
  padding: clamp(40px, 5vw, 110px) 0 clamp(72px, 7vw, 150px);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: clamp(26px, 2vw, 44px); height: 2px; color: rgba(201, 205, 211, 0.4); background: repeating-linear-gradient(90deg, currentColor 0 26px, transparent 26px 44px); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: clamp(48px, 4vw, 80px); }
  .hero-copy h1 { font-size: clamp(40px, 3.5vw, 72px); }
}
.hero-copy .lead { color: rgba(255, 255, 255, 0.72); margin: 24px 0 32px; }
@media (max-width: 959px) { html[lang="en"] .hero-copy h1 { font-size: clamp(32px, 8.6vw, 52px); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Office address under the hero buttons: the whole block opens the map */
.hero-address { display: inline-flex; align-items: flex-start; gap: 14px; margin-top: clamp(28px, 2.6vw, 44px); color: var(--white); text-decoration: none; }
.hero-address-pin { flex: none; width: 22px; height: 22px; margin-top: 3px; color: var(--red); }
.hero-address-text { font-size: clamp(16px, 0.5vw + 9px, 19px); line-height: 1.4; }
.hero-address-label { display: block; font-size: clamp(13px, 0.3vw + 9px, 15px); color: rgba(255, 255, 255, 0.6); margin-bottom: 3px; }
.hero-address-map { display: block; width: max-content; margin-top: 6px; font-weight: 600; font-size: clamp(14px, 0.4vw + 9px, 17px); color: var(--silver); text-decoration: underline; text-decoration-color: rgba(201, 205, 211, 0.45); text-decoration-thickness: 2px; text-underline-offset: 0.25em; transition: color 0.15s ease, text-decoration-color 0.15s ease; }
.hero-address:hover .hero-address-map { color: var(--white); text-decoration-color: var(--red); }

/* Console: the one bold object on the page */
.board {
  position: relative;
  background: var(--panel); color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px;
  padding: clamp(18px, 2vw, 40px) clamp(16px, 1.8vw, 36px);
  box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.75);
  container-type: inline-size; container-name: board;
}
.board::before { content: ""; position: absolute; top: -1px; left: clamp(16px, 1.8vw, 36px); right: clamp(16px, 1.8vw, 36px); height: 3px; background: var(--red); border-radius: 0 0 3px 3px; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; flex-wrap: wrap; }
.board-title { font-family: var(--display); font-size: clamp(17px, 0.6vw + 9px, 24px); font-weight: 700; color: var(--white); margin: 0; }
.board-clock { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--display); font-weight: 700; font-size: clamp(17px, 0.6vw + 9px, 24px); color: var(--silver); font-variant-numeric: tabular-nums; }
.board-clock small { font-family: var(--text-font); font-weight: 500; font-size: clamp(13px, 0.4vw + 8px, 17px); color: rgba(255, 255, 255, 0.55); }
.board-clock .colon { animation: colon-blink 1s steps(1, end) infinite; }
@keyframes colon-blink { 50% { opacity: 0.25; } }
.trips { list-style: none; margin: 0; padding: 0; }
.trip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "time route price" "time route meta";
  column-gap: 14px; row-gap: 4px;
  padding: clamp(12px, 1vw, 20px) 0; border-top: 1px solid var(--ink-line); align-items: start;
}
.trip:first-child { border-top: 0; }
.trip-time { grid-area: time; font-family: var(--display); font-weight: 700; font-size: clamp(17px, 0.9vw + 6px, 24px); line-height: 1.2; color: var(--white); min-width: 5.4ch; font-variant-numeric: tabular-nums; }
.trip-route { grid-area: route; display: flex; flex-direction: column; font-size: clamp(15px, 0.5vw + 8.5px, 20px); line-height: 1.3; padding-top: 2px; }
.from { font-weight: 600; }
.to { color: rgba(255, 255, 255, 0.7); }
.to::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin: 0 8px 0 3px;
  border-left: 1px solid rgba(255, 255, 255, 0.45); border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0 0 0 3px; vertical-align: 2px;
}
.trip-price { grid-area: price; justify-self: end; font-family: var(--display); font-weight: 700; font-size: clamp(16px, 0.7vw + 7px, 22px); line-height: 1.2; color: var(--white); white-space: nowrap; font-variant-numeric: tabular-nums; }
.trip-meta { grid-area: meta; justify-self: end; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.trip-partner { font-weight: 600; font-size: clamp(12px, 0.4vw + 7.5px, 16px); color: var(--silver); }
.trip-status { display: inline-flex; align-items: center; gap: 6px; font-size: clamp(12px, 0.4vw + 7.5px, 16px); color: rgba(255, 255, 255, 0.65); }
.trip-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transition: background-color 0.3s ease; }
.trip[data-status="done"] .trip-status::before { background: var(--green); }
.trip[data-status="enroute"] .trip-status::before { background: var(--red); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(212, 32, 42, 0.25); } }
/* The trip in progress: a route line that fills, then the status flips */
.trip-progress { display: block; height: 2px; margin-top: 10px; background: rgba(255, 255, 255, 0.12); border-radius: 1px; overflow: hidden; }
.trip-progress i { display: block; height: 100%; background: var(--red); transform: scaleX(0.38); transform-origin: 0 50%; }
.board.is-running .trip-progress i { animation: route-run 4.2s linear forwards; }
@keyframes route-run { to { transform: scaleX(1); } }
.trip[data-status="done"] .trip-progress i { background: var(--green); transform: scaleX(1); animation: none; }
.board .trip.is-flipped { background-color: rgba(47, 179, 107, 0.14); animation: flip-flash 1.6s ease-out forwards; }
@keyframes flip-flash { to { background-color: transparent; } }
.board-sum { margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--ink-line); font-size: clamp(14px, 0.5vw + 8px, 19px); color: rgba(255, 255, 255, 0.8); max-width: none; }
.board-sum b { font-family: var(--display); font-weight: 700; font-size: clamp(17px, 0.6vw + 9px, 24px); color: var(--white); margin-left: 8px; font-variant-numeric: tabular-nums; }
.board-foot { margin: 12px 0 0; font-size: clamp(12px, 0.4vw + 7.5px, 16px); color: rgba(255, 255, 255, 0.5); max-width: none; }

/* Console entrance: the one authored page-load moment, then the trip in progress completes */
.board.is-animating { animation: board-in 0.7s var(--ease-out) both; }
.board.is-animating .trip { animation: trip-in 0.45s var(--ease-out) both; }
.board.is-animating .trip:nth-child(1) { animation-delay: 0.35s; }
.board.is-animating .trip:nth-child(2) { animation-delay: 0.47s; }
.board.is-animating .trip:nth-child(3) { animation-delay: 0.59s; }
.board.is-animating .trip:nth-child(4) { animation-delay: 0.71s; }
.board.is-animating .trip:nth-child(5) { animation-delay: 0.83s; }
@keyframes board-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes trip-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Benefits: four plain statements, each with its own rule */
.grid-2 { display: grid; gap: clamp(32px, 3vw, 56px) clamp(40px, 4vw, 80px); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.benefits > div { border-top: 1px solid rgba(21, 23, 27, 0.14); padding-top: 20px; }
.benefits p { color: var(--muted); }

/* Steps: a real sequence, so it is numbered, and the numbers sit along a road.
   On wide screens a car drives the road once when the section comes into view, lighting each step. */
.steps { list-style: none; margin: 0; padding: 0 0 0 44px; display: grid; gap: 36px; position: relative; }
.steps::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: repeating-linear-gradient(180deg, rgba(21, 23, 27, 0.3) 0 22px, transparent 22px 38px); }
.steps li { position: relative; }
.road-car { display: none; }
.step-n { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 3.6vw, 72px); line-height: 1; color: var(--red); margin-bottom: 14px; transition: color 0.35s ease; }
.steps h3 { font-size: clamp(19px, 1.2vw + 3px, 26px); }
.steps p { color: var(--muted); font-size: clamp(15px, 0.5vw + 8.5px, 20px); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 48px 0 0; }
  .steps::before { left: 0; right: 0; top: 12px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, rgba(21, 23, 27, 0.3) 0 26px, transparent 26px 44px); }
  .road-car {
    display: block; position: absolute; top: 3px; left: 0; width: 36px; height: 20px; border-radius: 10px;
    background: var(--ink); box-shadow: 0 8px 16px -6px rgba(14, 14, 16, 0.6);
  }
  .road-car::before { content: ""; position: absolute; left: 5px; top: 6px; width: 3px; height: 8px; border-radius: 1px; background: var(--red); }
  .road-car::after { content: ""; position: absolute; right: 5px; top: 6px; width: 3px; height: 8px; border-radius: 1px; background: var(--white); }
  .road-car i { position: absolute; left: 12px; top: 5px; width: 13px; height: 10px; border-radius: 3px; background: var(--silver); }
  .steps .step-n { color: rgba(21, 23, 27, 0.22); }
  .steps.is-live .road-car { animation: drive 2.8s var(--ease-out) 0.2s both; }
  /* nth-of-type, not nth-child: the car span is the list's first child */
  .steps.is-live li:nth-of-type(1) .step-n { color: var(--red); transition-delay: 0.25s; }
  .steps.is-live li:nth-of-type(2) .step-n { color: var(--red); transition-delay: 0.6s; }
  .steps.is-live li:nth-of-type(3) .step-n { color: var(--red); transition-delay: 1.05s; }
  .steps.is-live li:nth-of-type(4) .step-n { color: var(--red); transition-delay: 1.9s; }
  @keyframes drive { from { left: 0; } to { left: calc(100% - 36px); } }
}

/* Car and plates: the plate keeps its real-world colours; it is an object, not a brand colour */
.car-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .car-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--red); transform: translateY(-1px); }
.plate {
  position: relative; overflow: hidden; width: min(100%, clamp(440px, 30vw, 620px)); aspect-ratio: 2 / 1; margin: 0 auto;
  container-type: inline-size;
  background: linear-gradient(180deg, #F7C53E 0%, #E9A81A 100%);
  border: 6px solid var(--white); border-radius: 16px;
  box-shadow: inset 0 0 0 2px rgba(15, 36, 71, 0.28), 0 24px 48px -16px rgba(14, 14, 16, 0.35);
  display: grid; place-items: center; padding: 12px; color: #0F2447; font-family: var(--plate-font);
}
.plate-top, .plate-bottom { position: absolute; left: 0; right: 0; text-align: center; font-weight: 700; letter-spacing: 0.22em; }
.plate-top { top: 10px; font-size: 18px; font-size: clamp(16px, 4cqw, 26px); }
.plate-bottom { bottom: 10px; font-size: 18px; font-size: clamp(16px, 4cqw, 26px); }
.plate-num { font-size: clamp(64px, 9vw, 108px); font-size: clamp(64px, 24cqw, 150px); font-weight: 800; letter-spacing: 0.06em; line-height: 1; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45), 0 -1px 0 rgba(15, 36, 71, 0.3); }
.plate::after {
  content: ""; position: absolute; inset: -30% -40%; pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.55) 50%, transparent 58%);
  transform: translateX(-75%);
}
.plate.is-live::after { animation: sheen 1.2s var(--ease-out) 0.1s forwards; }
.plate:hover::after { animation: sheen-again 1.2s var(--ease-out) forwards; }
@keyframes sheen { to { transform: translateX(75%); } }
@keyframes sheen-again { from { transform: translateX(-75%); } to { transform: translateX(75%); } }

/* Partners */
.partners { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 40px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 960px) { .partners { grid-template-columns: repeat(4, max-content); gap: 28px 72px; } }
.partner-via { display: block; margin-top: 10px; font-size: clamp(14px, 0.4vw + 9px, 18px); color: var(--muted); }
.partner-name { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 68px); line-height: 1; }

/* Facts lists (about, contact) */
.facts { margin: 28px 0 0; display: grid; gap: clamp(8px, 0.7vw, 14px) clamp(24px, 2.5vw, 48px); align-items: start; align-content: start; }
@media (min-width: 760px) { .facts { grid-template-columns: auto 1fr; } }
.facts > div { display: contents; }
.facts > div[hidden] { display: none; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }

/* Contact: closes the page on the same black the header opened it with */
.contact { background: var(--ink); color: var(--white); }
.contact h2 { color: var(--white); }
.contact-grid { display: grid; gap: 36px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; gap: 64px; } }
.contact-phone {
  display: inline-block; font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3.4vw, 64px); line-height: 1.1; color: var(--white); text-decoration: none; margin: 8px 0 28px;
}
.contact-phone:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.contact p { color: rgba(255, 255, 255, 0.78); }
.contact .facts dt { color: rgba(255, 255, 255, 0.6); }
.contact .facts dd { color: var(--white); }
.open-state { display: inline-flex; align-items: center; gap: 9px; }
.open-state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47, 179, 107, 0.2); }
.open-state[data-open="0"]::before { background: var(--silver); box-shadow: none; }

.site-footer { position: relative; background: var(--ink); color: rgba(255, 255, 255, 0.6); padding: clamp(28px, 2.2vw, 40px) 0; font-size: clamp(13px, 0.4vw + 8px, 17px); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; color: rgba(201, 205, 211, 0.35); background: repeating-linear-gradient(90deg, currentColor 0 26px, transparent 26px 44px); }
.footer-row { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-mark { height: clamp(36px, 2vw + 12px, 52px); width: auto; }
.footer-tag { font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-top: 6px; }
.footer-meta { display: flex; flex-direction: column; gap: 4px; }

/* Login stub and 404: one block of text, centred on the screen however tall or wide it is */
.notice-main { display: grid; align-items: center; }
.notice-box { max-width: 62ch; width: 100%; margin: 0 auto; }
.notice-box h1 { font-size: clamp(30px, 5vw, 48px); margin-bottom: 18px; }
.notice-box .lead { margin-bottom: 28px; }
.notice-note { margin-top: 28px; font-size: 15px; color: var(--muted); }
.notice-note a { color: var(--text); font-weight: 600; white-space: nowrap; }

/* Mobile action bar: WhatsApp and call always one tap away */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(242, 243, 245, 0.96); border-top: 1px solid rgba(21, 23, 27, 0.1);
}
@media (max-width: 959px) { body { padding-bottom: 84px; } }
/* Phones: buttons take the full width so the stack reads as one column, the hero lead is a touch smaller */
@media (max-width: 600px) {
  .hero .actions .btn, .contact .actions .btn, .notice-box .actions .btn { width: 100%; }
  .hero-copy .lead { font-size: 17px; }
}
@media (min-width: 960px) { .mobile-bar { display: none; } }

/* Narrow desktops: drop the optional nav items */
@media (max-width: 1059px) { .nav-opt { display: none; } }

/* The console adapts to its own width, not the screen: on a narrow board the fare moves to the second line */
@container board (max-width: 440px) {
  .trip { column-gap: 12px; grid-template-areas: "time route route" "time meta price"; }
  .trip-price { font-size: 16px; }
  .trip-time { font-size: 16px; min-width: 4.8ch; }
  .trip-meta { justify-self: start; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 480px) {
    .trip { column-gap: 12px; grid-template-areas: "time route route" "time meta price"; }
    .trip-price { font-size: 16px; }
    .trip-time { font-size: 16px; min-width: 4.8ch; }
    .trip-meta { justify-self: start; }
  }
}

/* Reduced motion: everything lands in its final state; feedback keeps colour, loses movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav a { transition: none; }
  .board.is-animating, .board.is-animating .trip { animation: none; }
  .board-clock .colon { animation: none; }
  .trip[data-status="enroute"] .trip-status::before { animation: none; }
  .board.is-running .trip-progress i { animation: none; transform: scaleX(1); }
  .board .trip.is-flipped { animation: none; background-color: transparent; }
  .steps.is-live .road-car { animation: none; left: calc(100% - 36px); }
  .steps .step-n, .steps.is-live li .step-n { color: var(--red); transition: none; }
  .plate.is-live::after, .plate:hover::after { animation: none; }
}
