/* RabaisVÉ — styles.css
   Inspired by roulezelectrique.club — teal/navy palette from logo
   Mobile-first · Nunito font · Lighthouse 100 target */

/* =====================
   GOOGLE FONTS — Nunito
   ===================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* =====================
   1. DESIGN TOKENS
   ===================== */
:root {
  /* Backgrounds (deep navy — matches logo) */
  --bg-0: #06091c;
  --bg-1: #090d25;
  --bg-2: #0d1232;
  --bg-card: #101840;
  --bg-card-hover: #141e4c;
  --bg-input: #0b1030;

  /* Brand — Teal/Cyan (logo "VÉ" color) */
  --brand: #00c2e8;
  --brand-dim: #009ec4;
  --brand-pale: rgba(0,194,232,0.10);
  --brand-glow: rgba(0,194,232,0.25);
  --brand-border: rgba(0,194,232,0.22);

  /* Blue accent */
  --blue: #3d7eff;
  --blue-dim: #1a60e8;
  --blue-pale: rgba(61,126,255,0.10);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #00c2e8 0%, #0072ff 100%);
  --grad-hero: linear-gradient(135deg, #00d4ff 0%, #006aff 100%);
  --grad-comp: linear-gradient(160deg, #07103a 0%, #040920 100%);

  /* Text */
  --text-1: #eef3ff;
  --text-2: #8da0c4;
  --text-3: #4a5878;

  /* Borders */
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.13);

  /* Status */
  --green: #00e676;
  --amber: #ffab40;
  --red: #ff5252;
  --teal: #64ffda;

  /* Typography */
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radii (matching roulezelectrique.club) */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,20,0.25), 0 2px 8px -2px rgba(0,0,20,0.3);
  --shadow-card: 0 2px 6px rgba(0,0,20,0.35), 0 8px 24px -4px rgba(0,0,20,0.45);
  --shadow-cta:  0 10px 28px -8px rgba(0,194,232,0.55);
  --shadow-brand: 0 0 32px rgba(0,194,232,0.18);

  /* Transitions */
  --ease: 0.15s ease;
  --ease-md: 0.25s ease;

  /* Layout */
  --max-w: 1140px;
  --header-h: 68px;
}

/* =====================
   2. RESET
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--brand-dim); }
button { font-family: var(--font); cursor: pointer; border: none; outline: none; background: none; }
input, select, textarea { font-family: var(--font); outline: none; border: none; }
ul, ol { list-style: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* =====================
   3. TYPOGRAPHY
   ===================== */
h1 { font-size: clamp(2rem, 5.5vw, 3.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; line-height: 1.35; }
h4 { font-size: 1rem; font-weight: 700; }
p  { line-height: 1.7; }

.text-brand { color: var(--brand); }
.text-muted { color: var(--text-2); }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =====================
   4. LAYOUT
   ===================== */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px)  { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 40px; } }

.section { padding: 80px 0; }
.section-sm { padding: 52px 0; }
.section-lg { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-pale); border: 1px solid var(--brand-border);
  padding: 5px 14px; border-radius: var(--r-full);
  margin-bottom: 14px;
}
.eyebrow .pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex-shrink: 0;
  position: relative;
}
/* GPU-composited pulse ring using ::after + transform + opacity */
.eyebrow .pulse-dot::after {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: var(--brand); opacity: 0.7;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50%       { transform: scale(2.8); opacity: 0; }
}
.section-header h2 { margin-bottom: 14px; }
.section-header .lede { color: var(--text-2); max-width: 580px; margin: 0 auto; font-size: clamp(1rem, 2vw, 1.1rem); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media (min-width: 768px)  { .grid-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 640px)  { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3,1fr); } .grid-4 { grid-template-columns: repeat(4,1fr); } }

