/* Cable Energy -- Marketing site styles */
@font-face {
  font-family: 'Aktiv Grotesk';
  src: url('./assets/fonts/AktivGrotesk_Lt.woff2') format('woff2'),
       url('./assets/fonts/AktivGrotesk_Lt.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aktiv Grotesk';
  src: url('./assets/fonts/AktivGrotesk_LtIt.woff2') format('woff2'),
       url('./assets/fonts/AktivGrotesk_LtIt.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Aktiv Grotesk';
  src: url('./assets/fonts/AktivGrotesk_Rg.woff2') format('woff2'),
       url('./assets/fonts/AktivGrotesk_Rg.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aktiv Grotesk';
  src: url('./assets/fonts/AktivGrotesk_Bd.woff2') format('woff2'),
       url('./assets/fonts/AktivGrotesk_Bd.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ─── BRAND PALETTE ─── */
  --orange: #FC6D27;
  --orange-bright: #FE4F18;
  --charcoal: #161616;
  --black: #070707;
  --cream: #FFFFFF;
  --grey-light: #F6F7FB;
  --grey: #E4E6F0;
  --white: #FFFFFF;
  --success: hsl(147, 55%, 40%);

  /* ─── SEMANTIC ─── */
  --fg: #161616;
  --fg-muted: rgba(22,22,22,0.82);
  --fg-subtle: rgba(22,22,22,0.52);
  --border: rgba(22,22,22,0.08);
  --border-strong: rgba(22,22,22,0.18);
  --bg-alt: var(--cream);
  --bg-dark: var(--charcoal);

  /* ─── TYPE SCALE (fluid + modular) ───
     Tweak any one variable to scale that role across all pages. */
  --fs-xs:    11px;                                  /* eyebrow */
  --fs-sm:    13.5px;                                /* small body / labels */
  --fs-base:  16px;                                  /* body */
  --fs-md:    clamp(17px, 1.6vw, 20px);              /* lead / hero sub */
  --fs-lg:    clamp(22px, 2.2vw, 28px);              /* card titles (h3) */
  --fs-xl:    clamp(28px, 3.5vw, 40px);              /* section h2 small */
  --fs-2xl:   clamp(34px, 4.5vw, 56px);              /* section h2 */
  --fs-3xl:   clamp(40px, 7vw, 84px);                /* hero h1 */
  --fs-stat:  clamp(44px, 5vw, 72px);                /* big numbers */

  --lh-tight:  1.05;
  --lh-snug:   1.2;
  --lh-normal: 1.5;
  --lh-loose:  1.6;

  --tracking-tight:   -0.045em;
  --tracking-snug:    -0.035em;
  --tracking-normal:  -0.015em;
  --tracking-wide:     0.05em;
  --tracking-eyebrow:  0.14em;

  --fw-light: 300;
  --fw-medium: 500;
  --fw-bold: 700;

  /* ─── SPACING (4px scale) ─── */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;

  --section-y:        clamp(64px, 9vw, 96px);

  /* ─── RADIUS ─── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ─── ELEVATION ─── */
  --shadow-sm: 0 1px 2px rgba(7,7,7,.04);
  --shadow-md: 0 1px 2px rgba(7,7,7,.04), 0 8px 24px -10px rgba(7,7,7,.10);
  --shadow-lg: 0 1px 2px rgba(7,7,7,.04), 0 24px 60px -20px rgba(7,7,7,.18);

  /* ─── LAYOUT ─── */
  --max: 1200px;
  --pad: clamp(20px, 4vw, 40px);

  /* ─── MOTION ─── */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: .18s;
  --dur-med:  .28s;

  --font: 'Aktiv Grotesk', -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* ─── Cross-page view transitions ─────────────────────
   Content fades in over the persistent gradient backdrop.
   Degrades to instant navigation in unsupported browsers. */
@view-transition { navigation: auto; }

::view-transition-group(*) {
  animation-duration: 250ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-old(root) {
  animation: none; opacity: 0; mix-blend-mode: normal;
}
::view-transition-new(root) {
  animation: vt-fade-in 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes vt-fade-in { from { opacity: 0 } to { opacity: 1 } }

/* ─── Page-wide gradient backdrop ─────────────────────
   The hero gradient is pinned to the viewport so every
   section scrolls over it. Content panels sit on top. */
html { background: var(--white); }
#gradient-bg {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  display: block;
  opacity: .9;
  view-transition-name: gradient;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background-image: url('./assets/gradients/gradient1-light.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: .9;
}
body.has-dynamic-bg::before { display: none; }
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  /* Subtle white veil so type stays legible across the gradient */
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.35) 60%, rgba(255,255,255,.55) 100%);
  pointer-events: none;
  view-transition-name: veil;
}

html, body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--font);
  font-weight: var(--fw-light);
  letter-spacing: var(--tracking-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

/* ── Staged page reveal ─────────────────────────────
   Booting state: hide everything except the splash logo.
   Once fonts + critical assets are ready we add `.is-ready`
   to <html> and the splash fades, nav reveals, then each
   .reveal element fades in as it enters the viewport. */
html:not(.is-ready) body > *:not(.boot-splash):not(#gradient-bg) { visibility: hidden; }
html:not(.is-ready) body { overflow: hidden; }

/* ── Boot animation (Option C) ──────────────────────
   T=0.0  Logo fades in, centered on gradient
   T=0.5  Logo slides left to nav position (horizontal)
   T=0.7  Nav buttons slide in from right
   T=0.9  Nav row slides up to top, hero fades up
   ~1.2s total to fully interactive */

.boot-splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: white;
  pointer-events: none;
  transition: opacity .6s ease;
}
.boot-splash img {
  width: 140px; height: auto;
}
html.is-ready .boot-splash { opacity: 0; }
html.is-ready .boot-splash.gone { display: none; }

.nav, .nav-float {
  opacity: 0;
  transition: opacity .5s ease;
}
html.is-ready .nav,
html.is-ready .nav-float {
  opacity: 1;
}

/* Section-by-section reveal */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s cubic-bezier(0.16, 1, 0.3, 1), transform .7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .nav, .nav-float, .nav-float .nav-cta, .reveal, .boot-splash, .boot-splash img {
    transition: none !important; animation: none !important;
  }
  .nav, .nav-float, .nav-float .nav-cta, .reveal { opacity: 1 !important; transform: none !important; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Type scale ───────────────────────────────────── */
h1, h2, h3, h4, h5 { margin: 0; font-weight: var(--fw-light); letter-spacing: var(--tracking-snug); line-height: var(--lh-tight); }
.eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-muted);
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--orange);
  vertical-align: middle; margin-right: 8px;
  transform: translateY(-1px);
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  border: none;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.03em; text-transform: uppercase;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}
.btn-primary {
  background: rgba(252, 109, 39, 0.9); color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(252, 109, 39, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  background: rgba(254, 79, 24, 0.95);
  box-shadow: 0 8px 28px rgba(252, 109, 39, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.45); color: var(--charcoal);
  border: 1px solid rgba(22, 22, 22, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(22, 22, 22, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.btn-tertiary {
  background: rgba(22, 22, 22, 0.06); color: var(--charcoal);
  border: 1px solid rgba(22, 22, 22, 0.06);
}
.btn-tertiary:hover {
  background: rgba(22, 22, 22, 0.85); color: white;
  border-color: transparent;
  transform: translateY(-2px);
}
.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.1); color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}
.btn .arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Layout ──────────────────────────────────────── */
.container {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { padding: var(--section-y) 0; }

/* ── Scroll-snap homepage ───────────────────────── */
html.snap-home {
  scroll-snap-type: y proximity;
}
html.snap-home > body > header.hero,
html.snap-home > body > section,
html.snap-home > body > .snap-end {
  scroll-snap-align: start;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
}
html.snap-home > body > .snap-end {
  justify-content: flex-end;
}
@media (max-width: 880px) {
  html.snap-home { scroll-snap-type: y proximity; }
  html.snap-home > body > header.hero,
  html.snap-home > body > section,
  html.snap-home > body > .snap-end {
    min-height: auto;
    scroll-snap-align: none;
    display: block;
  }
}

/* ─── Floating panels over the gradient backdrop ──────────────────
   Each .panel section becomes a white card sitting on top of
   the body-level gradient. Margins on the sides reveal the
   gradient as a frame; rounded corners and a subtle shadow
   create the layered "floating sheet" feel. */
section.panel,
section.quote {
  margin: clamp(12px, 1.6vw, 20px) clamp(12px, 2vw, 24px);
  border-radius: clamp(14px, 1.6vw, 22px);
  box-shadow:
    0 1px 2px rgba(7,7,7,.03),
    0 16px 48px -22px rgba(7,7,7,.12);
  overflow: hidden;
  padding: clamp(40px, 5vw, 64px) 0;
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  border: 1px solid rgba(255,255,255,.55);
}
section.panel { background: rgba(255,255,255,.72); }
section.quote { background: rgba(255,255,255,.58); }
@media (max-width: 720px) {
  section.panel,
  section.quote {
    margin: 8px;
    border-radius: 14px;
    padding: 40px 0;
  }
}

/* ── Nav ──────────────────────────────────────────── */
.nav, .nav-float {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
}
.nav {
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-float {
  background: transparent;
  pointer-events: none;
}
.nav-float .nav-inner > * { pointer-events: auto; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.nav-logo img { height: 22px; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  font-size: 14px; color: var(--fg-muted);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--charcoal); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-mobile-toggle { display: none; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav .btn { padding: 10px 16px; font-size: 11px; }
  .nav-float .nav-cta .btn-tertiary { display: none; }
  .nav-float .btn-primary { padding: 10px 16px; font-size: 11px; }
}
.nav-mobile { display: none; }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 64px) 0 clamp(80px, 10vw, 120px);
  background: transparent;
  overflow: visible;
}
.hero-bg { display: none; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--orange);
}
.hero-sub {
  margin-top: 28px;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 300;
  color: var(--charcoal);
  max-width: 46ch;
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.hero-bullets {
  margin: 32px 0 36px;
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.hero-bullets li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15.5px;
}
.hero-bullets svg {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  color: var(--orange);
}
.hero-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.hero-meta {
  margin-top: 18px; font-size: 13px; color: var(--fg-subtle);
  display: flex; align-items: center; gap: 8px;
}
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); }

/* Hero visual -- bill comparison */
.hero-vis {
  background: white;
  border-radius: 12px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 1px 2px rgba(7,7,7,.04), 0 24px 60px -20px rgba(7,7,7,.18);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.hero-vis-head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px; margin-bottom: 22px;
}
.hero-vis-head .label {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted);
  font-weight: 500;
}
.hero-vis-head .badge {
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(40,160,90,.1); color: var(--success);
  letter-spacing: 0.04em;
}
.bill-rows { display: flex; flex-direction: column; gap: 18px; }
.bill-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bill-row .who {
  font-size: 14px; color: var(--fg-muted); width: 130px; flex-shrink: 0;
}
@media (max-width: 480px) {
  .bill-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .bill-row .who { width: 100%; }
  .bill-row .bar-wrap { height: 32px; }
}
.bill-row .who strong { display: block; color: var(--charcoal); font-weight: 500; font-size: 15px; margin-bottom: 1px; }
.bill-row .bar-wrap {
  flex: 1; height: 44px; background: var(--grey-light);
  border-radius: 8px; overflow: hidden; position: relative;
}
.bill-row .bar {
  height: 100%; border-radius: 8px;
  display: flex; align-items: center; padding-right: 14px;
  justify-content: flex-end;
  font-size: 16px; font-weight: 500; color: white;
  font-variant-numeric: tabular-nums;
  transition: width 2s cubic-bezier(.22,.8,.36,1);
}
.bill-row.you .bar { background: var(--orange); }
.bill-row.them .bar { background: var(--charcoal); }
.bill-vis-foot {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
}
.bill-vis-foot .save-label {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); font-weight: 500;
}
.bill-vis-foot .save-amount {
  font-size: 38px; font-weight: 400; color: var(--orange);
  letter-spacing: -0.035em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bill-vis-foot .save-amount small {
  font-size: 14px; color: var(--fg-muted); font-weight: 300; margin-left: 2px;
}

/* ── Logo strip ───────────────────────────────────── */
.logos {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--grey-light);
}
.logos-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-muted); text-align: center; margin-bottom: 22px; font-weight: 500;
}
.logos-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  font-family: var(--font);
}
.logos-row .biz {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--fg-muted);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-style: italic;
  opacity: .75;
  transition: opacity .2s, color .2s;
}
.logos-row .biz:hover { opacity: 1; color: var(--charcoal); }

