/* ============================================
   ChargerChooser — Global Stylesheet
   Aesthetic: Clean electric energy
   Volt green on white, dark charcoal structure
   Technical precision meets everyday utility
   Fonts: Exo 2 (geometric technical) + Crimson Pro (editorial serif)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&display=swap');

/* ─── TOKENS ──────────────────────────────── */
:root {
  /* Volt-green electric palette */
  --volt:        #22c55e;
  --volt-dark:   #16a34a;
  --volt-light:  #f0fdf4;
  --volt-pale:   #dcfce7;
  --volt-dim:    rgba(34,197,94,.12);

  /* Charcoal structure */
  --charcoal:    #111827;
  --charcoal-2:  #1f2937;
  --charcoal-3:  #374151;
  --charcoal-4:  #4b5563;

  /* Clean neutrals */
  --white:       #ffffff;
  --paper:       #f9fafb;
  --paper-2:     #f3f4f6;
  --paper-3:     #e5e7eb;
  --ink:         #111827;
  --ink-2:       #1f2937;
  --ink-3:       #6b7280;
  --ink-4:       #9ca3af;
  --border:      #e5e7eb;
  --border-dark: #d1d5db;

  /* Status */
  --good:        #16a34a;
  --good-light:  #f0fdf4;
  --warn:        #d97706;
  --warn-light:  #fffbeb;
  --bad:         #dc2626;
  --bad-light:   #fef2f2;

  /* Shadow */
  --shadow-sm:   0 1px 3px rgba(17,24,39,.07);
  --shadow:      0 4px 16px rgba(17,24,39,.08), 0 1px 4px rgba(17,24,39,.05);
  --shadow-lg:   0 12px 40px rgba(17,24,39,.12);
  --shadow-volt: 0 0 0 3px rgba(34,197,94,.18);

  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   16px;
  --header-h:    60px;
  --max-w:       1160px;

  --font-ui:     'Exo 2', system-ui, sans-serif;
  --font-body:   'Crimson Pro', Georgia, serif;
}

/* ─── RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── HEADER ──────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--charcoal);
  height: var(--header-h);
  border-bottom: 2px solid var(--volt);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo {
  display: flex; align-items: center; gap: 7px;
  text-decoration: none; font-size: 18px;
  font-weight: 700; color: var(--white);
  letter-spacing: -.02em;
}
.logo-bolt { color: var(--volt); font-size: 16px; }
.site-nav { display: flex; gap: 4px; }
.nav-link {
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
  color: rgba(255,255,255,.55); text-decoration: none;
  padding: 7px 13px; border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav-link.active { color: var(--volt); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,.7); border-radius: 2px; transition: all .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--charcoal-2); border-top: 1px solid var(--charcoal-3);
  padding: 12px 24px; gap: 2px;
}
.mobile-nav .nav-link { padding: 10px 12px; }
.mobile-nav.open { display: flex; }

/* ─── HERO ────────────────────────────────── */
.page-hero {
  background: var(--charcoal);
  padding: 72px 0 64px;
  position: relative; overflow: hidden;
}
/* Circuit-board texture */
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
/* Volt glow orb */
.page-hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34,197,94,.08) 0%, transparent 70%);
  top: -100px; right: -80px;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.hero-inner.centered {
  grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; text-align: center;
}
.eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--volt); margin-bottom: 14px; display: block;
}
.hero-title {
  font-family: var(--font-ui);
  font-size: clamp(34px,4.5vw,54px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -.03em; color: var(--white);
  margin-bottom: 18px;
}
.hero-title em { color: var(--volt); font-style: normal; }
.hero-sub {
  font-size: 17px; color: rgba(255,255,255,.6);
  line-height: 1.7; max-width: 480px; margin-bottom: 32px;
}
.hero-inner.centered .hero-sub { max-width: 100%; }

/* ─── BUTTONS ─────────────────────────────── */
.btn-primary {
  display: inline-block; background: var(--volt); color: var(--charcoal);
  padding: 13px 26px; border-radius: var(--radius-sm);
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  letter-spacing: .02em; text-decoration: none;
  transition: background .2s, transform .1s, box-shadow .2s;
}
.btn-primary:hover { background: var(--volt-dark); box-shadow: var(--shadow-volt); }
.btn-primary:active { transform: scale(.98); }

.btn-secondary {
  display: inline-block; border: 2px solid var(--volt); color: var(--volt);
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; text-decoration: none; transition: all .2s;
}
.btn-secondary:hover { background: var(--volt); color: var(--charcoal); }

.btn-outline {
  display: inline-block; border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.8); padding: 11px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; text-decoration: none; transition: all .2s;
}
.btn-outline:hover { border-color: var(--volt); color: var(--volt); }

