/*
 * Jagoo public site. One stylesheet, no build step.
 * Tokens mirror docs/DESIGN_SYSTEM.md (identity v3 « Boussole »): slate neutrals in light, zinc in dark,
 * Jagoo cobalt as the one accent, Bricolage Grotesque for display sizes, Inter for everything else.
 * Borders separate things; a shadow is only for what floats over the map (the hero panel, a device).
 */

/* ---------- Fonts (self-hosted copies of core_ui/assets/fonts, OFL) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --canvas: #f2f4f7;
  --surface: #ffffff;
  --surface-elevated: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #7c8ba1;

  --text: #0f172a;
  --text-2: #475569;
  --text-muted: #5e6e82;

  --accent: #2f4be0;
  --accent-hover: #2238c4;
  --accent-subtle: #eef1fe;
  --accent-on-subtle: #2238c4;
  --accent-fill: #2f4be0;
  --accent-fill-hover: #2238c4;
  --on-accent: #ffffff;

  --success-fg: #047857;
  --success-bg: #ecfdf5;
  --warning-fg: #92400e;
  --warning-bg: #fffbeb;
  --danger-fg: #b91c1c;
  --danger-bg: #fef2f2;
  --neutral-fg: #334155;
  --neutral-bg: #e8ecf1;
  --driver: #047857;

  --ink: #0f172a;
  --band-bg: #0f172a;
  --band-border: #0f172a;
  --band-text: #ffffff;
  --band-text-2: #cbd5e1;

  --map-land: #edf0f5;
  --map-road: #ffffff;
  --map-road-edge: #dfe4ec;
  --map-park: #dcebe2;
  --map-water: #cfd9fb;
  --map-route: #2f4be0;
  --map-casing: #ffffff;
  --map-marker: #0f172a;
  --map-car: #64748b;
  --map-radius-fill: rgba(47, 75, 224, 0.1);
  --map-radius-stroke: rgba(47, 75, 224, 0.6);

  --shadow-sheet: 0 -4px 24px rgba(15, 23, 42, 0.12);
  --shadow-float: 0 4px 16px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-device: 0 24px 48px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.12);
  --device-edge: #0f172a;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;

  --r-control: 12px;
  --r-card: 16px;
  --r-sheet: 24px;
  --r-pill: 999px;

  --gutter: 20px;
  --wrap: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #09090b;
    --surface: #18181b;
    --surface-elevated: #27272a;
    --border: #3f3f46;
    --border-strong: #71717a;

    --text: #fafafa;
    --text-2: #d4d4d8;
    --text-muted: #a1a1aa;

    --accent: #8ea2ff;
    --accent-hover: #b4c2ff;
    --accent-subtle: #141c3d;
    --accent-on-subtle: #b4c2ff;
    --accent-fill: #3b57f0;
    --accent-fill-hover: #2f4be0;

    --success-fg: #34d399;
    --success-bg: #052e1a;
    --warning-fg: #fbbf24;
    --warning-bg: #3a2a0a;
    --danger-fg: #f87171;
    --danger-bg: #3b0d0d;
    --neutral-fg: #d4d4d8;
    --neutral-bg: #27272a;
    --driver: #34d399;

    --band-bg: #18181b;
    --band-border: #3f3f46;

    --map-land: #18181b;
    --map-road: #3a3a40;
    --map-road-edge: #27272a;
    --map-park: #12261c;
    --map-water: #141c3d;
    --map-route: #8ea2ff;
    --map-casing: #18181b;
    --map-marker: #fafafa;
    --map-car: #a1a1aa;
    --map-radius-fill: rgba(142, 162, 255, 0.14);
    --map-radius-stroke: rgba(142, 162, 255, 0.7);

    --shadow-sheet: 0 -4px 24px rgba(0, 0, 0, 0.5);
    --shadow-float: 0 4px 16px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-device: 0 24px 48px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.5);
    --device-edge: #3f3f46;
  }
}

@media (min-width: 600px) {
  :root {
    --gutter: 24px;
  }
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 900px) {
  body {
    font-size: 1.0625rem;
  }
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.35rem + 4.2vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.005em;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

strong {
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] {
  display: none !important;
}

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

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

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: var(--r-control);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

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

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.num {
  font-variant-numeric: tabular-nums;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  line-height: 1;
  border-radius: 10px;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  display: block;
  width: 36px;
  height: 36px;
}

.nav {
  display: none;
}

.nav ul {
  display: flex;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-control);
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  background: var(--surface-elevated);
  color: var(--text);
}

.nav a[aria-current="page"] {
  background: var(--accent-subtle);
  color: var(--accent-on-subtle);
}

.site-header__end {
  display: none;
  align-items: center;
  gap: 12px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.lang:hover {
  background: var(--surface-elevated);
  color: var(--text);
}

.lang .icon {
  width: 20px;
  height: 20px;
  color: var(--text-2);
}

/* The phone menu: a <details>, so it opens without any script. */
.menu {
  position: static;
}

.menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  border-radius: var(--r-control);
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.menu > summary::-webkit-details-marker {
  display: none;
}

.menu > summary:hover {
  background: var(--surface-elevated);
}

.menu .menu__close,
.menu[open] .menu__open {
  display: none;
}

.menu[open] .menu__close {
  display: block;
}

.menu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 8px var(--gutter) 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-float);
}

.menu__panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.menu__panel a[aria-current="page"] {
  color: var(--accent);
}

.menu__panel .lang {
  justify-content: center;
  margin-top: 16px;
  border-bottom: 1px solid var(--border-strong);
}

@media (min-width: 940px) {
  .nav {
    display: block;
  }

  .site-header__end {
    display: flex;
  }

  .menu {
    display: none;
  }

  .brand {
    margin-right: 20px;
  }

  .site-header__end {
    margin-left: auto;
  }
}

/* ---------- Pills and buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  background: var(--neutral-bg);
  color: var(--neutral-fg);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.pill .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.pill--success {
  background: var(--success-bg);
  color: var(--success-fg);
}

.pill--warning {
  background: var(--warning-bg);
  color: var(--warning-fg);
}

.pill--accent {
  background: var(--accent-subtle);
  color: var(--accent-on-subtle);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent-fill);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: var(--accent-fill-hover);
  color: var(--on-accent);
}

.btn--secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--secondary:hover {
  background: var(--surface-elevated);
  color: var(--text);
}

.btn--small {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

.btn[disabled] {
  background: var(--surface-elevated);
  border-color: transparent;
  color: var(--text-muted);
  cursor: default;
}

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

/* ---------- Hero: a map, and a sheet over it ---------- */
.hero {
  --map-height: clamp(264px, 46vw, 400px);
  position: relative;
  isolation: isolate;
  background: var(--map-land);
  border-bottom: 1px solid var(--border);
}

.hero__map {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--map-height);
  z-index: -1;
  overflow: hidden;
}

.hero__map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__in {
  padding-top: calc(var(--map-height) - 48px);
  padding-inline: 0;
}

.hero__panel {
  position: relative;
  padding: 36px var(--gutter) 36px;
  background: var(--surface);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: var(--shadow-sheet);
}

/* The sheet's drag handle, as in the apps; decoration on a page. */
.hero__panel::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  border-radius: var(--r-pill);
  background: var(--border-strong);
  opacity: 0.6;
}

.hero__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.hero .lede {
  margin-top: 20px;
  max-width: 34em;
  color: var(--text-2);
  font-size: 1.125rem;
  line-height: 1.55;
}

.hero .actions {
  margin-top: 28px;
}

.hero__note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* The links to a long page's parts, as the apps' chips. */
.hero__jump {
  margin-top: 24px;
}

.hero__jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.hero__jump a:hover {
  background: var(--surface-elevated);
}

.hero .callout {
  margin-top: 28px;
}

.hero__device {
  margin: 0 auto;
}

@media (max-width: 899px) {
  .hero {
    background: var(--surface);
  }

  .hero__map {
    background: var(--map-land);
  }

  .hero__panel {
    clip-path: inset(-48px 0 0 0);
  }

  .hero__device {
    margin-top: 4px;
    margin-bottom: 48px;
  }
}

