/* ==============================================================================
   BATTERY COMPARISON (TESLA / SIGENSTOR / VICTRON) — PAGE-SPECIFIC STYLES
   ==============================================================================

   This file contains ONLY styles unique to the comparison article.
   Foundation styles, header CSS, and footer CSS come from their own files.

   WORDPRESS PLACEMENT
   -------------------
   wp-content/themes/synergy/assets/css/pages/comparison.css

   ENQUEUE (in functions.php):

       if ( is_page( 'comparison' ) ) {
           wp_enqueue_style(
               'synergy-comparison',
               get_template_directory_uri() . '/assets/css/pages/comparison.css',
               array( 'synergy-foundation' ),
               filemtime( get_template_directory() . '/assets/css/pages/comparison.css' )
           );
       }

   STRUCTURE
   ---------
   Components specific to this page:
     - .page-hero (with comparison-specific badge and meta)
     - .trust-bar (reused across product pages)
     - .at-a-glance summary grid
     - .comparison-table — the main comparison matrix
     - .scenario-card — use-case-driven recommendation cards
     - .quick-ref-grid — quick reference comparison
     - .real-talk — pros and cons section
     - .process-grid — installation process steps
     - .why-grid, .why-card — Synergy differentiators
     - .faq-list, .faq — accordion FAQ
     - .related-grid, .related-card — links to Tesla, SigenStor, Victron pages
     - .closing-cta — final quote form section
     - .float-cta — floating mobile CTA

   LAYER 2 CANDIDATES
   ------------------
   Same components are used across Tesla, SigenStor, Victron, and now this
   comparison page. The shared candidates remain:
     - .page-hero, .trust-bar, .section, .section-light, .section-head
     - .closing-cta, .faq-list, .why-grid

   These will move to a shared components.css (Layer 2) once we have enough
   convergence to identify the canonical patterns.

   CI COMPLIANCE
   -------------
   All colours updated to CI specification on 12 May 2026.

   ============================================================================== */

/* =========================================================
       DESIGN TOKENS — matched to Residential SigenStor template
       ========================================================= */

/* =========================================================
       RESET / BASE
       ========================================================= */

h2 strong { color: var(--brand); font-weight: 700; }

p:last-child { margin-bottom: 0; }

/* =========================================================
       UTILITIES
       ========================================================= */

.container-narrow {
      max-width: 960px;
      margin: 0 auto;
      padding: 0 30px;
    }

.section {
      padding: 80px 0;
    }

.section-light { background: var(--light-bg); }

.eyebrow {
      display: inline-block;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 2px;
      text-transform: uppercase;
      color: var(--brand);
      margin-bottom: 14px;
    }

.lede {
      font-size: 16px;
      line-height: 1.7;
      color: var(--text);
      max-width: 760px;
      margin: 0 auto 36px;
    }

.section-head {
      text-align: center;
      margin-bottom: 50px;
    }

.section-head h2 { margin-bottom: 16px; }

/* =========================================================
       ANNOUNCEMENT BAR
       ========================================================= */

/* =========================================================
       HEADER & NAV
       ========================================================= */

/* Header CTA button */

/* Mobile nav */

/* =========================================================
       BREADCRUMB
       ========================================================= */

/* =========================================================
       PAGE HERO — SigenStor-style olive overlay
       ========================================================= */

.page-hero {
      position: relative;
      background: var(--ink);
      color: #fff;
      padding: 90px 0 100px;
      overflow: hidden;
      isolation: isolate;
    }

/* Olive-green gradient overlay matching the SigenStor template */

.page-hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(100deg,
        rgba(167, 190, 57, 0.92) 0%,
        rgba(142, 162, 48, 0.78) 40%,
        rgba(45, 57, 64, 0.55) 100%);
      z-index: 1;
      pointer-events: none;
    }

/* Subtle texture pattern behind the gradient */

.page-hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04) 0%, transparent 50%);
      z-index: 0;
      pointer-events: none;
    }

.page-hero-inner {
      position: relative;
      z-index: 2;
      max-width: 1180px;
      margin: 0 auto;
      padding: 0 30px;
    }

