/* Spotter landing page. Tokens mirror apps/mobile/lib/theme.ts. */
:root {
  --red: #E8222C; --red-hover: #F2454D; --blue: #3B9BFF; --orange: #FF7A1A; --yellow: #FFD400;
  --bg: #050D1A; --bg-alt: #0A1A30; --panel: #0C2038; --border: #1B4273; --border-strong: #2A63B8;
  --text: #F5F8FC; --sub: #A9C3E6; --muted: #7C96BA;
  --ok-bg: #0B3A1E; --ok-border: #22C55E; --ok-text: #D6FBE2; --danger: #F87171;
  --wrap: 1120px; --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
main { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-weight: 900; line-height: 1.06; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 84px); }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-size: clamp(26px, 3.2vw, 38px); }
h1 em, h2 em { font-style: normal; color: var(--yellow); }
p { margin: 0; }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue); border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #0A0F14; padding: 8px 14px; border-radius: 8px; font-weight: 800; z-index: 20; }
.skip:focus { left: 8px; }

.kicker { font-size: 14px; font-weight: 900; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.kicker.yellow { color: var(--yellow); } .kicker.blue { color: var(--blue); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: inherit; font-weight: 900; font-size: 17px; text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 10px 30px rgba(232, 34, 44, 0.4); transition: background 0.15s, transform 0.15s; }
.btn:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; box-shadow: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 8px var(--gutter); background: rgba(5, 13, 26, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(27, 66, 115, 0.6); }
.brand img { height: 56px; width: auto; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 80%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 80%, transparent 100%); }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--sub); text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 2px; }
.nav nav a:hover { color: var(--text); }

/* Phone frame */
.phone { position: relative; width: min(100%, 340px); border-radius: 44px; padding: 9px; background: linear-gradient(160deg, #2B3A52, #0A1220 40%, #1B2740); box-shadow: 0 0 0 1.5px #3A4C6B, 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 70px rgba(59, 155, 255, 0.2); }
.phone img, .phone video { width: 100%; border-radius: 36px; background: var(--panel); }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 5vw, 72px); align-items: center; max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(120px, 17vw, 230px); }
.hero::before { content: ""; position: absolute; inset: -120px -50vw 0; z-index: -2; background: radial-gradient(700px 520px at 68% 42%, rgba(59, 155, 255, 0.3), transparent 70%), linear-gradient(180deg, #0E2A4E 0%, #081A30 55%, var(--bg) 100%); }
.track { position: absolute; z-index: -1; left: -50vw; right: -50vw; bottom: 3%; height: clamp(80px, 11vw, 150px); transform: rotate(-5deg); background: linear-gradient(135deg, #FF8F3A, #E85A00); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 8%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0 70px, transparent 70px 150px); animation: lanes 1.4s linear infinite; }
@keyframes lanes { to { background-position-x: -150px; } }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--sub); margin: 22px 0 30px; max-width: 34em; }
.hero-art { position: relative; justify-self: center; }
.hero-art .phone { transform: rotate(4deg); }
.hero-car { position: absolute; width: 78%; left: -34%; bottom: -9%; transform: rotate(-5deg); filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.55)); pointer-events: none; }

