/* Wayfetch site styles. Overpass is self-hosted (SIL OFL, see /fonts/OFL.txt);
   it descends from the US highway sign face, which suits a product about drive time.
   Every colour on the site comes from the tokens in the palette blocks below. */

@font-face { font-family: "Overpass"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/overpass-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/overpass-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/overpass-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Overpass"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/overpass-latin-800-normal.woff2") format("woff2"); }

/* ---------- Palette: daylight and blue (chosen Oct 29, 2026) ---------- */
:root {
  --hero-bg: #f4f6fa;
  --hero-fg: #1b2230;
  --hero-soft: #4d5666;
  --accent: #2f6bed;
  --accent-hover: #1f58d6;
  --accent-ink: #ffffff;
  --contour: #dde3ec;
  --chip-bg: #ffffff;
  --chip-line: #cdd5e2;
  --stop: #1b2230;
  --ghost: #98a3b4;
  --slot-bg: #1b2230;
  --slot-fg: #ffffff;
  --slot-soft: #c4cbd6;
  --slot-struck: #f2a48a;

  --page-bg: #ffffff;
  --page-fg: #1b2230;
  --page-soft: #4d5666;
  --line: #e1e6ee;
  --link: #2f6bed;
  --panel: #ffffff;
  --panel-line: #e1e6ee;
  --panel-fg: #1b2230;
  --panel-soft: #4d5666;
  --panel-link: #2f6bed;
  --marker: #2f6bed;
  --mark-bg: #ffe08a;

  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --font: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
/* Light only: the site no longer follows the device's dark mode (decided Oct 29, 2026).
   The dark tokens below stay available if you ever add a switch via data-theme="dark". */
:root[data-theme="dark"] {
  --hero-bg: #121826;
  --hero-fg: #eef2f8;
  --hero-soft: #aab4c4;
  --accent: #5b8cff;
  --accent-hover: #7aa2ff;
  --accent-ink: #0b1220;
  --contour: #222b3b;
  --chip-bg: #0f1522;
  --chip-line: #2c3648;
  --stop: #eef2f8;
  --ghost: #6b7689;
  --slot-bg: #eef2f8;
  --slot-fg: #121826;
  --slot-soft: #4d5666;
  --slot-struck: #c4532f;

  --page-bg: #0d121d;
  --page-fg: #e6ebf3;
  --page-soft: #aab4c4;
  --line: #232c3d;
  --link: #8fb0ff;
  --panel: #f4f6fa;
  --panel-line: #f4f6fa;
  --panel-fg: #1b2230;
  --panel-soft: #4d5666;
  --panel-link: #2f6bed;
  --marker: #5b8cff;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink); padding: 0.5rem 1rem; font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Masthead and hero ---------- */

.hero, .doc-head, .early {
  background: var(--hero-bg);
  color: var(--hero-fg);
}
.hero a, .doc-head a { color: var(--hero-fg); }

.masthead {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 800; font-size: 1.375rem; letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark svg { width: 1.6rem; height: 1.6rem; flex: none; }
.mark-route { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; }
.mark-stop { fill: var(--hero-fg); }
.masthead nav a { font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-top: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; }
}

.hero h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 11ch;
}
.hero .lede {
  margin: 1.5rem 0 0;
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--hero-soft);
  max-width: 32rem;
}
.cta-row { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.9rem 1.5rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 120ms ease;
}
.button:hover { background: var(--accent-hover); text-decoration: none; }
.origin { margin: 0; font-size: 0.95rem; color: var(--hero-soft); max-width: 22rem; }

