/* Trucker Route (iOS app): product page and privacy policy.
   Colors are sampled from the app: the night navy of its App Store screens,
   the amber of its Follow button and the red of a closure. The new icon
   lends the dusk behind the hero. Three rules hold the system together:
   amber is a live message about the road (sign LEDs, Follow, alerts), red is
   a closure or danger, and everything else stays navy and white.
   Type is Overpass, a descendant of Highway Gothic, the lettering on US road
   signs; the phone in the hero uses the system font, so iOS looks like iOS. */

:root {
  --night: #0B101B;
  --panel: #141B2A;
  --panel-hi: #1B2335;
  --steel: #353E52;
  --led: #FFA524;
  --closure: #FF4D45;
  --open: #3DD68C;
  --paint: #F4F6F8;
  --paint-soft: #C0C8D0;
  --paint-quiet: #929DAC;
  --hairline: rgba(192, 200, 208, 0.15);
  --wash: rgba(192, 200, 208, 0.06);

  --font: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ios: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --step-2: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  --step-3: clamp(2rem, 1.4rem + 2.5vw, 3.125rem);
  --step-4: clamp(2.25rem, 1.45rem + 3.3vw, 3.875rem);

  --gutter: clamp(16px, 5vw, 48px);
  --max: 1160px;
  --r-panel: 24px;
  --r-shot: 26px;
  --lift: 0 30px 60px rgba(0, 0, 0, 0.45), 0 8px 18px rgba(0, 0, 0, 0.3);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

/* Without JS the page still reads top to bottom; only the toys go away */
html:not(.js) .sign-face,
html:not(.js) .follow,
html:not(.js) .check-log,
html:not(.js) .demo-note,
html:not(.js) .device-tabs,
html:not(.js) .rail-btns {
  display: none;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--paint);
  font: 400 var(--step-0)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Dusk over the highway, from the icon, sinking into night as you read */
.sky {
  position: absolute;
  inset: 0 0 auto;
  height: 1500px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(50% 34% at 80% 48%, rgba(240, 120, 24, 0.17), transparent 72%),
    radial-gradient(60% 40% at 12% 30%, rgba(96, 72, 160, 0.3), transparent 72%),
    linear-gradient(180deg, #171B3A 0%, #121732 26%, #0E1325 58%, var(--night) 100%);
}

.sky--doc {
  height: 900px;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

a,
button {
  touch-action: manipulation;
}

/* Every button here answers a tap itself (state change, lightbox, press) */
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--led);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.wrap--doc {
  width: min(840px, 100% - 2 * var(--gutter));
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--paint);
  color: var(--night);
  font: 700 var(--step--1) var(--font);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ------------------------------------------------------------------
   Top bar
   ------------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.topbar.is-stuck {
  background: rgba(11, 16, 27, 0.8);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--hairline);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.topbar-start {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* Back sits first in the bar, the way a back button does on iPhone */
.back-btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px 0 10px;
  border-radius: 999px;
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--paint-soft);
  font: 700 var(--step--1)/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.back-btn:hover {
  background: rgba(192, 200, 208, 0.14);
  color: var(--paint);
}

.back-btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-btn--app {
  padding-right: 14px;
  color: var(--paint);
  font: 800 1.0625rem/1 var(--font);
}

.back-btn--app img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

@media (max-width: 720px) {
  .back-btn:not(.back-btn--app) {
    padding: 0;
  }

  .back-label {
    display: none;
  }
}

/* Phones keep the icon and drop the app name, so Get the app stays on one line */
@media (max-width: 440px) {
  .topbar-start .brand-name {
    display: none;
  }
}

@media (max-width: 340px) {
  .back-btn--app .brand-name {
    display: none;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  font: 800 1.125rem/1 var(--font);
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
}

.topbar nav a:not(.get-btn) {
  font: 700 var(--step--1)/1 var(--font);
  color: var(--paint-soft);
  text-decoration: none;
  padding: 14px 2px;
}

.topbar nav a:not(.get-btn):hover {
  color: var(--paint);
}

.get-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--paint);
  color: var(--night);
  font: 800 0.9375rem/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out);
}

.get-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .topbar .nav-secondary {
    display: none;
  }
}

/* ------------------------------------------------------------------
   Hero: a gantry over the road, its sign, and a phone under it
   ------------------------------------------------------------------ */

.hero {
  position: relative;
  padding-bottom: clamp(48px, 6vw, 72px);
}