.page-hero h1 { color: #fff; max-width: 820px; margin-bottom: 18px; }

.page-hero h1 strong { color: var(--accent-warn); font-weight: 700; }

.page-hero .hero-lede {
      max-width: 800px;
      font-size: 16px;
      line-height: 1.7;
      margin-bottom: 32px;
      color: rgba(255, 255, 255, 0.95);
    }

.hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      background: var(--brand);
      border: 1px solid rgba(255, 255, 255, 0.3);
      color: #fff;
      padding: 8px 16px;
      border-radius: 30px;
      margin-bottom: 22px;
      font-weight: 700;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

/* Hero action buttons */

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

.hero-cta {
      display: inline-block;
      background: #fff;
      color: var(--ink);
      border: 2px solid #fff;
      padding: 14px 32px;
      border-radius: 3px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-weight: 700;
      font-size: 14px;
      transition: all 0.2s;
    }

.hero-cta:hover {
      background: transparent;
      color: #fff;
    }

.hero-cta-secondary {
      display: inline-block;
      background: transparent;
      color: #fff;
      border: 2px solid rgba(255,255,255,0.6);
      padding: 14px 32px;
      border-radius: 3px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      font-weight: 700;
      font-size: 14px;
      transition: all 0.2s;
    }

.hero-cta-secondary:hover {
      background: #fff;
      color: var(--ink);
      border-color: #fff;
    }

/* Hero brand pills (Tesla VS SigenStor VS Victron) */

.hero-brands {
      display: flex;
      align-items: center;
      gap: 14px;
      flex-wrap: wrap;
    }

.hero-brand-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255,255,255,0.12);
      border: 1px solid rgba(255,255,255,0.3);
      color: #fff;
      padding: 8px 18px;
      border-radius: 30px;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.4px;
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
    }

.hero-brand-pill .dot {
      width: 8px; height: 8px; border-radius: 50%;
      display: inline-block;
    }

