:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #15171b;
  --muted: #5b616b;
  --line: #e7e3da;
  --accent: #1f8fbf;       /* brand blue, darkened for text contrast */
  --accent-soft: #4ab5de;  /* app accent */
  --coral: #f2704f;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(21, 23, 27, .04), 0 12px 32px rgba(21, 23, 27, .08);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

section { padding: 88px 24px; max-width: 1160px; margin: 0 auto; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; max-width: 18ch; }
h3 { font-size: 20px; font-weight: 700; }
.accent { color: var(--accent); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

/* Buttons */
.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 600 16px/1 var(--sans);
  padding: 17px 24px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #2a2e35; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-small { padding: 11px 18px; font-size: 14px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #eef6fa; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(247, 245, 240, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .02em; font-size: 18px; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 56px;
}
.lead { font-size: 19px; color: var(--muted); margin: 24px 0 32px; max-width: 34em; }
.lead strong { color: var(--ink); }

/* Form */
.waitlist { max-width: 520px; }
.field-row {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.field-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 16px var(--sans);
  padding: 0 18px;
  color: var(--ink);
}
.field-row input:focus { outline: none; }
.field-row:focus-within { box-shadow: var(--shadow), 0 0 0 3px rgba(31, 143, 191, .35); }
.car-input {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .6);
  border-radius: 14px;
  font: 15px var(--sans);
  padding: 12px 16px;
  color: var(--ink);
}
.car-input:focus { outline: 2px solid rgba(31, 143, 191, .45); outline-offset: 1px; }
.form-note { font-size: 13px; color: var(--muted); margin: 12px 4px 0; }
.form-status { min-height: 1.5em; margin: 8px 4px 0; font-weight: 600; font-size: 15px; }
.form-status.ok { color: #1c7c4a; }
.form-status.error { color: #b3261e; }
.waitlist.done .field-row, .waitlist.done .car-input, .waitlist.done .form-note { display: none; }
.waitlist.done .form-status {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

/* Hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 24px 0; }
.phone {
  width: 300px;
  border-radius: 46px;
  padding: 12px;
  background: #15171b;
  box-shadow: 0 40px 80px rgba(21, 23, 27, .25), inset 0 0 0 2px #2c3037;
  transform: rotate(2deg);
}
.phone-screen {
  border-radius: 36px;
  overflow: hidden;
  background: #0d0e10;
  color: #fff;
  padding: 26px 16px 18px;
}
.app-top { display: grid; gap: 2px; padding: 4px 6px 14px; }
.app-eyebrow { font: 500 10px var(--mono); letter-spacing: .14em; color: var(--accent-soft); }
.app-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.app-sub { font-size: 12px; color: rgba(255, 255, 255, .55); }
.app-map { border-radius: 20px; overflow: hidden; height: 170px; }
.app-map svg { width: 100%; height: 100%; }
.route { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 2.4s .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.app-stats div { background: #1b1e22; border-radius: 14px; padding: 10px; text-align: center; }
.app-stats b { display: block; font-size: 18px; }
.app-stats span { font-size: 11px; color: rgba(255, 255, 255, .55); }
.app-car { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .75); padding: 2px 4px 12px; }
.car-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-soft); }
.app-steps { display: grid; gap: 12px; padding: 0 4px; position: relative; }
.app-steps::before { content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 2px; background: #2c3037; }
.step { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; position: relative; }
.step small { display: block; color: rgba(255, 255, 255, .5); font-size: 11px; }
.pin { width: 14px; height: 14px; margin: 3px; flex: none; border-radius: 50%; background: #0d0e10; border: 3px solid var(--accent-soft); z-index: 1; }
.pin.start { background: var(--coral); border-color: var(--coral); }
.pin.end { background: #fff; border-color: #fff; }

.float {
  position: absolute;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  font-size: 14px;
  animation: bob 6s ease-in-out infinite;
}
.float small { color: var(--muted); font-size: 12px; }
.float p { margin: 2px 0 0; font-weight: 600; }
.float-voice { left: -28px; top: 70%; display: flex; gap: 12px; align-items: center; max-width: 260px; }
.mic { width: 40px; height: 40px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; flex: none; }
.mic svg { width: 20px; height: 20px; }
.float-photo { right: -12px; top: 10%; width: 190px; animation-delay: -3s; }
.photo-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; height: 96px; margin-bottom: 8px; }
.photo-grid span { border-radius: 10px; }
.photo-grid span:nth-child(1) { grid-row: span 2; background: linear-gradient(160deg, #7cc0db, #2f6f8f 60%, #1d3b4a); }
.photo-grid span:nth-child(2) { background: linear-gradient(160deg, #f6c28b, #e07a4f); }
.photo-grid span:nth-child(3) { background: linear-gradient(160deg, #a9c9a4, #56795a); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Chips */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 0; padding-bottom: 24px; }
.chips span { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* How */
.how h2 { margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 10px 0 0; }
.card-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 30px; height: 30px; }
.icon-road { background: #e3f2f8; color: var(--accent); }
.icon-story { background: #fde9e2; color: #d4532f; }
.icon-key { background: #ecebe6; color: var(--ink); }

/* Legacy */
.legacy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 36px;
  padding: 72px 56px;
  max-width: 1112px;
}
.legacy .eyebrow { color: var(--accent-soft); }
.legacy-copy p { color: rgba(255, 255, 255, .72); font-size: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 34px; top: 20px; bottom: 20px; width: 2px; background: repeating-linear-gradient(to bottom, #4ab5de 0 6px, transparent 6px 12px); }
.timeline li { display: flex; gap: 18px; align-items: center; background: #1b1e22; border-radius: 20px; padding: 16px 18px; position: relative; }
.timeline .year { font: 600 13px var(--mono); background: #0d0e10; border: 2px solid var(--accent-soft); color: var(--accent-soft); border-radius: 999px; padding: 6px 8px; flex: none; }
.timeline small { display: block; color: rgba(255, 255, 255, .55); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { border-top: 2px solid var(--ink); padding-top: 18px; }
.feature p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }

/* Privacy */
.privacy { max-width: 820px; text-align: center; }
.privacy h2 { margin: 0 auto 20px; max-width: 20ch; }
.privacy p { color: var(--muted); font-size: 18px; }
.privacy .small { font-size: 14px; max-width: 60ch; margin: 16px auto 0; }

/* CTA */
.cta {
  background: linear-gradient(140deg, #1f8fbf, #16688c);
  color: #fff;
  border-radius: 36px;
  text-align: center;
  max-width: 1112px;
  margin-bottom: 40px;
}
.cta h2 { margin: 0 auto; }
.cta > p { color: rgba(255, 255, 255, .8); font-size: 18px; }
.cta .waitlist { margin: 28px auto 0; }
.waitlist-dark .field-row { background: rgba(255, 255, 255, .14); box-shadow: none; }
.waitlist-dark .field-row input { color: #fff; }
.waitlist-dark .field-row input::placeholder, .waitlist-dark .car-input::placeholder { color: rgba(255, 255, 255, .7); }
.waitlist-dark .car-input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.waitlist-dark .form-status.ok, .waitlist-dark .form-status.error { color: #fff; }
.waitlist-dark.done .form-status { background: rgba(255, 255, 255, .14); box-shadow: none; }

.footer { display: flex; justify-content: center; gap: 24px; padding: 32px 24px 48px; color: var(--muted); font-size: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero, .legacy { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 8px; }
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .legacy { padding: 48px 28px; border-radius: 28px; }
}
@media (max-width: 560px) {
  section { padding: 64px 16px; }
  .nav { padding: 12px 16px; }
  .hero { padding-top: 32px; gap: 32px; }
  .field-row { flex-direction: column; border-radius: 24px; }
  .field-row input { padding: 14px 14px; }
  .btn { width: 100%; }
  .btn-small { width: auto; }
  .features { grid-template-columns: 1fr; }
  .phone { width: 270px; }
  .float-voice { left: 0; top: auto; bottom: -8px; max-width: 230px; }
  .float-photo { right: 0; top: 0; width: 150px; }
  .photo-grid { height: 72px; }
  .cta, .legacy { border-radius: 24px; margin-left: 8px; margin-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route { animation: none; stroke-dashoffset: 0; }
  .float { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
