/* =========================================================
   CarFriend — Marketing site tokens & components
   Design system: soft glassmorphism + neo-minimal automotive UI.
   Fonts: Bricolage Grotesque (display), Sora (body/UI), Space Grotesk (numerals/prices/kickers).
   ========================================================= */

:root {
  /* Neutrals — mint-cream, green-tinted */
  --paper: oklch(0.965 0.016 140);
  --paper-alt: oklch(0.935 0.022 140);
  --paper-alt-2: oklch(0.915 0.026 140);
  --border: oklch(0.83 0.03 140);
  --border-soft: oklch(0.86 0.03 140);
  --text-secondary: oklch(0.4 0.035 150);
  --text-secondary-light: oklch(0.48 0.03 145);

  /* Ink / dark surfaces */
  --ink: oklch(0.19 0.035 152);
  --ink-light: oklch(0.24 0.04 152);
  --on-dark-muted: oklch(0.62 0.02 145);
  --on-dark-body: oklch(0.85 0.02 145);
  --on-dark-strong: oklch(0.98 0.012 150);

  /* Green — trust / certainty / primary actions / OCB */
  --green: oklch(0.46 0.1 152);
  --green-deep: oklch(0.38 0.1 152);
  --green-bright: oklch(0.72 0.13 152);
  --green-text: oklch(0.43 0.105 152);

  /* Amber — live competitive bidding energy ONLY, never a brand color */
  --amber: oklch(0.72 0.19 45);
  --amber-deep: oklch(0.5 0.17 45);

  /* Functional — recording/live dot ONLY, never for errors */
  --live-red: oklch(0.62 0.19 25);

  --font-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, monospace;

  --max-width: 1180px;
  --section-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(50px, 8vw, 120px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- Layout ---------- */
.section { padding: var(--section-y) var(--section-x); }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section--paper-alt { background: var(--paper-alt-2); }
.section--carbon { color: var(--on-dark-strong); }

/* ---------- Typography ---------- */
.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-bright);
}
.kicker--light { color: var(--green-text); }
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.14;
  letter-spacing: -0.025em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.body-lg { font-size: clamp(16px, 2vw, 19px); line-height: 1.55; }
