/* ============================================================================
   Classic Car Show Finder — website stylesheet
   Design language: the app's radar-HUD dark theme.
   Tokens are lifted from the app (AGENTS.md / constants/theme.ts) so the site
   and the product are visually the same thing.
   ========================================================================= */

:root {
  /* surfaces + ink (app dark theme) */
  --bg:        #0A0A1A;
  --surface:   #141428;
  --elev:      #1E1E3A;
  --ink:       #F0F0F5;
  --muted:     #8B8BA0;
  --accent:    #00FFD0;
  --accent-dim:#00C9A7;
  --border:    #2A2A4A;
  --star:      #FBBF24;

  /* category colors (app) */
  --cat-cruise: #00FFD0;
  --cat-show:   #4A9EFF;
  --cat-swap:   #FF9F43;
  --cat-track:  #FF6B6B;
  --cat-coffee: #C084FC;
  --cat-other:  #8B8BA0;

  /* type */
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* shape + space (4px base unit, app scale) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;
  --gutter: 24px;
  --measure: 1200px;
  --section: clamp(72px, 9vw, 132px);
}

* { 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.6;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7CFFE5; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ── type scale ─────────────────────────────────────────────────────────── */

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.06; }

h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.section-kicker { display: block; margin-bottom: 14px; }

/* ── buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 1rem/1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #04231E; }
.btn-primary:hover { background: #7CFFE5; color: #04231E; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--ink); }
.btn .arrow { font-family: var(--mono); }

/* ── nav ────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 26, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.brand svg { flex: none; }
.brand span { white-space: nowrap; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; left: 0; right: 0; top: 68px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 20px;
  }
  .nav-links.open a { padding: 12px 0; font-size: 1.05rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--border); border-radius: 10px;
    color: var(--ink); cursor: pointer;
  }
  .nav .btn-primary { display: none; }
}

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 var(--section); }

/* hairline grid + one radar arc — atmosphere, not decoration */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: -10% -10% 0 -10%;
  background-image:
    linear-gradient(rgba(42,42,74,.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,42,74,.55) 1px, transparent 1px);
  background-size: 68px 68px, 68px 68px;
  mask-image: radial-gradient(ellipse 70% 60% at 62% 38%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 62% 38%, #000 20%, transparent 78%);
}
.hero-bg::after {
  content: ""; position: absolute; right: -6%; top: 8%;
  width: min(760px, 62vw); aspect-ratio: 1;
  border: 1px solid rgba(0,255,208,.30);
  border-radius: 50%;
}
.hero-sweep {
  position: absolute; right: -6%; top: 8%;
  width: min(760px, 62vw); aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(0,255,208,.16), rgba(0,255,208,0) 42%);
  animation: sweep 12s linear infinite;
  pointer-events: none;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; margin-bottom: 26px;
  border: 1px solid rgba(0,255,208,.35); border-radius: var(--r-pill);
  background: rgba(0,255,208,.06);
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-note { font-size: 0.9rem; color: var(--muted); }

/* phone stack */
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.phone-fig { width: min(48%, 250px); margin: 0; }
.phone {
  position: relative; width: 100%;
  border-radius: 26px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 26px 60px -22px rgba(0,0,0,.85);
}
.phone img { width: 100%; height: auto; }
.phone--front { transform: translateY(-22px) rotate(-1.4deg); z-index: 2; }
.phone--back { transform: translateY(14px) rotate(1.8deg); opacity: .96; }
.phone-cap {
  margin-top: 14px; padding: 0 2px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); text-align: center;
}

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phones { margin-top: 44px; }
  .hero-bg::after, .hero-sweep { opacity: .55; }
}

/* ── trust strip ────────────────────────────────────────────────────────── */

.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust ul {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin: 0; padding: 0; list-style: none;
}
.trust li {
  padding: 24px 22px;
  border-left: 1px solid var(--border);
  font-size: .95rem; color: var(--ink);
}
.trust li:first-child { border-left: 0; padding-left: 0; }
.trust b { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
@media (max-width: 780px) {
  .trust ul { grid-template-columns: 1fr 1fr; }
  .trust li { border-top: 1px solid var(--border); }
  .trust li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .trust li:nth-child(-n+2) { border-top: 0; }
}

/* ── generic section ────────────────────────────────────────────────────── */

section { padding: var(--section) 0; }
section[id] { scroll-margin-top: 84px; }
section + section { border-top: 1px solid var(--border); }
.section-head { max-width: 62ch; margin-bottom: 56px; }
.section-head p { margin: 18px 0 0; }

/* two-column: sticky heading + numbered rows */
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); }
.split > .sticky { position: sticky; top: 100px; align-self: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split > .sticky { position: static; } }

