/* Tokens (palette, type stack, @font-face) live in tokens.css, loaded before
   this stylesheet — see site/templates/base.html.

   v3 "Open Road" (2026-09-05): the marketing surface trades the paper atlas
   for the road's own materials — sign-blue enamel, guide signs, the real map,
   a photographed interstate. Reading pages (docs, blog, privacy) keep the
   paper layout under the new chrome. Direction contract: DESIGN.md. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }

body {
  margin: 0;
  /* v3 reading ground: warm porcelain with the faint brushed grain the
     exit-to-exit section introduced; the homepage overrides to enamel. */
  background-image:
    repeating-linear-gradient(92deg, rgb(120 105 70 / 0.03) 0 1px, transparent 1px 5px),
    linear-gradient(170deg, var(--porcelain) 0%, var(--porcelain-lo) 100%);
  background-attachment: scroll;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}
/* The homepage lives on enamel: a brushed sign-blue ground every home section
   either paints over or deliberately interrupts (navy band, porcelain). */
body.home {
  background-image:
    repeating-linear-gradient(92deg, rgb(255 255 255 / 0.022) 0 1px, transparent 1px 4px),
    linear-gradient(170deg, var(--enamel-hi) 0%, var(--enamel) 30%, var(--enamel-deep) 100%);
}

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--red); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
body.home :focus-visible, .masthead :focus-visible, .footer :focus-visible {
  outline-color: var(--plate-cream);
}