.hero-brand-pill.tesla .dot { background: #60a5fa; box-shadow: 0 0 8px rgba(96,165,250,0.7); }

.hero-brand-pill.sigen .dot { background: var(--brand-light); box-shadow: 0 0 8px rgba(180,200,87,0.7); }

.hero-brand-pill.victron .dot { background: #fbbf24; box-shadow: 0 0 8px rgba(251,191,36,0.7); }

.hero-vs {
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 2px;
      color: rgba(255,255,255,0.6);
    }

/* =========================================================
       TRUST BAR
       ========================================================= */

.trust-bar {
      background: #fff;
      border-bottom: 1px solid var(--line);
      padding: 28px 0;
    }

.trust-bar-inner {
      max-width: 1180px;
      margin: 0 auto;
      padding: 0 30px;
      display: flex;
      flex-wrap: wrap;
      gap: 30px;
      justify-content: space-around;
      align-items: center;
    }

.trust-item {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 13px;
      color: var(--ink-soft);
      font-weight: 600;
      text-align: left;
      line-height: 1.4;
    }

.trust-icon {
      width: 40px; height: 40px;
      border-radius: 10px;
      background: linear-gradient(135deg, rgba(180, 200, 87, 0.16) 0%, rgba(167, 190, 57, 0.08) 100%);
      color: var(--brand);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

.trust-icon svg {
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

/* =========================================================
       AT A GLANCE — brand cards with coloured top stripe
       ========================================================= */

.glance-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-top: 20px;
    }

.glance-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 36px 28px 28px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
      transition: transform 0.3s, box-shadow 0.3s;
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

.glance-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    }

.glance-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 5px;
      background: var(--brand);
    }

.glance-card.tesla::before { background: var(--tesla); }

.glance-card.sigen::before { background: var(--sigen); }

.glance-card.victron::before { background: var(--victron); }

.glance-card .brand-name {
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 700;
      color: var(--heading);
      margin-bottom: 4px;
      letter-spacing: -0.01em;
    }

.glance-card.tesla   .brand-name { color: var(--tesla); }

.glance-card.sigen   .brand-name { color: var(--sigen); }

.glance-card.victron .brand-name { color: var(--victron-dark); }

.glance-card .tagline {
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: var(--ink-soft);
      margin-bottom: 16px;
    }

.glance-card p {
      color: var(--text);
      line-height: 1.7;
      margin-bottom: 22px;
      flex-grow: 1;
    }

.glance-card .best-for {
      display: block;
      font-size: 13px;
      font-weight: 600;
      padding: 12px 16px;
      border-radius: 6px;
      line-height: 1.5;
      margin-top: auto;
    }

.glance-card.tesla .best-for {
      background: rgba(37, 99, 235, 0.08);
      color: var(--tesla-dark);
      border-left: 3px solid var(--tesla);
    }

.glance-card.sigen .best-for {
      background: rgba(167, 190, 57, 0.08);
      color: var(--sigen-dark);
      border-left: 3px solid var(--sigen);
    }

.glance-card.victron .best-for {
      background: rgba(217, 119, 6, 0.08);
      color: var(--victron-dark);
      border-left: 3px solid var(--victron);
    }

.glance-footer {
      margin-top: 36px;
      text-align: center;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
      padding: 22px 28px;
      background: #fff;
      border: 1px dashed rgba(167,190,57,0.4);
      border-radius: 8px;
    }

.glance-footer p {
      color: var(--ink-soft);
      font-size: 15px;
      margin: 0;
    }

.glance-footer strong { color: var(--brand-dark); }

/* =========================================================
       DETAILED COMPARISON TABLES
       ========================================================= */

.compare-section { margin-top: 0; }

.compare-sub {
      font-family: var(--font-display);
      font-size: 18px;
      font-weight: 700;
      color: var(--heading);
      margin: 50px 0 18px;
      padding-left: 16px;
      border-left: 4px solid var(--brand);
      line-height: 1.3;
    }

.compare-sub:first-of-type { margin-top: 10px; }

.table-wrap {
      width: 100%;
      overflow-x: auto;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
      border: 1px solid var(--line);
      -webkit-overflow-scrolling: touch;
    }

table.compare {
      width: 100%;
      border-collapse: collapse;
      min-width: 720px;
      font-size: 14px;
    }

table.compare thead {
      background: var(--brand-gradient);
    }

table.compare thead th {
      padding: 16px 18px;
      color: #fff;
      font-weight: 700;
      text-align: left;
      letter-spacing: 0.3px;
      font-family: var(--font-display);
      font-size: 13px;
      text-transform: uppercase;
      vertical-align: middle;
    }

table.compare thead th:first-child { min-width: 220px; }

table.compare tbody tr {
      border-bottom: 1px solid var(--line);
      transition: background 0.15s ease;
    }

table.compare tbody tr:last-child { border-bottom: none; }

table.compare tbody tr:hover { background: var(--bg-panel); }

table.compare td {
      padding: 14px 18px;
      color: var(--ink-soft);
      vertical-align: top;
      line-height: 1.55;
    }

table.compare td:first-child {
      font-weight: 600;
      color: var(--heading);
      background: rgba(247, 248, 244, 0.5);
    }

table.compare tbody tr:hover td:first-child { background: #f1f3eb; }

/* Brand-tinted column headers — small dot before each brand name */

table.compare thead th .col-dot {
      display: inline-block;
      width: 8px; height: 8px;
      border-radius: 50%;
      margin-right: 8px;
      vertical-align: middle;
      box-shadow: 0 0 6px rgba(255,255,255,0.3);
    }

table.compare thead th.col-tesla   .col-dot { background: #93c5fd; }

table.compare thead th.col-sigen   .col-dot { background: #d9f99d; }

table.compare thead th.col-victron .col-dot { background: #fcd34d; }

/* =========================================================
       SCENARIOS — 6 cards, brand-tinted "Winner" pill
       ========================================================= */

.scenario-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-top: 20px;
    }

.scenario-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 28px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
      transition: transform 0.3s, box-shadow 0.3s;
      display: flex;
      flex-direction: column;
    }

.scenario-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    }

.scenario-title {
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 700;
      color: var(--heading);
      line-height: 1.3;
      margin-bottom: 14px;
    }

.scenario-winner {
      display: inline-block;
      align-self: flex-start;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.5px;
      padding: 6px 14px;
      border-radius: 999px;
      margin-bottom: 16px;
      line-height: 1.3;
    }

.scenario-winner.tesla {
      background: rgba(37, 99, 235, 0.1);
      color: var(--tesla-dark);
      border: 1px solid rgba(37, 99, 235, 0.25);
    }

.scenario-winner.sigen {
      background: rgba(167, 190, 57, 0.1);
      color: var(--sigen-dark);
      border: 1px solid rgba(167, 190, 57, 0.3);
    }

.scenario-winner.victron {
      background: rgba(217, 119, 6, 0.1);
      color: var(--victron-dark);
      border: 1px solid rgba(217, 119, 6, 0.3);
    }

.scenario-winner.mixed {
      background: rgba(45, 57, 64, 0.07);
      color: var(--ink);
      border: 1px solid rgba(45, 57, 64, 0.18);
    }

.scenario-card p {
      color: var(--text);
      line-height: 1.7;
      margin-bottom: 18px;
      flex-grow: 1;
    }

.scenario-choose {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--brand-dark);
      padding-top: 14px;
      border-top: 1px solid var(--line);
      line-height: 1.5;
    }

/* =========================================================
       QUICK REFERENCE TABLE (specs)
       ========================================================= */

table.specs {
      width: 100%;
      border-collapse: collapse;
      min-width: 560px;
      font-size: 14px;
    }

table.specs thead {
      background: var(--brand-gradient);
    }

table.specs thead th {
      padding: 16px 18px;
      color: #fff;
      font-weight: 700;
      text-align: left;
      letter-spacing: 0.3px;
      font-family: var(--font-display);
      font-size: 13px;
      text-transform: uppercase;
    }

table.specs tbody tr {
      border-bottom: 1px solid var(--line);
      transition: background 0.15s ease;
    }

table.specs tbody tr:last-child { border-bottom: none; }

table.specs tbody tr:hover { background: var(--bg-panel); }

table.specs td {
      padding: 14px 18px;
      color: var(--ink-soft);
      vertical-align: top;
      line-height: 1.55;
    }

table.specs td:first-child {
      font-weight: 600;
      color: var(--heading);
      background: rgba(247, 248, 244, 0.5);
    }

table.specs td.best {
      font-weight: 700;
      color: var(--brand-dark);
      position: relative;
      padding-left: 32px;
    }

table.specs td.best::before {
      content: '';
      position: absolute;
      left: 14px; top: 50%;
      transform: translateY(-50%);
      width: 10px; height: 10px;
      border-radius: 50%;
      background: var(--brand);
      box-shadow: 0 0 0 3px rgba(167,190,57,0.18);
    }

table.specs tbody tr:hover td:first-child { background: #f1f3eb; }

/* =========================================================
       REAL TALK — callout + 4-up advice grid + CTA
       ========================================================= */

.callout {
      background: linear-gradient(135deg, rgba(167, 190, 57, 0.08) 0%, rgba(180, 200, 87, 0.04) 100%);
      border-left: 4px solid var(--brand);
      border-radius: 8px;
      padding: 26px 28px;
      margin: 0 auto 40px;
      max-width: 820px;
    }

.callout p {
      color: var(--ink);
      font-size: 16px;
      line-height: 1.7;
      margin: 0;
    }

.callout strong { color: var(--brand-dark); }

.real-talk-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
      margin-bottom: 40px;
    }

.rt-point {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 26px 28px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
      position: relative;
      padding-left: 56px;
    }

.rt-point:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    }

