/* Driver Hero Pro website. Colors match core-ui theme/Color.kt.
   Cache version 20260923. Bump ?v= on every HTML reference to this file and to /assets/ when styles or images change. */
:root {
  color-scheme: light;
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-variant: #f1f3f5;
  --outline: #dadce0;
  --text: #202124;
  --muted: #5f6368;
  --blue: #2176ff;
  --gold: #ffc107;
  --gold-ink: #1a1a1a;
  --kicker: #8a5a00;
  --success: #146c2e;
  --success-bg: #e7f6ea;
  --header: #f6f8fa;
  --max: 1080px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #121212;
    --surface: #1e1e1e;
    --surface-variant: #2a2a2a;
    --outline: #3a3a3a;
    --text: #ffffff;
    --muted: #b3b3b3;
    --kicker: #ffc107;
    --success: #8fd694;
    --success-bg: #14301a;
    --header: #121212;
  }
}

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

html {
  scroll-behavior: smooth;
  touch-action: manipulation;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }

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

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 30;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 40px, var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  border-bottom: 1px solid var(--outline);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}
.wordmark-driver { color: var(--blue); font-style: italic; }
.wordmark-hero { color: var(--text); font-style: italic; }
.wordmark-pro {
  background: var(--gold);
  color: #1a1a1a;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
}

.site-nav { display: flex; gap: 8px 18px; align-items: center; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav a[aria-current="page"] { color: var(--kicker); text-decoration: none; }
.site-nav .nav-desktop,
.site-nav .btn { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  gap: 8px;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn-primary,
.site-nav .btn-primary { background: var(--blue); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--outline); }
.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero { padding: 40px 0 8px; }
.hero-grid { display: grid; gap: 28px; }
.kicker {
  margin: 0 0 8px;
  color: var(--kicker);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}
h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.lede { color: var(--muted); margin: 0; max-width: 40rem; }
.section-lead { color: var(--muted); margin: 0; max-width: 40rem; }
#contact .section-lead { max-width: none; }
.section-lead + .section-lead { margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hint { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

.offer {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 18px;
  padding: 18px;
}
.offer header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.offer .app { font-weight: 700; }
.pill {
  background: var(--success-bg);
  color: var(--success);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
}
.fare { font-size: 2.4rem; margin: 14px 0 8px; letter-spacing: -0.03em; }
.offer dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.offer dt { color: var(--muted); font-size: 13px; }
.offer dd { margin: 2px 0 0; font-weight: 700; }
.example-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }

h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; letter-spacing: -0.02em; }
section { padding: 36px 0; scroll-margin-top: 76px; }

.facts, .cards, .steps, .channels { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fact, .card, .step {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.fact strong, .card h3 { display: block; margin: 0 0 4px; }
.fact span, .card p, .step p { color: var(--muted); margin: 0; }
.card h3 { font-size: 1.05rem; }
.card svg, .channels svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card svg { margin-bottom: 10px; color: var(--kicker); }
.channels svg.solid { fill: currentColor; stroke: none; }

.steps { counter-reset: step; }
.step { padding-left: 64px; position: relative; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.step strong { color: var(--text); }

.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 4px 16px;
}
.faq summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}
.faq p { color: var(--muted); margin: 0 0 14px; }

.notice {
  margin-top: 20px;
  border-left: 3px solid var(--gold);
  background: var(--surface-variant);
  padding: 16px 18px;
  color: var(--muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.channels { margin-top: 20px; }
.channels a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
}
.channels a:hover { text-decoration: none; border-color: var(--blue); }
.channels svg { color: var(--kicker); }

.site-footer {
  border-top: 1px solid var(--outline);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--header);
  border-top: 1px solid var(--outline);
}
.dock .btn { flex: 1; white-space: nowrap; padding-inline: 12px; }

@media (max-width: 370px) {
  .dock { padding-inline: 10px; gap: 6px; }
  .dock .btn { font-size: 13px; padding-inline: 8px; gap: 6px; }
  .dock .btn svg { width: 16px; height: 16px; flex-basis: 16px; }
}
body:has(.dock) .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* Legal pages */
.legal { padding: 48px 0 24px; }
.legal h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); margin: 0 0 6px; letter-spacing: -0.02em; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.legal article { margin-bottom: 28px; }
.legal article h2 { font-size: 1.15rem; margin-bottom: 8px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

table { width: 100%; border-collapse: collapse; margin: 12px 0 4px; font-size: 15px; }
th, td {
  border: 1px solid var(--outline);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}
th { background: var(--surface-variant); color: var(--text); font-weight: 600; }

@media (min-width: 640px) {
  .channels { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 800px) {
  .site-nav .nav-desktop,
  .site-nav .btn { display: inline-flex; }
  .hero { padding: 72px 0 16px; }
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 48px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .dock { display: none; }
  body:has(.dock) .site-footer { padding-bottom: 40px; }
}

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