.skip { position: absolute; left: -9999px; background: var(--blue); color: #fff;
  padding: 0.6rem 1rem; font-weight: 600; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.shell--wide { width: min(100% - 2.5rem, 82rem); }

/* ---------- masthead: an enamel sign band, site-wide ---------- */

.masthead {
  position: sticky; top: 0; z-index: 5;
  background-image:
    repeating-linear-gradient(92deg, rgb(255 255 255 / 0.02) 0 1px, transparent 1px 4px),
    linear-gradient(170deg, var(--enamel-hi), var(--enamel-deep));
  box-shadow: 0 2px 8px rgb(0 16 40 / 0.3);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.35rem 1.5rem; min-height: 4rem;
}
.wordmark { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.wordmark__tile {
  display: block; width: 2.6rem; height: 2.6rem; flex: none;
  border-radius: 0.55rem; object-fit: cover;
  box-shadow: 0 2px 6px rgb(0 10 32 / 0.5);
}
.wordmark__text {
  color: var(--plate-cream); font-weight: 800; letter-spacing: 0.14em;
  font-size: 0.95rem; text-transform: uppercase;
  text-shadow: -1px -1px 0 rgb(214 228 255 / 0.28), 1px 2px 2px rgb(0 10 32 / 0.65);
}
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.6rem; }
.nav a { color: rgb(230 238 250 / 0.85); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.nav a:hover { color: #fff; }
/* === header CTAs (#645) — everything down to the end marker is this block ===
   Three tiers of action in the corner the Android beta plate used to own
   alone, each a different material and all on one legend scale:
     "Get the app"  a page link with a hairline under it — an action, not a
                    section; it points at the beta page until Play is live.
     "Sign up"      the painted ghost outline, the hero's secondary idiom at
                    header size.
     "Log in"       the pressed cream plate — the site's one primary control
                    on enamel (DESIGN.md § CTA Plate), the same geometry and
                    pressing the beta link carried here.
   Contrast on the enamel band (#0B4A99 lit end, the worst case): link ink
   5.8:1, ghost legend 7.9:1 with a 3.4:1 outline, plate legend 10.1:1 on its
   cream. The site is light-only (DESIGN.md: it never sets data-theme), and
   the band is this blue under a dark system preference too. */
.nav--main { margin-left: auto; }
.nav__app, .nav a.nav__app {
  border-bottom: 1px solid rgb(230 238 250 / 0.55);
  padding-bottom: 1px;
}
.nav a.nav__app:hover { border-bottom-color: #fff; }
/* The hairline is the sign's own separation rule: page links to the left of
   it, the account to the right. */
.nav--account {
  gap: 0.5rem 0.75rem;
  border-left: 1px solid rgb(230 238 250 / 0.28);
  padding-left: 1.4rem;
}
.nav__ghost, .nav a.nav__ghost {
  padding: 0.48rem 0.95rem; border-radius: 6px;
  border: 1.5px solid rgb(235 242 255 / 0.55);
  color: #F2F6FC; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-shadow: 0 1px 6px rgb(0 16 40 / 0.6);
}
.nav a.nav__ghost:hover { color: #fff; border-color: rgb(255 255 255 / 0.8); }
.nav__plate, .nav a.nav__plate {
  padding: 0.55rem 1.05rem; border-radius: 6px;
  background: linear-gradient(165deg, var(--plate-cream-hi), var(--plate-cream-lo));
  color: var(--plate-ink); font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 4px 10px rgb(0 10 32 / 0.45),
              inset 0 1.5px 0 rgb(255 255 255 / 0.85),
              inset 0 -2px 3px rgb(120 105 70 / 0.3);
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.5);
}
.nav a.nav__plate:hover { color: var(--plate-ink); filter: brightness(1.03); }
/* Below the width where all three tiers still fit beside the page links —
   measured, not guessed: the single row runs out of shell at about 950px — the
   band becomes two rows: the brand and the account on top, the page links (the
   app link with them) full-width underneath, separated by the same rule turned
   horizontal. No hamburger — there is nothing here worth hiding behind one. */
@media (max-width: 1000px) {
  .masthead__inner { padding-block: 0.55rem 0.6rem; min-height: 0; gap: 0.4rem 1rem; }
  .nav--main {
    order: 3; width: 100%; margin-left: 0;
    gap: 0.4rem 1.15rem; padding-top: 0.5rem;
    border-top: 1px solid rgb(230 238 250 / 0.18);
  }
  .nav--account { order: 2; margin-left: auto; border-left: 0; padding-left: 0; }
}
/* The top row tightens before it would break: without this the wordmark and
   the two controls stop sharing a line around 530px and the band grows a
   third row. */
@media (max-width: 560px) {
  .wordmark { gap: 0.5rem; }
  .wordmark__text { font-size: 0.8rem; letter-spacing: 0.1em; }
  .nav--main { gap: 0.4rem 0.9rem; }
  .nav--main a { font-size: 0.85rem; }
}
@media (max-width: 480px) {
  /* "Sign up" drops out of the narrowest header rather than crowding it: the
     plate creates the account on first use anyway, so nothing is lost but a
     second word for the same door. */
  .nav__ghost, .nav a.nav__ghost { display: none; }
  /* The legend shrinks, the press does not: the plate keeps its full height
     so it stays a thumb-sized target on a phone. */
  .nav__plate, .nav a.nav__plate { padding: 0.55rem 0.85rem; font-size: 0.75rem; }
}
/* 320px is 280px of shell, and there the wordmark and the plate stop sharing
   a line too — the band grew a third row, the plate alone on it (#672). The
   mark gives up the width: a smaller tile and a tighter legend put the two
   back on one line with room to spare. */
@media (max-width: 360px) {
  .masthead__inner { gap: 0.4rem 0.6rem; }
  .wordmark { gap: 0.45rem; }
  .wordmark__tile { width: 2.15rem; height: 2.15rem; border-radius: 0.45rem; }
  .wordmark__text { font-size: 0.72rem; letter-spacing: 0.06em; }
  .nav--main { gap: 0.4rem 0.8rem; }
}
/* === end header CTAs (#645) === */

/* ---------- hero: the photograph, the sign, the map ---------- */

.v3hero { position: relative; overflow: hidden; background: var(--enamel-deep); }
.v3hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* Two scrims: a left gradient the copy reads against, and a bottom fade that
   melts the photograph into the enamel page. */
.v3hero__scrim { position: absolute; inset: 0; pointer-events: none; }
.v3hero__scrim::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--scrim) 0%, rgb(4 16 36 / 0.38) 38%, rgb(4 16 36 / 0.06) 68%);
}
.v3hero__scrim::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(0 43 87 / 0) 66%, rgb(0 43 87 / 0.92) 100%);
}
.v3hero__grid {
  position: relative; display: grid;
  grid-template-columns: minmax(20rem, 33rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 4.5rem) 1rem;
  align-items: start;
}
.v3hero__copy { display: flex; flex-direction: column; gap: 1.5rem; }
.v3hero__lede {
  margin: 0; max-width: 46ch;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.1rem);
  color: rgb(242 246 252 / 0.95);
  text-shadow: 0 1px 10px rgb(0 16 40 / 0.7);
}
.v3hero__ctas { margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.cta-plate {
  display: inline-block; padding: 0.9rem 1.7rem; border-radius: 6px;
  background: linear-gradient(165deg, var(--plate-cream-hi), var(--plate-cream-lo));
  color: var(--plate-ink); font-weight: 800; font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 6px 16px rgb(0 10 32 / 0.5), 0 2px 4px rgb(0 10 32 / 0.4),
              inset 0 2px 0 rgb(255 255 255 / 0.9),
              inset 0 -2.5px 3px rgb(120 105 70 / 0.35);
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.5);
}
.cta-plate:hover { color: var(--plate-ink); filter: brightness(1.03); }
.cta-ghost {
  display: inline-block; padding: 0.85rem 1.5rem; border-radius: 6px;
  border: 1.5px solid rgb(235 242 255 / 0.55);
  color: #F2F6FC; font-weight: 700; font-size: 1rem; text-decoration: none;
  text-shadow: 0 1px 6px rgb(0 16 40 / 0.6);
}
.cta-ghost:hover { color: #fff; border-color: rgb(255 255 255 / 0.8); }
.v3hero__right { display: flex; flex-direction: column; padding-top: 1.375rem; min-width: 0; }
.v3hero__caption {
  position: relative; margin: 0.6rem 0 0;
  text-align: right;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgb(255 255 255 / 0.85);
  text-shadow: 0 1px 6px rgb(10 20 35 / 0.6);
}

/* ---------- the guide sign (v2's signature, kept and promoted) ----------
   Green field, white legend, inset white border, exit tab: painted with the
   fixed --sign-* tokens — a sign is retroreflective and looks the same at
   night. The 12px radius stays the one sanctioned break from the 3px rule. */

.bgs {
  display: flex; flex-direction: column; align-items: stretch;
  animation: sign-in 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
  filter: drop-shadow(0 16px 34px rgb(0 10 32 / 0.5));
}
@keyframes sign-in {
  from { opacity: 0; transform: translateY(-4px); }
}
.bgs__tab {
  align-self: flex-end; margin: 0 clamp(1.25rem, 4vw, 2.25rem) 0 0;
  background: var(--sign-green); color: var(--sign-white);
  border: 2px solid var(--sign-white); border-bottom: 0;
  border-radius: 6px 6px 0 0;
  padding: 0.32rem 0.85rem 0.42rem;
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; line-height: 1;
}
.bgs__panel {
  position: relative;
  display: flex; align-items: center;
  gap: clamp(1.1rem, 3vw, 1.6rem);
  background: var(--sign-green); color: var(--sign-white);
  border-radius: 12px;
  padding: clamp(1.4rem, 3.5vw, 1.9rem) clamp(1.3rem, 3.5vw, 2rem);
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.5rem);
}
.bgs__panel::after {
  content: ""; position: absolute; inset: 6px;
  border: 2px solid var(--sign-white); border-radius: 8px;
  pointer-events: none;
}
.bgs__shield-img { flex: none; display: block; height: 1.8em; width: auto; }
.hero__title {
  margin: 0;
  font-size: inherit;
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.05;
  text-wrap: balance;
}
@media (max-width: 560px) {
  .bgs__panel { flex-direction: column; align-items: flex-start; gap: 0.9rem; font-size: 1.7rem; }
  .bgs__shield-img { height: 2.9rem; }
}