/* =====================
   5. NAVIGATION
   ===================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  background: rgba(6,9,28,0.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease-md);
}
.navbar.scrolled { background: rgba(6,9,28,0.96); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 40px; width: auto; object-fit: contain; }
/* Fallback text logo if image unavailable */
.logo-text {
  font-size: 1.35rem; font-weight: 900; color: var(--text-1); letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo-text .ve { background: var(--grad-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links { display: none; align-items: center; gap: 28px; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { color: var(--text-2); font-size: 0.875rem; font-weight: 700; transition: color var(--ease); }
.nav-links a:hover { color: var(--text-1); }

.nav-right { display: flex; align-items: center; gap: 10px; }

/* Lang toggle */
.lang-toggle {
  display: flex; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 3px; gap: 2px;
}
.lang-btn {
  font-size: 0.68rem; font-weight: 800; padding: 4px 11px;
  border-radius: var(--r-full); color: var(--text-3); transition: all var(--ease);
  letter-spacing: 0.06em;
}
.lang-btn.active { background: var(--brand); color: #000; }

/* =====================
   6. BUTTONS
   ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 0.95rem; font-weight: 800;
  padding: 13px 26px; border-radius: var(--r-lg);
  border: 1.5px solid transparent; transition: all var(--ease); cursor: pointer;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn.loading  { opacity: 0.65; pointer-events: none; }

/* Primary — teal */
.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(0,194,232,0.65); color: #fff; }
.btn-primary:active { transform: translateY(0); }

/* Secondary — ghost bordered */
.btn-secondary { background: transparent; border-color: var(--border-hover); color: var(--text-1); }
.btn-secondary:hover { background: var(--bg-card); border-color: rgba(255,255,255,0.18); color: var(--text-1); }

/* Outline brand */
.btn-outline { background: transparent; border-color: var(--brand-border); color: var(--brand); }
.btn-outline:hover { background: var(--brand-pale); }

/* Ghost */
.btn-ghost { color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-card); color: var(--text-1); }

/* Danger */
.btn-danger { border-color: rgba(255,82,82,0.35); color: var(--red); }
.btn-danger:hover { background: rgba(255,82,82,0.07); }

/* White on dark (for comp section) */
.btn-white { background: #fff; color: var(--bg-0); border-color: #fff; }
.btn-white:hover { background: rgba(255,255,255,0.9); color: var(--bg-0); transform: translateY(-2px); }

.btn-sm  { font-size: 0.8rem; padding: 9px 18px; border-radius: var(--r-md); }
.btn-lg  { font-size: 1.05rem; padding: 16px 34px; border-radius: var(--r-xl); }
.btn-full { width: 100%; }

/* =====================
   7. CARDS
   ===================== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease-md), box-shadow var(--ease-md), border-color var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--border-hover); }
.card.glow { box-shadow: var(--shadow-brand); border-color: var(--brand-border); }
.card.glow:hover { box-shadow: 0 4px 40px rgba(0,194,232,0.28); }

/* Card icon box */
.card-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0; margin-bottom: 16px;
}
.ci-brand  { background: var(--brand-pale); color: var(--brand); }
.ci-blue   { background: var(--blue-pale); color: var(--blue); }
.ci-amber  { background: rgba(255,171,64,0.1); color: var(--amber); }
.ci-red    { background: rgba(255,82,82,0.1); color: var(--red); }
.ci-green  { background: rgba(0,230,118,0.1); color: var(--green); }

/* =====================
   8. FORMS
   ===================== */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.82rem; font-weight: 700; color: var(--text-2); }
.form-label .req { color: var(--red); margin-left: 2px; }

.form-input {
  background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 12px 16px;
  color: var(--text-1); font-family: var(--font); font-size: 0.875rem; width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-pale); outline: none; }
.form-input::placeholder { color: var(--text-3); }
.form-input.error { border-color: var(--red); }

.form-select {
  background: var(--bg-input); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 12px 42px 12px 16px;
  color: var(--text-1); font-family: var(--font); font-size: 0.875rem; width: 100%;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5878' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-pale); outline: none; }
.form-select option { background: var(--bg-card); color: var(--text-1); }

.form-error { font-size: 0.75rem; color: var(--red); margin-top: 2px; }
.form-hint  { font-size: 0.75rem; color: var(--text-3); }

.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 500px) { .form-row-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 640px) { .form-row-3 { grid-template-columns: repeat(3,1fr); } }

.form-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-checkbox input[type="checkbox"] { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; accent-color: var(--brand); cursor: pointer; }
.form-checkbox span { font-size: 0.875rem; color: var(--text-2); line-height: 1.5; }

.radio-group { display: flex; gap: 8px; }
.radio-btn {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: var(--r-md); border: 1.5px solid var(--border);
  cursor: pointer; font-size: 0.875rem; font-weight: 700; color: var(--text-2); transition: all var(--ease);
}
.radio-btn input[type="radio"] { display: none; }
.radio-btn.selected { border-color: var(--brand); background: var(--brand-pale); color: var(--brand); }
.form-section-sep { height: 1px; background: var(--border); }
.form-section-lbl { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); }

/* =====================
   9. BADGES & STATUS
   ===================== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.68rem; font-weight: 800; padding: 3px 9px; border-radius: var(--r-full);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-brand { background: var(--brand-pale); color: var(--brand); border: 1px solid var(--brand-border); }
.badge-blue  { background: var(--blue-pale); color: var(--blue); }
.badge-amber { background: rgba(255,171,64,0.12); color: var(--amber); }
.badge-red   { background: rgba(255,82,82,0.1); color: var(--red); }
.badge-green { background: rgba(0,230,118,0.1); color: var(--green); }
.badge-gray  { background: rgba(255,255,255,0.06); color: var(--text-3); }

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-brand { background: var(--brand); box-shadow: 0 0 6px var(--brand); }
.dot-green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot-amber { background: var(--amber); }
.dot-red   { background: var(--red); }
.dot-gray  { background: var(--text-3); }

/* =====================
   10. HERO SECTION
   ===================== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--header-h); position: relative; overflow: hidden;
}

/* Blurred gradient orbs (like roulezelectrique.club) */
.hero-orb-1, .hero-orb-2 {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: 0;
}
.hero-orb-1 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(0,194,232,0.18) 0%, transparent 70%);
  top: -100px; right: -80px;
}
.hero-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(61,126,255,0.14) 0%, transparent 70%);
  bottom: -60px; left: -60px;
}