.small { font-size: 13px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid-ink { background: var(--ink); color: var(--on-dark-strong); }
.btn-solid-ink:hover { background: var(--ink-light); box-shadow: 0 10px 24px -12px oklch(0.19 0.035 152 / 0.5); }
.btn-outline { background: transparent; border-color: var(--border-soft); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-green { background: var(--green); color: var(--on-dark-strong); }
.btn-green:hover { background: var(--green-deep); box-shadow: 0 10px 24px -12px oklch(0.46 0.1 152 / 0.5); }
.btn-bright { background: var(--green-bright); color: var(--ink); }
.btn-bright:hover { background: oklch(0.78 0.13 152); }
.btn-block { width: 100%; padding: 15px; border-radius: 12px; font-size: 15px; }
.btn-sm { padding: 12px 20px; font-size: 14px; }
.buy-now-btn { border-color: var(--green-text); color: var(--green-text); transition: background 0.2s ease, border-color 0.2s ease; }
.buy-now-btn:hover { background: oklch(0.94 0.03 145); border-color: var(--green-text); }

.text-link {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 2px;
}

/* ---------- Glass ---------- */
.glass, .card {
  background: oklch(0.935 0.022 140 / 0.7);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 30px -18px oklch(0.3 0.06 150 / 0.3);
  border-radius: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 0 16px 34px -18px oklch(0.3 0.06 150 / 0.4); transform: translateY(-2px); }

/* ---------- Carbon-fibre weave (dark automotive surfaces) ---------- */
.carbon {
  background-color: oklch(0.19 0.035 152);
  background-image:
    linear-gradient(27deg,  oklch(0.24 0.04 152) 4px, transparent 4px) 0 4px,
    linear-gradient(207deg, oklch(0.24 0.04 152) 4px, transparent 4px) 8px 0,
    linear-gradient(27deg,  oklch(0.16 0.035 152) 4px, transparent 4px) 0 8px,
    linear-gradient(207deg, oklch(0.16 0.035 152) 4px, transparent 4px) 8px 4px,
    linear-gradient(90deg,  oklch(0.17 0.035 152) 8px, transparent 8px),
    linear-gradient(oklch(0.2 0.035 152) 25%, oklch(0.17 0.032 152) 25%, oklch(0.17 0.032 152) 50%, oklch(0.2 0.035 152) 50%, oklch(0.2 0.035 152) 75%, oklch(0.17 0.032 152) 75%, oklch(0.17 0.032 152));
  background-size: 16px 16px;
}


/* ---------- Keyframes ---------- */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.pulse-dot { animation: pulseDot 1.6s ease-in-out infinite; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--section-x);
  background: oklch(0.965 0.016 140 / 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo-badge { display: inline-flex; align-items: center; height: 40px; }
.nav-logo-badge img { height: 100%; width: auto; display: block; }
@media (min-width: 768px) { .nav-logo-badge { height: 50px; } }
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav-links a { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--section-x) 16px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-soft);
    background: transparent;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(30px, 5vw, 50px);
  align-items: center;
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 64px) clamp(60px, 8vw, 90px);
}
.hero-blob-lg {
  position: absolute; top: 8%; right: 6%; z-index: 0;
  width: min(46vw, 420px); aspect-ratio: 1;
  border-radius: 44% 56% 60% 40%;
  background: radial-gradient(circle at 30% 30%, oklch(0.85 0.08 150 / 0.5), oklch(0.6 0.1 152 / 0.18) 70%);
  filter: blur(2px);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.hero-blob-sm {
  position: absolute; bottom: 4%; right: 18%; z-index: 0;
  width: min(20vw, 180px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, oklch(0.75 0.16 45 / 0.28), transparent 70%);
  animation: floatY 7s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 100px;
  background: oklch(0.94 0.02 140 / 0.8);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
  font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--text-secondary);
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy h1 .accent { color: var(--green-text); }
.hero-copy p { color: var(--text-secondary); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.valuation-card {
  position: relative; z-index: 1;
  width: min(100%, 380px);
  justify-self: center;
  border-radius: 24px;
  padding: 28px;
  background: oklch(0.98 0.012 140 / 0.72);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--border-soft);
  box-shadow: 0 40px 80px -30px oklch(0.3 0.06 150 / 0.3);
}
.valuation-card h3 { color: var(--ink); margin-bottom: 20px; }
.valuation-card label { display: block; font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.plate-row {
  display: flex; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 8px;
}
.plate-chip {
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  background: var(--ink); color: var(--on-dark-strong);
  display: flex; align-items: center; padding: 0 12px;
}
.plate-input {
  flex: 1; border: 0; font-family: var(--font-mono); font-size: 17px; letter-spacing: 0.06em;
  background: oklch(0.96 0.014 140 / 0.6); padding: 14px; color: var(--ink);
}
.plate-input::placeholder { color: oklch(0.6 0.025 140); }
.plate-hint { font-size: 12px; color: var(--text-secondary-light); margin-bottom: 20px; }
.valuation-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.valuation-divider hr { flex: 1; border: 0; border-top: 1px solid var(--border); }
.valuation-divider span { font-size: 12px; color: var(--text-secondary-light); }
.brand-picker-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.brand-picker-head span:first-child { font-family: var(--font-body); font-weight: 700; font-size: 13px; color: var(--ink); }
.brand-picker-head span:last-child { font-size: 13px; font-weight: 600; color: var(--green-text); }
.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.brand-chip {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border);
}
.brand-avatar {
  width: 22px; height: 22px; border-radius: 50%; background: var(--paper-alt-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 10px; color: var(--text-secondary);
}
.brand-chip span.label { font-family: var(--font-body); font-weight: 600; font-size: 12px; color: var(--ink); }

.social-proof {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 20px 0;
}
.stat-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 44px);
  color: var(--green-text);
}
.stat-text {
  font-size: 13px;
  color: var(--text-secondary-light);
  margin-top: 8px;
}

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
}
.stats-tile {
  padding: 28px 22px; background: oklch(0.96 0.016 140 / 0.72); backdrop-filter: blur(10px);
}
.stats-value { font-family: var(--font-mono); font-weight: 700; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.01em; color: var(--ink); }
.stats-label { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.hiw-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); }

