/* ════════════════════════════════════════════════════════════════════════
   Affordable Kilowatts — home page (light, comparison-site style)
   Modeled on electricityplans.com: white background, card sections,
   sticky header, ZIP-entry hero. Also provides the shared header + light
   sub-page styles (login / dashboard / sign-up) via the header.jspf fragment.
   ════════════════════════════════════════════════════════════════════════ */
:root {
  --navy: #0F1F3D;
  --navy-mid: #1A3260;
  --amber: #F59E0B;
  --amber-dark: #D97706;
  --ink: #0F1F3D;
  --body: #475569;
  --muted: #94A3B8;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --border: #E2E8F0;
  --green: #059669;
  --star: #F59E0B;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 61, 0.06);
  --shadow: 0 10px 30px rgba(15, 31, 61, 0.08);
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.home {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--ink); letter-spacing: -0.4px; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; padding: 11px 20px; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none; border: 1.5px solid transparent;
  white-space: nowrap; transition: background 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--navy); }
.btn-primary:hover { background: var(--amber-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-lg { font-size: 16px; padding: 15px 26px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  width: 100%;   /* fill width even inside a flex-column parent (e.g. sign-up) */
  background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon {
  width: 34px; height: 34px; background: var(--amber); border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.brand-text { color: var(--navy); font-weight: 800; font-size: 16px; letter-spacing: -0.3px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--body); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--navy); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Language toggle (light) */
.lang-toggle { display: inline-flex; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 3px; }
.lang-btn { border: none; background: transparent; color: var(--body); font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-pill); cursor: pointer; }
.lang-btn.active { background: var(--navy); color: #fff; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); padding: 64px 0 56px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber-dark); background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 6px 12px; border-radius: var(--radius-pill); margin-bottom: 20px;
}
.hero h1 { font-size: 46px; line-height: 1.08; font-weight: 800; margin-bottom: 16px; }
.hero h1 .accent { color: var(--amber-dark); }
.hero-lead { font-size: 18px; color: var(--body); max-width: 600px; margin: 0 auto 28px; }

.zip-form {
  display: flex; gap: 10px; max-width: 460px; margin: 0 auto;
  background: #fff; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.zip-input { flex: 1; border: none; outline: none; font-size: 16px; padding: 12px 14px; color: var(--ink); border-radius: var(--radius-sm); min-width: 0; }
.zip-form .btn { flex-shrink: 0; }
.hero-trust { margin-top: 18px; font-size: 13px; color: var(--muted); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; gap: 6px; align-items: center; }

/* ── Stats strip ─────────────────────────────────────────────────────── */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 28px 16px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: none; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--navy); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── Generic section + heading ───────────────────────────────────────── */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.section-head p { font-size: 16px; color: var(--body); }

/* ── Cards grid (steps / why-us) ─────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(245, 158, 11, 0.12);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--body); }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; margin-bottom: 14px;
}

/* ── Reviews ─────────────────────────────────────────────────────────── */
.review { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.stars { color: var(--star); font-size: 15px; letter-spacing: 2px; margin-bottom: 12px; }
.review p { font-size: 14px; color: var(--ink); margin-bottom: 14px; }
.review .who { font-size: 13px; font-weight: 700; color: var(--navy); }
.review .where { font-size: 12px; color: var(--muted); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--ink); font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--amber-dark); font-size: 20px; font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq .answer { padding: 0 18px 16px; font-size: 14px; color: var(--body); }

/* ── CTA band ────────────────────────────────────────────────────────── */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { color: #fff; font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.cta-band p { color: #CBD5E1; font-size: 16px; margin-bottom: 24px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: #CBD5E1; padding: 44px 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
.site-footer .brand-text { color: #fff; }
.footer-bottom { padding-top: 20px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ════════════════════════════════════════════════════════════════════
   Sub-pages (login / dashboard) — single centered card on a light field
   ════════════════════════════════════════════════════════════════════ */
.subpage-main {
  min-height: calc(100vh - 67px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg-alt); padding: 48px 16px;
}
.panel {
  width: 100%; max-width: 480px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 36px 32px;
}
.panel--auth { max-width: 540px; }
.panel--center { text-align: center; }
.panel-title { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.4px; margin-bottom: 8px; }
.panel-subtitle { font-size: 15px; color: var(--body); line-height: 1.5; margin-bottom: 24px; }

/* Form fields */
.form-field { margin-bottom: 16px; text-align: left; }
.form-field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 13px 14px; font-size: 15px; color: var(--ink);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); outline: none;
}
.form-input:focus { border-color: var(--amber); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; }
.form-error {
  display: none; background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626;
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; margin-bottom: 16px; text-align: left;
}
.form-foot { text-align: center; font-size: 14px; color: var(--body); margin-top: 18px; }
.form-foot a { color: var(--amber-dark); font-weight: 700; text-decoration: none; }

/* Dashboard success / status */
.check-circle {
  width: 72px; height: 72px; border-radius: 50%; background: #D1FAE5; color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 36px; margin: 0 auto 20px;
}
.status-box {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: #FFF7ED; border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.status-box .si { font-size: 22px; flex-shrink: 0; }
.status-box .st { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.status-box .ss { font-size: 12px; color: var(--body); }
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--amber);
  margin-left: auto; flex-shrink: 0; animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.note { font-size: 12px; color: var(--muted); margin-top: 22px; line-height: 1.5; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .nav { display: none; }
  .hero h1 { font-size: 34px; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .zip-form { flex-direction: column; }
}