/* Full-bleed truss: the page opens under the gantry */
.gantry {
  position: relative;
  margin-top: 6px;
  height: 34px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35));
}

.truss {
  display: block;
  width: 100%;
  height: 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "sign"
    "copy"
    "demo";
  row-gap: clamp(36px, 6vw, 48px);
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "sign demo"
      "copy demo";
    column-gap: clamp(48px, 6vw, 96px);
    row-gap: 36px;
  }
}

.sign {
  grid-area: sign;
  margin: 0;
}

/* The cabinet hangs from the truss on two rods */
.sign-box {
  position: relative;
  margin-top: 20px;
  padding: clamp(7px, 1.2vw, 11px);
  border-radius: 6px;
  background: linear-gradient(180deg, #252C3B, #171C27);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 22px 44px rgba(0, 0, 0, 0.5),
    0 0 110px rgba(255, 150, 20, 0.12);
}

.sign-box::before,
.sign-box::after {
  content: "";
  position: absolute;
  top: -20px;
  width: 7px;
  height: 20px;
  background: linear-gradient(90deg, #2A3242, #48526A 50%, #2A3242);
}

.sign-box::before {
  left: 16%;
}

.sign-box::after {
  right: 16%;
}

.sign-face {
  display: block;
  width: 100%;
  aspect-ratio: 95 / 33;
  border-radius: 2px;
  background: #07080B;
}

/* No canvas without JS: the same message, set in type */
.sign-text {
  display: none;
}

html:not(.js) .sign-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 95 / 33;
  margin: 0;
  background: #07080B;
  color: var(--led);
  font: 800 clamp(1rem, 3.6vw, 1.875rem)/1.3 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy {
  grid-area: copy;
}

.lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
}

.lockup img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 24px rgba(0, 0, 0, 0.4);
}

.lockup-name {
  display: block;
  font: 800 1.0625rem/1.3 var(--font);
}

.lockup-sub {
  display: block;
  color: var(--paint-soft);
  font-size: var(--step--1);
  line-height: 1.4;
}

.hero h1 {
  margin: 0 0 20px;
  font: 800 var(--step-4)/1.02 var(--font);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* From 480px the headline breaks between its two phrases; beside the phone
   it is sized so the longer one ("not the whole highway.") fits the column */
@media (min-width: 480px) {
  .hero h1 span {
    display: inline-block;
  }
}

@media (min-width: 1000px) {
  .hero-copy {
    container-type: inline-size;
  }

  .hero h1 {
    font-size: min(var(--step-4), 9.4cqi);
  }
}

/* Short laptop screens: a smaller sign keeps the App Store badge in view */
@media (min-width: 1000px) and (max-height: 860px) {
  .sign-box {
    max-width: 540px;
  }
}

.lede {
  margin: 0 0 30px;
  max-width: 37rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--paint-soft);
}

.get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.store-badge {
  display: inline-block;
  border-radius: 12px;
  line-height: 0;
  transition: transform 0.2s var(--ease-out);
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge img {
  display: block;
  width: auto;
  height: 54px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 700 var(--step--1)/1.3 var(--font);
  color: var(--paint-soft);
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.facts svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
  opacity: 0.9;
}

/* ------------------------------------------------------------------
   The phone: the real map from the App Store screenshot, the app's
   closure sheet rebuilt live, and the push that answers it
   ------------------------------------------------------------------ */

.demo {
  grid-area: demo;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1000px) {
  /* Stand in front of the gantry */
  .demo {
    position: relative;
    z-index: 2;
    margin-top: -24px;
  }
}

.phone {
  position: relative;
  width: min(100%, 348px);
  padding: 10px;
  border-radius: 54px;
  background: linear-gradient(150deg, #485064, #1D222D 34%, #0D1016 70%, #2B313E);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 50px 90px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(240, 120, 24, 0.1);
}

/* Volume buttons on the left edge, the side button on the right */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
}

.phone::before {
  left: -3px;
  top: 21%;
  height: 17%;
  background: linear-gradient(#3B4252 0 44%, transparent 44% 56%, #3B4252 56%);
}

.phone::after {
  right: -3px;
  top: 25%;
  height: 11%;
  background: #3B4252;
}

/* The screen keeps the proportions of the 6.9-inch iPhone in the App Store
   shots: the map on top, the sheet down to the bottom edge */
.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1320 / 2868;
  min-height: 0;
  overflow: hidden;
  border-radius: 44px;
  background: #7E7B7B;
  font-family: var(--font-ios);
  line-height: 1.3;
}

.screen-map {
  display: block;
  flex: none;
  width: 100%;
  height: auto;
}

.home-bar {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 7px;
  width: 36%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.72);
  transform: translateX(-50%);
}