.howworks-container { display: flex; gap: clamp(32px, 5vw, 60px); align-items: center; }
.howworks-phone { flex: 0 0 40%; display: flex; justify-content: center; }
.howworks-steps { flex: 0 0 60%; display: flex; flex-direction: column; align-items: center; gap: 32px; }

.howworks-step {
  display: flex; gap: 20px; align-items: flex-start;
  background: none; border: none; padding: 0; text-align: left;
  cursor: pointer; opacity: 0.5; transition: opacity 400ms ease-in-out;
}
.howworks-step.is-active { opacity: 1; }

.howworks-step-num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--ink-light); color: var(--on-dark-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 18px;
}
.howworks-step-content { display: flex; flex-direction: column; gap: 8px; }
.howworks-step-title {
  font-family: var(--font-display); font-size: 24px; font-weight: 400;
  color: var(--on-dark-muted); transition: color 400ms ease-in-out, font-weight 400ms ease-in-out;
}
.howworks-step.is-active .howworks-step-title { font-weight: 700; color: var(--on-dark-strong); }
.howworks-step-desc { font-size: 16px; color: var(--on-dark-muted); }

@media (max-width: 1024px) {
  .howworks-container { flex-direction: column; gap: 40px; }
  .howworks-phone, .howworks-steps { flex: 0 0 auto; width: 100%; }
}

@media (max-width: 760px) {
  .howworks-steps { gap: 24px; }
  .howworks-step-title { font-size: 20px; }
  .howworks-step-desc { font-size: 14px; }
}

.phone-image {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 4 / 5;
  display: block;
  border-radius: 20px;
  box-shadow: 0 10px 40px oklch(0 0 0 / 0.3);
  object-fit: cover;
  object-position: top center;
  transition: opacity 400ms ease-in-out;
}
@media (max-width: 760px) { .phone-image { max-width: 280px; } }
@media (prefers-reduced-motion: reduce) { .howworks-step, .phone-image { transition: none; } }

/* =========================================================
   LIVE AUCTION — 3-tier comparison
   ========================================================= */
.auction-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(32px, 4vw, 48px); }
.auction-live { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.auction-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live-red); }
.auction-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.auction-card { border-radius: 20px; padding: 26px 24px; position: relative; }
.auction-card .label { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.auction-card .price { font-family: var(--font-mono); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); }

.auction-card--neutral { background: oklch(0.96 0.016 140 / 0.7); backdrop-filter: blur(12px); border: 1px solid var(--border); }
.auction-card--neutral .price { color: var(--ink); }

.auction-card--hot {
  background: linear-gradient(160deg, oklch(0.95 0.05 45 / 0.55), oklch(0.96 0.016 140 / 0.7));
  backdrop-filter: blur(12px); border: 1px solid var(--amber);
}
.auction-card--hot .price { color: var(--amber-deep); }
.auction-badge {
  position: absolute; top: 0; right: 24px; border-radius: 0 0 8px 8px;
  background: var(--amber); color: var(--ink); font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  padding: 6px 10px;
}
.avatar-stack { display: flex; margin-top: 14px; }
.avatar-stack .av {
  width: 28px; height: 28px; border-radius: 50%; margin-left: -8px; border: 2px solid oklch(0.96 0.016 140);
  display: flex; align-items: center; justify-content: center; color: white;
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
}
.avatar-stack .av:first-child { margin-left: 0; }