/* Subtle grid */
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}

.hero-content { position: relative; z-index: 1; text-align: center; padding: 56px 0 72px; }

.hero h1 { margin-bottom: 20px; max-width: 820px; margin-left: auto; margin-right: auto; }

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.175rem); color: var(--text-2);
  max-width: 600px; margin: 0 auto 40px; line-height: 1.75;
}

.hero-actions {
  display: flex; flex-direction: column; gap: 12px;
  align-items: center; justify-content: center; margin-bottom: 48px;
}
@media (min-width: 480px) { .hero-actions { flex-direction: row; } }

.hero-note {
  font-size: 0.75rem; color: var(--text-3); display: flex;
  align-items: center; justify-content: center; gap: 6px;
}

.hero-stats {
  display: flex; gap: 0; justify-content: center; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 40px; margin-top: 16px;
}
.hero-stat {
  text-align: center; padding: 0 32px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
@media (max-width: 640px) { .hero-stat { padding: 12px 20px; border-right: none; border-bottom: 1px solid var(--border); } .hero-stat:last-child { border-bottom: none; } }

.hero-stat-val { font-size: 1.8rem; font-weight: 900; letter-spacing: -0.03em; }
.hero-stat-lbl { font-size: 0.68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* =====================
   11. STEPS (CSS counter — like roulezelectrique.club)
   ===================== */
.steps-list { counter-reset: step-counter; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .steps-list { grid-template-columns: repeat(3,1fr); } }

.step-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 36px 24px 24px; position: relative; text-align: center;
  counter-increment: step-counter;
  transition: transform var(--ease-md), box-shadow var(--ease-md), border-color var(--ease);
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--border-hover); }

/* CSS counter badge — automatic step numbers */
.step-card::before {
  content: counter(step-counter);
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-brand); color: #fff;
  font-size: 0.85rem; font-weight: 900; font-family: var(--font);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -4px rgba(0,194,232,0.5);
}

.step-icon { font-size: 2rem; margin-bottom: 14px; }
.step-title { font-size: 1rem; font-weight: 800; margin-bottom: 8px; color: var(--text-1); }
.step-desc { font-size: 0.82rem; color: var(--text-2); line-height: 1.65; }

/* =====================
   12. COMPENSATION BLOCK
   ===================== */
.comp-section {
  background: var(--grad-comp);
  position: relative; overflow: hidden;
}
.comp-section::before {
  content: '';
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,194,232,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.comp-inner { position: relative; z-index: 1; text-align: center; }

.comp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  padding: 5px 16px; border-radius: var(--r-full); margin-bottom: 20px;
}
.comp-badge .pulse-dot { background: var(--brand); }