.rt-point::before {
      content: '';
      position: absolute;
      left: 22px; top: 30px;
      width: 18px; height: 18px;
      border-radius: 50%;
      background: linear-gradient(135deg, rgba(180, 200, 87, 0.2) 0%, rgba(167, 190, 57, 0.1) 100%);
      border: 2px solid var(--brand);
    }

.rt-point::after {
      content: '';
      position: absolute;
      left: 28px; top: 38px;
      width: 6px; height: 3px;
      border-left: 2px solid #fff;
      border-bottom: 2px solid #fff;
      transform: rotate(-45deg);
      background: var(--brand);
    }

.rt-point h4 {
      font-family: var(--font-display);
      font-size: 16px;
      color: var(--heading);
      margin-bottom: 10px;
      line-height: 1.4;
    }

.rt-point p {
      color: var(--text);
      line-height: 1.7;
      margin: 0;
      font-size: 14px;
    }

.real-talk-cta {
      text-align: center;
      margin-top: 10px;
    }

.btn-primary-block {
      display: inline-block;
      background: var(--brand-gradient);
      color: #fff;
      padding: 16px 36px;
      border-radius: 999px;
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 15px;
      letter-spacing: 0.3px;
      box-shadow: 0 6px 18px rgba(167,190,57,0.35);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      border: 2px solid transparent;
    }

.btn-primary-block:hover {
      color: #fff;
      transform: translateY(-2px);
      box-shadow: 0 10px 26px rgba(167,190,57,0.45);
    }

/* =========================================================
       PROCESS — 5 numbered steps
       ========================================================= */

.process-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 18px;
      margin-top: 20px;
      position: relative;
    }

/* Connector line behind the numbered circles on desktop */

.process-grid::before {
      content: '';
      position: absolute;
      left: 8%;
      right: 8%;
      top: 28px;
      height: 2px;
      background: linear-gradient(90deg,
        rgba(167,190,57,0.0) 0%,
        rgba(167,190,57,0.45) 10%,
        rgba(167,190,57,0.45) 90%,
        rgba(167,190,57,0.0) 100%);
      z-index: 0;
    }

.process-step {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 22px 20px 24px;
      text-align: center;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
      position: relative;
      z-index: 1;
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

.process-step:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

.process-num {
      width: 56px; height: 56px;
      margin: -36px auto 14px;
      background: var(--brand-gradient);
      color: #fff;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 800;
      box-shadow: 0 6px 18px rgba(167, 190, 57, 0.35);
      border: 4px solid var(--light-bg);
    }

.process-step h4 {
      font-family: var(--font-display);
      font-size: 15px;
      margin-bottom: 8px;
      color: var(--heading);
      line-height: 1.35;
    }

.process-step p {
      font-size: 13px;
      color: var(--text);
      line-height: 1.6;
      margin: 0;
    }

/* =========================================================
       WHY SYNERGY — 6-up trust grid (icon + heading + body)
       ========================================================= */

.why-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-top: 20px;
    }