.auction-card--dark { color: var(--on-dark-strong); border: 1px solid var(--ink); box-shadow: inset 0 1px 0 oklch(0.98 0.01 150 / 0.1); }
.auction-card--dark .label { color: oklch(0.7 0.02 145); }
.auction-card--dark .price { color: var(--green-bright); margin-bottom: 18px; }

/* =========================================================
   TRUST
   ========================================================= */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.trust-card {
  padding: 26px; border-radius: 20px;
  background: oklch(0.97 0.014 140 / 0.65); backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft); box-shadow: 0 10px 30px -18px oklch(0.3 0.06 150 / 0.3);
}
.trust-mark {
  width: 40px; height: 40px; border-radius: 50%; background: oklch(0.97 0.014 140);
  border: 1px solid oklch(0.6 0.08 152 / 0.4); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--green);
}
.trust-card h3 { margin-bottom: 8px; color: var(--ink); }
.trust-card p { font-size: 14px; line-height: 1.6; }

/* =========================================================
   DEALER MARKETPLACE
   ========================================================= */
.dealers-split { display: grid; grid-template-columns: minmax(280px, 1fr) 1.3fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
@media (max-width: 720px) { .dealers-split { grid-template-columns: 1fr; } }
.dealers-copy h2 { margin: 12px 0 16px; color: var(--ink); }
.dealers-copy p { font-size: 15px; line-height: 1.65; margin-bottom: 24px; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.listing-card {
  border-radius: 18px; overflow: hidden;
  background: oklch(0.96 0.016 140 / 0.72); backdrop-filter: blur(12px); border: 1px solid var(--border);
}
.listing-image { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--paper-alt-2); }
.listing-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
.listing-card:hover .listing-image img { transform: scale(1.04); }
.listing-tag {
  position: absolute; top: 10px; left: 10px; font-family: var(--font-mono); font-size: 11px;
  background: oklch(0.19 0.035 152 / 0.55); color: var(--on-dark-strong); border-radius: 6px; padding: 4px 8px;
}
.listing-body { padding: 14px 16px; }
.listing-body .name { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--ink); }
.listing-body .price { font-family: var(--font-mono); font-size: 14px; color: var(--green-text); margin-top: 4px; }
.listing-body .buy-now-btn { width: 100%; margin-top: 12px; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card {
  padding: 28px; border-radius: 20px;
  background: oklch(0.24 0.04 152 / 0.55); backdrop-filter: blur(16px); border: 1px solid oklch(0.34 0.04 150);
}
.testimonial-card p.quote { font-size: 16px; line-height: 1.6; color: oklch(0.9 0.02 145); margin-bottom: 22px; }
.testimonial-foot { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: white;
}
.testimonial-foot .name { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--on-dark-strong); }
.testimonial-foot .role { font-size: 12px; color: oklch(0.62 0.02 145); }

/* =========================================================
   APP DOWNLOAD BAND
   ========================================================= */