.banner {
  position: absolute;
  z-index: 3;
  top: 48px;
  left: 9px;
  right: 9px;
  display: flex;
  gap: 10px;
  padding: 11px 14px 12px 11px;
  border-radius: 24px;
  background: rgba(238, 239, 239, 0.88);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  color: #0A0A0B;
  opacity: 0;
  transform: translateY(-130%);
  transition: transform 0.6s cubic-bezier(0.2, 1.3, 0.3, 1), opacity 0.2s ease;
}

.banner.is-in {
  opacity: 1;
  transform: none;
}

.banner img {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 9px;
}

.banner p {
  margin: 0;
}

.banner-app {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 1px !important;
  font-size: 12.5px;
  color: rgba(60, 60, 67, 0.66);
}

.banner-app span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.banner-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.banner-body {
  margin-top: 1px !important;
  font-size: 14.5px;
  line-height: 1.3;
}

.sheet {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  margin-top: -12px;
  padding: 8px 15px 22px;
  border-radius: 30px 30px 0 0;
  background: rgba(34, 36, 40, 0.9);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: #fff;
}

.sheet p {
  margin: 0;
}

.grabber {
  display: block;
  width: 36px;
  height: 5px;
  margin: 0 auto 9px;
  border-radius: 3px;
  background: rgba(235, 235, 245, 0.3);
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.report-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  background: rgba(219, 36, 36, 0.24);
  transition: background-color 0.3s ease;
}

.report-icon svg {
  width: 26px;
  height: 26px;
}

.report-icon circle {
  fill: #E5332E;
  transition: fill 0.3s ease;
}

.report-icon path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.report-kind {
  font-size: 13px;
  font-weight: 600;
  color: #FF453A;
}

.report-road {
  margin-top: 1px !important;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
}

.report-where {
  margin-top: 2px !important;
  font-size: 14px;
  color: rgba(235, 235, 245, 0.6);
}

/* Once the report is over the sheet goes quiet, like a finished report in the app */
.sheet[data-state="ended"] .report-kind {
  color: rgba(235, 235, 245, 0.6);
}

.sheet[data-state="ended"] .report-icon {
  background: rgba(235, 235, 245, 0.12);
}

.sheet[data-state="ended"] .report-icon circle {
  fill: rgba(235, 235, 245, 0.45);
}

.sheet[data-state="ended"] .danger {
  display: none;
}

.sheet[data-state="ended"] .report-text {
  color: rgba(235, 235, 245, 0.45);
}

.danger {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px !important;
  padding: 10px 12px;
  border-left: 3px solid #FF453A;
  border-radius: 12px;
  background: rgba(255, 69, 58, 0.17);
  color: #FF6961;
  font-size: 15px;
  font-weight: 600;
}

.danger svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.danger circle {
  fill: #FF453A;
}

