/*
  Perpetual Cabs — placeholder site styles.

  Palette from DESIGN_TRUTHS.md § REFINED [2026-08-10b], the most recent
  dated section and therefore the one that wins: warm paper, neutral black
  ink, near-black CTA, pure #FFFFFF banned as a surface (it is the specific
  value that caused the 4am glare complaint).

  This file is NOT tokens.css. The real token file is extracted from the
  approved design at M0b, once decision #1 — light or dark as the v1 default
  — is settled. Everything here is a handful of custom properties to flip.
*/

/*
  THEME — three states, not two. DECISION_LOG IV.13.

    1. No stored choice, no system signal  -> dark. The brand ground.
    2. No stored choice, system says light -> light.
    3. An explicit choice in profile       -> wins over both.

  Dark is defined on bare :root rather than inside a media query, so that
  the fallback when nothing is known is dark rather than light. Light is
  the override. This is the inverse of the usual pattern and it is
  deliberate: `prefers-color-scheme` reports `light` when a device has no
  preference set at all, so putting dark in the media query would make the
  brand default reachable only by users who had opted into dark elsewhere.

  Values are lifted from design/final-design-dark.html and
  final-design-light.html, which are the approved renderings. They are not
  invented here.
*/

:root {
  /* Dark — the default ground. */
  --bg: #0E0F10;
  --surface: #17181B;
  --border: #2A2C30;
  --muted: #8D8E94;
  --ink: #F1F0EC;
  --cta: #F1F0EC;
  --cta-ink: #0E0F10;

  --pad: 24px;
  --touch: 44px; /* the Rule of 3 floor */
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* The device asked for light and the user has not overridden it. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F7F5F0;
    --surface: #FFFDFA;   /* pure #FFFFFF is banned as a surface */
    --border: #E7E2D8;
    --muted: #6B6963;
    --ink: #111214;
    --cta: #111214;       /* near-black CTA: the premium cue in the light look */
    --cta-ink: #FFFDFA;
  }
}

/* An explicit choice. Set on <html> before first paint. */
:root[data-theme="light"] {
  --bg: #F7F5F0;
  --surface: #FFFDFA;
  --border: #E7E2D8;
  --muted: #6B6963;
  --ink: #111214;
  --cta: #111214;
  --cta-ink: #FFFDFA;
}

/* Desktop spends space; mobile does not have it. DESIGN_TRUTHS: section
   padding steps 24px -> 48px, and whitespace is the budget on customer
   surfaces. */
@media (min-width: 820px) { :root { --pad: 48px; } }

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

/* The page container.

   It was 68ch — a READING width, right for prose and wrong for a landing
   page. At 1325px it left the content in a narrow strip down the middle with
   dead space either side, which is exactly why the desktop view read as "a
   phone screen stretched". A landing page's job at that width is to use it.

   Prose still gets a reading measure, but per-element (`.lede`, `.sub`),
   not by strangling the whole page. */
.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding: var(--pad);
}

header { padding-block: clamp(48px, 10vw, 96px) 0; }

.mark { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

h1 {
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 12px 0 0;
  text-wrap: balance;
}

.lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); margin-top: 16px; max-width: 54ch; }

h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 12px; }

section { margin-top: clamp(40px, 8vw, 72px); }

p { overflow-wrap: anywhere; }

ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); }

/* 48px tall — the Rule of 3 floor for a touch target is 44px. */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--cta);
  color: var(--cta-ink);
  text-decoration: none;
  font-weight: 600;
  margin-top: 8px;
}
.cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Secondary. Same size and tap target, quieter weight — one primary action
   per screen, and this is not it. */
.cta--quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* max-content in the first column would push the row wider than a 390px
   viewport as soon as a long value lands in it. minmax keeps it honest. */
dl.contact { display: grid; grid-template-columns: minmax(5.5rem, max-content) 1fr; gap: 8px 20px; margin: 0; }
dl.contact dt { color: var(--muted); display: flex; align-items: center; min-height: var(--touch); }
dl.contact dd { margin: 0; overflow-wrap: anywhere; }

/* Inline links here are the page's real calls to action — tapping the phone
   number is the whole point of the contact block. At their natural 21px they
   are a miss on a phone. The Rule of 3 check caught this; it was never going
   to be caught by eye on a desktop. */
dl.contact a,
footer a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
}