.app-band {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
}
@media (max-width: 640px) { .app-band { grid-template-columns: 1fr; text-align: center; } }
.app-band h2 { color: var(--green-text); margin-bottom: 12px; }
.app-band p { font-size: 16px; color: var(--text-secondary); margin-bottom: 24px; }
.store-chips { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .store-chips { justify-content: center; } }
.app-phone-shot {
  width: min(46vw, 320px); height: auto; display: block; margin-left: auto;
}
@media (max-width: 640px) { .app-phone-shot { width: min(70vw, 280px); margin: 0 auto; } }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 820px; margin: 0 auto; }
.faq h2 { margin-bottom: 32px; color: var(--ink); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-trigger {
  width: 100%; padding: 18px 4px; display: flex; justify-content: space-between; align-items: center;
  background: transparent; border: 0; text-align: left;
}
.faq-trigger span.q { font-family: var(--font-body); font-weight: 600; font-size: 16px; color: var(--ink); }
.faq-marker { font-size: 20px; color: var(--text-secondary); flex-shrink: 0; margin-left: 12px; }
.faq-panel { max-width: 640px; padding: 0 4px 20px; font-size: 14px; line-height: 1.65; color: var(--text-secondary); display: none; }
.faq-item.is-open .faq-panel { display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 60px) var(--section-x) 40px; color: var(--on-dark-strong); }
.footer-accent {
  position: absolute; top: -40px; right: -40px; width: 220px; height: 220px;
  opacity: 0.08; pointer-events: none; z-index: 0;
}
.footer-top { position: relative; z-index: 1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-logo-badge {
  display: inline-flex; align-items: center; height: 34px; padding: 4px 10px;
  border-radius: 10px; background: var(--paper); margin-bottom: 12px;
}
.footer-logo-badge img { height: 100%; width: auto; display: block; }
.footer-brand .tagline { font-size: 13px; color: oklch(0.62 0.02 145); margin-top: 10px; max-width: 320px; }
.footer-cols { display: flex; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: oklch(0.62 0.02 145); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: oklch(0.85 0.02 145); }
.footer-col a:hover { color: var(--on-dark-strong); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid oklch(0.34 0.035 150); color: oklch(0.85 0.02 145);
}
.footer-bottom { position: relative; z-index: 1; margin-top: 40px; padding-top: 24px; border-top: 1px solid oklch(0.34 0.035 150); font-size: 12px; color: oklch(0.55 0.02 145); }

/* =========================================================
   SECONDARY PAGES (about / dealers / privacy / terms / support)
   ========================================================= */
.page-hero { padding: clamp(60px, 8vw, 100px) var(--section-x) clamp(40px, 6vw, 60px); }
.page-hero .kicker { margin-bottom: 14px; }
.page-hero h1 { color: var(--on-dark-strong); max-width: 720px; }
.page-hero p { color: oklch(0.85 0.02 145); max-width: 600px; margin-top: 16px; font-size: clamp(15px, 1.6vw, 18px); }

.legal-body { max-width: 820px; margin: 0 auto; }
.legal-body h2 { font-size: 22px; color: var(--ink); margin: 40px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 12px; }
.legal-body ul { padding-left: 20px; list-style: disc; }
.legal-body .updated { font-size: 13px; color: var(--text-secondary-light); margin-bottom: 32px; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 48px; }
.pricing-card {
  padding: 30px; border-radius: 20px;
  background: oklch(0.97 0.014 140 / 0.65); backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft); box-shadow: 0 10px 30px -18px oklch(0.3 0.06 150 / 0.3);
}
.pricing-card.is-featured { border-color: var(--green-bright); background: oklch(0.94 0.03 150 / 0.75); }
.pricing-tier { font-family: var(--font-body); font-weight: 700; font-size: 14px; color: var(--green-text); text-transform: uppercase; letter-spacing: 0.04em; }
.pricing-price { font-family: var(--font-mono); font-weight: 700; font-size: clamp(28px, 3vw, 36px); color: var(--ink); margin: 10px 0 4px; }
.pricing-price span { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.pricing-list { margin: 20px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.pricing-list li { font-size: 14px; color: var(--text-secondary); display: flex; gap: 8px; }
.pricing-list li::before { content: '✓'; color: var(--green); font-weight: 700; }

.checklist { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.checklist li { display: flex; gap: 10px; font-size: 15px; color: var(--text-secondary); }
.checklist li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 24px 0 48px; }
.step-card { padding: 22px; border-radius: 18px; background: var(--paper-alt); border: 1px solid var(--border-soft); }
.step-num { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--green-text); }
.step-card h3 { font-size: 17px; margin: 8px 0 6px; color: var(--ink); }
.step-card p { font-size: 14px; color: var(--text-secondary); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 24px 0; }
.team-card { padding: 20px; border-radius: 18px; background: var(--paper-alt); border: 1px solid var(--border-soft); text-align: center; }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--paper-alt-2); margin: 0 auto 12px; }
.team-card .name { font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--ink); }
.team-card .role { font-size: 13px; color: var(--text-secondary); }