@media (max-width: 479px) {
  .hero .actions .btn {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .hero__map {
    inset: 0;
    height: auto;
  }

  .hero__in {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    padding: 72px var(--gutter);
    min-height: 660px;
  }

  .hero--page .hero__in {
    min-height: 560px;
    padding-block: 56px;
  }

  .hero__panel {
    padding: 44px 44px 48px;
    border-radius: var(--r-sheet);
    box-shadow: var(--shadow-float);
    border: 1px solid var(--border);
  }

  .hero__panel::before {
    display: none;
  }

  .hero__device {
    justify-self: center;
  }
}

/* The map's own drawing, in the palette of the apps' map style. */
.m-land {
  fill: var(--map-land);
}
.m-water {
  fill: none;
  stroke: var(--map-water);
  stroke-linecap: round;
}
.m-park {
  fill: var(--map-park);
}
.m-edge {
  fill: none;
  stroke: var(--map-road-edge);
  stroke-linecap: round;
}
.m-road {
  fill: none;
  stroke: var(--map-road);
  stroke-linecap: round;
}
.m-casing {
  fill: none;
  stroke: var(--map-casing);
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.m-route {
  fill: none;
  stroke: var(--map-route);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.m-radius {
  fill: var(--map-radius-fill);
  stroke: var(--map-radius-stroke);
  stroke-width: 1.5;
}
.m-marker {
  fill: var(--map-marker);
  stroke: var(--map-casing);
  stroke-width: 5;
}
.m-marker-dot {
  fill: var(--map-casing);
}
.m-car {
  fill: var(--map-car);
  stroke: var(--map-casing);
  stroke-width: 3;
}

/* The one moment of the page: the route draws itself once, then its destination lands. */
@media (prefers-reduced-motion: no-preference) {
  .m-route {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: route-draw 1.8s cubic-bezier(0.33, 1, 0.68, 1) 0.3s forwards;
  }

  .m-dropoff {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: marker-land 0.4s cubic-bezier(0.33, 1, 0.68, 1) 1.9s forwards;
  }
}

@keyframes route-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes marker-land {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Device frame ---------- */
.device {
  width: clamp(216px, 23vw, 272px);
  aspect-ratio: 9 / 19.4;
  padding: 9px;
  border-radius: 42px;
  background: var(--ink);
  border: 1px solid var(--device-edge);
  box-shadow: var(--shadow-device);
}

.device img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 33px;
  background: #f2f4f7;
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(56px, 4vw + 40px, 104px);
}

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.section--surface + .section--surface {
  border-top: 0;
}

.hero + .section--surface {
  border-top: 0;
}

.section__head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section__head p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.125rem;
  line-height: 1.55;
}

.prose p + p {
  margin-top: 16px;
}

.prose p {
  color: var(--text-2);
  max-width: 40em;
}

.more {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
}

/* ---------- Feature: words beside a screen ---------- */
.feature {
  display: grid;
  gap: 40px;
  align-items: center;
}

.feature + .feature {
  margin-top: clamp(64px, 8vw, 112px);
}

.feature__text > h2,
.feature__text > h3 {
  margin-bottom: 16px;
}

.feature__text > h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.feature__text > p {
  color: var(--text-2);
  max-width: 38em;
}

.feature__text > p + p {
  margin-top: 14px;
}

.feature__text .pill {
  margin-bottom: 16px;
}

.feature__media {
  display: flex;
  justify-content: center;
}

.feature__media .device {
  width: clamp(216px, 60vw, 264px);
}

@media (min-width: 820px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    gap: 64px;
  }

  .feature--flip .feature__media {
    order: -1;
  }

  .feature--flip {
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  }
}

/* A checked list of plain facts under a paragraph. */
.facts {
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.facts li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.facts li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Rows: an icon, a title, a line ---------- */
.rows {
  display: grid;
  gap: 0 56px;
  border-top: 1px solid var(--border);
}

.row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.row__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  background: var(--surface);
  color: var(--text-2);
}

.section--surface .row__icon {
  background: var(--canvas);
}

.row p {
  margin-top: 6px;
  color: var(--text-2);
}

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

  .rows > .row:nth-child(2) {
    border-top: 0;
  }
}

/* ---------- Route: a sequence drawn as a trip, from the pickup dot to the drop-off square ---------- */
.route {
  counter-reset: stop;
}

.route__stop {
  position: relative;
  padding: 0 0 36px 52px;
  counter-increment: stop;
}

.route__stop::before {
  content: counter(stop);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--map-marker);
  color: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.route__stop::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: 0;
  width: 4px;
  background: var(--map-route);
}

.route__stop:last-child {
  padding-bottom: 0;
}

@media (max-width: 479px) {
  .route__stop {
    padding-left: 46px;
  }
}

.route__stop:last-child::before {
  border-radius: 8px;
}

.route__stop:last-child::after {
  display: none;
}

.route__stop h3 {
  padding-top: 2px;
}

.route__stop p {
  margin-top: 6px;
  color: var(--text-2);
  max-width: 36em;
}

.route__stop ul {
  margin-top: 10px;
  color: var(--text-2);
  max-width: 36em;
}