.comp-amount {
  font-size: clamp(4rem, 10vw, 7rem); font-weight: 900; letter-spacing: -0.04em;
  line-height: 1; margin-bottom: 8px;
  background: linear-gradient(180deg, #fff 0%, #a0d8f0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.comp-unit { font-size: 1.4rem; font-weight: 800; color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.comp-subtitle { font-size: 1rem; color: rgba(255,255,255,0.65); max-width: 480px; margin: 0 auto 48px; }

.comp-features {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  max-width: 900px; margin: 0 auto 40px;
}
@media (min-width: 640px)  { .comp-features { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .comp-features { grid-template-columns: repeat(4,1fr); } }

.comp-feature {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg); padding: 20px 16px; text-align: center;
  transition: background var(--ease), border-color var(--ease);
}
.comp-feature:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); }
.comp-feature-icon { font-size: 1.5rem; margin-bottom: 10px; }
.comp-feature-title { font-size: 0.85rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.comp-feature-desc  { font-size: 0.75rem; color: rgba(255,255,255,0.55); line-height: 1.5; }

.comp-disclaimer { font-size: 0.72rem; color: rgba(255,255,255,0.4); max-width: 480px; margin: 0 auto; }

/* =====================
   13. TRUST / DATA SECTION
   ===================== */
.trust-section { background: var(--bg-1); }
.trust-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  max-width: 860px; margin: 0 auto;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(2,1fr); } }

.trust-item {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px;
  transition: border-color var(--ease), transform var(--ease-md);
}
.trust-item:hover { border-color: var(--brand-border); transform: translateY(-2px); }
.trust-item-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--brand-pale); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.trust-item-title { font-size: 0.9rem; font-weight: 800; margin-bottom: 4px; }
.trust-item-desc  { font-size: 0.8rem; color: var(--text-2); line-height: 1.65; }

/* =====================
   14. BRAND CARDS (Compatible EV)
   ===================== */
.brands-section { background: var(--bg-0); }
.brand-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (min-width: 480px) { .brand-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 768px) { .brand-grid { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 1024px) { .brand-grid { grid-template-columns: repeat(6,1fr); } }

.brand-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 16px; text-align: center;
  transition: all var(--ease-md);
}
.brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--brand-border); }
.brand-icon  { font-size: 2rem; margin-bottom: 10px; }
.brand-name  { font-size: 0.85rem; font-weight: 800; color: var(--text-1); }
.brand-sub   { font-size: 0.7rem; color: var(--text-3); margin-top: 3px; }

/* =====================
   15. FAQ ACCORDION
   ===================== */
.faq-section { background: var(--bg-1); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--ease);
}
.faq-item[open] { border-color: var(--brand-border); }

.faq-item summary {
  list-style: none; padding: 18px 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.95rem; font-weight: 700; color: var(--text-1);
  gap: 16px; -webkit-user-select: none; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-toggle {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-pale); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 300; transition: transform var(--ease);
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--brand); color: #fff; }

.faq-answer {
  padding: 0 20px 18px; padding-top: 14px;
  color: var(--text-2); font-size: 0.875rem; line-height: 1.75;
  border-top: 1px solid var(--border);
}

/* =====================
   16. CTA BAND
   ===================== */