/* =========================================================
   PRICE ESTIMATOR MODAL
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: oklch(0.15 0.03 150 / 0.55);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal-box {
  position: relative;
  width: min(100%, 480px);
  max-height: 90vh;
  overflow-y: auto;
  background: oklch(0.98 0.012 140 / 0.9);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 32px 28px 28px;
  box-shadow: 0 40px 80px -30px oklch(0.2 0.06 150 / 0.5);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border-soft); background: oklch(0.96 0.016 140 / 0.8);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.modal-close:hover { background: var(--paper-alt-2); }
.modal-steps { display: flex; gap: 6px; margin-bottom: 20px; }
.modal-steps .dot { flex: 1; height: 4px; border-radius: 4px; background: var(--border); }
.modal-steps .dot.is-active, .modal-steps .dot.is-done { background: var(--green); }
.modal-title { color: var(--ink); margin-bottom: 6px; }
.modal-subtitle { font-size: 14px; color: var(--text-secondary); margin-bottom: 22px; }
.app-modal-box { max-width: 400px; text-align: center; }
.app-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-modal-actions .btn { width: 100%; }
@media (max-width: 480px) { .app-modal-actions { grid-template-columns: 1fr; } }
.modal-step { display: none; }
.modal-step.is-active { display: block; }
.modal-field { margin-bottom: 16px; }
.modal-field label { display: block; font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.modal-field select, .modal-field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: oklch(0.96 0.014 140 / 0.7); font-family: var(--font-body); font-size: 15px; color: var(--ink);
}
.modal-field select:focus, .modal-field input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.modal-radio-group { display: flex; gap: 10px; }
.modal-radio-group label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; color: var(--text-secondary); cursor: pointer;
}
.modal-radio-group input { width: auto; margin: 0; }
.modal-radio-group label:has(input:checked) { border-color: var(--green); background: var(--paper-alt-2); color: var(--ink); }
.modal-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.modal-error { font-size: 13px; color: var(--amber-deep); margin-top: -8px; margin-bottom: 12px; display: none; }
.modal-error.is-visible { display: block; }

.estimate-result { text-align: center; padding: 8px 0 4px; }
.estimate-range { font-family: var(--font-mono); font-weight: 700; font-size: clamp(24px, 4vw, 30px); color: var(--green-text); margin: 8px 0 20px; }
.estimate-breakdown { text-align: left; background: oklch(0.96 0.016 140 / 0.7); border-radius: 14px; padding: 16px 18px; margin-bottom: 22px; }
.estimate-breakdown .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); padding: 5px 0; }
.estimate-breakdown .row.total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px; font-weight: 700; color: var(--ink); }
.estimate-breakdown .row span:last-child { font-family: var(--font-mono); }
.modal-loading { text-align: center; padding: 30px 0; color: var(--text-secondary); font-size: 14px; }

.download-app-cta {
  background: var(--paper-alt-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 20px;
  text-align: center;
}
.download-app-cta p {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.app-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.app-buttons svg { width: 18px; height: 18px; }

.regno-row { display: flex; gap: 8px; }
.regno-row input { flex: 1; }
.regno-row .btn { white-space: nowrap; }

.vehicle-summary-card {
  background: var(--paper-alt-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.vehicle-summary-card .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 5px 0;
  color: var(--text-secondary);
}
.vehicle-summary-card .row:not(:last-child) { border-bottom: 1px solid var(--border-soft); }
.vehicle-summary-card .row span:first-child { font-weight: 600; color: var(--ink); }
.vehicle-summary-card .row span:last-child { text-align: right; }

.contact-capture h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 4px;
  text-align: center;
}
.contact-capture > p {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 16px;
}
.contact-capture {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.contact-capture.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

.contact-success { text-align: center; padding: 12px 0; opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease; }
.contact-success.is-entering { opacity: 1; transform: translateY(0); }
.contact-success p { font-size: 14px; color: var(--green-text); font-weight: 600; margin-bottom: 16px; }

/* =========================================================
   SUPPORT PAGE
   ========================================================= */