article h2 { margin-top: 32px; }
article p, article li { color: var(--muted); }

/* Prose links get their tap area from vertical padding, NOT inline-flex.
   A mid-sentence link set to inline-flex stops wrapping, and a long email
   address that cannot wrap is horizontal overflow at 390px — trading one
   Rule of 3 failure for a worse one. Padding grows the hit box while the
   text keeps flowing. */
article a {
  color: inherit;
  padding-block: 12px;
}

footer {
  margin-top: clamp(48px, 9vw, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 20px;
}
footer > span { display: inline-flex; align-items: center; min-height: var(--touch); }

@media (prefers-reduced-motion: no-preference) {
  a { transition: opacity .15s ease; }
  a:hover { opacity: .72; }
}

/* ---------------------------------------------------------------- topbar

   Always on screen, so signing in is one tap from anywhere on the page.

   `position: sticky` rather than `fixed`: sticky keeps the bar in the
   document flow, so the content below it is never hidden underneath and
   there is no magic padding number on body to keep in sync. On a 390px
   screen in landscape — a phone held sideways at an airport — a fixed bar
   eats a chunk of an already short viewport for the whole scroll.

   Both actions are `.cta`s, so both inherit the tap target and the shape.
   They were a text link beside a filled pill, which read as a hierarchy —
   and they go to the same flow, so there was no hierarchy to express. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: 8px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* The wordmark. It SHOULD read differently from the two actions — it is a
   name, not a thing to press — but it was also a different text size from
   them, which is mismatch rather than hierarchy. All three items in the bar
   now share 15px; only their role differs. */
.topbar__brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  /* Its own tap target: it is a link home, and a 20px-tall word is not one. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.topbar__brand:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Shorter than the hero CTAs, which are the page's main event. Still 44px —
   the floor is a floor, not a suggestion, and this is the button people
   reach for one-handed. */
.cta--small {
  min-height: 44px;
  padding: 0 16px;
  margin-top: 0;
  font-size: 15px;
}

/* ------------------------------------------------------- the menu button

   A drawn hamburger rather than a glyph: "☰" renders at wildly different
   weights across fonts and platforms, and next to two pills that variation
   is exactly the mismatch this bar has already been fixed for once. */
.topbar__menu {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.topbar__menu:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.topbar__bars,
.topbar__bars::before,
.topbar__bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

.topbar__bars { position: relative; }
.topbar__bars::before,
.topbar__bars::after { content: ""; position: absolute; left: 0; }
.topbar__bars::before { top: -5px; }
.topbar__bars::after { top: 5px; }

/* The bars become a cross while the drawer is open, so the control reads as
   the same object in two states rather than two different buttons. */
[aria-expanded="true"] .topbar__bars { background: transparent; }
[aria-expanded="true"] .topbar__bars::before { top: 0; transform: rotate(45deg); }
[aria-expanded="true"] .topbar__bars::after { top: 0; transform: rotate(-45deg); }

/* ------------------------------------------------------------ the drawer */

.drawer { position: fixed; inset: 0; z-index: 50; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  transition: opacity .2s ease;
}

.drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(320px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg);
  border-inline-start: 1px solid var(--border);
  /* The notch and the home indicator. Without these the close button sits
     under the status bar on a phone and the last link under the gesture bar,
     which is the detail that gives a web menu away instantly. */
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
           max(16px, env(safe-area-inset-bottom)) 16px;
  transform: translateX(100%);
  transition: transform .2s ease;
  overflow-y: auto;
  /* A flick at the end of this list must not start scrolling the page behind
     it. `contain` stops the scroll chaining that makes the whole thing feel
     like one long document. */
  overscroll-behavior: contain;
}

.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 8px;
}

.drawer__title { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }

.drawer__close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.drawer__close:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Full-width rows with a hairline between them — a list, the way a phone
   draws one, rather than a stack of little web buttons. */
.drawer__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.drawer__link:active { background: var(--surface); }
.drawer__link:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

.drawer__foot { margin-top: auto; padding-top: 16px; }

.cta--block { display: flex; width: 100%; margin-top: 0; }

/* Locking the page behind the drawer. `position: fixed` on body would reset
   the scroll position on close; `overflow: hidden` keeps it. */
body.has-drawer { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .drawer__scrim,
  .drawer__panel { transition: none; }
}