.cta-band {
  background: linear-gradient(135deg, #061440 0%, #020918 100%);
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 50%, rgba(0,194,232,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band-inner { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--text-2); margin-bottom: 32px; font-size: 1rem; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =====================
   17. NON-TESLA WAITLIST
   ===================== */
.waitlist-section { background: var(--bg-0); }
.waitlist-container { max-width: 700px; margin: 0 auto; }

.waitlist-notice {
  background: var(--bg-card); border: 1px solid var(--brand-border);
  border-radius: var(--r-lg); padding: 18px 22px;
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px;
}
.waitlist-notice .ni { font-size: 1.3rem; flex-shrink: 0; }
.waitlist-notice p { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

.waitlist-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 18px;
}

.form-success-state { text-align: center; padding: 36px 16px; display: none; }
.form-success-state .si { font-size: 3rem; margin-bottom: 14px; }
.form-success-state h3 { font-size: 1.25rem; color: var(--brand); margin-bottom: 10px; }
.form-success-state p { color: var(--text-2); font-size: 0.875rem; }

/* =====================
   18. FOOTER
   ===================== */
.footer {
  background: var(--bg-1); border-top: 1px solid var(--border);
  padding: 32px 0 40px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { opacity: 0.75; transition: opacity var(--ease); }
.footer-logo:hover { opacity: 1; }
.footer-logo img { height: 32px; width: auto; }
.footer-logo .logo-text { font-size: 1.1rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { font-size: 0.82rem; color: var(--text-3); font-weight: 600; transition: color var(--ease); }
.footer-links a:hover { color: var(--brand); }

.footer-right { text-align: right; }
.footer-copy { font-size: 0.75rem; color: var(--text-3); }
.footer-disclaimer { font-size: 0.7rem; color: var(--text-3); font-style: italic; margin-top: 3px; }

/* =====================
   19. DASHBOARD
   ===================== */
.dash-layout { min-height: 100vh; padding-top: var(--header-h); }
.dash-header { background: var(--bg-1); border-bottom: 1px solid var(--border); padding: 24px 0; }
.dash-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.dash-welcome h2 { font-size: 1.25rem; font-weight: 800; }
.dash-welcome p { font-size: 0.8rem; color: var(--text-2); margin-top: 3px; }

.dash-main { padding: 32px 0; }

.stats-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 28px; }
@media (min-width: 768px) { .stats-row { grid-template-columns: repeat(4,1fr); } }

.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.stat-card.glow { border-color: var(--brand-border); box-shadow: var(--shadow-brand); }
.stat-card-label { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 10px; }
.stat-card-header { display: flex; align-items: flex-start; justify-content: space-between; }
.stat-val { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.stat-sub { font-size: 0.72rem; color: var(--text-3); margin-top: 6px; }

.dash-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .dash-grid { grid-template-columns: 1fr 340px; } }

.vehicle-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px;
  position: relative; overflow: hidden;
}
.vehicle-card::after {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--brand-pale) 0%, transparent 70%); pointer-events: none;
}
.vehicle-info { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.vehicle-icon {
  width: 56px; height: 56px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
}
.vehicle-name { font-size: 1.1rem; font-weight: 800; }
.vehicle-vin  { font-size: 0.7rem; color: var(--text-3); font-family: monospace; margin-top: 2px; }
.vehicle-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }

.disclaimer-box {
  background: rgba(255,171,64,0.05); border: 1px solid rgba(255,171,64,0.2);
  border-radius: var(--r-md); padding: 12px 16px;
  display: flex; gap: 10px; align-items: flex-start; margin-top: 16px;
}
.disclaimer-icon { color: var(--amber); flex-shrink: 0; font-size: 0.9rem; margin-top: 1px; }
.disclaimer-box p { font-size: 0.77rem; color: var(--text-2); line-height: 1.65; }

/* =====================
   20. TABLES
   ===================== */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { text-align: left; padding: 11px 16px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.015); }

/* =====================
   21. ADMIN
   ===================== */
.admin-layout { min-height: 100vh; display: flex; padding-top: var(--header-h); }
.admin-sidebar {
  width: 240px; flex-shrink: 0; background: var(--bg-1); border-right: 1px solid var(--border);
  padding: 20px; position: fixed; top: var(--header-h); left: 0; bottom: 0;
  overflow-y: auto; display: none;
}
@media (min-width: 1024px) { .admin-sidebar { display: block; } }
.admin-main { flex: 1; padding: 32px 0; overflow: hidden; }
@media (min-width: 1024px) { .admin-main { margin-left: 240px; } }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 20px; }
.sidebar-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: var(--r-md); color: var(--text-2); font-size: 0.875rem; font-weight: 700;
  cursor: pointer; transition: all var(--ease); border: 1px solid transparent;
}
.sidebar-item:hover { background: var(--bg-card); color: var(--text-1); }
.sidebar-item.active { background: var(--bg-card); border-color: var(--brand-border); color: var(--brand); }