.danger path {
  fill: none;
  stroke: #2A1414;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.follow,
.following,
.ended {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin-top: 9px;
  padding: 9px 12px 9px 14px;
  border-radius: 14px;
  text-align: left;
}

.follow {
  border: 0;
  background: var(--led);
  color: #1A1206;
  cursor: pointer;
  font-family: var(--font-ios);
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.follow:hover {
  background: #FFB240;
}

.follow:active {
  transform: scale(0.98);
}

.follow svg,
.following svg,
.ended svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.follow svg {
  fill: #1A1206;
}

.follow b,
.following b,
.ended b {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.25;
}

.follow small,
.following small,
.ended small {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.follow small {
  color: rgba(26, 18, 6, 0.75);
}

.following {
  border: 1px solid rgba(255, 165, 36, 0.55);
  background: rgba(255, 165, 36, 0.15);
}

.following svg {
  fill: var(--led);
}

.following small,
.ended small {
  color: rgba(235, 235, 245, 0.62);
}

.ended {
  border: 1px solid rgba(61, 214, 140, 0.5);
  background: rgba(61, 214, 140, 0.13);
}

.ended svg circle {
  fill: var(--open);
}

.ended svg path {
  fill: none;
  stroke: #0B2416;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stop,
.replay {
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 4px;
  border: 0;
  background: none;
  color: rgba(235, 235, 245, 0.9);
  font: 600 15px var(--font-ios);
  cursor: pointer;
}

.stop:hover,
.replay:hover {
  color: #fff;
}

.check-log {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 11px !important;
  font-size: 13.5px;
  color: rgba(235, 235, 245, 0.68);
}

.check-ticks {
  display: inline-flex;
  flex: none;
  gap: 4px;
}

.check-ticks i {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: rgba(235, 235, 245, 0.2);
  transition: background-color 0.3s ease;
}

.check-ticks i.is-done {
  background: var(--led);
}

.sheet[data-state="ended"] .check-ticks i {
  background: var(--open);
}

.report-text {
  margin-top: 9px !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

/* The two facts at the foot of the app's closure sheet */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 11px;
  transition: opacity 0.3s ease;
}

.tile {
  padding: 10px 12px 11px;
  border-radius: 14px;
  background: rgba(235, 235, 245, 0.08);
}

.tile-label {
  font-size: 12.5px;
  color: rgba(235, 235, 245, 0.6);
}

.sheet .tile-value {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 600;
}

.tile-value--severe {
  color: #FF453A;
}

.severity {
  display: flex;
  gap: 3px;
  margin-top: 7px;
}

.severity i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #FF453A;
}

.sheet[data-state="ended"] .tiles {
  opacity: 0.4;
}

.demo-note {
  max-width: 36ch;
  margin: 20px auto 0;
  text-align: center;
  color: var(--paint-quiet);
  font-size: var(--step--1);
  line-height: 1.5;
  text-wrap: balance;
}

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */

.section {
  padding: clamp(64px, 8.5vw, 112px) 0;
}

.section + .section {
  border-top: 1px solid var(--hairline);
}

.section h2 {
  margin: 0 0 18px;
  font: 800 var(--step-3)/1.05 var(--font);
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 20ch;
}

.section h2 + p {
  margin: 0;
  max-width: 36rem;
  color: var(--paint-soft);
}

.section h3 {
  margin: 0 0 4px;
  font: 700 1.125rem/1.3 var(--font);
}

.split {
  display: grid;
  gap: 44px;
  align-items: start;
}

@media (min-width: 940px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
  }
}

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(192, 200, 208, 0.45);
  color: var(--paint);
  font: 700 0.9375rem/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-line:hover {
  border-color: var(--paint-soft);
  background: rgba(192, 200, 208, 0.08);
}

/* Inside the app ------------------------------------------------------ */

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
}

.device-tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.device-tabs button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: 700 0.9375rem/1 var(--font);
  cursor: pointer;
}

.device-tabs button[aria-selected="true"] {
  background: var(--paint);
  color: var(--night);
}

.ctl {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(192, 200, 208, 0.3);
  border-radius: 50%;
  background: var(--wash);
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.ctl:hover {
  background: rgba(192, 200, 208, 0.14);
}

.ctl:disabled {
  opacity: 0.35;
  cursor: default;
}

.ctl svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-frame {
  position: relative;
  margin-top: 36px;
}

/* The rail bleeds to both edges of the window; its first card lines up with the text */
.rail {
  --inset: max(var(--gutter), calc(50vw - var(--max) / 2));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(208px, 60vw, 268px);
  gap: clamp(16px, 2.4vw, 26px);
  margin: 0 calc(50% - 50vw);
  padding: 18px var(--inset) 44px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--inset);
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail[hidden] {
  display: none;
}

.rail--ipad {
  grid-auto-columns: clamp(264px, 80vw, 420px);
}

.shot {
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--r-shot);
  background: none;
  cursor: zoom-in;
  scroll-snap-align: start;
  transition: transform 0.35s var(--ease-out);
}

.shot:hover,
.shot:focus-visible {
  transform: translateY(-6px);
}

.shot picture,
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-shot);
}

.shot img {
  box-shadow: var(--lift), 0 0 0 1px var(--hairline);
}

.rail-btns {
  display: none;
  gap: 10px;
}

@media (hover: hover) and (min-width: 700px) {
  .rail-btns {
    display: flex;
  }
}

/* Lightbox (markup built by gallery.js) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  background: rgba(6, 9, 16, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.no-scroll {
  overflow: hidden;
}

.lb-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 8px;
}

.lb-stage picture {
  display: contents;
}

.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lb-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(760px, 100% - 32px);
  margin: 0 auto;
  padding: 12px 0 calc(16px + env(safe-area-inset-bottom));
}

.lb-text {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.lb-text b {
  display: block;
  font: 800 1.0625rem/1.3 var(--font);
}

.lb-text span {
  display: block;
  font-size: var(--step--1);
  color: var(--paint-soft);
}

.lb-count {
  position: absolute;
  top: 22px;
  left: 20px;
  font: 700 var(--step--1) var(--font);
  color: var(--paint-soft);
}

.lb-btn {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: var(--wash);
  font-size: 1.125rem;
  cursor: pointer;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lb-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.lb-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* Alerts for the roads you drive ---------------------------------------- */

