/* MotoPilot — shared styles.
   The palette is lifted from the app itself, so the site and the phone look
   like one product. Lime is only ever a fill with near-black on top; it is
   never text on a surface, which is what keeps it readable everywhere. */

:root {
  --lime: #b6f24b;
  --on-lime: #0c1a00;
  --bg: #0c0f0b;
  --surface: #13180f;
  --surface-2: #1f2619;
  --text: #e7eee1;
  --muted: #a6b09c;
  --outline: #3b442f;
  --radius: 24px;
  --gutter: 16px;
  --measure: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--lime); }

/* ---------------------------------------------------------------- header */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 15, 11, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
}

.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 66px;
}

.bar img { width: 34px; height: 34px; border-radius: 9px; }

.bar strong { font-size: 18px; letter-spacing: -0.2px; }

.bar nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--text); }

/* ------------------------------------------------------------------ hero */

.hero {
  background: linear-gradient(135deg, #4a7a1c 0%, #1e3111 48%, var(--bg) 100%);
  border-bottom: 1px solid var(--outline);
}

.hero .wrap { padding-top: 76px; padding-bottom: 84px; }

.hero img.mark {
  /* The file is the adaptive-icon foreground, which carries the safe-zone
     padding a launcher mask needs. Nothing masks it here, so it is drawn
     larger to compensate for that built-in margin. */
  width: 186px;
  height: 186px;
  margin: -18px 0 4px -14px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 8vw, 68px);
  line-height: 1.02;
  letter-spacing: -2px;
}

.hero p.lead {
  margin: 0 0 8px;
  font-size: clamp(19px, 3.4vw, 25px);
  color: var(--lime);
  font-weight: 600;
}

.hero p.sub {
  margin: 0;
  max-width: 34em;
  color: #cfdcc4;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 16px;
  border: 1.5px solid transparent;
}

.btn.primary { background: var(--lime); color: var(--on-lime); }

.btn.ghost {
  border-color: rgba(231, 238, 225, 0.4);
  color: var(--text);
}

.btn.ghost:hover { border-color: var(--text); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(12, 26, 0, 0.35);
  color: #dcecc4;
  font-size: 14px;
}

.badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

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

section { padding: 76px 0; }

section > .wrap > h2 {
  margin: 0 0 10px;
  font-size: clamp(27px, 5vw, 38px);
  letter-spacing: -1px;
}

section > .wrap > p.intro {
  margin: 0 0 36px;
  max-width: 40em;
  color: var(--muted);
}

/* ----------------------------------------------------------------- cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 26px;
}

.card .dot {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card .dot svg { width: 21px; height: 21px; stroke: var(--lime); fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.card h3 { margin: 0 0 6px; font-size: 18px; }

.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* -------------------------------------------------------------- mileage */

.method { background: var(--surface); border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline); }

.method table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-top: 8px;
}

.method th, .method td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--outline);
}

.method th { color: var(--muted); font-weight: 600; font-size: 13.5px;
  text-transform: uppercase; letter-spacing: 0.7px; }

.method td.result { color: var(--lime); font-weight: 700; }

.scroller { overflow-x: auto; }

/* ---------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--outline);
  padding: 46px 0;
  color: var(--muted);
  font-size: 15px;
}

footer .row { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }

footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 22px; }

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ------------------------------------------------------------ prose page */

.prose { padding: 56px 0 90px; }

.prose .wrap { max-width: 760px; }

.prose h1 { font-size: clamp(31px, 6vw, 44px); letter-spacing: -1.2px;
  margin: 0 0 6px; }

.prose .stamp { color: var(--muted); font-size: 15px; margin: 0 0 40px; }

.prose h2 {
  margin: 44px 0 12px;
  font-size: 22px;
  letter-spacing: -0.4px;
  padding-top: 22px;
  border-top: 1px solid var(--outline);
}

.prose h2:first-of-type { border-top: 0; padding-top: 0; }

.prose p { margin: 0 0 16px; }

.prose ul { margin: 0 0 16px; padding-left: 22px; }

.prose li { margin-bottom: 8px; }

.prose .note {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 32px;
}

.prose .note p:last-child { margin-bottom: 0; }

.back { display: inline-block; margin-bottom: 26px; color: var(--muted);
  text-decoration: none; font-size: 15px; }

.back:hover { color: var(--text); }

@media (max-width: 620px) {
  .bar nav { display: none; }
  section { padding: 56px 0; }
  .hero .wrap { padding-top: 52px; padding-bottom: 60px; }
  .btn { flex: 1 1 100%; text-align: center; }
}