/* ---------- the map: cream country floating on the photograph ---------- */

.v3map {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 620;
  min-width: 0;
}
.hero-map { display: block; width: 100%; height: 100%; }
/* The coverage overlay is its own image so the page can animate the fill-in
   (an <img> SVG never runs its internal CSS animations). */
.hero-map--driven {
  position: absolute; inset: 0;
  opacity: 0;
  animation: fill-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}
.hero-map .hm-states {
  filter: drop-shadow(0 0 10px rgb(255 255 255 / 0.95))
          drop-shadow(0 8px 24px rgb(0 10 32 / 0.45));
}
.hero-map .hm-states path { fill: var(--map-land); stroke: #fff; stroke-width: 1.4; }
.hero-map .hm-routes path {
  fill: none; stroke: var(--map-route); stroke-width: 1;
  stroke-linecap: round; stroke-linejoin: round;
}
/* The fill-in: driven coverage arrives after the sign settles. Manual rides
   the same moment; provenance is shape (dashes), never colour alone. */
@keyframes fill-in { to { opacity: 1; } }

.v3map__shield {
  position: absolute; height: 28px; width: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 4px rgb(0 10 32 / 0.5));
}
.v3map__shield--lg { height: 32px; }
/* One class per anchor, in route order across the map. These were `style`
   attributes on the ten <img>s until #553; a style attribute cannot be allowed
   by a CSP hash, so ten static coordinates were buying the whole site
   `style-src 'unsafe-inline'`. The numbers are the projection-true anchors
   from site/tools/build_hero_map.py's output and move only with the map. */
.v3map__shield--i5  { left:  9.4%; top: 57.6%; }
.v3map__shield--i90 { left: 52.9%; top: 30.9%; }
.v3map__shield--i80 { left: 41%;   top: 41.4%; }
.v3map__shield--i70 { left: 56.2%; top: 48.2%; }
.v3map__shield--i35 { left: 50%;   top: 56.5%; }
.v3map__shield--i25 { left: 35.6%; top: 48.1%; }
.v3map__shield--i40 { left: 57.5%; top: 66%;   }
.v3map__shield--i75 { left: 72.8%; top: 56.7%; }
.v3map__shield--i10 { left: 45.2%; top: 81.4%; }
.v3map__shield--i95 { left: 88%;   top: 37%;   }