/* ============================================================ SECTIONS

   Structure follows naviget.in at the user's direction; the palette is
   unchanged — warm paper and near-black ink, with the CTA the only filled
   object. Nothing new was introduced to hold a colour, because the reference
   carries its structure in layout and spacing, and borrowing its colour as
   well would have cost the one thing this brand already had.
   ==================================================================== */

.sub {
  color: var(--muted);
  margin: -4px 0 20px;
  max-width: 56ch;
}

/* --- service and fleet tiles --- */

.tiles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

/* Two columns at EVERY width, including 390px — the pair is meant to be read
   side by side, because the whole point of the section is choosing between
   them. Stacking them turns a comparison into two separate readings.
   The spec labels are short for exactly this reason: at 390px each column is
   about 160px, and "Dzire, Aura or similar" would wrap mid-phrase. */
.tiles--two { grid-template-columns: repeat(2, 1fr); gap: 12px; }

@media (min-width: 640px) {
  .tiles--two { grid-template-columns: repeat(2, 1fr); }
}

/* At 123px there is not room for two specs side by side, so they stack. The
   pills also lose their horizontal padding — at this size the label needs the
   width more than the pill needs the shape. */
.tiles--two .specs li { padding-inline: 4px; font-size: 14px; }

/* The specs inside each card: TWO per row on a phone, not one.

   Flex-wrap stacked them one per line — three lines of pill plus a sentence
   made each card four rows tall, which is what made the pair feel long. A
   two-column grid halves that. The third spec spans both columns because it
   is the longest and would otherwise force the grid wider than the card. */
.tiles--two .specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.tiles--two .specs li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  text-align: center;
}

.tiles--two .specs li:nth-child(3) { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .tiles--two .specs { grid-template-columns: 1fr; gap: 4px; }
  .tiles--two .specs li { padding: 3px 6px; grid-column: 1 / -1; }
}

/* Compact: the sentence sits under the specs rather than being separated by
   the full card gap, so the whole card is title, specs, one line. */
/* Square, not a letterbox. `aspect-ratio` is a preferred size, not a cap —
   the card is square when the content fits and grows taller when it does
   not, so a longer description can never be clipped to hold the shape. */
.tiles--two .tile {
  gap: 8px;
  padding: 12px;
  aspect-ratio: 1 / 1;
  justify-content: center;
  /* `aspect-ratio` resolves in BOTH directions. Without pinning the width,
     a card whose content ran to 250px tall asked to be 250px WIDE — and at
     390px that pushed the page to 542px of horizontal overflow. Pinning the
     width leaves the ratio driving height only, which is all it was for. */
  width: 100%;
  min-width: 0;
}
@media (min-width: 640px) { .tiles--two { gap: 12px; } }
.tiles--two .tile p { margin-top: 2px; }

/* The not-yet-live marker sits in the third spec slot rather than beside the
   title. Next to the title it wrapped onto a second line and made that one
   card 30px taller than the other two, which breaks the whole point of a row
   of matching cards. Here it costs no height at all. */
.specs__soon {
  border-style: dashed;
  color: var(--muted);
}

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tile h3 { margin: 0; font-size: 17px; font-weight: 600; }
.tile p { margin: 0; color: var(--muted); }

/* Pushed to the bottom so every tile's link sits on the same line however
   long the copy above it runs. */
.tile__go {
  margin-top: auto;
  padding-top: 8px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
}

/* Not-yet-live tiles read quieter and carry a label. A greyed-out tile with
   no explanation looks broken; the flag is what makes it deliberate. */
.tile--soon { opacity: .75; }

.flag {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  /* 14px, not 12. DESIGN_TRUTHS calls 14 a floor, not a step, and the Rule
     of 3 failed this on the first run. A label small enough to be missed is
     worse than no label — the whole job of this pill is to stop somebody
     trying to book a service that is not live. */
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
}

.specs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.specs li {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
}

/* --- what is included --- */

.included {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.included li {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--touch);
}

.included li:last-child { border-bottom: 0; }

/* A drawn tick, so it does not depend on an emoji font rendering the same
   way twice. */
.included li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
  margin-top: -4px;
}

@media (min-width: 640px) {
  .included { grid-template-columns: repeat(2, 1fr); }
  .included li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* --- footer columns --- */

/* Three columns at every width, including 390px. Stacking them turned a
   short footer into a long scroll of near-identical links, and the labels
   here are all one or two words — they fit. The gap tightens on a phone so
   the columns keep their own space rather than colliding. */
.footcols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
  width: 100%;
}