.why-item {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 28px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
      transition: transform 0.3s, box-shadow 0.3s;
      display: grid;
      grid-template-columns: 52px 1fr;
      gap: 18px;
      align-items: start;
    }

.why-item:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    }

.why-icon {
      width: 52px;
      height: 52px;
      border-radius: 12px;
      background: linear-gradient(135deg, rgba(180, 200, 87, 0.16) 0%, rgba(167, 190, 57, 0.08) 100%);
      color: var(--brand);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.25s ease, background 0.25s ease;
    }

.why-item:hover .why-icon {
      background: linear-gradient(135deg, rgba(180, 200, 87, 0.28) 0%, rgba(167, 190, 57, 0.16) 100%);
      transform: scale(1.04);
    }

.why-icon svg {
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

.why-item h4 {
      font-family: var(--font-display);
      font-size: 16px;
      color: var(--heading);
      margin-bottom: 8px;
      line-height: 1.3;
    }

.why-item p {
      color: var(--text);
      font-size: 14px;
      line-height: 1.65;
      margin: 0;
    }

/* =========================================================
       FAQ — accordion using <details>/<summary>
       ========================================================= */

.faq-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-width: 820px;
      margin: 0 auto;
    }

.faq {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      transition: box-shadow 0.2s ease, border-color 0.2s ease;
    }

.faq[open] {
      box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
      border-color: rgba(167, 190, 57, 0.4);
    }

.faq summary {
      list-style: none;
      cursor: pointer;
      padding: 18px 24px 18px 22px;
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 15px;
      color: var(--heading);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      line-height: 1.4;
      transition: color 0.2s ease;
    }

.faq summary:hover { color: var(--brand-dark); }

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
      content: '';
      flex-shrink: 0;
      width: 12px;
      height: 12px;
      border-right: 2px solid var(--brand);
      border-bottom: 2px solid var(--brand);
      transform: rotate(45deg);
      transform-origin: center;
      transition: transform 0.25s ease;
      margin-right: 4px;
      margin-top: -4px;
    }

.faq[open] summary::after {
      transform: rotate(-135deg);
      margin-top: 4px;
    }

.faq-answer {
      padding: 0 24px 22px 22px;
      border-top: 1px solid var(--line);
      padding-top: 18px;
      animation: faq-fade 0.25s ease;
    }

.faq-answer p {
      color: var(--text);
      line-height: 1.75;
      font-size: 14.5px;
      margin: 0;
    }

@keyframes faq-fade {
      from { opacity: 0; transform: translateY(-4px); }
      to   { opacity: 1; transform: translateY(0); }
    }

/* =========================================================
       RELATED PAGES — coloured top stripe + arrow link
       ========================================================= */

.related-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-top: 20px;
    }

.related-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 32px 26px 26px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
      transition: transform 0.3s, box-shadow 0.3s;
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

.related-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    }

.related-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 4px;
      background: var(--brand);
    }

.related-card.tesla::before { background: var(--tesla); }

.related-card.sigen::before { background: var(--sigen); }

.related-card.victron::before { background: var(--victron); }

.related-card h4 {
      font-family: var(--font-display);
      font-size: 17px;
      color: var(--heading);
      margin-bottom: 10px;
      line-height: 1.3;
    }

.related-card p {
      color: var(--text);
      font-size: 14px;
      line-height: 1.65;
      margin-bottom: 18px;
      flex-grow: 1;
    }

.related-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 14px;
      color: var(--brand-dark);
      align-self: flex-start;
      transition: gap 0.2s ease, color 0.2s ease;
    }

.related-card.tesla .related-link { color: var(--tesla-dark); }

.related-card.sigen .related-link { color: var(--sigen-dark); }

.related-card.victron .related-link { color: var(--victron-dark); }

.related-link::after {
      content: '→';
      display: inline-block;
      transition: transform 0.2s ease;
    }

.related-link:hover { gap: 10px; }

.related-link:hover::after { transform: translateX(2px); }

/* =========================================================
       CLOSING CTA + QUOTE FORM (SigenStor-style)
       ========================================================= */

.closing-cta {
      background: var(--brand-gradient), var(--ink);
      color: #fff;
      padding: 80px 0;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

.closing-cta::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,0.06) 0%, transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(255,255,255,0.04) 0%, transparent 40%);
      pointer-events: none;
    }

.closing-cta .container { position: relative; z-index: 1; }

