/* Backseat Driver — site styles.
 *
 * The palette and type are the app's own (home_screen.dart / profile_screen.dart):
 * page #141417, card #1C1C20, white ink with alpha for secondary text, Inter.
 * Flat surfaces, colour as an accent rather than a fill — same as the Today
 * restyle. Dark only, like the app's default look.
 */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/Inter-Regular.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/Inter-Medium.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/Inter-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/Inter-Bold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/Inter-ExtraBold.woff2) format("woff2"); }

:root {
  --page: #141417;
  --page-alt: #1c1c20;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.72);
  --ink-3: rgba(255, 255, 255, 0.55);
  --ink-4: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --red: #ff5a52;
  --radius: 14px;
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

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

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--page); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 10; }

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

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 5;
  background: rgba(20, 20, 23, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.2px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-2); }

.site-nav { display: flex; gap: 4px; }
.site-nav a {
  text-decoration: none; color: var(--ink-3); font-size: 14px; font-weight: 500;
  padding: 6px 10px; border-radius: 8px;
}
.site-nav a:hover { color: var(--ink); background: var(--page-alt); }
.site-nav a[aria-current="page"] { color: var(--ink); }

/* ── Type ───────────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

h1, h2, h3 { margin: 0; line-height: 1.1; }

.display {
  font-size: clamp(38px, 7.2vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.025em; }
.lede { color: var(--ink-3); font-size: clamp(16px, 2vw, 19px); line-height: 1.55; max-width: 36em; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero-mark {
  width: clamp(160px, 22vw, 260px); aspect-ratio: 1; border-radius: 22%;
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px -20px rgba(255, 90, 82, 0.25);
}

.get { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px; border-radius: 12px;
  background: var(--ink); color: var(--page); text-decoration: none; font-weight: 700; font-size: 15px;
}
.store:hover { background: rgba(255, 255, 255, 0.88); }
.store svg { width: 20px; height: 20px; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px; border-radius: 12px;
  background: var(--page-alt); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 15px;
}
.get-note { color: var(--ink-4); font-size: 14px; }

/* ── Sections ───────────────────────────────────────────────────────────── */

.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 40em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

.card {
  background: var(--page-alt);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
}
.card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.2px; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--ink-3); font-size: 15px; line-height: 1.55; }
.card svg { width: 22px; height: 22px; color: var(--ink); }

/* Coverage */

.coverage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.big-number { font-size: clamp(64px, 11vw, 120px); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; }
.big-number-label { color: var(--ink-3); font-size: 17px; margin-top: 12px; max-width: 18em; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li {
  font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  background: var(--page-alt);
}
.chips li.muted { background: transparent; border: 1px solid var(--line-2); color: var(--ink-3); font-weight: 500; }

.cats { margin: 28px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; }
.cats li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }

/* Privacy */

.promise { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.promise .card { border-left: 3px solid var(--red); border-radius: 4px var(--radius) var(--radius) 4px; }
.promise .card h3 { margin-top: 0; }

/* Contact */

.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.contact .section-head { margin: 0; }
.after-note { margin-top: 20px; }
.after-note a { color: var(--ink-2); }
.contact a.mail { font-size: clamp(18px, 3vw, 24px); font-weight: 700; letter-spacing: -0.3px; text-decoration-color: var(--line-2); text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact a.mail:hover { text-decoration-color: var(--ink); }

/* ── Legal / prose pages ────────────────────────────────────────────────── */

.prose { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 72px) var(--gutter) 80px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px; }
.prose h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin: 44px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 17px; font-weight: 700; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose code { background: var(--page-alt); padding: 1px 6px; border-radius: 4px; font-size: 0.9em; }
.prose .table-scroll { overflow-x: auto; margin: 16px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line-2); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--ink-2); }
.prose th { background: var(--page-alt); color: var(--ink); font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-4); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-foot a { color: var(--ink-3); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ── Small screens ──────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero-mark { display: none; }
  .coverage { grid-template-columns: 1fr; }
  .site-nav a.optional { display: none; }
}

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .cats { columns: 1; }
  .site-nav a { padding: 6px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