/* Each alert type is a switch in the app; here they are shown switched on */
.alert-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.alert-types li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 9px;
  border-radius: 999px;
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font: 600 0.9375rem/1.2 var(--font);
}

.alert-types li::before {
  content: "";
  flex: none;
  width: 26px;
  height: 16px;
  border-radius: 999px;
  background:
    radial-gradient(circle at calc(100% - 8px) 50%, #fff 5.5px, transparent 6.5px),
    var(--led);
}

/* The app's own grouped list, one row per thing you can follow */
.follows {
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border-radius: var(--r-panel);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--lift);
}

.follows li {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 20px clamp(18px, 3vw, 26px);
}

/* Separators start where the text does, as in an iOS list */
.follows li + li::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(clamp(18px, 3vw, 26px) + 66px);
  right: 0;
  border-top: 1px solid var(--hairline);
}

.follows p {
  margin: 0;
  color: var(--paint-soft);
  font-size: 0.96875rem;
  line-height: 1.55;
}

.pict {
  width: 48px;
  height: 48px;
  overflow: visible;
}

.pict-hill {
  fill: #252E42;
  stroke: var(--paint-soft);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.pict-road {
  fill: none;
  stroke: var(--led);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.ring {
  fill: none;
  stroke: var(--paint-soft);
  stroke-width: 1.4;
}

.ring:first-child {
  opacity: 0.45;
}

.pin {
  fill: var(--led);
}

.pict-closure {
  fill: rgba(219, 36, 36, 0.26);
}

.pict-x {
  fill: none;
  stroke: var(--closure);
  stroke-width: 3;
  stroke-linecap: round;
}

.shield-num {
  fill: #fff;
  font: 800 25px var(--font);
  text-anchor: middle;
}

.shield-num--1 {
  font-size: 28px;
}

.delivery {
  display: grid;
  gap: 0 32px;
  margin: clamp(52px, 7vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .delivery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .delivery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.delivery li {
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  color: var(--paint-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.delivery b {
  display: block;
  margin-bottom: 6px;
  color: var(--paint);
  font: 700 1.0625rem/1.3 var(--font);
}

/* What is on the map ---------------------------------------------------- */

.map-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 940px) {
  .map-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
  }

  .map-figure {
    position: sticky;
    top: 96px;
  }
}

.map-figure {
  margin: 0;
}

.map-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-panel);
  box-shadow: var(--lift), 0 0 0 1px var(--hairline);
}

.map-figure figcaption {
  margin-top: 14px;
  color: var(--paint-quiet);
  font-size: var(--step--1);
}

/* A map legend: each layer is introduced by the mark it leaves on the map */
.legend {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
}

.legend p {
  margin: 0;
  color: var(--paint-soft);
  font-size: 0.96875rem;
  line-height: 1.55;
}

.key {
  width: 28px;
  height: 28px;
  margin-top: 1px;
  overflow: visible;
}

.key-num {
  fill: #fff;
  font: 800 10.5px var(--font);
  text-anchor: middle;
}

.key--pulse .pulse {
  fill: #FF4D45;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

/* Three beats, under five seconds, started by trucker-route-app.js */
.key--pulse.is-live .pulse {
  animation: pulse 1.6s ease-out 3;
}

@keyframes pulse {
  from {
    opacity: 0.65;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(2.4);
  }
}

.note {
  margin: 26px 0 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--paint-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Plan a route ---------------------------------------------------------- */

.caveat {
  margin: 22px 0 0;
  max-width: 34rem;
  color: var(--paint-quiet);
  font-size: 0.9375rem;
}

/* The App Store text ends on a rule, so it is set as one: a regulatory sign */
.reg-sign {
  display: inline-block;
  margin: 28px 0 0;
  padding: 16px 22px 14px;
  max-width: 16em;
  border-radius: 8px;
  background: #F4F6F8;
  box-shadow:
    inset 0 0 0 4px #F4F6F8,
    inset 0 0 0 7px #0B0D10,
    0 16px 32px rgba(0, 0, 0, 0.4);
  color: #0B0D10;
  font: 800 1.0625rem/1.25 var(--font);
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.route-panel {
  padding: clamp(22px, 4vw, 36px);
  border-radius: var(--r-panel);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--lift);
}

.rig {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 22px;
}

.rig .truck rect,
.rig .truck path {
  fill: #1E2638;
  stroke: var(--paint-soft);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.rig .truck .glass {
  fill: rgba(143, 214, 255, 0.22);
}

.rig .wheels circle {
  fill: var(--night);
  stroke: var(--paint-soft);
  stroke-width: 1.6;
}

.rig .dim path {
  fill: none;
  stroke: var(--paint-quiet);
  stroke-width: 1.4;
}

.rig .dim rect {
  fill: var(--panel);
  stroke: var(--paint-quiet);
  stroke-width: 1.2;
}

.rig .dim text {
  fill: var(--paint);
  font: 700 12.5px var(--font);
  text-anchor: middle;
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--hairline);
  font-weight: 600;
  line-height: 1.45;
}

.checks li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.4l3 3 6-6.6' fill='none' stroke='%233DD68C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat,
    rgba(61, 214, 140, 0.14);
}

/* Rules by state -------------------------------------------------------- */

.rules-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}

.rules-head h2 {
  margin-bottom: 0;
}

.shields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shields svg {
  display: block;
  width: clamp(38px, 6vw, 48px);
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
}

.rules {
  display: grid;
  gap: 0 44px;
  margin-top: clamp(32px, 5vw, 48px);
}

@media (min-width: 860px) {
  .rules {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  }
}

.rules > div {
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}

.rules h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.rules p {
  margin: 0;
  color: var(--paint-soft);
}

/* What's new ----------------------------------------------------------- */

.release {
  display: grid;
  gap: 40px;
}

@media (min-width: 940px) {
  .release {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 72px;
  }
}

.version {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 0;
  color: var(--paint-soft);
  font: 600 var(--step--1)/1.2 var(--font);
}

.version b {
  padding: 6px 12px 5px;
  border-radius: 999px;
  background: var(--paint);
  color: var(--night);
  font-weight: 800;
}

.release-lead {
  margin: 22px 0 0;
  font: 700 var(--step-1)/1.35 var(--font);
}

.notes {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
}

@media (min-width: 700px) {
  .notes {
    columns: 2;
    column-gap: 40px;
  }
}

.notes li {
  break-inside: avoid;
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  color: var(--paint-soft);
  line-height: 1.55;
}

/* Bullets are single lit LEDs from the sign */
.notes li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 8px rgba(255, 150, 20, 0.8);
}

.notes strong {
  color: var(--paint);
  font-weight: 700;
}

.history-title {
  margin: clamp(56px, 7vw, 84px) 0 14px !important;
  font-size: 1.25rem !important;
}

.history {
  margin: 0;
  padding: 0;
  list-style: none;
}

.history li {
  display: grid;
  grid-template-columns: 7.5rem 4rem minmax(0, 1fr);
  gap: 4px 20px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}

.history time {
  color: var(--paint-quiet);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

.history b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.history span {
  color: var(--paint-soft);
}

@media (max-width: 640px) {
  .history li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .history span {
    grid-column: 1 / -1;
  }
}

/* Privacy band --------------------------------------------------------- */

.privacy-band {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 4.5vw, 52px);
  border-radius: var(--r-panel);
  background: linear-gradient(150deg, rgba(192, 200, 208, 0.09), rgba(192, 200, 208, 0.02));
  box-shadow: inset 0 0 0 1px var(--hairline);
}

@media (min-width: 960px) {
  .privacy-band {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 44px;
  }
}

/* The app's own Interstate shield, locked (generated in the icon's style) */
.privacy-art {
  display: block;
  width: clamp(104px, 14vw, 148px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

.privacy-band .label-cats {
  margin-top: 22px;
}

.privacy-band h2 {
  margin-bottom: 10px;
  font-size: var(--step-2);
  max-width: none;
}

.privacy-band p {
  margin: 0;
  max-width: 40rem;
  color: var(--paint-soft);
}

/* The three data types, drawn the way the App Store label draws them */
.label-cats {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.label-cats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--paint-soft);
  font: 600 0.875rem/1.2 var(--font);
  white-space: nowrap;
}

.label-cats svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--paint);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Also on the web ------------------------------------------------------ */

.web {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .web {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
  }
}

.web h2 + p {
  max-width: 40rem;
}

.web-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Details -------------------------------------------------------------- */

.details dl {
  display: grid;
  gap: 0 40px;
  margin: 30px 0 0;
}

@media (min-width: 360px) {
  .details dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 940px) {
  .details dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.details dl div {
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.details dt {
  color: var(--paint-quiet);
  font: 700 0.8125rem/1.3 var(--font);
}

.details dd {
  margin: 4px 0 0;
  font: 700 1.0625rem/1.35 var(--font);
  overflow-wrap: anywhere;
}

.details dd a {
  text-underline-offset: 3px;
}

/* Final call ----------------------------------------------------------- */

/* The page ends where the icon does: the sun going down on the highway */
.finale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(84px, 11vw, 150px) 0 clamp(64px, 8vw, 110px);
  text-align: center;
}

.finale::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -40%;
  width: max(900px, 120%);
  aspect-ratio: 2;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(240, 120, 24, 0.24), rgba(96, 72, 160, 0.14) 55%, transparent);
}

