/* ============================================================
   Energ — Texas Electricity Savings Guide
   Design tokens
   ============================================================ */
:root {
  --navy-950: #071229;
  --navy-900: #0b1f3f;
  --navy-800: #12294e;
  --navy-700: #1b3a6b;

  --green-300: #86efac;
  --green-400: #4ade80;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;

  --lime-400: #a3e635;
  --amber-400: #fbbf24;

  --ink: #16283b;
  --muted: #55677c;
  --bg: #f6f8fb;
  --card: #ffffff;
  --line: #e3eaf2;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 63, .06), 0 4px 14px rgba(11, 31, 63, .06);
  --shadow-md: 0 6px 24px rgba(11, 31, 63, .10);
  --shadow-lg: 0 18px 50px rgba(7, 18, 41, .22);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.015em;
  color: var(--navy-900);
  text-wrap: balance;
}

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.icon { width: 1.35em; height: 1.35em; stroke: currentColor; fill: none;
        stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
        vertical-align: -.28em; flex: none; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex; align-items: center; gap: 28px;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--green-500), #0ea5e9);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px rgba(34, 197, 94, .35);
}
.brand-mark svg { width: 20px; height: 20px; }

.brand-name { font-size: 22px; font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; }
.brand-name em { font-style: normal; color: var(--green-600); }

.main-nav { margin-left: auto; }

.main-nav ul { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  display: block; padding: 9px 14px; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: 15.5px;
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--navy-900); background: #eef3f9; text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--navy-900); background: #e7f8ee; }

.header-cta { margin-left: 6px; }

/* CTA lives outside the nav on desktop, inside the dropdown on mobile */
.main-nav .nav-cta-li { display: none; }

/* Mobile nav — no JS needed */
.nav-toggle { display: none; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-family: var(--font); font-size: 16px; font-weight: 700;
  line-height: 1.2; white-space: nowrap; cursor: pointer;
  border: 0; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  box-shadow: 0 8px 22px rgba(22, 163, 74, .38);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(22, 163, 74, .46); }

.btn-ghost {
  background: transparent; color: var(--navy-900);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px #c8d6e5; background: #f0f5fa; }

.btn-hero {
  background: linear-gradient(135deg, var(--lime-400), var(--green-500));
  color: var(--navy-950);
  box-shadow: 0 10px 30px rgba(74, 222, 128, .35);
}
.btn-hero:hover { box-shadow: 0 14px 36px rgba(74, 222, 128, .45); }

.btn-outline-light {
  background: rgba(255, 255, 255, .08); color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .16); }

.btn-lg { padding: 16px 34px; font-size: 17.5px; }
.btn-sm { padding: 9px 18px; font-size: 14.5px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(34, 197, 94, .28), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(14, 165, 233, .22), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
}

/* subtle grid texture */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
}