@media (min-width: 560px) {
  .footcols { gap: 24px; }
}

/* At 390px a three-column footer has roughly 110px per column, so the links
   wrap rather than truncate — they need to stay readable, not stay on one
   line. */
@media (max-width: 559px) {
  .footcols a {
    line-height: 1.3;
    padding-block: 10px;
    align-items: flex-start;
  }
}

.footcols h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .02em;
}

.footcols a {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  color: var(--muted);
  text-decoration: none;
}

.footnote {
  width: 100%;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* ==================================================== LAYOUT BY WIDTH

   One page, three genuinely different jobs — and the failure this fixes is
   that all three were being served the same narrow column.

     mobile   an app: full-bleed cards, one column, a persistent action bar
     tablet   an app with room: two columns, same chrome
     desktop  a landing page: wide, multi-column, art beside the copy

   DESIGN_TRUTHS: the storefront and the console share a palette and a family,
   not a spacing rhythm. The same applies across widths.
   ==================================================================== */

/* --- the hero --- */

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  padding-block: clamp(32px, 8vw, 72px) 0;
}

/* Below 900px the photo sits under the copy and is capped, so it does not
   push the buttons below the fold. On a phone the first thing you can reach
   must be an action, not a picture. */
.hero__art {
  margin: 0;
  /* `width: 100%` is load-bearing. `margin-inline: auto` takes a grid item
     out of `stretch` and sizes it to its content — and the image inside is
     `width: 100%` of that, which is circular and collapses to roughly the
     intrinsic width. The photo rendered at about 150px on a 390px screen
     because of it. */
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}

.hero__art img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  /* A photograph is the one thing on this page that is not in the palette.
     Warming it slightly and pulling the saturation back stops it fighting
     the ivory-on-near-black everything else is built from. */
  filter: saturate(.85) contrast(1.04);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    padding-block: clamp(48px, 6vw, 96px) 16px;
  }

  .hero__art { max-width: none; }

  /* Tall on desktop, where it is half the hero and has the room to be a
     photograph rather than a strip. */
  .hero__art img { height: clamp(300px, 30vw, 400px); }
}

/* --- sections use the width instead of ignoring it --- */