/* ── Section heads ────────────────────────────────── */
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head h2 em {
  font-style: italic; font-weight: 300;
  color: var(--orange);
}
.sec-head h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 300; letter-spacing: -0.035em; line-height: 1.05;
  margin-top: 14px;
}
.sec-head p {
  margin-top: 18px; font-size: 18px; color: var(--charcoal);
  max-width: 60ch; font-weight: 300;
}

/* ── How it works ─────────────────────────────────── */
.how .sec-head { margin-bottom: 24px; }
.how-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 880px) {
  .how-body { grid-template-columns: 1fr; }
}
.how-scene {
  position: relative;
}
.how-cards {
  display: flex; flex-direction: column;
  justify-content: space-between;
  height: 100%;
  align-self: stretch;
}
.how-card {
  background: white;
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.how-num {
  font-size: 12px; letter-spacing: 0.12em; color: var(--orange); font-weight: 600;
  text-transform: uppercase;
}
.how-card p { font-size: 14px; color: var(--charcoal); line-height: 1.5; }

/* ── Why Cable / Pillars ─────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 960px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar {
  background: white;
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.pillar .stat {
  font-size: 38px; font-weight: 300; letter-spacing: -0.04em; line-height: 1;
  color: var(--orange); font-variant-numeric: tabular-nums;
}
.pillar .stat small { font-size: 18px; color: var(--charcoal); margin-left: 2px; }
.pillar h3 {
  font-size: 16px; font-weight: 500; letter-spacing: -0.02em;
  margin-top: 4px;
}
.pillar p { font-size: 13.5px; color: var(--charcoal); line-height: 1.5; }

/* ── Comparison table ────────────────────────────── */
.compare {
  color: var(--charcoal);
}
.compare .sec-head h2 { color: var(--charcoal); }
.compare .sec-head p { color: var(--fg-muted); }
.compare .eyebrow { color: var(--fg-muted); }
.compare .eyebrow .dot { background: var(--orange); }
.compare-table {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}
.compare-row:last-child { border-bottom: none; }
.compare-row.head {
  background: transparent;
}
.compare-row > div {
  padding: 18px 22px;
  font-size: 14.5px;
  border-right: 1px solid var(--border);
  display: flex; align-items: center;
}
.compare-row > div:last-child { border-right: none; }
.compare-row .feat { color: var(--charcoal); }
.compare-row.head .feat { color: var(--fg-subtle); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.compare-row.head .col {
  font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--charcoal);
}
.compare-row.head .col.cable { color: var(--orange); }
.compare-cell .yes, .compare-cell .no, .compare-cell .partial {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px;
}
.compare-cell .yes { color: var(--charcoal); }
.compare-cell .yes::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); display: inline-block;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain;
}
.compare-cell .no { color: var(--fg-subtle); }
.compare-cell .no::before { content: '-'; color: var(--fg-subtle); margin-right: 4px; font-size: 16px; }
.compare-cell .partial { color: var(--fg-muted); font-size: 12.5px; font-style: italic; }
.compare-mobile {
  display: none;
}
@media (max-width: 720px) {
  .compare-table { display: none; }
  .compare-mobile {
    display: flex; flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }
}
.compare-mobile-row {
  background: white;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.compare-mobile-row .feat {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-muted); font-weight: 500;
}
.compare-mobile-row .val {
  font-size: 14.5px;
  display: flex; align-items: center; gap: 8px;
}
.compare-mobile-row .val.yes { color: var(--charcoal); }
.compare-mobile-row .val.yes::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: var(--orange);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: contain;
}
.compare-mobile-row .val.no { color: var(--fg-subtle); font-size: 13px; }
.compare-mobile-row .val.no::before {
  content: '\2717'; font-size: 12px; color: var(--fg-subtle);
  width: 16px; text-align: center; flex-shrink: 0;
}