/* Waitlist form */
.waitlist { max-width: 520px; }
.field { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--panel); border: 2px solid var(--border-strong); }
.field:focus-within { border-color: var(--blue); }
.field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; padding: 0 16px; }
.field input::placeholder { color: #9EB2C8; }
.field input:focus { outline: none; box-shadow: none; }
.platform { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.platform legend { float: left; margin-right: 6px; font-size: 14px; font-weight: 700; color: var(--muted); padding: 0; }
.platform label { cursor: pointer; }
.platform input { position: absolute; opacity: 0; }
.platform span { display: inline-block; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: rgba(12, 32, 56, 0.7); font-size: 14px; font-weight: 800; color: var(--sub); }
.platform input:checked + span { border-color: var(--blue); background: rgba(59, 155, 255, 0.16); color: var(--text); }
.platform input:focus-visible + span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { min-height: 0; margin-top: 12px; font-weight: 700; font-size: 15px; }
.status.error { color: var(--danger); }
.fine { margin-top: 10px; font-size: 14px; color: var(--muted); }
.waitlist.done .field, .waitlist.done .platform, .waitlist.done .fine { display: none; }
.waitlist.done .status { margin: 0; padding: 16px 20px; border-radius: 16px; background: var(--ok-bg); border: 2px solid var(--ok-border); color: var(--ok-text); font-size: 17px; }

/* Features */
.features { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.section-title { text-align: center; max-width: 16em; margin: 0 auto clamp(36px, 6vw, 72px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 80px); align-items: center; padding: clamp(28px, 5vw, 56px) 0; }
.feature > .phone, .feature > .phone-pair { justify-self: center; }
.feature.flip > .phone { order: 2; }
.feature p:not(.kicker) { color: var(--sub); font-size: 18px; margin-top: 16px; max-width: 30em; }
.phone-pair { display: flex; justify-content: center; width: min(100%, 420px); }
.phone-pair .phone { width: 62%; flex: none; }
.phone-pair .phone:first-child { transform: rotate(-5deg) translateX(12%); }
.phone-pair .phone:last-child { transform: rotate(5deg) translate(-12%, 8%); }
.chips { list-style: none; display: flex; gap: 10px; padding: 0; margin: 22px 0 0; }
.chips li { padding: 6px 16px; border-radius: 999px; border: 2px solid; font-weight: 900; }
.chips .th { background: #3A2A05; border-color: #F2B90F; color: #FFD75A; }
.chips .sth { background: #2B1250; border-color: #A855F7; color: #EBD8FF; }

/* Trailer */
.trailer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 80px); align-items: center; max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.trailer p:not(.kicker) { color: var(--sub); font-size: 18px; margin: 16px 0 28px; }
.phone.video { width: min(100%, 320px); justify-self: center; }
.phone.video video { aspect-ratio: 9 / 16; object-fit: cover; }

/* Join */
.join { position: relative; overflow: hidden; text-align: center; padding: clamp(64px, 9vw, 120px) var(--gutter); background: linear-gradient(135deg, #FF8F3A, #E85A00); color: #1a0d00; }
.join h2 { color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.join > p { font-size: 19px; font-weight: 700; margin: 14px 0 28px; }
.join .waitlist { margin: 0 auto; position: relative; z-index: 1; }
.join .field { background: var(--bg); border-color: var(--bg); }
.join .platform { justify-content: center; }
.join .platform legend { color: #3b1c00; float: none; }
.join .platform span { background: rgba(5, 13, 26, 0.85); border-color: transparent; }
.join .platform input:checked + span { background: var(--bg); border-color: #fff; }
.join .status.error { color: #5c0007; }
.join-car { position: absolute; bottom: -4%; width: clamp(180px, 26vw, 360px); filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.45)); pointer-events: none; }
.join-car.left { left: -4%; transform: scaleX(-1); } .join-car.right { right: -4%; }

/* FAQ + footer */
.faq { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.faq h2 { margin-bottom: 24px; }
.faq details { border: 1.5px solid var(--border); border-radius: 16px; background: var(--panel); margin-top: 12px; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 800; font-size: 18px; list-style-position: inside; }
.faq details p { padding: 0 20px 20px; color: var(--sub); }
.foot { border-top: 1px solid var(--border); padding: 28px var(--gutter) 40px; text-align: center; color: var(--muted); font-size: 14px; }
.foot p { max-width: 60em; margin: 0 auto; }

/* Scroll reveal (only when JS adds .js) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero, .feature, .trailer { grid-template-columns: 1fr; }
  .hero-art { margin-top: 12px; }
  .hero-art .phone { width: min(74vw, 300px); }
  .feature.flip > .phone { order: 0; }
  .feature > .phone { width: min(74vw, 300px); }
  .trailer { text-align: center; }
  .join-car { opacity: 0.9; bottom: -2%; }
}
@media (max-width: 460px) {
  .field { flex-direction: column; border-radius: 22px; padding: 8px; }
  .field input { min-height: 48px; text-align: center; }
  .brand img { height: 46px; }
  .join-car { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track::before { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