.finale-art {
  display: block;
  width: clamp(112px, 26vw, 152px);
  height: auto;
  margin: 0 auto 36px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 70px rgba(240, 120, 24, 0.3), var(--lift);
}

.finale h2 {
  margin: 0 auto 16px;
  font: 800 var(--step-4)/1 var(--font);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.finale p {
  margin: 0 auto 32px;
  max-width: 30rem;
  color: var(--paint-soft);
  text-wrap: balance;
}

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

.footer {
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  font-size: var(--step--1);
  color: var(--paint-quiet);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}

.footer p {
  margin: 0;
}

.footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  display: inline-block;
  padding: 12px 0;
  color: var(--paint-soft);
  text-decoration: none;
}

.footer a:hover {
  color: var(--paint);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ------------------------------------------------------------------
   Privacy policy page
   ------------------------------------------------------------------ */

.policy-head {
  padding: clamp(24px, 5vw, 56px) 0 clamp(28px, 4vw, 40px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--paint-soft);
  font: 700 var(--step--1)/1.4 var(--font);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.6;
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.policy-head h1 {
  margin: 0 0 14px;
  font: 800 var(--step-4)/1 var(--font);
  letter-spacing: -0.025em;
}

.policy-head .meta {
  margin: 0;
  max-width: 40rem;
  color: var(--paint-soft);
}

.policy-body {
  padding-bottom: clamp(72px, 10vw, 120px);
}

/* The App Store label, as the App Store sets it */
.label {
  --art: clamp(88px, 15vw, 128px);
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--r-panel);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--lift);
}