.route__stop ul li {
  position: relative;
  padding-left: 18px;
}

.route__stop ul li + li {
  margin-top: 4px;
}

.route__stop ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* ---------- The three ways to ride: the apps' own switch ---------- */
.segmented {
  display: none;
  gap: 4px;
  padding: 4px;
  margin-bottom: 40px;
  border-radius: 14px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
}

.js .segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
}

.segmented button {
  min-height: 48px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.segmented button:hover {
  color: var(--text);
}

.segmented button[aria-selected="true"] {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.js .modes__panel[hidden] {
  display: none;
}

.modes__panel + .modes__panel {
  margin-top: 72px;
}

.js .modes__panel + .modes__panel {
  margin-top: 0;
}

.modes .feature {
  align-items: start;
}

/* ---------- The negotiation, to try ---------- */
.nego {
  display: grid;
  gap: 48px;
  align-items: start;
}

@media (min-width: 900px) {
  .nego {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 72px;
  }
}

/* A sequence beside a short card of plain facts. */
.split {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 72px;
  }
}

.aside {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}

.section--surface .aside {
  background: var(--canvas);
}

.aside .facts {
  margin-top: 16px;
}

.aside .facts li {
  color: var(--text-2);
}

.aside .facts li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.demo {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
}

.section--surface .demo {
  background: var(--canvas);
}

.demo__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px 20px 0;
}

.demo__label {
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 600;
}

.demo__price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.demo__amount {
  min-width: 5.4ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
}

.demo__step {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.demo__step:hover {
  background: var(--surface-elevated);
}

.demo__step[disabled] {
  border-color: var(--border);
  color: var(--border-strong);
  cursor: default;
}

.demo__hint {
  margin-top: 10px;
  min-height: 1.5em;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-2);
}

.demo__hint[data-tone="less"] {
  color: var(--warning-fg);
}

.demo__hint[data-tone="more"] {
  color: var(--success-fg);
}

/* The countdown: the compass of the mark, with the seconds inside. */
.ring {
  position: relative;
  width: 84px;
  height: 84px;
}

.ring svg {
  display: block;
  width: 84px;
  height: 84px;
}

.ring__track {
  fill: none;
  stroke: var(--border);
  stroke-width: 6;
}

.ring__ticks {
  stroke: var(--border-strong);
  stroke-width: 2;
  stroke-linecap: round;
}

.ring__bar {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 42px 42px;
}

.ring[data-ending="true"] .ring__bar {
  stroke: var(--danger-fg);
}

.ring__seconds {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 479px) {
  .demo__top {
    display: block;
    position: relative;
    min-height: 84px;
  }

  .demo__top .ring {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 60px;
    height: 60px;
  }

  .demo__top .ring svg {
    width: 60px;
    height: 60px;
  }

  .demo__top .ring__seconds {
    font-size: 1.125rem;
  }

  .demo__price {
    margin-top: 36px;
    justify-content: space-between;
  }

  .demo__amount {
    font-size: 2.25rem;
  }
}

.demo__go {
  padding: 20px;
}

.demo__go .btn {
  width: 100%;
}

.demo__status {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 600;
}

.demo__status[data-tone="success"] {
  background: var(--success-bg);
  color: var(--success-fg);
}

.demo__status[data-tone="expired"] {
  background: var(--neutral-bg);
  color: var(--neutral-fg);
}

.offers {
  border-top: 1px solid var(--border);
}

.offers:empty {
  display: none;
}

.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.offer:last-child {
  border-bottom: 0;
}

.offer__who {
  font-weight: 600;
}