.closing-cta h2 { color: #fff; margin-bottom: 14px; }

.closing-cta h2 strong { color: var(--accent-warn); }

.closing-cta > .container > p {
      max-width: 720px;
      margin: 0 auto 38px;
      color: rgba(255, 255, 255, 0.92);
      font-size: 16px;
      line-height: 1.7;
    }

/* Quote form card */

.quote-form-wrap {
      max-width: 760px;
      margin: 0 auto;
      background: #fff;
      border-radius: 14px;
      padding: 40px 44px 36px;
      text-align: left;
      box-shadow:
        0 24px 60px rgba(20, 28, 32, 0.32),
        0 8px 18px rgba(20, 28, 32, 0.18);
      color: var(--text);
    }

.quote-form-header { text-align: center; margin-bottom: 30px; }

.quote-form-header .quote-eyebrow {
      display: inline-block;
      font-family: 'Poppins', sans-serif;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1.6px;
      text-transform: uppercase;
      color: var(--brand);
      margin-bottom: 10px;
    }

.quote-form-header h3 {
      font-size: 22px;
      font-weight: 700;
      color: var(--heading);
      margin: 0 0 8px;
    }

.quote-form-header p {
      font-size: 14px;
      color: var(--ink-soft);
      margin: 0;
    }

.quote-form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 18px;
    }

.quote-form-grid .full-row { grid-column: 1 / -1; }

.quote-field { display: flex; flex-direction: column; gap: 6px; }

.quote-field > label {
      font-family: 'Poppins', sans-serif;
      font-size: 12px;
      font-weight: 600;
      color: var(--heading);
      letter-spacing: 0.3px;
    }

.quote-field label .req { color: var(--brand); margin-left: 2px; }

.quote-field input[type="text"],
    .quote-field input[type="tel"],
    .quote-field input[type="email"],
    .quote-field textarea {
      width: 100%;
      padding: 11px 14px;
      font: inherit;
      font-size: 14px;
      color: var(--heading);
      background: var(--bg-panel);
      border: 1.5px solid var(--line);
      border-radius: 7px;
      transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
      font-family: 'Open Sans', sans-serif;
    }

.quote-field textarea { min-height: 90px; resize: vertical; }

.quote-field input:focus,
    .quote-field textarea:focus {
      outline: none;
      border-color: var(--brand);
      background: #fff;
      box-shadow: 0 0 0 3px rgba(167, 190, 57, 0.15);
    }

.quote-field input[aria-invalid="true"],
    .quote-field textarea[aria-invalid="true"] {
      border-color: #c0392b;
      background: #fdf3f1;
    }

.quote-field .field-error {
      font-size: 12px;
      color: #c0392b;
      margin-top: 2px;
      min-height: 16px;
    }

/* Pill-style radio + checkbox option groups */

.quote-radio-group { display: flex; flex-direction: column; gap: 8px; }