/* ── Quote / testimonial ─────────────────────────── */
.quote {
  background: var(--grey-light);
  position: relative;
  overflow: hidden;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) { .quote-grid { grid-template-columns: 1fr; gap: 32px; } }
.quote-photo {
  aspect-ratio: 4/5;
  border-radius: 12px;
  background-color: var(--grey-light);
  background-size: cover; background-position: center;
  position: relative;
  overflow: hidden;
}
/* Placeholder portrait -- warm gradient + abstracted figure */
.quote-photo.ph {
  background:
    radial-gradient(ellipse 60% 60% at 50% 30%, rgba(252,109,39,.18) 0%, transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(22,22,22,.18) 0%, transparent 70%),
    linear-gradient(180deg, #F6E4D2 0%, #E8C5A8 100%);
}
.quote-photo .ph-figure {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60%; aspect-ratio: 1/1.2;
  background: linear-gradient(180deg, rgba(22,22,22,.65) 0%, rgba(22,22,22,.85) 100%);
  border-radius: 50% 50% 12% 12% / 40% 40% 6% 6%;
  filter: blur(.5px);
}
.quote-photo .ph-tag {
  position: absolute; top: 16px; left: 16px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(22,22,22,.5); font-weight: 500;
  background: rgba(255,255,255,.7); padding: 4px 8px; border-radius: 4px;
}
.quote blockquote {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300; letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--charcoal);
}
.quote blockquote::before { content: '\201C'; color: var(--orange); margin-right: 4px; font-size: 1.1em; line-height: 0; vertical-align: -0.2em; }
.quote-attr {
  margin-top: 28px; font-size: 14px; color: var(--fg-muted);
  display: flex; flex-direction: column; gap: 4px;
}
.quote-attr strong { color: var(--charcoal); font-weight: 500; }
.quote-stat {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; gap: 36px;
}
.quote-stat > div .n {
  font-size: 28px; font-weight: 400; color: var(--orange); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.quote-stat > div .l {
  font-size: 12px; color: var(--fg-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px;
}

/* ── FAQ ─────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  width: 100%;
  font-size: 18px; font-weight: 400; letter-spacing: -0.02em;
  background: none; border: none; padding: 0;
  text-align: left; color: var(--charcoal);
}
.faq-chev {
  width: 22px; height: 22px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease-out;
  color: var(--fg-muted);
}
.faq-item.open .faq-chev { transform: rotate(180deg); color: var(--orange); }
.faq-a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease-out;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner {
  overflow: hidden;
  font-size: 15.5px; color: var(--charcoal); line-height: 1.55;
}
.faq-item.open .faq-a-inner { padding-top: 14px; }

/* ── Final CTA ───────────────────────────────────── */
.final-cta {
  background: transparent;
  color: var(--charcoal);
  padding: clamp(48px, 6vw, 72px) 0;
  text-align: center;
  position: relative;
}
.final-cta > .container { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 300; letter-spacing: -0.04em; line-height: 1;
  max-width: 16ch; margin: 0 auto;
  color: var(--charcoal);
}
.final-cta h2 em {
  font-style: italic; font-weight: 300;
  color: var(--orange);
}
.final-cta p {
  margin: 24px auto 36px;
  font-size: 18px; max-width: 50ch; color: var(--charcoal); font-weight: 300;
}
.final-cta .btn-primary {
  padding: 18px 34px; font-size: 13px;
}

/* ── Mobile-native baseline ──
   Single source of truth for narrow viewports. Each component
   handles its own breakpoint locally above; this catches anything
   else and ensures readable line lengths + tap targets. */
@media (max-width: 720px) {
  :root { --pad: 20px; }
  .btn { padding: 14px 20px; min-height: 44px; }      /* 44px tap target */
  .nav-inner { padding: 14px var(--pad); }
  .hero { padding-top: 72px; }
  .hero h1 { letter-spacing: -0.035em; }
  .hero-vis { display: none; }
  .how-scene { margin-bottom: 16px; }
  .how-body { grid-template-columns: 1fr; }
  .sec-head { margin-bottom: 36px; }
  .sec-head h2 { font-size: clamp(28px, 8vw, 40px); }
  .pillar { padding: 22px 18px; }
  .pillar .stat { font-size: 34px; }
  .quote-stat { gap: 24px; flex-wrap: wrap; }
  .final-cta { padding: 48px 0; }
  footer { padding: 56px 0 24px; }
  .foot-nav a,
  .foot-contact a {
    padding: 10px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
/* ── Footer ─────────────────────────────────
   Single-column stack: brand row → nav row → contact row → fine print.
   Each row is full-width; everything else flows in a horizontal
   flex-wrap so it collapses gracefully on narrow viewports. */
footer {
  background: rgba(255,255,255,.72);
  color: var(--charcoal);
  margin: clamp(12px, 1.6vw, 20px) clamp(12px, 2vw, 24px);
  border-radius: clamp(14px, 1.6vw, 22px);
  border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(18px) saturate(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(1.05);
  box-shadow:
    0 1px 2px rgba(7,7,7,.03),
    0 16px 48px -22px rgba(7,7,7,.12);
  padding: clamp(40px, 5vw, 56px) 0 28px;
}

.foot-row {
  display: flex; align-items: center; gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.foot-logo img { height: 24px; display: block; }
.foot-tag {
  margin: 0;
  font-size: var(--fs-md);
  color: var(--charcoal);
  font-weight: var(--fw-light);
  letter-spacing: var(--tracking-snug);
}
@media (max-width: 720px) {
  .foot-row { gap: 16px; }
  .foot-tag { flex-basis: 100%; order: 3; }
}

.foot-nav {
  display: flex; flex-wrap: wrap; gap: 10px 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.foot-nav a {
  font-size: 14px;
  color: var(--charcoal);
  transition: color var(--dur-fast) var(--ease);
}
.foot-nav a:hover { color: var(--orange); }
.foot-nav a + a::before {
  content: "\b7";
  margin: 0 14px;
  color: var(--border-strong, #ccc);
  font-weight: 400;
}
@media (max-width: 720px) {
  .foot-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
  }
  .foot-nav a + a::before { content: none; }
}

.foot-contact {
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-muted);
}
.foot-contact a {
  color: var(--charcoal);
  transition: color var(--dur-fast) var(--ease);
}
.foot-contact a:hover { color: var(--orange); }
.foot-contact strong { font-weight: 600; color: var(--charcoal); }

.foot-fine {
  padding-top: 28px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--fg-subtle);
  display: flex; flex-direction: column; gap: 12px;
}
.foot-fine p { margin: 0; }
.foot-fine p:last-child { font-style: italic; opacity: .85; }

/* ── Blog ────────────────────────────────────────────────
   Index cards + article body styles. */
.blog-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  max-width: 720px; margin: 0 auto;
}
.blog-card {
  background: white; border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; transition: box-shadow var(--dur-fast) var(--ease);
  box-shadow: 0 1px 2px rgba(7,7,7,.04), 0 8px 24px -12px rgba(7,7,7,.08);
}
.blog-card:hover { box-shadow: 0 1px 2px rgba(7,7,7,.04), 0 16px 48px -22px rgba(7,7,7,.14); }
.blog-card h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.blog-card h3 a { color: var(--charcoal); text-decoration: none; }
.blog-card h3 a:hover { color: var(--orange); }
.blog-card p { font-size: 15px; color: var(--fg-muted); margin-top: 8px; line-height: 1.55; }
.blog-card time { font-size: 13px; color: var(--fg-muted); }
.blog-eyebrow { color: inherit; text-decoration: none; }
.blog-date { font-size: 13px; color: var(--fg-muted); display: block; margin-top: 8px; }

/* ── Isometric diorama scene ─────────────────────────────
   House + power pole + battery + Grid ON/OFF toggle.
   Self-contained -- only depends on tokens from :root. */
.scene-section {
  padding: 0 0 var(--section-y);
}
.diorama-wrap {
  position: relative;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.diorama-frame {
  position: relative;
  width: 100%;
  background: var(--grey-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.diorama-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 790;
}

/* Animated wire flow -- dashed line that scrolls in either direction */
.wire-flow {
  stroke-dashoffset: 0;
}
.wire-flow.flow-export { animation: wireFlowExport 1.4s linear infinite; }
.wire-flow.flow-import { animation: wireFlowImport 2.2s linear infinite; }

@keyframes wireFlowExport {
  to { stroke-dashoffset: -44; }   /* dashes travel from battery → pole */
}
@keyframes wireFlowImport {
  to { stroke-dashoffset:  44; }   /* dashes travel from pole → battery */
}

/* Grid ON/OFF toggle -- floats over diorama, bottom-center */
.grid-toggle {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10), 0 1px 2px rgba(0,0,0,0.06);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.grid-toggle:hover {
  transform: translateX(-50%) translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14), 0 1px 2px rgba(0,0,0,0.06);
}
.grid-toggle:active { transform: translateX(-50%) translateY(0); }
.gt-label { letter-spacing: -0.01em; }
.gt-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 84px;
  height: 36px;
  border-radius: 999px;
  background: #FF7A1A; /* prices HIGH -- orange (matches wire flow) */
  transition: background .35s var(--ease);
  padding: 0 12px;
}
.grid-toggle.is-off .gt-track { background: #5A8FB8; } /* prices LOW -- calm blue */
.gt-state {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: white;
  text-transform: uppercase;
  transition: margin .35s var(--ease);
}
.grid-toggle.is-on  .gt-state { margin-right: auto; margin-left: 0; }
.grid-toggle.is-off .gt-state { margin-left: auto;  margin-right: 0; }
.gt-knob {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
  transform: translateY(-50%);
  transition: left .35s var(--ease);
}
.grid-toggle.is-on  .gt-knob { left: 52px; }
.grid-toggle.is-off .gt-knob { left: 4px; }

@media (max-width: 600px) {
  .grid-toggle { bottom: 16px; font-size: 14px; padding: 8px 12px 8px 18px; }
  .gt-track { width: 64px; height: 30px; }
  .gt-knob  { width: 22px; height: 22px; }
  .grid-toggle.is-on  .gt-knob { left: 38px; }
}

/* ── Page header (sub-pages) ─────────────────────────── */
.page-head {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(56px, 7vw, 88px);
}
.page-head > .container { position: relative; z-index: 1; }
.page-head h1 {
  margin-top: 18px;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
  max-width: 18ch;
  font-weight: var(--fw-light);
}
.page-head h1 em { font-style: italic; color: var(--orange); font-weight: var(--fw-light); }
.page-head--plain { padding: clamp(80px, 10vw, 120px) 0 0; }
.page-head--plain > .container { max-width: 720px; }
.page-head--plain h1 { font-weight: 700; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; }
.page-head--plain + section { padding-top: clamp(24px, 3vw, 36px); }
.page-head--plain h1 em { font-style: normal; color: inherit; font-weight: inherit; }
.page-head .lead {
  margin-top: 24px;
  font-size: var(--fs-md);
  color: var(--fg-muted);
  max-width: 56ch;
  line-height: var(--lh-loose);
}
.page-head .lead a { color: var(--orange); border-bottom: 1px solid var(--orange); }

/* ── FAQ page (sticky-TOC layout) ─────────────────────── */
.faq-page-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 880px) {
  .faq-page-grid { grid-template-columns: 1fr; gap: 32px; }
}
.faq-toc { position: sticky; top: 80px; }
@media (max-width: 880px) {
  .faq-toc { position: static; }
}
.faq-toc-inner ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.faq-toc-inner a {
  font-size: 16px;
  color: var(--charcoal);
  padding: 6px 0;
  transition: color var(--dur-fast) var(--ease);
}
.faq-toc-inner a:hover { color: var(--orange); }

.faq-block {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 80px;
}
.faq-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-block h2 {
  font-size: var(--fs-xl);
  letter-spacing: var(--tracking-snug);
  margin-bottom: 24px;
}

/* ── Legal / subpage body ─────────────────────────── */
.legal-body { max-width: 720px; margin: 0 auto; }
.legal-body h2 { font-size: var(--fs-xl); letter-spacing: var(--tracking-snug); margin: 48px 0 16px; }
.legal-body h3 { font-size: var(--fs-lg); font-weight: 500; margin: 32px 0 12px; }
.legal-body p, .legal-body li { font-size: 15px; color: var(--charcoal); line-height: 1.65; margin-bottom: 12px; }
.legal-body ul { padding-left: 24px; }
.legal-body a { color: var(--orange); border-bottom: 1px solid var(--orange); }

.fee-table { width: 100%; border-collapse: collapse; margin: 24px 0 32px; }
.fee-table th, .fee-table td { text-align: left; padding: 16px 20px; font-size: 15px; border-bottom: 1px solid var(--border); }
.fee-table th { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.fee-table td:first-child { font-weight: 500; color: var(--charcoal); }
.fee-table td:last-child { color: var(--fg-muted); }
.fee-amount { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--charcoal); }
@media (max-width: 600px) {
  .fee-table thead { display: none; }
  .fee-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--border); }
  .fee-table td { display: block; padding: 2px 0; border-bottom: none; font-size: 14px; }
  .fee-table td:first-child { font-size: 16px; margin-bottom: 4px; }
  .fee-table td:last-child { color: var(--fg-subtle); font-size: 13px; margin-top: 4px; }
}

.policy-list { list-style: none; padding: 0; margin: 32px 0; display: flex; flex-direction: column; gap: 0; }
.policy-list li { border-top: 1px solid var(--border); }
.policy-list li:last-child { border-bottom: 1px solid var(--border); }
.policy-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; font-size: 18px; font-weight: 400; letter-spacing: -0.02em;
  color: var(--charcoal); text-decoration: none; border-bottom: none;
  transition: color .15s;
}
.policy-list a:hover { color: var(--orange); }
.policy-list .arrow { font-size: 14px; color: var(--fg-muted); transition: transform .15s, color .15s; }
.policy-list a:hover .arrow { transform: translateX(3px); color: var(--orange); }
@media (max-width: 720px) {
  .policy-list a { padding: 16px 0; min-height: 44px; }
}
