/* M8 Rover site — same colour tokens as the app (ScooterTheme.swift). */
:root {
  --bg: #f8f8fa;
  --surface: #ffffff;
  --ink: #18181b;
  --muted: #71717a;
  --hairline: #e4e4e7;
  --accent: #d11f26;
  --fill: #18181b;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --surface: #18181b;
    --ink: #f4f4f5;
    --muted: #a1a1aa;
    --hairline: #27272a;
    --fill: #3f3f46;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Header: brand + grey page name, like the app's AppHeader */
.site-header { border-bottom: 1px solid var(--hairline); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand b { display: block; font-size: 18px; line-height: 1.1; letter-spacing: -0.01em; }
.brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.site-nav { display: flex; gap: 16px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; padding: 56px 0 40px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.hero-art { background: #fff; border-radius: 24px; padding: 16px; border: 1px solid var(--hairline); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--fill); color: #fff; font-weight: 600; font-size: 15px; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 8px 0 48px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: block; }

.notice { border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; padding: 14px 18px; color: var(--muted); font-size: 15px; margin: 0 0 48px; }

/* Documents */
.doc { padding-top: 40px; padding-bottom: 56px; }
.doc h1 { font-size: 34px; letter-spacing: -0.02em; margin: 0 0 4px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc li { margin: 4px 0; }

.site-footer { border-top: 1px solid var(--hairline); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 32px; }
.site-footer a { color: var(--muted); }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 24px; }
  .hero-art { max-width: 360px; margin: 0 auto; }
  .site-nav { gap: 12px; font-size: 14px; }
  .brand small { display: none; }
}