.offer__eta {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.offer__price {
  grid-row: span 2;
  display: grid;
  justify-items: end;
  gap: 6px;
}

.offer__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.offer__choose {
  grid-column: 1 / -1;
  margin-top: 10px;
}

.offer[data-chosen="true"] {
  background: var(--accent-subtle);
}

@media (prefers-reduced-motion: no-preference) {
  .offer[data-new="true"] {
    animation: offer-in 0.25s cubic-bezier(0.33, 1, 0.68, 1);
  }
}

@keyframes offer-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.demo__foot {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ---------- Two doors: drivers and fleets ---------- */
.doors {
  display: grid;
  gap: 20px;
}

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

.door {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}

.door h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.door p {
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--text-2);
}

.door .btn {
  margin-top: auto;
}

.door .row__icon {
  margin-bottom: 20px;
}

/* ---------- What the driver keeps ---------- */
.keeps {
  color: var(--driver);
  font-weight: 600;
}

/* ---------- Vehicles, drawn as in the apps ---------- */
.vehicles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.vehicle {
  padding: 20px 16px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}

.vehicle svg {
  display: block;
  width: 112px;
  height: auto;
  margin-bottom: 12px;
}

.vehicle h3 {
  font-size: 1rem;
}

.vehicle p {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.v-body {
  fill: var(--text);
}
.v-glass {
  fill: var(--accent);
}
.v-trim {
  stroke: var(--accent);
  stroke-width: 1;
  stroke-linecap: round;
}
.v-ground {
  stroke: var(--border);
  stroke-width: 1.2;
  stroke-linecap: round;
}
.v-ramp {
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
}

.note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 44em;
}

/* ---------- Two columns of plain text blocks ---------- */
.pair {
  display: grid;
  gap: 40px;
}

@media (min-width: 820px) {
  .pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 72px;
  }
}

.pair h3 {
  margin-bottom: 8px;
}

.pair p {
  color: var(--text-2);
}

.pair p + p {
  margin-top: 12px;
}

/* ---------- Questions ---------- */
.faq-group + .faq-group {
  margin-top: 56px;
}

.faq-group > h2 {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.faq {
  border-top: 1px solid var(--border);
}

.faq:last-of-type {
  border-bottom: 1px solid var(--border);
}

.faq > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 16px;
  align-items: center;
  min-height: 64px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}

.faq > summary::-webkit-details-marker {
  display: none;
}

.faq > summary h3 {
  font-size: 1.0625rem;
}

.faq > summary::after {
  content: "";
  width: 10px;
  height: 10px;
  justify-self: center;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: translateY(-3px) rotate(45deg);
}

.faq[open] > summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq > summary:hover h3 {
  color: var(--accent);
}

.faq__answer {
  padding: 0 40px 24px 0;
  color: var(--text-2);
  max-width: 46em;
}

.faq__answer p + p {
  margin-top: 12px;
}

/* ---------- A placeholder the owner still has to fill ---------- */
.todo {
  padding: 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-card);
  background: var(--surface);
  max-width: 44rem;
}

.todo--spaced {
  margin-top: 40px;
}

.todo .pill {
  margin-bottom: 10px;
}

.todo p {
  color: var(--text-2);
}

.callout {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-control);
  background: var(--danger-bg);
  color: var(--danger-fg);
  font-weight: 600;
  max-width: 44rem;
}

.legal {
  max-width: 44rem;
}

.legal > .pill {
  margin-bottom: 16px;
}

.legal h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
}

.legal .lede {
  margin-top: 20px;
  color: var(--text-2);
  font-size: 1.125rem;
}

.legal .todo {
  margin-top: 32px;
}

.legal h2 {
  margin-top: 48px;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.legal p + p {
  margin-top: 12px;
}

.legal p {
  color: var(--text-2);
}

/* ---------- Closing band ---------- */
.band {
  background: var(--band-bg);
  border-block: 1px solid var(--band-border);
  color: var(--band-text);
}

.band__in {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-block: clamp(56px, 7vw, 96px);
}

.band__mark {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.band h2 {
  max-width: 16em;
}

.band p {
  margin-top: 16px;
  max-width: 36em;
  color: var(--band-text-2);
  font-size: 1.125rem;
}

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

.soon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 168px;
  min-height: 60px;
  padding: 10px 20px;
  border: 1px solid #475569;
  border-radius: var(--r-control);
  color: #ffffff;
  line-height: 1.25;
}

.soon small {
  color: #cbd5e1;
  font-size: 0.8125rem;
}

.soon span {
  font-weight: 600;
  font-size: 1.0625rem;
}

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  padding-block: 56px 40px;
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  gap: 40px;
}

.site-footer h2 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--text);
}

.site-footer p {
  color: var(--text-2);
  max-width: 26em;
}

.site-footer .brand {
  margin-bottom: 16px;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text-2);
  text-decoration: none;
}

.site-footer li a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer .soon-tag {
  color: var(--text-muted);
  white-space: nowrap;
}

.site-footer li a {
  display: inline-block;
  padding-block: 6px;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.site-footer__base a {
  color: var(--text-2);
  font-weight: 600;
}

@media (min-width: 820px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .hero__map,
  .segmented,
  .menu {
    display: none;
  }

  .hero__in {
    padding-top: 0;
  }
}