@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }

  /* Capped rather than filling the column. At 251px the pair was the heaviest
     object in the section and pulled against the photograph opposite; the
     columns stay equal, the cards just do not have to use all of one. Left
     aligned so they sit under the heading rather than drifting to the middle.
     This is the ONLY place the desktop width of these cards is set — there
     were two, and the later one silently won. */
  .tiles--two {
    /* Three equal shares of the copy column, so every card is the same width
       by construction rather than by three caps that would drift apart the
       moment one label changed. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* The three- and four-card explainer lists. `auto-fit` rather than a fixed
     count so a section with three cards fills the row and one with four
     still wraps sensibly, without a per-section override. */
  ul.plain { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

  /* Four across, two clean rows of four. At three the eighth item left a
     ragged final row and the last-row border rule stopped lining up with an
     actual row. */
  .included { grid-template-columns: repeat(4, 1fr); }
  .included li:nth-last-child(-n + 4) { border-bottom: 0; }

  section { margin-top: clamp(56px, 6vw, 96px); }
}

@media (min-width: 640px) and (max-width: 899px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  ul.plain { grid-template-columns: repeat(2, 1fr); }
}

/* --- the phone and tablet action bar ---

   The app signal that matters most on a marketing page: the primary action
   is always within thumb reach, pinned, rather than something you scroll back
   up to find. Hidden on desktop, where the hero CTA and the top bar are both
   permanently visible anyway. */

.actionbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 10px var(--pad);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.actionbar .cta {
  /* `1 1 0` not `1`: with `flex: 1` the basis is 0% but the two labels have
     different intrinsic widths, and the longer one was wrapping to two lines
     beside a one-line neighbour. Equal basis plus nowrap makes them the same
     object twice. */
  flex: 1 1 0;
  min-width: 0;
  margin-top: 0;
  min-height: 48px;
  padding-inline: 8px;
  font-size: 15px;
  white-space: nowrap;
  /* If a label ever does outgrow its half, it truncates rather than silently
     making one button taller than the other. */
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- back to the app, when the app sent you here ---

   Injected by menu.js only when a ?from= path is present, so it never appears
   for somebody who arrived from a search result or a forwarded link — they
   have nothing to go back to and a dead arrow is worse than none. */
.topbar__back {
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  margin-inline-end: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}

/* --- and when it is allowed to appear ---

   At the top of the page the hero already shows the same two actions, so a
   pinned bar under them put four buttons on a phone screen at once and made
   the fold look like a toolbar demo. The bar is therefore parked off-screen
   while the hero CTAs are visible and slides up the moment they scroll away,
   which is also when it starts being useful.

   `visibility` rides along with the transform so a parked bar is not a
   tab stop — a transform alone still leaves the two links focusable, and a
   keyboard user would have been sent to a button they cannot see. The delay
   on the way out is the transform duration, so it disappears only once it
   has finished sliding.

   Nothing here applies without JavaScript: the class is added by script, so
   a page with no JS keeps the bar exactly as it was. */

.actionbar.is-parked {
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 220ms ease, visibility 0s linear 220ms;
}

.actionbar {
  transform: translateY(0);
  visibility: visible;
  transition: transform 220ms ease, visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
  .actionbar,
  .actionbar.is-parked { transition: none; }
}

/* The page needs room to scroll past a fixed bar, or the footer sits under
   it forever. The room is reserved whether or not the bar is parked, so
   arriving at the bottom of the page does not shuffle the footer. */
body { padding-bottom: 84px; }

@media (min-width: 900px) {
  .actionbar { display: none; }
  body { padding-bottom: 0; }
}

/* A drawer must sit above the action bar, not behind it. */
.drawer { z-index: 50; }

/* ============================================ PHOTOGRAPHY IN SECTIONS

   Alternating image-and-copy blocks, the shape the reference uses to keep a
   long page from becoming a wall of cards. One column on a phone with the
   image capped, two from 900px up.
   ==================================================================== */

.split { display: grid; gap: 24px; }

.split__art {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}

.split__art img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  filter: saturate(.85) contrast(1.04);
}

@media (min-width: 900px) {
  .split {
    /* Equal. The earlier weighted ratios were an attempt to give the cards
       room by taking it from the photograph, and they only ever moved the
       imbalance around. An even split is what the section reads as, and the
       cards get their size from the column rather than from a thumb on the
       scale. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }

  /* Flipped so consecutive blocks do not stack their images down one edge —
     an alternating rhythm is what stops a long page reading as a list.

     The template has to be reversed with it. `order` moves the art to the
     second POSITION, but the columns keep their declared widths — so on a
     flipped block the copy landed in the narrow column and the two cards in
     it were squeezed to about 130px each, wrapping "4 seats" inside its own
     pill. The copy carries two cards; it gets the wide column either way. */
  .split--flip .split__art { order: 2; }

  .split__art img { height: clamp(240px, 24vw, 320px); }
}

/* A section's copy still needs its own reading measure inside the column. */
.split__copy > .sub { max-width: 48ch; }

/* Tighter cards when they sit in a narrower column beside an image. */
.plain--tight .card { padding: 16px 18px; }
.plain--tight .card h3 { font-size: 16px; }

/* --- the full-width shot --- */

.wideshot {
  margin: 0 0 24px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}

.wideshot img {
  display: block;
  width: 100%;
  height: clamp(150px, 20vw, 240px);
  object-fit: cover;
  filter: saturate(.85) contrast(1.04);
}

/* ==================================================== THE FLEET CARDS

   Rebuilt because the previous version put them inside a split's copy
   column — about 150px each — where the spec pills wrapped one per line and
   the two cards ended up visibly different heights. Full width, two up, and
   the specs are a definition list rather than loose pills: a label above a
   value aligns across both cards by construction, which is what "4 / 2 /
   Dzire" against "6 / 4 / Ertiga" needs in order to be comparable at a
   glance. That comparison is the entire job of this section.
   ==================================================================== */

.fleet {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .fleet { grid-template-columns: repeat(2, 1fr); }
}

.fleetcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fleetcard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.fleetcard h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }

.fleetcard__seats {
  flex: none;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
}

.fleetcard p { margin: 0; color: var(--muted); }

/* Three equal columns, so the two cards line up row for row. `margin-top:
   auto` pins the spec block to the bottom, which keeps them aligned even when
   one card's sentence wraps and the other's does not. */
.fleetspec {
  margin: auto 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.fleetspec div { display: grid; gap: 2px; min-width: 0; }

.fleetspec dt {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.fleetspec dd {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  overflow-wrap: anywhere;
}

/* --- the service tiles, aligned ---

   "Hourly & daily" wrapped its COMING SOON flag onto a second line while
   "Outstation" kept it inline, so the two headings sat at different heights.
   The flag becomes its own row, which aligns every tile whatever the name
   length. */
.tile h3 { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.flag { margin-inline-start: 0; }

/* ================================================ MOBILE OPTIMISATION

   Measured on a 390px viewport before any of this: 6.7 screens tall and
   600KB over the wire, on the connection an airport gives you.

   The images now ship a 760px variant alongside the full one, which the
   browser picks using the device's own pixel ratio — a phone was downloading
   roughly double what its screen could resolve. That is 550KB down to 276KB
   with nothing visible changing.

   The rest is vertical rhythm. Desktop spends space because it has it; a
   phone charges for it in scrolling, and this page was charging a lot.
   ==================================================================== */

@media (max-width: 639px) {
  /* Sections were separated by up to 72px. At this width that is a fifth of
     a screen of nothing, repeated eight times. */
  section { margin-top: 40px; }

  .hero { padding-block: 24px 0; gap: 20px; }

  /* The tiles and explainer cards carry a heading and two lines. 20px of
     padding around that is desktop generosity. */
  .card,
  .tile { padding: 16px; }

  ul.plain,
  .tiles { gap: 12px; }

  .sub { margin-bottom: 14px; }

  /* The included list: 14px per row over six rows, plus the section, adds up
     to most of a screen on its own. */
  .included li { padding: 12px 16px; min-height: 0; }

  /* Photographs are supporting material on a phone, not the subject. Shorter
     here buys back most of a screen across four of them. */
  .split__art img { height: 160px; }
  .wideshot img { height: 150px; }
  .hero__art img { height: 180px; }

  /* NOT the footer links. They were dropped to 40px here to save a little
     height and the Rule of 3 failed it on the next run: 44px is a floor, and
     a floor does not bend for vertical rhythm. The footer stays as it was. */
}

/* --- the account buttons: one on a phone, two on desktop ---

   At 390px "Log in" and "Sign up" plus the menu button left the wordmark
   about 90px, and three controls in a row that narrow is a row of things you
   might miss rather than two you can choose between. They go to the same
   flow anyway, so a phone gets one door.

   Display-swapped rather than one anchor relabelled, because the pair have
   different destinations — `?new=1` greets someone without an account
   differently — and the single button cannot carry both. */
.account--solo { display: none; }

@media (max-width: 639px) {
  .account--solo { display: inline-flex; }
  .account--pair { display: none; }
}

/* --- the hero pair, side by side on a phone ---

   They were stacking, which pushed the photograph and everything under it
   down by a whole button. Side by side they also read as what they are: two
   ways into the same thing, not a primary action with an afterthought under
   it. `flex: 1 1 0` with `min-width: 0` so they share the row evenly and
   neither can force an overflow. */
@media (max-width: 639px) {
  .actions {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .actions .cta {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 10px;
    font-size: 15px;
    /* nowrap and a fixed height so the two are the same object twice. The
       longer label was wrapping and making one button 2px taller than its
       neighbour, which is exactly the kind of near-miss that reads as sloppy
       without being obvious enough to name. */
    white-space: nowrap;
    height: 48px;
    min-height: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: center;
    text-align: center;
  }
}

/* ============================================ THE MOBILE HERO BANNER

   On a phone the photograph stops being a block under the copy and becomes
   the ground the copy sits on. Two reasons that is the right shape here:

     1. It buys back a whole screen. The image was ~180px of vertical space
        directly below text that had already used ~300px, so the first thing
        under the fold was more hero.
     2. It is the shape the headline wants. "A car that is already waiting
        when you land" over a car waiting at a kerb is one statement; the
        same words above a picture are two.

   Desktop is untouched — there the two columns already sit side by side and
   a banner would be a downgrade.

   THE TEXT GOES LIGHT IN BOTH LOOKS. The scrim is dark whatever the theme,
   so the ink over it cannot follow the theme without becoming near-black on
   near-black in the light look. This is the same exception the app's hero
   makes, for the same reason.
   ==================================================================== */

@media (max-width: 639px) {
  .hero {
    position: relative;
    isolation: isolate;
    /* Full bleed: the banner runs to both screen edges while the copy keeps
       its gutter, which is what makes it read as a banner rather than a
       large card. */
    margin-inline: calc(var(--pad) * -1);
    /* 200px of image above the copy pushed the buttons to the very bottom
       of the fold and left the whole first screen as one photograph. Enough
       to establish the car, not enough to be the entire screen. */
    padding: 112px var(--pad) 26px;
    overflow: hidden;
  }

  .hero__art {
    position: absolute;
    inset: 0;
    z-index: -1;
    margin: 0;
    max-width: none;
    border-radius: 0;
    background: none;
  }

  .hero__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Biased to the right so the car stays in frame when the crop is tall
       and narrow — centred, this composition cuts to an empty road. */
    object-position: 68% center;
  }

  /* The scrim. Heavier at the bottom, where the copy is, and lighter at the
     top so the photograph is still visible as a photograph. Without this the
     headline sits on whatever the image happens to be doing behind it, which
     is legible in a screenshot and not on a bright pavement. */
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
      to bottom,
      rgb(8 9 10 / 35%) 0%,
      rgb(8 9 10 / 62%) 42%,
      rgb(8 9 10 / 88%) 100%
    );
  }

  .hero__copy { position: relative; }

  .hero__copy .mark { color: #C9C6BF; }
  .hero__copy h1 { color: #F6F4F0; }
  .hero__copy .lede { color: #D6D3CC; }
  .hero__copy .note { color: #B9B6AE; }

  /* The outlined action needs its own border and ink over a photograph; the
     theme border is a hairline meant for a flat surface. */
  .hero .cta--quiet {
    color: #F6F4F0;
    border-color: rgb(255 255 255 / 45%);
    background: rgb(255 255 255 / 8%);
  }
}

/* --- every section image becomes a banner on a phone ---

   The hero already runs edge to edge; these were still rounded cards inset
   by the gutter, so the page alternated between two treatments of the same
   thing. Full bleed everywhere is one language, and at this width it is also
   simply more picture per pixel of scroll.

   The heading that follows keeps its gutter, which is what stops the block
   reading as a floating image and starts it reading as a banner with a
   caption under it. */
@media (max-width: 639px) {
  .wideshot,
  .split__art {
    margin-inline: calc(var(--pad) * -1);
    border-radius: 0;
  }

  .wideshot { margin-bottom: 18px; }

  .wideshot img,
  .split__art img { height: 190px; }
}

/* ============================================= THE BANNER SLIDESHOW

   Both photographs share the hero banner on a phone and cross-slide between
   them. Desktop shows only the first, beside the copy — a carousel next to a
   paragraph is a distraction rather than a feature, and there the second
   image already has its own section further down.

   CSS keyframes rather than JavaScript: two slides on a fixed cycle need no
   state, no timer to clean up, and nothing to go wrong if a script fails to
   load. The second slide is simply the same animation started halfway
   through.
   ==================================================================== */

/* Desktop and tablet: one image, as before. */
.hero__slide:nth-child(2) { display: none; }

@media (max-width: 639px) {
  .hero__art { position: absolute; inset: 0; }

  .hero__slide {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroSlide 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }

  /* Each slide is cropped to its OWN subject. One shared value was tuned for
     the car in the first photograph, and it cut the driver and the passenger
     out of the second entirely — leaving a building, which is not a picture
     of anything this business does. The banner is portrait and both photos
     are landscape, so cover discards about a third of the width: WHICH third
     is the whole question. */
  .hero__slide:nth-child(1) { object-position: 52% center; }
  .hero__slide:nth-child(2) { object-position: 40% center; }

  /* `display: block` is repeated here on purpose. The desktop rule that
     hides this slide is `.hero__slide:nth-child(2)`, which is MORE specific
     than the `.hero__slide` above — so setting display on the class alone
     left the second slide hidden on mobile and the banner never changed. */
  .hero__slide:nth-child(2) {
    display: block;
    animation-delay: 6s;
  }
}

@keyframes heroSlide {
  0%   { opacity: 0; transform: translateX(7%); }
  4%   { opacity: 1; transform: translateX(0); }
  46%  { opacity: 1; transform: translateX(0); }
  50%  { opacity: 0; transform: translateX(-7%); }
  100% { opacity: 0; transform: translateX(-7%); }
}

/* Motion sickness is a real condition and this is how people say so. The
   banner falls back to the first image, held still — not to a slideshow that
   merely moves more slowly. */
@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; }
  .hero__slide:first-child { opacity: 1; }
  .hero__slide:nth-child(2) { opacity: 0; }
}

/* The second image now opens the banner, so its own section would show it
   twice within one screen of scrolling. */
@media (max-width: 639px) {
  #how .wideshot { display: none; }
}

/* ================================ DESKTOP CROPS — MOBILE UNTOUCHED

   Everything here is inside `min-width: 640px`. The phone layout is finished
   and must not move.

   Measured at 1440px before this:

     wideshot box aspect 4.52  vs  photo 1.29   -> keeps ~28% of the height
     hero box aspect     1.28  vs  photo 1.17   -> centred on the wheels

   A 4.5:1 letterbox through a 1.3:1 photograph is not a crop, it is a slice,
   and `cover` takes that slice from the middle — which is where people's legs
   are and their faces are not. Two fixes: give the band enough height that
   the slice is a composition again, and aim it at the subject rather than at
   the vertical centre.
   ==================================================================== */

@media (min-width: 640px) {
  /* Aligned to the content column, like the cards above and below it, and
     rounded like every other image. The photograph is cropped to this exact
     box aspect, so matching the column costs nothing. */

  .wideshot img { height: 240px; }

  /* Nothing to aim any more: the crop IS the composition. */
  #how .wideshot img { object-position: center; }
  #included .wideshot img { object-position: center 55%; }

  /* The car sits in the upper half of its frame; centred, the box cropped to
     the wheels and the road. */
  .hero__slide:nth-child(1) { object-position: center 36%; }

  #fleet .split__art img { object-position: center 45%; }
  #driver .split__art img { object-position: center 30%; }
}

/* ============================================ SESSION-AWARE CHROME

   Which account control is drawn depends on `data-session` on <html>, set
   before first paint from a localStorage hint and corrected against
   /api/auth/me/ a moment later.

   Done in CSS off a root attribute rather than by scripting `style.display`,
   so the correct chrome is in the FIRST frame. A returning visitor should
   never watch "Sign up" render and then swap to their account — that reads as
   the site having forgotten them.

   `data-session` may be absent entirely if the inline snippet failed. Both
   selectors below therefore key off `="in"` and its negation rather than
   assuming the attribute exists, so the anonymous chrome is what shows when
   nothing is known. Erring towards "signed out" is right: the worst case is
   a signed-in visitor sees a Log in button, taps it, and is bounced straight
   through by their live cookie.
   ==================================================================== */

.account--in { display: none; }

:root[data-session="in"] .account--solo,
:root[data-session="in"] .account--pair { display: none; }

:root[data-session="in"] .account--in { display: inline-flex; }

/* The drawer's sign-out row is a link, so it needs the flex display the
   other rows get rather than inline-flex. */
:root[data-session="in"] a.drawer__link.account--in { display: flex; }

.drawer__link--out { color: var(--muted); }

.drawer__link--out[aria-busy="true"] { opacity: .55; pointer-events: none; }

/* ===================================================== THE CAR CARDS

   REFINED 2026-10-19. Replaces the `.tiles--two` pills in #fleet (those rules
   stay for the next review & cleanup session). On a real 360px phone the
   pills wrapped to "4 / seats"; a label above a value has nothing to wrap.

   Phone: one card per row, name and models on one line. From 640px: three
   equal cards in a row, so the third is never stranded alone.
   ==================================================================== */

.carlist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

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

.carcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.carcard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.carcard h3 { margin: 0; font-size: 17px; font-weight: 600; }

.carcard__models { font-size: 14px; color: var(--muted); }

/* In a three-up row the name takes the whole line and the models go under
   it; side by side they would squeeze "Premium sedan" onto two lines. */
@media (min-width: 640px) {
  .carcard__head { flex-direction: column; align-items: flex-start; }
}

.carcard__specs {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.carcard__specs div { display: grid; gap: 2px; min-width: 0; }

.carcard__specs dt { font-size: 14px; color: var(--muted); white-space: nowrap; }

.carcard__specs dd { margin: 0; font-size: 17px; font-weight: 600; }

.carcard .tile__go { padding-top: 0; }