.rows { display: grid; gap: 0; }
.row { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--border); }
.row:last-child { border-bottom: 1px solid var(--border); }
.row .num { font-family: var(--mono); font-size: .9rem; color: var(--accent); padding-top: 4px; }
.row h3 { margin-bottom: 8px; }
.row p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ── product rows (screenshot + text) ───────────────────────────────────── */

.prod { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: 46px 0; border-top: 1px solid var(--border); }
.prod:first-of-type { border-top: 0; }
.prod--flip .prod-media { order: 2; }
.prod-media { display: flex; justify-content: center; }
.prod-media .phone { width: min(100%, 268px); }
.prod h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); margin-bottom: 14px; }
.prod p { color: var(--muted); margin: 0 0 14px; }
.prod ul { margin: 0; padding-left: 20px; color: var(--muted); }
.prod li { margin: 6px 0; }
@media (max-width: 860px) {
  .prod { grid-template-columns: 1fr; }
  .prod--flip .prod-media { order: 0; }
}

/* thumbs strip */
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.thumbs figure { margin: 0; }
.thumbs img { width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
.thumbs figcaption { margin-top: 10px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 780px) { .thumbs { grid-template-columns: 1fr 1fr; } }

/* ── event types ────────────────────────────────────────────────────────── */

.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); }
.type { padding: 28px 26px 28px 0; border-bottom: 1px solid var(--border); }
.type:nth-child(3n+2), .type:nth-child(3n+3) { padding-left: 26px; border-left: 1px solid var(--border); }
.type .name { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 8px; }
.type .pip { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.type p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 780px) {
  .types { grid-template-columns: 1fr; }
  .type, .type:nth-child(3n+2), .type:nth-child(3n+3) { padding: 20px 0; border-left: 0; }
}

/* ── coverage ───────────────────────────────────────────────────────────── */

.coverage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.metro { padding: 22px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.metro .state { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.metro .state.live { color: var(--accent); }
.metro .state.soon { color: var(--muted); }
.metro h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.metro p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 780px) { .coverage { grid-template-columns: 1fr; } }

/* ── pricing table (compare surface) ────────────────────────────────────── */

.plans { width: 100%; border-collapse: collapse; }
.plans th, .plans td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.plans thead th { font-size: .95rem; }
.plans thead th:first-child { width: 34%; }
.plans .price { font-family: var(--mono); font-size: 1.05rem; color: var(--ink); }
.plans .free { color: var(--accent); }
.plans td { color: var(--muted); font-size: .96rem; }
.plans tr.hi td, .plans tr.hi th { background: rgba(0,255,208,.05); }
.plans .tag { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.plans-note { margin-top: 18px; }
@media (max-width: 720px) {
  .plans, .plans tbody, .plans tr, .plans td, .plans th { display: block; }
  .plans thead { display: none; }
  .plans tr { border-bottom: 1px solid var(--border); padding: 12px 0; }
  .plans td { border: 0; padding: 4px 0; }
  .plans td::before { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
}

/* ── faq ────────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 0; }
details { border-top: 1px solid var(--border); padding: 22px 0; }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: 14px 0 0; color: var(--muted); max-width: 78ch; }

/* ── closing ────────────────────────────────────────────────────────────── */

.closing { text-align: left; }
.closing-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.closing h2 { margin-bottom: 18px; }
@media (max-width: 860px) { .closing-inner { grid-template-columns: 1fr; } }

/* ── footer ─────────────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--border); padding: 52px 0 64px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
footer h4 { margin: 0 0 14px; font-size: .78rem; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 8px 0; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
.foot-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ── long-form pages (support, legal) ───────────────────────────────────── */

.page { padding: clamp(48px, 6vw, 84px) 0 var(--section); }
.page-head { max-width: 62ch; margin-bottom: 44px; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.prose h3 { margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose strong { color: var(--ink); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px; margin: 22px 0; }
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #04231E; padding: 12px 18px; border-radius: 0 0 10px 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ── the scene: real photos ─────────────────────────────────────────── */
.scene { padding-top: 0; }
.scene-band { margin: 0 0 clamp(26px, 4vw, 52px); }
.scene-band img {
  width: 100%; height: clamp(230px, 46vw, 470px);
  object-fit: cover; display: block;
}
.scene-band figcaption {
  margin-top: 16px; text-align: center;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.scene-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 18px);
}
.scene-strip figure { margin: 0; }
.scene-strip img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 14px; border: 1px solid var(--border);
}
@media (max-width: 640px) {
  .scene-strip { grid-template-columns: 1fr 1fr; }
  .scene-strip figure:first-child { grid-column: span 2; }
}