.quote-radio-group .quote-radio-options {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

.quote-radio-options > label {
      flex: 1;
      min-width: 140px;
      padding: 10px 14px;
      background: var(--bg-panel);
      border: 1.5px solid var(--line);
      border-radius: 7px;
      cursor: pointer;
      font-family: 'Open Sans', sans-serif;
      font-size: 13px;
      font-weight: 600;
      color: var(--ink-soft);
      text-align: center;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      letter-spacing: 0.2px;
      position: relative;
    }

.quote-radio-options > label:hover {
      border-color: var(--brand);
      color: var(--heading);
    }

.quote-radio-options input[type="radio"],
    .quote-radio-options input[type="checkbox"] {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
    }

.quote-radio-options > label:has(input:checked) {
      background: linear-gradient(135deg, rgba(180, 200, 87, 0.18) 0%, rgba(167, 190, 57, 0.12) 100%);
      border-color: var(--brand);
      color: var(--brand-dark);
      box-shadow: 0 0 0 1px var(--brand);
    }

/* Consent checkbox */

.quote-consent {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-top: 10px;
      font-size: 13px;
      color: var(--ink-soft);
      line-height: 1.55;
    }

.quote-consent input[type="checkbox"] {
      width: 17px;
      height: 17px;
      accent-color: var(--brand);
      margin-top: 2px;
      flex-shrink: 0;
    }

.quote-consent input[aria-invalid="true"] { outline: 2px solid #c0392b; outline-offset: 2px; }

/* Submit button + trust line */

.quote-form-footer {
      margin-top: 26px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
    }

.quote-submit {
      background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 50%, var(--brand-dark) 100%);
      color: #fff;
      border: 0;
      padding: 14px 38px;
      border-radius: 8px;
      font-family: 'Poppins', sans-serif;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.4px;
      cursor: pointer;
      box-shadow:
        0 6px 18px rgba(167, 190, 57, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
      transition: transform 0.18s, box-shadow 0.18s;
      min-width: 240px;
    }

.quote-submit:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow:
        0 10px 24px rgba(167, 190, 57, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }

.quote-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.quote-form-trust { font-size: 12px; color: var(--ink-soft); }

/* Honeypot — hidden from users */

.quote-honeypot {
      position: absolute;
      left: -9999px;
      width: 1px;
      height: 1px;
      overflow: hidden;
    }

/* Form-wide error banner */

.quote-form-error {
      display: none;
      background: #fdf3f1;
      border: 1px solid #f5c6c1;
      color: #c0392b;
      padding: 12px 16px;
      border-radius: 7px;
      font-size: 13.5px;
      margin-bottom: 18px;
      text-align: center;
    }

.quote-form-error.is-visible { display: block; }

/* Success state */

.quote-form-success {
      display: none;
      text-align: center;
      padding: 50px 30px;
    }

.quote-form-success.is-visible { display: block; }

.quote-form-success .success-icon {
      width: 72px;
      height: 72px;
      margin: 0 auto 22px;
      background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 22px rgba(167, 190, 57, 0.35);
    }

.quote-form-success .success-icon svg {
      width: 36px;
      height: 36px;
      stroke: #fff;
      fill: none;
      stroke-width: 2.6;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

.quote-form-success h3 {
      font-size: 24px;
      font-weight: 700;
      color: var(--heading);
      margin-bottom: 12px;
    }

.quote-form-success p {
      font-size: 15px;
      color: var(--ink-soft);
      max-width: 460px;
      margin: 0 auto 8px;
      line-height: 1.7;
    }

.quote-form-success .success-meta {
      font-size: 13px;
      color: var(--ink-soft);
      margin-top: 18px;
    }

.quote-form-success .success-meta a {
      color: var(--brand-dark);
      font-weight: 600;
    }

/* Direct-call alternative below the form */

.quote-alt {
      text-align: center;
      margin-top: 28px;
      color: rgba(255, 255, 255, 0.85);
      font-size: 14px;
    }

.quote-alt strong { color: #fff; }

.quote-alt a {
      color: #fff;
      font-weight: 700;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
      padding-bottom: 1px;
    }

.quote-alt a:hover { border-bottom-color: #fff; color: #fff; }

/* =========================================================
       FLOATING MOBILE CTA
       ========================================================= */

.float-cta {
      position: fixed;
      right: 16px;
      bottom: 16px;
      z-index: 90;
      background: var(--brand);
      color: #fff;
      padding: 12px 20px;
      border-radius: 50px;
      font-weight: 700;
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      box-shadow: 0 8px 24px rgba(0,0,0,0.25);
      display: none;
      align-items: center;
      gap: 8px;
      opacity: 0;
      transform: translateY(8px);
      transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
    }

.float-cta svg { display: block; }

@media (max-width: 980px) {
      .float-cta { display: inline-flex; }
    }

.float-cta.is-visible { opacity: 1; transform: translateY(0); }

.float-cta:hover { background: var(--brand-dark); color: #fff; }

/* =========================================================
       SITE FOOTER
       ========================================================= */

.social-icons {
      display: flex;
      gap: 10px;
      margin-top: 14px;
    }

.social-icons a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255,255,255,0.06);
      color: #cfd4d7;
      font-size: 14px;
      font-family: var(--font-display);
      font-weight: 700;
      transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
      border: 1px solid rgba(255,255,255,0.08);
    }

.social-icons a:hover {
      background: var(--brand);
      color: #fff;
      transform: translateY(-2px);
    }

.social-icons a[aria-disabled="true"] {
      opacity: 0.4;
      pointer-events: none;
    }

/* =========================================================
       REDUCED MOTION
       ========================================================= */

@media (prefers-reduced-motion: reduce) {
      * { animation: none !important; transition: none !important; }
      html { scroll-behavior: auto; }
    }

/* =========================================================
       RESPONSIVE — global breakpoints
       ========================================================= */

@media (max-width: 900px) {
      h1 { font-size: 30px; }
      h2 { font-size: 24px; }
      .section { padding: 60px 0; }
      .page-hero { padding: 70px 0 80px; }
      .hero-brands { gap: 8px; }
      .hero-vs { font-size: 10px; letter-spacing: 1px; }
      .glance-grid { grid-template-columns: 1fr; gap: 18px; }
      .compare-sub { font-size: 16px; margin-top: 36px; }
      .scenario-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
      .real-talk-grid { grid-template-columns: 1fr; gap: 18px; }
      .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        row-gap: 50px;
      }
      .process-grid::before { display: none; }
      .why-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
      .related-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    }

@media (max-width: 760px) {
      .quote-form-wrap { padding: 30px 20px 26px; }
      .quote-form-grid { grid-template-columns: 1fr; gap: 14px; }
      .quote-radio-options > label { min-width: 0; }
      .quote-form-header h3 { font-size: 19px; }
    }

@media (max-width: 600px) {
      .container, .container-narrow { padding: 0 20px; }
      h1 { font-size: 26px; }
      .hero-actions { flex-direction: column; align-items: stretch; }
      .hero-cta, .hero-cta-secondary { text-align: center; }
      .trust-bar-inner { gap: 18px; justify-content: flex-start; }
      .trust-item { width: calc(50% - 12px); }
      table.compare { font-size: 13px; }
      table.compare thead th, table.compare td { padding: 12px 14px; }
      .scenario-grid { grid-template-columns: 1fr; }
      .process-grid { grid-template-columns: 1fr; gap: 30px; }
      .callout { padding: 22px; }
      .callout p { font-size: 15px; }
      .btn-primary-block { padding: 14px 24px; font-size: 14px; }
      .why-grid { grid-template-columns: 1fr; }
      .related-grid { grid-template-columns: 1fr; }
      .closing-cta { padding: 60px 0; }
    }

/* =========================================================
   ARTICLE META — byline + last-updated line (E-E-A-T signal)
   ========================================================= */
.article-meta {
  background: rgba(167, 190, 57, 0.06);
  border-top: 1px solid rgba(167, 190, 57, 0.2);
  border-bottom: 1px solid rgba(167, 190, 57, 0.2);
  padding: 18px 24px;
}
.article-meta-line {
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}
.article-meta-line strong { color: #1a1a1a; }
.article-meta-line time { font-size: 13px; }
@media (max-width: 600px) {
  .article-meta { padding: 14px 16px; }
  .article-meta-line { font-size: 13px; line-height: 1.55; }
}

/* =========================================================
   GLOSSARY LIST — semantic <dl> for SEO/GEO term definitions
   ========================================================= */
.glossary-list { margin: 32px 0 0 0; padding: 0; }
.glossary-list dt {
  font-size: 17px;
  margin: 26px 0 8px 0;
  color: #1a1a1a;
}
.glossary-list dt:first-of-type { margin-top: 0; }
.glossary-list dt strong { color: #1a1a1a; font-weight: 700; }
.glossary-list dd {
  margin: 0;
  padding: 0 0 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 15px;
  line-height: 1.65;
  color: #555;
}
.glossary-list dd:last-of-type { border-bottom: none; padding-bottom: 0; }


/* ============================================ */
/* HERO IMAGE ROTATION — 3 brand images, 5s each, 15s total cycle */
/* ============================================ */

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-hero-bg .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: hero-rotate 15s infinite;
  will-change: opacity;
}

.page-hero-bg .slide-1 { animation-delay: 0s; }
.page-hero-bg .slide-2 { animation-delay: 5s; }
.page-hero-bg .slide-3 { animation-delay: 10s; }

@keyframes hero-rotate {
  0%, 100% { opacity: 0; }
  6.67%, 33.33% { opacity: 1; }
  40% { opacity: 0; }
}

/* Accessibility — respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .page-hero-bg .slide {
    animation: none;
    opacity: 0;
  }
  .page-hero-bg .slide-1 {
    opacity: 1;
  }
}

/* Slight image desaturation so olive gradient overlay blends naturally */
.page-hero-bg .slide {
  filter: saturate(0.85) brightness(0.92);
}

/* ==============================================================================
   CLIENT REVIEWS & TESTIMONIALS SECTION
   Added 2026-05-27 — static replacement for TrustIndex widget.
   ============================================================================== */

.reviews-aggregate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0 auto 40px;
  text-align: center;
}

.reviews-aggregate-stars {
  font-size: 2rem;
  color: #f5b800;
  letter-spacing: 4px;
}

.reviews-aggregate-rating {
  font-size: 1.3rem;
  color: #1a2429;
}

.reviews-aggregate-rating strong {
  font-size: 2rem;
  color: #a7be39;
}

.reviews-aggregate-count {
  color: #4a5568;
  font-size: 0.95rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.review-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.review-stars {
  color: #f5b800;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-text {
  font-style: italic;
  color: #1a2429;
  line-height: 1.55;
  margin: 0 0 20px;
  flex-grow: 1;
  font-size: 0.95rem;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid #f0f0f0;
  padding-top: 16px;
}

.review-author {
  color: #1a2429;
  font-size: 1rem;
}

.review-tag {
  display: inline-block;
  background: #a7be39;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 3px;
  align-self: flex-start;
}

.review-date {
  color: #888;
  font-size: 0.85rem;
}

.reviews-cta {
  text-align: center;
  margin-top: 30px;
  color: #4a5568;
}

.reviews-cta a {
  color: #a7be39;
  font-weight: 700;
  text-decoration: none;
}

.reviews-cta a:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}