/* Ride767 pre-launch site. Tokens per brand/ride767-brand-mark.md: yellow is
   the accent, reserved for "you are here" and calls to action. */

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-variable.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --green: #1b7a43;
  --green-deep: #135c32;
  --teal: #0e8fa8;
  --yellow: #f5b92e;
  --ink: #232323;
  --paper: #f8f7f2;

  --bg: var(--paper);
  --surface: #ffffff;
  --band: #eef3ec;
  --text: var(--ink);
  --muted: #55595a;
  --line: #dcdcd3;
  --link: var(--green);
  --mark-green: var(--green);
  --mark-teal: var(--teal);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161917;
    --surface: #1f2421;
    --band: #1b211d;
    --text: #f1f0ea;
    --muted: #b4b8b2;
    --line: #333a35;
    --link: #6fd39a;
    --mark-green: #4fbf7f;
    --mark-teal: #3cc0d8;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--link); font-weight: 700; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

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

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 1.5rem; font-weight: 900; min-height: 48px; }
.mk-green { stroke: var(--mark-green); }
.mk-teal { stroke: var(--mark-teal); }
.top nav { display: flex; gap: 4px; }
.top nav a { text-decoration: none; color: var(--text); font-weight: 700; padding: 12px; border-radius: 10px; min-height: 48px; display: inline-flex; align-items: center; }
.top nav a:hover { background: var(--band); }

/* Hero */
.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1.25fr 1fr; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--link); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(245, 185, 46, 0.3); }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 40em; }

.notify { margin-top: 28px; max-width: 520px; }
.notify label { display: block; font-weight: 800; margin-bottom: 8px; }
.notify-row { display: flex; gap: 10px; }
.notify input {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 0 16px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 14px;
}
.notify input:focus { border-color: var(--teal); }
.fine { font-size: 0.95rem; color: var(--muted); margin-top: 10px; }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}
.cta:hover { filter: brightness(1.05); }
.cta:active { transform: translateY(1px); }

.hero-art svg { width: 100%; max-width: 380px; display: block; margin: 0 auto; }
.art-tile { fill: var(--green); }
.art-road { fill: none; stroke: rgba(248, 247, 242, 0.18); stroke-width: 26; stroke-linecap: round; }
.art-route { fill: none; stroke: var(--paper); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2 14; }
.art-start { fill: var(--teal); stroke: var(--paper); stroke-width: 4; }
.art-pin { fill: var(--teal); stroke: var(--paper); stroke-width: 4; }
.art-car { fill: var(--paper); }
.art-wheel { fill: var(--ink); stroke: var(--paper); stroke-width: 3; }

/* Sections */
section { padding: 64px 0; }
.band { background: var(--band); }

.steps, .features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.features { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li, .features li { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.steps p, .features p { color: var(--muted); margin: 0; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--paper); font-weight: 900; margin-bottom: 14px; }
.features h3 { color: var(--link); }

.drivers { background: var(--green); color: var(--paper); }
.drivers .lede { color: var(--paper); }
.drivers-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding: 16px 18px 16px 52px; background: var(--green-deep); border-radius: 14px; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 20px;
  width: 18px;
  height: 10px;
  border-left: 4px solid var(--paper);
  border-bottom: 4px solid var(--paper);
  transform: rotate(-45deg);
}

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin: 24px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 1rem; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.foot nav a { padding: 12px 8px; min-height: 48px; display: inline-flex; align-items: center; }

/* Legal pages */
.doc { padding: 40px 0 64px; }
.doc article { max-width: 760px; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.doc h2 { font-size: 1.5rem; margin-top: 1.8em; scroll-margin-top: 16px; }
.doc h3 { margin-top: 1.4em; scroll-margin-top: 16px; }
.doc ul, .doc ol { padding-left: 1.4em; margin: 0 0 1em; }
.doc li { margin: 0.3em 0; }
.doc code { font-family: inherit; font-weight: 700; }
.doc .table { overflow-x: auto; margin: 0 0 1.2em; }
.doc table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.doc th { background: var(--band); }
.back { display: inline-flex; align-items: center; min-height: 48px; margin-bottom: 8px; }

@media (max-width: 860px) {
  .hero { padding: 36px 0 48px; }
  .hero-grid, .drivers-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 220px; }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .top nav a:first-child { display: none; }
  .notify-row { flex-direction: column; }
  .cta { width: 100%; }
}

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