.support-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 48px; }
.support-channel-card { padding: 24px; border-radius: 20px; text-align: center; }
.support-channel-card .icon {
  width: 44px; height: 44px; border-radius: 50%; background: oklch(0.97 0.014 140);
  border: 1px solid oklch(0.6 0.08 152 / 0.4); display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; color: var(--green);
}
.support-channel-card h3 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.support-channel-card p { font-size: 14px; color: var(--text-secondary); }
.support-channel-card a.channel-link { display: inline-block; margin-top: 10px; font-weight: 600; color: var(--green-text); border-bottom: 1px solid var(--green-bright); padding-bottom: 1px; }

.contact-form { max-width: 560px; margin: 0 auto; padding: 32px; border-radius: 24px; }
.contact-form .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.contact-form label { display: block; font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--text-secondary); margin: 16px 0 6px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: oklch(0.98 0.012 140 / 0.7); font-family: var(--font-body); font-size: 15px; color: var(--ink);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.contact-form .btn { margin-top: 22px; }
.contact-form .modal-error { margin-top: 6px; }
.form-success {
  display: none; text-align: center; padding: 20px 0; color: var(--green-text);
  font-family: var(--font-body); font-weight: 600;
}
.form-success.is-visible { display: block; }
.contact-form.is-submitted form { display: none; }

/* =========================================================
   DEALERS PAGE
   ========================================================= */

/* ---------- Hero ---------- */
.dealer-hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 56px);
  align-items: center;
}
@media (max-width: 900px) { .dealer-hero { grid-template-columns: 1fr; } }

.dealer-hero-copy h1 .accent { color: var(--green-bright); }
.dealer-hero-divider { width: 56px; height: 3px; background: var(--green-bright); border: none; margin: 20px 0; }
.dealer-hero-copy .body-lg { color: var(--on-dark-body); max-width: 480px; margin-bottom: 30px; }
.dealer-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.dealer-process {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid oklch(0.34 0.035 150 / 0.6);
  font-family: var(--font-mono); font-size: 13px; color: var(--on-dark-muted);
}
.dealer-process .arrow { color: oklch(0.5 0.02 150); }