/* ─── SECTION LAYOUT ──────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--charcoal); }
.section-header { margin-bottom: 44px; }
.section-header h2 {
  font-family: var(--font-ui); font-size: clamp(24px,3vw,36px);
  font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px;
}
.section-header p { color: var(--ink-3); font-size: 16px; max-width: 560px; }
.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header p { color: rgba(255,255,255,.5); }

/* ─── CARDS ───────────────────────────────── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card-volt { border-color: var(--volt); border-width: 2px; }

/* ─── CHARGER CARDS ───────────────────────── */
.charger-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm); position: relative;
  transition: box-shadow .2s, transform .2s;
}
.charger-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.charger-card.top { border-color: var(--volt); border-width: 2px; }
.charger-badge {
  position: absolute; top: -1px; left: 18px;
  background: var(--volt); color: var(--charcoal);
  font-size: 10px; font-weight: 800; padding: 3px 10px;
  border-radius: 0 0 6px 6px; letter-spacing: .05em; text-transform: uppercase;
}
.charger-brand { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin: 14px 0 2px; }
.charger-name { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.charger-price { font-size: 16px; font-weight: 600; color: var(--volt-dark); margin-bottom: 12px; }
.charger-tagline { font-family: var(--font-body); font-size: 14px; color: var(--ink-3); line-height: 1.6; margin-bottom: 14px; }

/* Rating bars */
.rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.rating-label { font-size: 11px; color: var(--ink-3); min-width: 80px; font-weight: 500; }
.rating-track { flex: 1; height: 4px; background: var(--paper-3); border-radius: 2px; overflow: hidden; }
.rating-fill { height: 100%; border-radius: 2px; background: var(--volt); }

/* Spec pills */
.spec-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.spec-pill {
  font-size: 11px; padding: 3px 9px; border-radius: 99px;
  font-weight: 600; background: var(--paper-2); color: var(--ink-2);
  border: 1px solid var(--border);
}
.spec-pill.volt { background: var(--volt-pale); color: var(--volt-dark); border-color: rgba(34,197,94,.3); }

/* Charger CTA */
.charger-cta {
  display: block; text-align: center; padding: 10px;
  background: var(--volt); color: var(--charcoal);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 700;
  text-decoration: none; margin-top: 14px; transition: background .15s;
}
.charger-cta:hover { background: var(--volt-dark); }
.charger-cta.secondary {
  background: transparent; border: 1.5px solid var(--border);
  color: var(--ink-3); margin-top: 8px;
}
.charger-cta.secondary:hover { border-color: var(--volt); color: var(--volt); background: transparent; }

/* ─── COMPARISON TABLE ────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead { background: var(--charcoal); }
th {
  padding: 13px 14px; text-align: left;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: rgba(255,255,255,.6); border-bottom: 2px solid var(--volt);
  white-space: nowrap;
}
td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--ink-2); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--volt-light); }
td:first-child { font-weight: 600; color: var(--ink); }
.td-yes { color: var(--good); font-weight: 600; }
.td-no  { color: var(--ink-4); }
.td-warn { color: var(--warn); }

/* ─── QUIZ ────────────────────────────────── */
.quiz-shell { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.quiz-prog { padding: 16px 28px; background: var(--paper); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 14px; }
.prog-track { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 2px; background: var(--volt); transition: width .4s ease; }
.prog-text { font-size: 12px; color: var(--ink-4); font-weight: 500; white-space: nowrap; }
.q-body { padding: 36px 40px; }
.q-num { font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--ink-4); margin-bottom: 8px; }
.q-body h2 { font-family: var(--font-ui); font-size: clamp(20px,2.5vw,28px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.q-hint { font-size: 14px; color: var(--ink-3); margin-bottom: 24px; line-height: 1.55; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opts.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opts.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.opt-btn {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: var(--paper);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; text-align: left; font-family: var(--font-ui);
  transition: all .16s;
}
.opt-btn:hover { border-color: var(--volt); background: var(--volt-light); }
.opt-btn.selected { border-color: var(--volt); background: var(--volt-pale); box-shadow: var(--shadow-volt); }
.opt-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.opt-label { font-size: 14px; font-weight: 600; color: var(--ink); display: block; }
.opt-note { font-size: 12px; color: var(--ink-3); display: block; margin-top: 2px; line-height: 1.4; }

/* Results */
.results-body { padding: 36px 40px; }
.result-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--volt-dark); margin-bottom: 6px; }
.result-title { font-family: var(--font-ui); font-size: clamp(22px,3vw,30px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.result-sub { font-size: 14px; color: var(--ink-3); margin-bottom: 24px; line-height: 1.6; }
.result-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.result-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.result-card.top { border-color: var(--volt); border-width: 2px; background: var(--volt-light); }
.rc-rank { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--volt-dark); display: block; margin-bottom: 4px; }
.rc-rank.alt { color: var(--ink-3); }
.rc-name { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.rc-price { font-size: 14px; font-weight: 600; color: var(--volt-dark); margin-bottom: 10px; }
.rc-verdict { font-family: var(--font-body); font-size: 14px; color: var(--ink-2); line-height: 1.65; margin-bottom: 14px; padding: 10px 12px; background: rgba(255,255,255,.7); border-left: 3px solid var(--volt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.rc-specs { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 14px; }
.rc-spec { background: rgba(255,255,255,.8); border-radius: var(--radius-sm); padding: 7px 10px; }
.result-card.top .rc-spec { background: rgba(255,255,255,.7); }
.rcs-label { font-size: 10px; color: var(--ink-4); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; display: block; }
.rcs-val { font-size: 12px; font-weight: 700; color: var(--ink); display: block; }
.rc-cta { display: inline-block; background: var(--volt); color: var(--charcoal); padding: 10px 20px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; text-decoration: none; transition: background .15s; }
.rc-cta:hover { background: var(--volt-dark); }
.result-note { background: var(--warn-light); border: 1px solid rgba(217,119,6,.2); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 12px; color: var(--ink-3); line-height: 1.6; margin-bottom: 14px; }
.restart-btn { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 16px; font-family: var(--font-ui); font-size: 13px; color: var(--ink-3); cursor: pointer; transition: all .15s; }
.restart-btn:hover { border-color: var(--volt); color: var(--volt); }

/* ─── ARTICLE ─────────────────────────────── */
.article-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.article-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px; }
.toc-links { display: flex; flex-direction: column; gap: 0; border-left: 2px solid var(--border); }
.toc-links a { font-size: 13px; color: var(--ink-3); text-decoration: none; padding: 5px 0 5px 14px; transition: color .15s; border-left: 2px solid transparent; margin-left: -2px; }
.toc-links a:hover { color: var(--volt-dark); border-left-color: var(--volt); }
.article-body h2 { font-family: var(--font-ui); font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); margin: 40px 0 14px; scroll-margin-top: calc(var(--header-h) + 16px); }
.article-body p { font-family: var(--font-body); font-size: 17px; color: var(--ink-2); line-height: 1.8; margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 18px 20px; }
.article-body li { font-family: var(--font-body); font-size: 16px; color: var(--ink-2); line-height: 1.75; margin-bottom: 8px; }
.article-body strong { color: var(--ink); font-weight: 600; }
.callout { background: var(--volt-light); border: 1px solid rgba(34,197,94,.25); border-left: 3px solid var(--volt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin: 20px 0; }
.callout p { font-family: var(--font-ui); font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* ─── FAQ ─────────────────────────────────── */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; padding: 18px 0; background: none; border: none; font-family: var(--font-ui); font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-q::after { content: '+'; font-size: 22px; color: var(--volt); transition: transform .2s; flex-shrink: 0; font-weight: 300; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 18px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-family: var(--font-body); font-size: 15px; color: var(--ink-2); line-height: 1.75; }
.faq-a p + p { margin-top: 10px; }

/* ─── FOOTER ──────────────────────────────── */
.site-footer { background: var(--charcoal); padding: 40px 0 28px; border-top: 2px solid var(--volt); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.footer-logo { font-size: 16px; font-weight: 700; color: rgba(255,255,255,.8); text-decoration: none; display: flex; align-items: center; gap: 6px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,.4); text-decoration: none; transition: color .15s; }
.footer-nav a:hover { color: var(--volt); }
.footer-legal { font-size: 11px; color: rgba(255,255,255,.2); line-height: 1.65; max-width: 680px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.18); }

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .article-wrap { grid-template-columns: 1fr; }
  .article-toc { display: none; }
  .opts.g3 { grid-template-columns: 1fr 1fr; }
  .rc-specs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .opts.g2, .opts.g3 { grid-template-columns: 1fr; }
  .q-body, .results-body { padding: 24px; }
  .rc-specs { grid-template-columns: 1fr 1fr; }
}
