/* SpotCars.app — shared site styles (tokens, nav, buttons, footer, legal pages) */
:root {
  --bg: #07080c;
  --bg-2: #0b0d12;
  --panel: rgba(15, 18, 28, .85);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --platinum: linear-gradient(180deg, #ffffff 0%, #e2e8f0 45%, #94a3b8 100%);
  --c-common: #94a3b8; --c-rare: #0ea5e9; --c-epic: #a855f7; --c-mythic: #ef4444; --c-legendary: #f59e0b; --c-grail: #22d3ee;
  --prism: linear-gradient(90deg, #8b5cf6, #22d3ee, #34d399, #fde047, #8b5cf6);
  --f-display: 'Orbitron', system-ui, sans-serif;
  --f-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --f-card: 'Rajdhani', system-ui, sans-serif;
  --gutter: 20px;
  --maxw: 1180px;
  --nav-h: 64px;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 40px; --nav-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 900; letter-spacing: .01em; line-height: 1.04; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #e2e8f0; outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: #fff; color: #000; font-weight: 700; }
.skip:focus { top: 12px; }

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

/* chrome headline text: platinum, brushed */
.chrome {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 38%, #94a3b8 62%, #e2e8f0 78%, #64748b 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 18px rgba(226, 232, 240, .08));
}
.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 800 11px/1 var(--f-display); letter-spacing: .32em; text-transform: uppercase; color: var(--muted);
}
.kicker b { color: var(--text); font-weight: 900; letter-spacing: .1em; padding-right: 12px; border-right: 1px solid var(--line-2); }
.sub { max-width: 560px; color: var(--muted); font-size: 17px; }

/* ---------- app icon + wordmark ---------- */
.app-icon { width: 30px; height: 30px; border-radius: 22.4%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 4px 14px rgba(0, 0, 0, .5); }
.app-icon.big { width: 96px; height: 96px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 20px 40px rgba(0, 0, 0, .6); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font: 900 17px/1 var(--f-display); letter-spacing: .02em; color: #fff; }
.wordmark small { font-size: .62em; font-weight: 700; color: #94a3b8; margin-left: 1px; letter-spacing: .04em; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top);
  background: linear-gradient(rgba(7, 8, 12, .86), rgba(7, 8, 12, .62));
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-links { display: none; gap: 30px; }
.nav-links a { font: 700 11px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: #fff; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  font: 800 11px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: #07080c;
  background: linear-gradient(180deg, #fff, #cbd5e1); box-shadow: 0 0 0 1px rgba(255, 255, 255, .4) inset, 0 6px 20px rgba(226, 232, 240, .15);
  transition: transform .2s;
}
.nav-cta:hover { transform: translateY(-1px); }
/* 4-segment lap progress under the nav (Spot · Identify · Collect · Rank up) */
.lap { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.lap i { background: rgba(255, 255, 255, .06); overflow: hidden; position: relative; }
.lap i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #94a3b8, #fff); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- store badge (placeholder until the official artwork is added) ---------- */
.store-badge {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; height: 54px; padding: 0 18px;
  border-radius: 11px; background: #000; color: #fff; text-decoration: none;
  border: 1px solid #a6a6a6; transition: transform .2s, box-shadow .2s;
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 255, 255, .08); }
.sb-small { font-size: 11px; line-height: 1.1; letter-spacing: .02em; }
.sb-big { font-size: 23px; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; }

.btn-primary {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 14px; cursor: pointer; color: #07080c;
  font: 900 12px/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff, #cbd5e1 55%, #e2e8f0);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 10px 30px rgba(226, 232, 240, .14);
  transition: transform .2s, opacity .2s;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost {
  min-height: 44px; padding: 0 16px; border-radius: 12px; cursor: pointer; background: transparent; color: var(--text);
  border: 1px solid var(--line-2); font: 700 13px/1 var(--f-body);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .3); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: var(--bg-2); }
.foot-in { display: grid; gap: 22px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 0; }
.foot nav a:hover { color: #fff; }
.fine { color: var(--dim); font-size: 13px; }
@media (min-width: 768px) { .foot-in { grid-template-columns: auto 1fr; align-items: center; } .foot nav { justify-content: flex-end; } .fine { grid-column: 1 / -1; } }

/* ---------- legal / support pages ---------- */
.page { padding: calc(var(--nav-h) + 56px) 0 80px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(32px, 7vw, 52px); margin-bottom: 14px; }
.page .updated { color: var(--dim); font-size: 14px; margin-bottom: 32px; }
.draft {
  display: flex; gap: 12px; align-items: flex-start; margin: 0 0 36px; padding: 16px 18px; border-radius: 14px;
  background: rgba(245, 158, 11, .06); border: 1px solid rgba(253, 224, 71, .28); color: #fde68a; font-size: 14px;
}
.draft svg { flex-shrink: 0; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.prose h2 { font-size: 18px; letter-spacing: .06em; margin: 40px 0 12px; }
.prose h3 { font: 800 16px/1.3 var(--f-body); margin: 22px 0 8px; }
.prose p, .prose li { color: #cbd5e1; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose li + li { margin-top: 6px; }
.prose a { color: #fff; text-underline-offset: 3px; }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); }
.back-link { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.back-link:hover { color: #fff; }
.back-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