.v3legend {
  position: absolute; right: -0.25rem; bottom: 0.25rem;
  display: flex; flex-direction: column; gap: 0.45rem;
  margin: 0; padding: 0.75rem 1rem;
  border-radius: 9px; background: rgb(255 255 255 / 0.95);
  border: 1px solid #E2E7EF;
  box-shadow: 0 8px 24px rgb(0 10 32 / 0.3);
}
.v3legend__row { display: flex; }
.v3legend__row dt {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.75rem; font-weight: 700; color: #14202E;
}
.v3legend__row:not(:first-child) dt { font-weight: 600; color: #2B3A4E; }
.v3legend__row dd { margin: 0; }
.v3legend__swatch { width: 24px; height: 4px; border-radius: 2px; flex: none; }
.v3legend__swatch--gps { background: var(--map-driven); }
.v3legend__swatch--manual {
  background: repeating-linear-gradient(90deg, var(--map-driven) 0 6px, transparent 6px 10px);
}
.v3legend__swatch--none { background: var(--map-route); }

@media (max-width: 900px) {
  .v3hero__grid { grid-template-columns: 1fr; }
  /* One column means every line sits on the photograph: deepen the scrim. */
  .v3hero__scrim::before {
    background: linear-gradient(180deg, rgb(4 16 36 / 0.66) 0%, rgb(4 16 36 / 0.5) 55%, rgb(4 16 36 / 0.35) 100%);
  }
  .v3map { max-width: 34rem; width: 100%; }
  .v3hero__caption { text-align: left; }
}

/* ---------- figures: the navy band ---------- */

.figures-band {
  background: var(--navy-band);
  box-shadow: 0 -8px 24px rgb(0 10 32 / 0.35);
}
.figures {
  padding-block: clamp(2rem, 4.5vw, 2.9rem);
  display: grid; gap: 1.75rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.figure__value {
  font-family: var(--mono); font-weight: 700; color: #fff;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  letter-spacing: -0.02em; line-height: 1;
}
.figure__value--signed { display: flex; align-items: center; gap: 0.55rem; }
.figure__shield-img { display: block; height: 2.1rem; width: auto; }
.figure__label { margin-top: 0.5rem; font-size: 0.82rem; line-height: 1.45; color: var(--cream-dim); }

/* ---------- the three blocks, set as full sign panels ----------
   Each claim on the sign class whose road meaning matches it: guidance green
   for matching, services blue for works-anywhere, recreation brown for
   bring-your-own. Fixed sign inks; white inset border; real panels now, not
   chips. */

.blocks {
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.signpanel {
  border-radius: 12px;
  box-shadow: 0 12px 30px rgb(0 10 32 / 0.45), inset 0 1.5px 0 rgb(255 255 255 / 0.22);
}
.signpanel--green { background: var(--sign-green); }
.signpanel--blue  { background: var(--sign-blue); }
.signpanel--brown { background: var(--sign-brown); }
.signpanel__inner {
  margin: 8px; border: 2px solid var(--sign-white); border-radius: 8px;
  padding: 1.5rem 1.6rem 1.65rem; height: calc(100% - 16px);
}
.signpanel__title {
  margin: 0 0 0.7rem; color: var(--sign-white);
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15;
}
.signpanel p { margin: 0; color: rgb(255 255 255 / 0.92); font-size: 0.95rem; line-height: 1.55; }

/* ---------- exit to exit: porcelain section with the phone ---------- */

.e2e {
  background-image:
    repeating-linear-gradient(92deg, rgb(120 105 70 / 0.03) 0 1px, transparent 1px 5px),
    linear-gradient(170deg, var(--porcelain) 0%, var(--porcelain-lo) 100%);
}
.e2e__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.e2e__copy { max-width: 38rem; }
.e2e__title {
  margin: 0 0 1.1rem; color: #17325B;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.015em; line-height: 1.08;
}
.e2e__copy p { margin: 0 0 1rem; color: #2B3A4E; }
.e2e__chips { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.3rem; }
.e2e__chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; color: #17325B;
}
/* The chips quote the map legend's three states. Red is the driven mile, green
   the completed route, grey the road not yet driven — painted from the tokens
   here rather than from a style attribute, for the reason above. */
.e2e__swatch { width: 22px; height: 4px; border-radius: 2px; }
.e2e__swatch--driven { background: var(--sign-red); }
.e2e__swatch--complete { background: var(--sign-green); }
.e2e__swatch--none { background: var(--map-route); }
.e2e__samplenote {
  margin-top: 0.9rem; text-align: center;
  font-family: var(--mono); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #5F7093;
}

/* The phone: the app's navy-night surfaces drawn in code. */
.phone { margin: 0; justify-self: center; }
.phone__screen {
  width: 330px; border-radius: 36px; padding: 8px;
  background: #0B1424;
  box-shadow: 0 30px 60px rgb(0 10 32 / 0.4), 0 6px 16px rgb(0 10 32 / 0.3);
}
.phone__screen > * { font-size: 1rem; }
.phone__bar, .phone__rec, .phone__signwrap, .phone__tiles, .phone__award { margin: 0 8px; }
.phone__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0.6rem 0.55rem; color: var(--night-muted);
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, var(--night-1), var(--night-1));
}
.phone__bar span { font-size: 1rem; font-weight: 700; color: var(--night-text); }
.phone__rec {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.6rem 0.75rem; border-radius: 8px; background: var(--sign-orange);
}
.phone__rec-text { display: flex; flex-direction: column; }
.phone__rec-text b { font-size: 0.9rem; font-weight: 800; color: var(--sign-ink); }
.phone__rec-text code { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; color: var(--sign-ink); }
.phone__stop {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 4.1rem; height: 2.4rem; border-radius: 6px;
  background: var(--sign-red); color: #fff; font-size: 0.85rem; font-weight: 800;
}
.phone__signwrap { position: relative; margin-top: 1.9rem; }
.phone__exittab {
  position: absolute; top: -1.4rem; right: 1.1rem;
  padding: 0.18rem 0.75rem 0.12rem;
  border-radius: 6px 6px 0 0;
  background: var(--sign-green); border: 2px solid var(--sign-white); border-bottom: 0;
  color: var(--sign-white); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.phone__sign { border-radius: 11px; background: var(--sign-green); box-shadow: 0 8px 22px rgb(0 0 0 / 0.5); }
.phone__sign-inner {
  margin: 6px; border: 2px solid var(--sign-white); border-radius: 7px;
  padding: 0.7rem 0.8rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.phone__sign-head { display: flex; align-items: center; gap: 0.7rem; }
.phone__sign-head img { height: 40px; width: auto; }
.phone__sign-route { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.5rem; }
.phone__sign-route b { font-size: 1.1rem; font-weight: 800; color: #fff; line-height: 1.1; }
.phone__sign-route i {
  font-style: normal; padding: 0.05rem 0.4rem; border-radius: 3px;
  background: #fff; color: var(--sign-ink);
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.phone__sign-route small {
  flex-basis: 100%; font-family: var(--mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgb(255 255 255 / 0.78);
}
.phone__sign-inner hr { width: 100%; margin: 0; border: 0; border-top: 1px solid rgb(255 255 255 / 0.35); }
.phone__sign-next {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.phone__sign-next > span:first-child { font-size: 0.78rem; font-weight: 700; color: #fff; }
.phone__chip {
  padding: 0.2rem 0.5rem; border-radius: 3px; white-space: nowrap;
  background: var(--sign-red); color: #fff;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.phone__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.75rem; }
.phone__tile {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.6rem 0.7rem; border-radius: 8px;
  background: var(--night-card); border: 1px solid var(--night-border);
}
.phone__tile small {
  font-family: var(--mono); font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--night-muted);
}
.phone__tile code { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; line-height: 1; color: var(--night-text); }
.phone__tile-green { color: #4CAF7D !important; }
.phone__award {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 0.75rem; margin-bottom: 8px; padding: 0.6rem 0.75rem;
  border-radius: 7px 7px 28px 28px; border-end-start-radius: 24px; border-end-end-radius: 24px;
  background: var(--sign-brown);
}
/* The achievement chip is a mono label: VOICE 7 sets capitals by a transform,
   never typed, so the markup keeps "I-70 - New route" and the screen shows
   "I-70 - NEW ROUTE", which is what Badge.forAchievement renders in the app. */
.phone__award span {
  font-size: 0.8rem; font-weight: 700; color: #F8F1E4;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.phone__award code {
  font-family: var(--mono); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: rgb(248 241 228 / 0.72);
}
/* Stacked, the phone is the only fixed-width thing on the page, and a fixed
   width is what a 320px shell (280px of it) cannot hold: its 330px set the
   grid track, pushed the copy beside it out with it, and the homepage scrolled
   sideways by 30px (#672). `minmax(0, 1fr)` stops the track taking its size
   from the widest item; the figure then has a definite width to shrink into,
   and the screen keeps 330px as a cap rather than a demand. Everything inside
   it is in rem and reflows. */
@media (max-width: 860px) {
  .e2e__grid { grid-template-columns: minmax(0, 1fr); }
  .phone { justify-self: start; width: 100%; max-width: 330px; }
  .phone__screen { width: 100%; }
  /* Below about 350px of screen the road name and the clinch chip stop
     sharing a line; the chip drops under it rather than squeezing the name
     into a three-line column. */
  .phone__sign-next { flex-wrap: wrap; }
}

/* ---------- closing: on the enamel ---------- */

.closing { padding-block: clamp(3rem, 6vw, 4.5rem); }
.closing__title {
  margin: 0 0 1rem; color: var(--plate-cream);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  font-weight: 800; letter-spacing: -0.025em;
  text-shadow: -1px -1px 0 rgb(214 228 255 / 0.22), 1.5px 2px 2px rgb(0 10 32 / 0.6);
}
.closing p { margin: 0 0 1rem; max-width: var(--measure); color: rgb(235 240 248 / 0.9); }
.closing a { color: var(--plate-cream); font-weight: 700; }
.closing a:hover { color: #fff; }

/* ---------- documents ---------- */

.doc { padding-block: 0 clamp(2.5rem, 6vw, 4rem); }
/* Full-bleed breakout: the band leaves the shell without any template change. */
.doc__head {
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 2.5rem;
  background-image:
    repeating-linear-gradient(92deg, rgb(255 255 255 / 0.022) 0 1px, transparent 1px 4px),
    linear-gradient(170deg, var(--enamel-hi) -40%, var(--enamel) 55%, var(--enamel-deep) 130%);
  color: var(--plate-cream);
}
.doc__head .doc__title {
  color: var(--plate-cream);
  text-shadow: -1px -1px 0 rgb(214 228 255 / 0.2), 1.5px 2px 2px rgb(0 10 32 / 0.55);
}
.doc__head .doc__meta { color: var(--cream-dim); }
.doc__head .doc__meta a { color: var(--plate-cream); }
.doc__head .doc__meta a:hover { color: #fff; }
.doc__head .dateline { color: var(--cream-dim); }
.doc__head .tag { color: var(--cream-dim); border-color: rgb(214 228 255 / 0.4); }
.doc__head .tag:hover { color: #fff; border-color: #fff; }
/* The milepost keeps its daylight sign face; only its seat ring adapts. */
.doc__head .milepost { outline-color: rgb(214 228 255 / 0.35); }
.doc__headrow { display: flex; gap: 1.25rem; align-items: flex-start; }
.doc__title {
  margin: 0; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}
/* Sans, not mono. Mono is for labels and numbers — eyebrows, figures, mileposts,
   captions — never for sentences, which it makes slow to read at any length. */
.doc__meta {
  margin: 0.85rem 0 0; max-width: var(--measure);
  font-size: 0.95rem; color: var(--ink-dim);
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.75rem; margin-bottom: 0.75rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
.prose h3 { margin-top: 2rem; margin-bottom: 0.5rem; font-size: 1.02rem; font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--porcelain-lo); padding: 0.1em 0.35em; border-radius: 3px; }
.prose strong { font-weight: 700; }
.prose blockquote { margin-left: 0; padding-left: 1rem; border-left: 1px solid var(--rule); color: var(--ink-dim); }
/* A figure in a post: the image sits centred and never wider than the measure;
   the caption is the same dim sans as .doc__meta, because it is a sentence. */
.prose__figure { margin: 1.75rem 0; }
.prose__figure img { display: block; width: min(100%, 28rem); height: auto; margin-inline: auto; }
.prose__figure figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--ink-dim); text-align: center; }

/* ---------- milepost ----------
   Policy versions are points along a linear reference, which is exactly what a
   milepost marks — and linear referencing is the product's own data model. Green
   field, white numerals, white border: the actual sign. Dated versions only. */

.milepost {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.1rem;
  background: var(--guide); border: 2px solid #fff;
  outline: 1px solid var(--rule);
  border-radius: 2px; padding: 0.3rem 0.5rem 0.35rem;
  font-family: var(--mono); color: #fff;
  text-decoration: none; line-height: 1; flex: none;
}
.milepost__label { font-size: 0.5rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.milepost__value { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; }

.versions { list-style: none; padding: 0; margin: 0; }
.version {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: inherit;
}
.version:hover .version__title { color: var(--blue); }
.version:hover .milepost { outline-color: var(--blue); }
.version__title { font-weight: 700; }
.version__note { font-size: 0.88rem; color: var(--ink-dim); }
.version__current {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red);
  border: 1px solid var(--red); border-radius: 2px;
  padding: 0.15rem 0.4rem; margin-left: 0.6rem; white-space: nowrap;
}

/* ---------- docs index ---------- */

.doclist { list-style: none; padding: 0; margin: 0; }
.doclist__item { border-bottom: 1px solid var(--rule); }
.doclist__link { display: block; padding: 1.15rem 0; text-decoration: none; color: inherit; }
.doclist__link:hover .doclist__title { color: var(--blue); }
.doclist__title { font-weight: 700; }
.doclist__desc { color: var(--ink-dim); font-size: 0.93rem; }

/* Two of the same idiom: a small mono label that leaves the page. .backlink
   goes back up the tree, .feedlink goes out to the feed. */
.backlink, .feedlink {
  display: inline-block; margin-top: 3rem;
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.feedlink { margin-bottom: 0; }

/* ---------- blog ----------
   No sign anywhere here. The guide sign is the hero's alone — one signature
   moment per surface, and a post is not a guidance-class destination the way
   a hero legend is. Pure atlas layer: hairline rules, a mono date column set
   like a mileage table. */

.postlist { list-style: none; padding: 0; margin: 0; }
.postlist__item { border-bottom: 1px solid var(--rule); }

.post {
  display: grid; grid-template-columns: 6.5rem 1fr;
  gap: 0.25rem 1.75rem; padding: 1.6rem 0;
}
.post__date {
  margin: 0; white-space: nowrap;
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.05em; color: var(--ink-dim);
  padding-top: 0.2rem;
}
.post__title {
  margin: 0; font-size: 1.15rem; font-weight: 700;
  letter-spacing: -0.015em; line-height: 1.3;
}
.post__title a { color: inherit; text-decoration: none; }
.post__title a:hover { color: var(--blue); }
.post__excerpt {
  margin: 0.4rem 0 0; max-width: var(--measure);
  font-size: 0.95rem; color: var(--ink-dim);
}

@media (max-width: 560px) {
  .post { grid-template-columns: 1fr; gap: 0.3rem; }
  .post__date { padding-top: 0; }
}

.dateline {
  margin: 0 0 0.75rem;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-dim);
}
.dateline__sep { margin: 0 0.5rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.tags--head { margin-top: 1rem; }
.tag {
  display: inline-block; white-space: nowrap;
  font-family: var(--mono); font-size: 0.65rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim); text-decoration: none;
  border: 1px solid var(--rule); border-radius: 2px;
  padding: 0.15rem 0.45rem;
}
.tag:hover { color: var(--blue); border-color: var(--blue); }

.postnav {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 3.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.postnav__link { flex: 1 1 12rem; text-decoration: none; color: inherit; }
.postnav__link--older { margin-left: auto; text-align: right; }
.postnav__dir {
  display: block; margin-bottom: 0.3rem;
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim);
}
.postnav__title { font-weight: 700; font-size: 0.98rem; }
.postnav__link:hover .postnav__title { color: var(--blue); }

/* ---------- beta signup form ---------- */

.signup { max-width: var(--measure); margin-top: 2.5rem; }
.signup__field { margin-bottom: 1.3rem; }
.signup__label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.signup__optional { font-weight: 400; color: var(--ink-dim); }
/* Helper text on a required field: same voice as .signup__optional, without the
   word "optional" doing the colouring's job. */
.signup__hint { font-weight: 400; color: var(--ink-dim); }
.signup__input {
  width: 100%; padding: 0.6rem 0.75rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--rule); border-radius: 2px;
}
.signup__consent {
  display: flex; align-items: baseline; gap: 0.6rem;
  margin: 1.6rem 0; font-size: 0.95rem;
}
.signup__consent input { accent-color: var(--blue); }
.signup__submit {
  font: inherit; font-weight: 700; letter-spacing: 0.01em;
  color: #fff; background: var(--blue);
  border: 0; border-radius: 2px; padding: 0.65rem 1.5rem;
  cursor: pointer;
}
.signup__submit:hover { background: var(--blue-deep); }
.signup__note { margin: 1.25rem 0 0; color: var(--ink-dim); font-size: 0.9rem; }
.signup__fail { margin: 1.25rem 0 0; color: var(--red); font-size: 0.95rem; }
.signup__done { max-width: var(--measure); margin-top: 2.5rem; font-weight: 600; }
.signup__noscript { max-width: var(--measure); margin-top: 2.5rem; color: var(--ink-dim); }

/* ---------- footer: the navy band closes every page ---------- */

.footer { background: var(--navy-band); padding-block: 2rem 2.5rem; }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
}
.footer__brand {
  margin: 0; display: inline-flex; align-items: center; gap: 0.6rem;
  color: rgb(243 239 226 / 0.9);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
}
.footer__tile { width: 1.75rem; height: 1.75rem; border-radius: 0.4rem; object-fit: cover; }
.footer__note { margin: 0; max-width: 34rem; font-size: 0.85rem; color: var(--cream-dim); }
.footer__links { margin: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.85rem; }
.footer__links a { color: var(--cream-dim); text-decoration: none; }
.footer__links a:hover { color: #fff; }

/* ---------- desktop pinning: the comp's exact vertical rhythm ----------
   At the comp's own class of width the sections hold the approved heights
   (76 + 800 + 150 + 470 + 620 + 320 + 84 = 2520); below it they stay fluid. */
@media (min-width: 1280px) {
  .masthead__inner { height: 4.75rem; }
  .v3hero { height: 50rem; }
  .v3hero__grid { padding-block: 4.6rem 0; align-items: start; }
  .figures-band { height: 9.375rem; display: flex; align-items: center; }
  .figures { padding-block: 0; width: min(100% - 2.5rem, 82rem); margin-inline: auto; }
  .blocks { height: 29.375rem; padding-block: 4.5rem 0; align-content: start; }
  .e2e { height: 38.75rem; display: flex; align-items: center; }
  .e2e__grid { padding-block: 0; }
  .closing { min-height: 20rem; display: flex; flex-direction: column; justify-content: center; padding-block: 0; }
  .footer { height: 5.25rem; padding-block: 0; display: flex; align-items: center; }
  .footer__inner { width: min(100% - 2.5rem, 82rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-map--driven { opacity: 1; animation: none; }
  .bgs { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- docs section ----------
   Added by the 2026-09-18 docs and help pass (#600, #646). Everything here is
   scoped to the docs pages (.doc--docs) or to classes only those pages emit, so
   the blog, the privacy policy and the homepage are untouched. No new world: the
   v2 paper reading page keeps its porcelain ground, hairlines and sign-blue
   links, and gains the wayfinding a help section needs. */

/* The route strip: which of the section's pages you are on, and the others. A
   wrapping list rather than a scrolling strip or a disclosure, because nothing a
   reader needs to see may sit off-screen or behind a control. */
.docsnav { margin: 0 0 1.75rem; max-width: var(--measure); }
.docsnav__list {
  display: flex; flex-wrap: wrap; gap: 0 1.1rem;
  margin: 0; padding: 0 0 0.85rem; list-style: none;
  border-bottom: 1px solid var(--rule);
}
.docsnav__item { display: flex; }
.docsnav__link {
  display: inline-block; padding: 0.75rem 0;
  font-size: 0.88rem; font-weight: 600; line-height: 1.45;
  text-decoration: none; color: var(--blue);
}
.docsnav__link:hover { color: var(--red); text-decoration: underline; }
/* The page you are on is not a link: it is the marked exit on the strip. */
.docsnav__link--here {
  color: var(--ink); font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--red);
}

/* "On this page": a disclosure, closed. On a phone the enamel band and the strip
   already cost most of a screen, and <details> needs no script (the site's CSP
   allows none). */
.doctoc { max-width: var(--measure); margin: 0 0 2rem; }
.doctoc__summary {
  padding: 0.9rem 0; cursor: pointer;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--ink-dim);
}
.doctoc__summary:hover { color: var(--blue); }
.doctoc[open] .doctoc__summary { color: var(--ink); }
.doctoc__list { margin: 0 0 0.9rem; padding-left: 1.1rem; }
.doctoc__list li + li { margin-top: 0.35rem; }
.doctoc__list a { font-size: 0.95rem; }

/* An anchored heading has to clear the sticky masthead (4–4.75rem). */
.prose h2, .prose h3 { scroll-margin-top: 5.75rem; }

/* Docs prose: the same paper column, with the section step a reader can catch at
   a glance (h2 was 1.18:1 over body) and a hairline where the subject changes. */
.doc--docs .prose > * + * { margin-top: 1.35rem; }
.doc--docs .prose h2 {
  margin-top: 3rem; padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em;
}
.doc--docs .prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc--docs .prose h3 { margin-top: 2.25rem; font-size: 1.05rem; }
.doc--docs .prose ul, .doc--docs .prose ol { padding-left: 1.2rem; }
.doc--docs .prose li + li { margin-top: 0.5rem; }
.doc--docs .doc__head .dateline { margin: 0.9rem 0 0; }

/* No docs page ships a table today: the two that did read badly at 390px, where
   a sentence-per-cell matrix scrolls away under the reader's thumb, and became
   lists. Markdown makes a table one pipe away, so the floor stays here — a
   scroll container of its own, hairlines rather than a default box. */
.tablewrap { overflow-x: auto; margin-top: 1.35rem; }
.prose table {
  border-collapse: collapse; width: 100%; min-width: 22rem;
  font-size: 0.95rem;
}
.prose th, .prose td {
  padding: 0.7rem 1rem 0.7rem 0; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.prose thead th {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim);
  border-bottom-color: var(--ink-dim);
}
.prose tbody tr:last-child th, .prose tbody tr:last-child td { border-bottom: 0; }

/* The counted network figures, from config.toml. Mono counts, sans explains —
   the homepage's figures band, translated to paper. The value is ordered above
   its label without breaking dt-before-dd, and every value in a row sits on the
   same line however many lines its label runs to. */
.docfigs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.75rem 2rem; max-width: var(--measure);
  margin: 2.5rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.docfig { display: flex; flex-direction: column; }
.docfig__value {
  order: -1; margin: 0; font-family: var(--mono); font-size: 1.6rem; font-weight: 700;
  line-height: 1; letter-spacing: -0.02em; color: var(--blue-deep);
}
.docfig__label {
  margin: 0.45rem 0 0; font-size: 0.82rem; line-height: 1.45;
  color: var(--ink-dim);
}

/* The index, grouped by the reader's question. */
.docgroup { max-width: var(--measure); margin-top: 2.75rem; }
.docgroup__title {
  margin: 0 0 0.35rem; font-family: var(--mono); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-dim);
}
.doc--docs .doclist { max-width: var(--measure); }
/* A group closes with its last row, not with a rule the next label repeats. */
.docgroup .doclist__item:last-child { border-bottom: 0; }
.doc--docs .doclist__desc { display: block; margin-top: 0.15rem; }

/* Prev/next reuses the blog's .postnav; the docs only change where it sits. */
.docsfoot { max-width: var(--measure); margin-top: 3rem; }

/* The standing help line: every docs page ends by saying where to write. */
.dochelp {
  max-width: var(--measure); margin: 2.5rem 0 0; padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.92rem; color: var(--ink-dim);
}
.dochelp strong { color: var(--ink); font-weight: 700; }

@media (max-width: 640px) {
  /* Less enamel before the first word: the band was a third of a phone screen. */
  .doc--docs .doc__head {
    padding-block: 1.25rem 1.1rem;
    margin-bottom: 1.75rem;
  }
  .docsnav { margin-bottom: 1.25rem; }
  .doctoc { margin-bottom: 1.5rem; }
  .doc--docs .prose h2 { margin-top: 2.5rem; font-size: 1.3rem; }
}