/* The route map: the one memorable element on the page */
.route-map { margin: 0; }
.route-map svg { display: block; width: 100%; max-width: 34rem; height: auto; }
.route-map figcaption {
  margin-top: 0.75rem; font-size: 0.9rem; color: var(--hero-soft); max-width: 30rem;
}
.contour { fill: none; stroke: var(--contour); stroke-width: 1.2; }
.route { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.route-ghost { fill: none; stroke: var(--ghost); stroke-width: 2.5; stroke-dasharray: 2 8; stroke-linecap: round; }
.stop { fill: var(--stop); stroke: var(--hero-bg); stroke-width: 4; }
.stop-home { fill: var(--accent); }
.stop-new { fill: var(--hero-bg); stroke: var(--accent); stroke-width: 4; }
.map-label { fill: var(--hero-fg); font-family: var(--font); font-size: 17px; font-weight: 600; }
.map-sub { fill: var(--hero-soft); font-family: var(--font); font-size: 14px; font-weight: 400; }
.chip rect { fill: var(--chip-bg); stroke: var(--chip-line); stroke-width: 1; }
.chip text { fill: var(--accent); font-family: var(--font); font-size: 14px; font-weight: 800; }
.slot rect { fill: var(--slot-bg); }
.slot .slot-title { fill: var(--slot-fg); font-family: var(--font); font-size: 19px; font-weight: 800; }
.slot .slot-body { fill: var(--slot-soft); font-family: var(--font); font-size: 15px; }
.slot .slot-no { fill: var(--slot-struck); font-family: var(--font); font-size: 14px; text-decoration: line-through; }

@media (prefers-reduced-motion: no-preference) {
  .route { stroke-dasharray: 900; stroke-dashoffset: 900; animation: drive 1.8s cubic-bezier(.45,.05,.3,1) 0.3s forwards; }
  .reveal { opacity: 0; animation: appear 0.4s ease forwards; }
  .reveal-1 { animation-delay: 0.5s; }
  .reveal-2 { animation-delay: 1.0s; }
  .reveal-3 { animation-delay: 1.5s; }
  .reveal-4 { animation-delay: 2.2s; }
  @keyframes drive { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}

/* ---------- Body sections ---------- */

main section { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.split {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem 4rem;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.section-note { margin: 1rem 0 0; color: var(--page-soft); max-width: 22rem; }

.features { list-style: none; margin: 0; padding: 0; }
.features li {
  padding: 1.5rem 0 1.6rem;
  border-top: 2px solid var(--line);
  max-width: var(--measure);
}
.features li:first-child { border-top: 0; padding-top: 0.25rem; }
.features h3 { margin: 0 0 0.4rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.features p { margin: 0; color: var(--page-soft); }

.trades {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.trades li {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.95rem 0.25rem;
  font-weight: 600;
}
.who p { margin: 1.25rem 0 0; max-width: var(--measure); color: var(--page-soft); }

/* ---------- Early access band ---------- */

.early .section-note { color: var(--hero-soft); }
.form-panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  color: var(--panel-fg);
  border-radius: 14px;
  padding: clamp(1rem, 3vw, 2rem);
}
.form-panel iframe { display: block; width: 100%; border: 0; min-height: 560px; }
.form-fallback, .form-privacy { margin: 0.75rem 0 0; font-size: 0.95rem; color: var(--panel-soft); }
.form-fallback a, .form-privacy a { color: var(--panel-link); }

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

footer { padding: 2.5rem 0 3rem; font-size: 0.95rem; color: var(--page-soft); }
.foot {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: baseline; justify-content: space-between;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot p { margin: 0; }

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

.doc-head .title { padding-top: 1rem; padding-bottom: 3rem; }
.doc-head h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.doc-head .effective { margin: 0.75rem 0 0; color: var(--hero-soft); }

.doc { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: 4rem; }
.doc article { max-width: 40rem; }
.doc article h2 {
  font-size: 1.5rem; max-width: none; margin: 2.75rem 0 0.75rem;
}
.doc article ul { padding-left: 1.25rem; }
.doc article li { margin: 0.4rem 0; }
.doc article li::marker { color: var(--marker); }
mark.todo {
  background: var(--mark-bg); color: #1b1b1b;
  padding: 0 0.2em; border-radius: 3px;
}
.draft-banner {
  background: var(--mark-bg); color: #1b1b1b;
  border-radius: 10px; padding: 0.9rem 1.1rem; margin: 0 0 2rem; font-size: 0.95rem;
}