.dealer-hero-image-wrap { position: relative; }
.dealer-hero-image {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block;
  border-radius: 32px 12px 32px 12px;
  box-shadow: 0 30px 70px -25px oklch(0 0 0 / 0.5);
}
.dealer-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: oklch(0.15 0.03 150 / 0.7); backdrop-filter: blur(10px);
  border: 1px solid oklch(0.4 0.05 150 / 0.5); border-radius: 12px;
  padding: 10px 16px 10px 12px;
  box-shadow: 0 10px 24px -10px oklch(0 0 0 / 0.4);
}
.dealer-badge .b-icon {
  width: 32px; height: 32px; border-radius: 8px; background: oklch(0.72 0.13 152 / 0.18);
  display: flex; align-items: center; justify-content: center; color: var(--green-bright);
  font-family: var(--font-mono); font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.dealer-badge .b-title { color: var(--on-dark-strong); font-size: 13px; font-weight: 600; line-height: 1.2; }
.dealer-badge .b-sub { color: var(--on-dark-muted); font-size: 11px; }
.dealer-badge.b1 { top: 8%; right: -6%; }
.dealer-badge.b2 { top: 42%; left: -8%; }
.dealer-badge.b3 { bottom: 8%; right: -4%; }
@media (max-width: 640px) {
  .dealer-badge.b1, .dealer-badge.b2, .dealer-badge.b3 { position: static; margin: 10px auto 0; width: fit-content; }
}

/* ---------- Store badge buttons ---------- */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--on-dark-strong);
  padding: 10px 18px; border-radius: 12px;
  border: 1px solid oklch(0.34 0.035 150);
  transition: background 0.15s ease, transform 0.15s ease;
}
.store-badge:hover { background: var(--ink-light); transform: translateY(-1px); }
.store-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-badge .badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge .badge-text .small { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.03em; color: var(--on-dark-muted); }
.store-badge .badge-text .big { font-family: var(--font-body); font-size: 16px; font-weight: 700; }
.dealer-store-badges { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Feature carousel ---------- */
.feature-carousel { position: relative; max-width: 1000px; margin: 0 auto; }
.carousel-track-wrap { overflow: hidden; border-radius: 20px; }
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1); }
.carousel-slide {
  min-width: 100%; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 48px);
  align-items: center; background: var(--paper-alt-2); border-radius: 20px; padding: clamp(24px, 4vw, 40px);
}
@media (max-width: 900px) { .carousel-slide { grid-template-columns: 1fr; text-align: center; } }
.carousel-slide-visual { display: flex; align-items: center; justify-content: center; }
.carousel-slide-visual img { max-height: 420px; width: auto; max-width: 100%; object-fit: contain; }
.carousel-slide-text .kicker { margin-bottom: 12px; }
.carousel-slide-text h3 { font-size: clamp(22px, 2.8vw, 28px); color: var(--ink); margin-bottom: 12px; }
.carousel-slide-text p { font-size: 15px; color: var(--text-secondary); }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.carousel-dot { width: 9px; height: 9px; border-radius: 50%; padding: 0; border: 1px solid var(--border); background: transparent; cursor: pointer; transition: all 0.2s ease; }
.carousel-dot.is-active { background: var(--green); width: 24px; border-radius: 6px; border-color: var(--green); }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: center;
  color: var(--ink); cursor: pointer; box-shadow: 0 6px 16px -8px oklch(0.3 0.06 150 / 0.4); z-index: 2;
}
.carousel-arrow:hover { background: var(--ink); color: var(--on-dark-strong); }
.carousel-arrow.prev { left: -20px; }
.carousel-arrow.next { right: -20px; }
@media (max-width: 900px) { .carousel-arrow { display: none; } }

/* ---------- Dealer partnership (dark/mono signature section) ---------- */
.dealer-price-box {
  border: 1px dashed oklch(0.4 0.04 150); border-radius: 16px; padding: 28px;
  margin: 28px auto; max-width: 380px;
}
.dealer-price-box .dpb-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 16px; }
.dealer-price-box .dpb-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dealer-price-box .dpb-current { font-family: var(--font-mono); font-weight: 700; font-size: clamp(28px, 4vw, 34px); color: var(--green-bright); }
.dealer-price-box .dpb-per { font-family: var(--font-mono); font-size: 13px; color: var(--on-dark-muted); }
.dealer-price-box .dpb-strike { font-family: var(--font-mono); font-size: 18px; color: oklch(0.5 0.02 150); text-decoration: line-through; }
.dealer-price-box .dpb-lock { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--green-bright); margin-top: 18px; }

.checklist--dark { max-width: 380px; margin-left: auto; margin-right: auto; text-align: left; }
.checklist--dark li { color: var(--on-dark-body); font-family: var(--font-mono); font-size: 14px; }
.checklist--dark li::before { color: var(--green-bright); }

.btn-dashed {
  font-family: var(--font-mono); background: transparent; color: var(--on-dark-strong);
  border: 1px dashed var(--green-bright); border-radius: 100px; padding: 14px 28px;
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s ease, border-style 0.2s ease;
}
.btn-dashed:hover { background: oklch(0.72 0.13 152 / 0.1); border-style: solid; }

/* ---------- Lead modal success state ---------- */
.modal-success { display: none; text-align: center; padding: 12px 0; }
.modal-success.is-visible { display: block; }
.modal-success-check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--on-dark-strong);
  display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 20px;
  animation: popin 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popin { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.modal-success h3 { font-size: 22px; margin-bottom: 8px; color: var(--ink); }
.modal-success p { font-size: 15px; color: var(--text-secondary); margin-bottom: 0; }
.dealer-lead-form.is-hidden { display: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