.hero .container {
  position: relative;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px;
  align-items: center;
  padding-top: 84px; padding-bottom: 96px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(163, 230, 53, .14);
  box-shadow: inset 0 0 0 1px rgba(163, 230, 53, .38);
  color: var(--lime-400); font-size: 14px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  color: #fff; font-size: clamp(34px, 4.6vw, 56px);
  margin-bottom: 20px;
}
.hero h1 .glow {
  background: linear-gradient(90deg, var(--lime-400), var(--green-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero .lede {
  font-size: 19px; line-height: 1.7; color: #c4d3e6;
  max-width: 54ch; margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

.hero-note { font-size: 14.5px; color: #8ba3c0; margin: 0; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px;
  padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14.5px; color: #a9bdd6; font-weight: 600;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { color: var(--green-400); width: 1.15em; height: 1.15em; }

/* --- Hero visual: animated bill card --- */
.hero-visual { position: relative; }

.bill-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f2f7f3);
  color: var(--ink);
  border-radius: 24px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-lg);
  animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.bill-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; font-size: 13.5px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .07em;
}

.bill-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 16px; border-radius: 14px; margin-bottom: 10px;
  font-weight: 700;
}
.bill-row .label { font-size: 14px; color: var(--muted); font-weight: 600; display: block; }
.bill-row .rate  { font-size: 13px; color: #93a5b8; font-weight: 600; }

.bill-old { background: #f4f0ec; color: #8c5a3c; }
.bill-old .amount { font-size: 26px; }

.bill-new { background: #e9f9f0; color: var(--green-700); }
.bill-new .amount { font-size: 30px; }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--navy-900); color: #d9f7e5;
  font-size: 13.5px; font-weight: 700;
  box-shadow: var(--shadow-md);
}
.chip .icon { color: var(--lime-400); }

.chip-a { top: -18px; right: -14px; animation: floaty 6s .6s ease-in-out infinite; }
.chip-b { bottom: -16px; left: -18px; animation: floaty 8s .3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bill-card, .chip-a, .chip-b { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 88px 0; }
.section.alt { background: #eef3f9; }
.section.tight { padding: 64px 0; }

.kicker {
  display: inline-block; color: var(--green-600);
  font-size: 14px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 12px;
}
.section.alt .kicker, .cta-band .kicker { color: var(--green-600); }

.section-title { font-size: clamp(26px, 3.2vw, 38px); }
.section-sub { color: var(--muted); font-size: 18px; max-width: 62ch; margin-bottom: 44px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* --- Stats band --- */
.stats-band {
  background: var(--navy-950); color: #fff;
  position: relative; overflow: hidden;
}
.stats-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 260px at 50% 120%, rgba(34, 197, 94, .22), transparent 70%);
  pointer-events: none;
}
.stats-band .container {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px; padding-top: 46px; padding-bottom: 46px;
  text-align: center;
}
.stat .num {
  font-size: clamp(28px, 3vw, 40px); font-weight: 800;
  background: linear-gradient(90deg, var(--lime-400), var(--green-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.02em;
}
.stat .lbl { font-size: 14.5px; color: #9db1c9; font-weight: 600; margin-top: 4px; }
.stats-note { position: relative; text-align: center; font-size: 13px; color: #6d84a3;
  padding-bottom: 26px; margin: -18px 0 0; }

/* --- Feature / benefit cards --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card h3 { font-size: 19.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, #e9f9f0, #d6f5e4);
  color: var(--green-600);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.blue  { background: linear-gradient(135deg, #e8f4fd, #d3eafc); color: #0284c7; }
.icon-badge.amber { background: linear-gradient(135deg, #fef3d8, #fde8b8); color: #b45309; }
.icon-badge.navy  { background: linear-gradient(135deg, #e8edf6, #d9e2f0); color: var(--navy-800); }

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }

.step {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff; font-weight: 800; font-size: 19px;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(22, 163, 74, .35);
}

.step h3 { font-size: 19.5px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* --- Comparison table --- */
.table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  background: var(--card);
}

table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }

table.compare th, table.compare td {
  padding: 17px 22px; text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px; vertical-align: top;
}
table.compare thead th {
  background: var(--navy-900); color: #fff;
  font-size: 15.5px; border-bottom: 0;
}
table.compare thead th:first-child { color: #9db1c9; }
table.compare tbody th { font-weight: 700; color: var(--navy-900); width: 34%; }
table.compare tbody tr:last-child td, table.compare tbody tr:last-child th { border-bottom: 0; }

.yes { color: var(--green-600); font-weight: 700; }
.no  { color: #c2410c; font-weight: 700; }

col.good-col { background: #f2fbf6; }

/* --- Check list --- */
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 9px 0; color: var(--ink); font-size: 16px; font-weight: 600;
}
.check-list .icon { color: var(--green-600); margin-top: 4px; }
.check-list li span small { display: block; color: var(--muted); font-weight: 500; font-size: 14.5px; }

/* --- Split section (image + text) --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* --- CTA band --- */
.cta-band {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(680px 320px at 88% 0%, rgba(163, 230, 53, .25), transparent 60%),
    linear-gradient(140deg, var(--navy-950), var(--navy-800));
  border-radius: 26px;
  padding: 64px 56px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.cta-band p { color: #b9cadf; font-size: 17.5px; max-width: 58ch; margin: 0 auto 30px; }
.cta-band .fine { font-size: 13.5px; color: #7e94b2; margin-top: 22px; margin-bottom: 0; }

/* --- FAQ --- */
.faq-list { max-width: 820px; margin: 0 auto; }

.faq-list details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px; box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 19px 24px; cursor: pointer;
  font-weight: 700; font-size: 16.5px; color: var(--navy-900);
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+"; font-size: 26px; font-weight: 400; color: var(--green-600);
  line-height: 1; transition: transform .2s; flex: none;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list .answer { padding: 0 24px 20px; color: var(--muted); font-size: 15.5px; }
.faq-list .answer a { font-weight: 600; }

/* --- Savings calculator --- */
.calc {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow-md);
  padding: 40px; max-width: 780px; margin: 0 auto;
}

.calc label { font-weight: 700; color: var(--navy-900); display: block; margin-bottom: 12px; }

.calc-field { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }

.calc-field input[type="range"] {
  flex: 1; accent-color: var(--green-600); height: 6px;
}

.calc-field output {
  min-width: 130px; text-align: center;
  background: #eef3f9; border-radius: 12px;
  padding: 12px 14px; font-weight: 800; font-size: 19px; color: var(--navy-900);
}

.calc-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }

.calc-res { border-radius: var(--radius-sm); padding: 22px 14px; background: #f2f7fa; }
.calc-res.hot { background: linear-gradient(150deg, #e9f9f0, #d9f4e6); }
.calc-res .n { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: var(--navy-900); letter-spacing: -.02em; }
.calc-res.hot .n { color: var(--green-700); }
.calc-res .t { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }

.calc-note { text-align: center; font-size: 13.5px; color: var(--muted); margin: 22px auto 0; max-width: 60ch; }

/* --- Page hero (subpages) --- */
.page-hero {
  color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(760px 380px at 90% -20%, rgba(34, 197, 94, .26), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900));
  padding: 72px 0 64px;
}
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.page-hero .lede { color: #b9cadf; font-size: 18.5px; max-width: 64ch; margin: 0; }
.page-hero .crumbs { font-size: 14px; color: #7e94b2; margin-bottom: 18px; font-weight: 600; }
.page-hero .crumbs a { color: #a9bdd6; }
.page-hero .crumbs a:hover { color: #fff; }

/* --- Prose pages (about / privacy / terms / contact) --- */
.prose {
  max-width: 800px; margin: 0 auto;
  padding: 64px 24px 88px;
}
.prose h2 { font-size: 24px; margin-top: 2em; }
.prose h3 { font-size: 18.5px; margin-top: 1.6em; }
.prose p, .prose li { color: #33475c; font-size: 16.5px; }
.prose ul { list-style: disc; padding-left: 24px; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--navy-900); }
.prose .card { margin: 24px 0; }

/* --- Contact form --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-card { margin-top: 0; }
.contact-meta li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0;
  border-bottom: 1px dashed var(--line); font-size: 15.5px; color: var(--muted); }
.contact-meta li:last-child { border-bottom: 0; }
.contact-meta .icon { color: var(--green-600); margin-top: 4px; }
.contact-meta strong { color: var(--navy-900); display: block; font-size: 16px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-950); color: #93a8c3;
  margin-top: 88px;
  font-size: 15px;
}

.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px;
  padding: 64px 0 40px;
}

.site-footer .brand-name { color: #fff; font-size: 20px; }

.site-footer h4 {
  color: #fff; font-size: 14.5px; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 18px;
}

.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: #a9bdd6; }
.site-footer a:hover { color: #fff; }

.footer-blurb { margin-top: 16px; max-width: 40ch; font-size: 14.5px; line-height: 1.7; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 26px 0 30px;
  font-size: 13.5px; color: #6d84a3;
}
.footer-bottom .legal { margin-bottom: 8px; line-height: 1.7; max-width: 90ch; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 56px; padding-top: 60px; padding-bottom: 72px; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .stats-band .container { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 68px 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  /* collapse nav */
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border-radius: 12px;
    background: #eef3f9; cursor: pointer; border: 0;
    color: var(--navy-900);
  }
  .nav-toggle svg { width: 24px; height: 24px; }

  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 18px; }
  .main-nav a { padding: 13px 14px; border-radius: 12px; font-size: 16.5px; }
  .main-nav .nav-cta-li { padding-top: 8px; }

  .nav-open .main-nav { display: block; }
  .nav-open .nav-toggle { background: #e3edf7; }
  .header-cta { display: none; }

  .grid-3, .grid-4, .steps, .calc-results { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta-band { padding: 48px 26px; }
  .calc { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .chip-a { right: 2px; }
  .chip-b { left: 2px; }
}