.metric-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-bottom: 32px; }
@media (min-width: 768px)  { .metric-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1200px) { .metric-grid { grid-template-columns: repeat(6,1fr); } }
.metric-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.metric-val { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; margin-top: 6px; }
.metric-lbl { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.metric-change { font-size: 0.72rem; margin-top: 4px; }
.admin-section-title {
  font-size: 1.05rem; font-weight: 800; margin-bottom: 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}

/* =====================
   22. ALERTS / TOAST
   ===================== */
.alert { padding: 14px 18px; border-radius: var(--r-md); font-size: 0.875rem; display: flex; gap: 10px; align-items: flex-start; }
.alert-icon { flex-shrink: 0; }
.alert-success { background: rgba(0,230,118,0.07); border: 1px solid rgba(0,230,118,0.2); color: var(--green); }
.alert-warning { background: rgba(255,171,64,0.07); border: 1px solid rgba(255,171,64,0.2); color: var(--amber); }
.alert-error   { background: rgba(255,82,82,0.07);  border: 1px solid rgba(255,82,82,0.2);  color: var(--red); }
.alert-info    { background: var(--brand-pale);       border: 1px solid var(--brand-border);  color: var(--brand); }

#toast-container {
  position: fixed; top: calc(var(--header-h) + 12px); right: 16px;
  z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 14px 18px; font-size: 0.875rem; max-width: 320px; box-shadow: var(--shadow-card);
  pointer-events: all; display: flex; gap: 10px; align-items: center; font-weight: 600;
  animation: toastIn 0.3s ease;
}
.toast.success { border-color: var(--brand-border); }
.toast.error   { border-color: rgba(255,82,82,0.3); }
@keyframes toastIn  { from { transform: translateX(110%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { transform: translateX(110%); opacity: 0; } }

/* =====================
   23. LEGAL
   ===================== */
.legal-layout { min-height: 100vh; padding-top: var(--header-h); }
.legal-hero { background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%); padding: 56px 0 40px; text-align: center; border-bottom: 1px solid var(--border); }
.legal-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 12px; }
.legal-hero h1 .legal-hero__subtitle { font-size: 0.55em; font-weight: 400; color: var(--text-2); display: block; }
.legal-hero p { color: var(--text-2); font-size: 0.875rem; }
.legal-content { max-width: 800px; margin: 0 auto; padding: 48px 20px 80px; }
.legal-content h2 { font-size: 1.2rem; margin: 36px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.legal-content h3 { font-size: 0.95rem; margin: 22px 0 8px; color: var(--text-1); font-weight: 800; }
.legal-content p  { color: var(--text-2); margin-bottom: 12px; font-size: 0.875rem; line-height: 1.8; }
.legal-content ul { margin-bottom: 12px; padding-left: 20px; }
.legal-content ul li { color: var(--text-2); font-size: 0.875rem; margin-bottom: 6px; line-height: 1.7; list-style: disc; }

/* =====================
   24. COMPONENT HELPERS
   ===================== */

/* Card variants */
.card-flush  { padding: 0; overflow: hidden; }
.card-flush:hover { transform: none; }   /* table cards don't lift */

/* Dot without animation (static status) */
.dot-static  { animation: none; }

/* Logo: image hides the text fallback via CSS sibling rule */
.logo-img    { height: 40px; width: auto; object-fit: contain; display: block; }
.logo-img + .logo-text { display: none; }   /* text shown only when img absent */
.logo-img-sm { height: 32px; }

/* Logo text fallback (shown when .logo-img is not present) */
.logo-text   {
  font-size: 1.35rem; font-weight: 900; color: var(--text-1); letter-spacing: -0.03em;
  white-space: nowrap;
}
.logo-text .ve {
  background: var(--grad-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* =====================
   25. SHARED COMPONENT HELPERS
   ===================== */

/* Eyebrow with extra top/bottom spacing */
.eyebrow-spaced  { margin-bottom: 20px; }

/* Brand card — coming soon / dashed */
.brand-card-coming { border-style: dashed; opacity: 0.6; }
.brand-card-coming:hover { opacity: 0.85; }

/* Admin badge in nav */
.admin-nav-badge {
  font-size: 0.65rem; font-weight: 700; color: var(--red);
  background: rgba(255,82,82,0.1); border: 1px solid rgba(255,82,82,0.3);
  border-radius: var(--r-sm); padding: 2px 7px; margin-left: 8px;
  letter-spacing: 0.04em;
}

/* Admin sidebar heading */
.admin-sidebar-heading { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }

/* Admin toolbar row */
.admin-toolbar { display: flex; gap: 8px; align-items: center; }

/* Metric trend lines */
.metric-trend         { font-size: 0.72rem; margin-top: 4px; }
.metric-trend-pos     { color: var(--green); }
.metric-trend-neg     { color: var(--red); }
.metric-trend-neutral { color: var(--text-3); }
.metric-trend-brand   { color: var(--brand); }
.metric-trend-amber   { color: var(--amber); }

/* Secondary metric card (non-grid stat) */
.secondary-metric-label { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 12px; }
.secondary-metric-value { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }
.secondary-metric-sub   { font-size: 0.8rem; color: var(--text-2); margin-top: 4px; }

/* Monospace code cell */
.code-mono { font-size: 0.7rem; color: var(--text-3); font-family: monospace; }

/* Card that contains a table (flush, no hover lift) */
.card-table { padding: 0; overflow: hidden; }
.card-table:hover { transform: none; }

/* =====================
   26. DASHBOARD COMPONENTS
   ===================== */

/* Stats row cells */
.stat-val-strong    { color: var(--text-1); }
.stat-val-reward    { font-size: 1rem; }

/* Sessions card */
.sessions-card-header {
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.sessions-card-title { font-size: 1rem; font-weight: 800; }

/* Status dot inline (for badges inside dash) */
.badge-dot {
  width: 5px; height: 5px; border-radius: 50%; display: inline-block;
  animation: pulseDot 2s infinite;
}

/* Vehicle meta list */
.vehicle-meta {
  font-size: 0.78rem; color: var(--text-2); line-height: 2;
  border-top: 1px solid var(--border); padding-top: 14px;
}
.vehicle-meta-row  { display: flex; justify-content: space-between; }
.vehicle-meta-key  { color: var(--text-3); }

/* Calculation card */
.calc-card { padding: 20px; }
.calc-card-title {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 14px;
}
.calc-rows     { font-size: 0.82rem; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; }
.calc-row      { display: flex; justify-content: space-between; }
.calc-row-val  { color: var(--text-1); }
.calc-key      { color: var(--text-2); }
.calc-divider  { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.calc-row-total { display: flex; justify-content: space-between; }
.calc-row-total strong { font-weight: 800; }
.calc-total-val { font-size: 1rem; }
.calc-note {
  font-size: 0.68rem; color: var(--text-3); margin-top: 10px; line-height: 1.5;
}

/* Page footer minimal */
.page-footer-minimal {
  border-top: 1px solid var(--border); padding: 16px 0; background: var(--bg-1);
}
.page-footer-minimal .container {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.page-footer-copy      { font-size: 0.72rem; color: var(--text-3); }
.page-footer-disclaimer { font-size: 0.72rem; color: var(--text-3); font-style: italic; }

/* =====================
   25. UTILS
   ===================== */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.divider { height: 1px; background: var(--border); }
.text-center { text-align: center; }
.w-full { width: 100%; }
@media (max-width: 767px)  { .hide-mobile  { display: none !important; } }
@media (min-width: 768px)  { .hide-desktop { display: none !important; } }

/* ── Hero Calculator ───────────────────────────────────────────── */
.hero-calc {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 28px 0 0;
  max-width: 420px;
  text-align: center;
}
.hero-calc-label {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-calc-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px;
}
.calc-adj {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calc-adj:hover { background: var(--brand); color: #000; }
.calc-display {
  font-size: 1.5rem;
  font-weight: 800;
  min-width: 140px;
}
.calc-unit { font-size: 0.8rem; color: var(--text-2); font-weight: 400; margin-left: 4px; }
.hero-calc-result {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.hero-calc-result .grad-text { font-size: 1.8rem; font-weight: 900; }
.calc-result-label { color: var(--text-2); font-size: 0.85rem; }
.calc-result-year { color: var(--text-3); font-size: 0.78rem; display: block; margin-top: 2px; }
.calc-disclaimer { font-size: 0.72rem; color: var(--text-3); margin: 0; }

.hero-store-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── CFR Grid ──────────────────────────────────────────────────── */
.cfr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 40px 0 32px;
}
.cfr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.cfr-card:hover { border-color: var(--brand); }
.cfr-icon { font-size: 2rem; margin-bottom: 14px; }
.cfr-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-1);
}
.cfr-card p { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; margin: 0; }
.cfr-cta {
  text-align: center;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}
.cfr-note {
  font-size: 0.875rem;
  color: var(--text-2);
  margin-bottom: 20px;
}

/* Language-specific content for privacy/terms pages */
/* Hide English content (italicized paragraphs) when lang is French */
html[lang="fr"] .legal-content p em,
html[lang="fr"] .legal-content p:has(em:only-child) {
  display: none;
}