/* The locked shield perches on the card's corner; the heading and the lead
   keep clear of it */
.label-art {
  position: absolute;
  top: calc(var(--art) * -0.32);
  right: clamp(12px, 3vw, 28px);
  width: var(--art);
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45));
}

.label-top {
  padding-right: calc(var(--art) + 8px);
}

/* On phones the heading wraps to two lines, so the lead already starts below the shield */
@media (min-width: 640px) {
  .label-lead {
    padding-right: calc(var(--art) + 8px);
  }
}

.label-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  margin-bottom: 8px;
}

.label h2 {
  margin: 0;
  font: 800 var(--step-2)/1.15 var(--font);
}

.label-source {
  color: var(--paint-soft);
  font: 700 var(--step--1)/1.3 var(--font);
  text-underline-offset: 3px;
}

.label-lead {
  margin: 0 0 22px;
  max-width: 44rem;
  color: var(--paint-soft);
  font-size: 0.96875rem;
}

.label-card {
  padding: clamp(20px, 3vw, 28px);
  border-radius: 18px;
  background: var(--panel-hi);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.label-card > .label-type {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px;
  color: var(--paint);
  font: 800 1.25rem/1.2 var(--font);
}

.label-type svg {
  width: 30px;
  height: 30px;
  flex: none;
  fill: none;
  stroke: var(--paint);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.label-card > p {
  margin: 0 0 18px;
  color: var(--paint-soft);
  font-size: 0.9375rem;
}

.label-card .label-cats {
  flex-wrap: wrap;
  gap: 14px 32px;
}

.label-card .label-cats li {
  flex-direction: row;
  gap: 10px;
  color: var(--paint);
  font-size: 0.9375rem;
}

.label-card .label-cats svg {
  width: 26px;
  height: 26px;
}

.purposes {
  display: grid;
  gap: 0 32px;
  margin: 24px 0 0;
}

@media (min-width: 640px) {
  .purposes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.purposes div {
  padding: 16px 0 0;
  border-top: 1px solid var(--hairline);
}

.purposes dt {
  margin-bottom: 8px;
  font: 800 1rem/1.3 var(--font);
}

.purposes dd {
  margin: 0 0 6px;
  color: var(--paint-soft);
  font-size: 0.9375rem;
}

.purposes dd b {
  color: var(--paint);
  font-weight: 700;
}

.label-foot {
  margin: 20px 0 0;
  color: var(--paint-quiet);
  font-size: var(--step--1);
}

.glance {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .glance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.glance li {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--paint-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.glance b {
  display: block;
  margin-bottom: 4px;
  color: var(--paint);
  font: 700 1.0625rem/1.3 var(--font);
}

.glance .glance-wide {
  grid-column: 1 / -1;
}

.mirror {
  margin: 44px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--led);
  border-radius: 4px 14px 14px 4px;
  background: rgba(255, 165, 36, 0.08);
  color: var(--paint-soft);
  font-size: 0.9375rem;
}

.mirror a {
  color: var(--paint);
  text-underline-offset: 3px;
}

.toc {
  margin: 36px 0 0;
}

.toc h2 {
  margin: 0 0 12px;
  font: 800 1.25rem/1.3 var(--font);
}

.toc ol {
  columns: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .toc ol {
    columns: 2;
    column-gap: 32px;
  }
}

.toc li {
  break-inside: avoid;
  border-top: 1px solid var(--hairline);
}

.toc a {
  display: block;
  padding: 10px 0;
  color: var(--paint-soft);
  font-size: 0.9375rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--paint);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The app's own sections are marked, so a driver can read those first */
.toc .is-app a::after {
  content: "iOS app";
  margin-left: 8px;
  padding: 2px 7px 1px;
  border-radius: 999px;
  background: rgba(255, 165, 36, 0.16);
  color: var(--led);
  font: 700 0.75rem/1.4 var(--font);
  white-space: nowrap;
}

.policy {
  margin-top: 36px;
  padding: clamp(24px, 5vw, 56px);
  border-radius: var(--r-panel);
  background: #F3F4F1;
  color: #1A2030;
  box-shadow: var(--lift);
}

.pol-sec + .pol-sec {
  margin-top: 34px;
}

.policy h2 {
  margin: 0 0 12px;
  font: 800 var(--step-2)/1.2 var(--font);
  color: #0F1524;
  text-wrap: balance;
  scroll-margin-top: 96px;
}

.pol-sec[id] {
  scroll-margin-top: 96px;
}

.policy p,
.policy li {
  max-width: 66ch;
  line-height: 1.65;
}

.policy p {
  margin: 0 0 12px;
}

.policy ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.policy li {
  margin: 6px 0;
}

.policy li::marker {
  color: #B4560B;
}

.policy a {
  color: #8A3E00;
  font-weight: 600;
  text-underline-offset: 3px;
}

.policy code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(15, 21, 36, 0.07);
  font-size: 0.875em;
}

.table-wrap {
  margin: 4px 0 16px;
  overflow-x: auto;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(15, 21, 36, 0.12);
}

.table-wrap:focus-visible {
  outline-color: #B4560B;
}

.policy table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.policy th,
.policy td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.policy th {
  background: rgba(15, 21, 36, 0.06);
  font-weight: 800;
}

.policy tr + tr td {
  border-top: 1px solid rgba(15, 21, 36, 0.1);
}

.policy td:first-child {
  font-weight: 600;
}

/* Phones: each row becomes a small card, every cell under its column name */
@media (max-width: 600px) {
  .table-wrap {
    overflow: visible;
  }

  .policy table,
  .policy tbody,
  .policy tr,
  .policy td {
    display: block;
    min-width: 0;
  }

  .policy thead {
    display: none;
  }

  .policy tr {
    padding: 12px 14px 14px;
  }

  .policy tr + tr {
    border-top: 1px solid rgba(15, 21, 36, 0.1);
  }

  .policy td {
    padding: 0;
  }

  .policy tr + tr td {
    border-top: 0;
  }

  .policy td + td::before {
    content: attr(data-label);
    display: block;
    margin: 10px 0 2px;
    color: #5A6378;
    font-size: 0.8125rem;
    font-weight: 800;
  }
}

/* ------------------------------------------------------------------
   Reduced motion: keep every state, drop the travel
   ------------------------------------------------------------------ */

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