/* =========================================================
   FIREFLY SOLAR
   TESLA × MIAMI VICE SYSTEM
   BLACK CANVAS / BOLD NEON / IMAGE SEPARATION
========================================================= */

/* -----------------------------
   ROOT TOKENS
----------------------------- */
:root{
  --black:#000000;
  --panel:#0a0a0a;
  --panel-soft:#0f0f0f;

  --text:#ffffff;
  --muted:rgba(255,255,255,.72);
  --hair:rgba(255,255,255,.18);

  /* MIAMI VICE (BOLD) */
  --mv-cyan:#1FE0FF;
  --mv-pink:#FF2EDC;
  --mv-purple:#8B5CFF;

  --radius:18px;
}

/* -----------------------------
   BASE
----------------------------- */
body{
  margin:0;
  background:var(--black);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  overflow-x:hidden;
}

main{
  background:var(--black);
}

a{color:inherit;text-decoration:none}

/* -----------------------------
   LAYOUT
----------------------------- */
.section-pad{padding:110px 0}
.section-tight{padding:70px 0}

.ff-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

.ff-section{
  background:var(--black);
  border-top:1px solid rgba(255,255,255,.10);
}

.ff-section.alt{
  background:#050505;
}

/* -----------------------------
   TYPOGRAPHY
----------------------------- */
.hero-eyebrow,
.ff-eyebrow{
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:700;
  font-size:12px;
  color:rgba(255,255,255,.75);
}

.ff-title{
  margin:.35rem 0;
  font-size:clamp(34px,4.8vw,56px);
  font-weight:900;
  letter-spacing:-.03em;
  text-transform:uppercase;
}

.ff-copy,
.text-white-75{
  color:var(--muted);
  line-height:1.75;
  font-size:16px;
}

/* -----------------------------
   HERO VIDEO
----------------------------- */
.ff-hero-slider{
  position:relative;
  min-height:94vh;
  overflow:hidden;
}

.ff-hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.03);
  filter:contrast(1.1) brightness(.75);
}

.ff-hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.15),
    rgba(0,0,0,.88) 65%,
    rgba(0,0,0,.98)
  );
}

.ff-mv-lines{
  position:absolute;
  inset:0;
  pointer-events:none;
  mix-blend-mode:screen;
  opacity:.45;
  background:
    linear-gradient(120deg,
      transparent 10%,
      rgba(31,224,255,.65),
      transparent 60%
    ),
    linear-gradient(300deg,
      transparent 15%,
      rgba(255,46,220,.55),
      transparent 65%
    );
}

.ff-hero-content{
  position:relative;
  z-index:2;
  max-width:820px;
  padding-top:190px;
}

.ff-hero-title{
  font-size:clamp(44px,6.2vw,76px);
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1.02;
}

.ff-hero-sub{
  margin-top:16px;
  max-width:65ch;
  color:var(--muted);
}

/* -----------------------------
   BUTTONS
----------------------------- */
.ff-btn,
.btn-tesla{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 22px;
  border-radius:999px;
  font-weight:900;
  border:1px solid var(--hair);
  transition:.15s ease;
}

.ff-btn.primary,
.btn-tesla{
  background:#fff;
  color:#111;
  border-color:transparent;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 22px 70px rgba(0,0,0,.75);
}

.ff-btn.ghost{
  background:rgba(255,255,255,.05);
  color:#fff;
}

.ff-btn:hover,
.btn-tesla:hover{
  transform:translateY(-1px);
}

.ff-cta,
.ff-hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:22px;
}

/* -----------------------------
   IMAGE SEPARATORS (KEY FEATURE)
----------------------------- */
.ff-image-separator{
  position:relative;
  min-height:440px;
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:flex-end;
}

.ff-image-separator::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.25),
    rgba(0,0,0,.80),
    rgba(0,0,0,.98)
  );
}

.ff-image-separator .inner{
  position:relative;
  z-index:2;
  padding:56px 0;
  max-width:820px;
}

/* -----------------------------
   NEON DIVIDER
----------------------------- */
.mv-divider{
  height:3px;
  width:100%;
  background:linear-gradient(
    90deg,
    transparent,
    var(--mv-cyan),
    var(--mv-pink),
    var(--mv-purple),
    transparent
  );
  margin:90px 0;
  box-shadow:
    0 0 20px rgba(31,224,255,.55),
    0 0 40px rgba(255,46,220,.35);
}

/* -----------------------------
   PANELS / CARDS
----------------------------- */
.ff-panel,
.ff-card,
.glass-card{
  background:linear-gradient(
    180deg,
    rgba(255,255,255,.07),
    rgba(255,255,255,.02)
  );
  border:1px solid rgba(255,255,255,.20);
  border-radius:var(--radius);
  box-shadow:
    0 30px 90px rgba(0,0,0,.85),
    inset 0 0 0 1px rgba(255,255,255,.04);
  overflow:hidden;
}

.ff-panel.pad,
.glass-card.p{padding:20px}

.ff-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
@media (max-width:920px){
  .ff-cards{grid-template-columns:1fr}
}

.ff-card .img{
  aspect-ratio:16/10;
  background:#000;
}
.ff-card .img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.ff-card .body{padding:18px}
.ff-card h3{
  font-size:14px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* -----------------------------
   LISTS
----------------------------- */
.ff-check{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.ff-check li{display:flex;gap:12px}

.ff-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  margin-top:6px;
  background:var(--mv-cyan);
  box-shadow:0 0 22px rgba(31,224,255,.65);
}
.ff-dot.pink{
  background:var(--mv-pink);
  box-shadow:0 0 22px rgba(255,46,220,.55);
}

/* -----------------------------
   SERVICE AREAS
----------------------------- */
.ff-tiles{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
@media (max-width:920px){
  .ff-tiles{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:520px){
  .ff-tiles{grid-template-columns:1fr}
}

.ff-tile{
  border:1px solid var(--hair);
  border-radius:16px;
  overflow:hidden;
}
.ff-tile .cap{
  padding:14px;
  font-weight:800;
  letter-spacing:.14em;
  font-size:12px;
}

/* -----------------------------
   TESTIMONIALS
----------------------------- */
.ff-quote{
  padding:24px;
  border:1px solid var(--hair);
  border-radius:16px;
  background:rgba(255,255,255,.05);
  max-width:860px;
  margin:0 auto;
}

/* -----------------------------
   FORMS
----------------------------- */
.ff-form label{
  font-weight:800;
  font-size:13px;
  color:rgba(255,255,255,.85);
}

.ff-form .form-control,
.ff-form .form-select{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  border-radius:14px;
  padding:14px;
}

.ff-form .form-control::placeholder{
  color:rgba(255,255,255,.55);
}

.ff-form .form-control:focus,
.ff-form .form-select:focus{
  box-shadow:none;
  border-color:var(--mv-cyan);
}

/* -----------------------------
   FOOTER
----------------------------- */
.footer-inner{
  background:#000;
  border-top:1px solid rgba(255,255,255,.12);
}
/* =========================================================
   SCROLL-TRIGGERED NEON EDGE SYSTEM
========================================================= */

/* Base neon edge container */
.neon-edge{
  position:relative;
  isolation:isolate;
}

/* Hidden neon edges (default state) */
.neon-edge::before,
.neon-edge::after{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  opacity:0;
  transition:opacity .8s ease, transform .8s ease;
  z-index:-1;
}

/* Cyan top-left edge */
.neon-edge::before{
  border-radius:inherit;
  box-shadow:
    0 0 0 1px rgba(31,224,255,.15),
    -8px -8px 28px rgba(31,224,255,.35),
    -16px -16px 60px rgba(31,224,255,.18);
  transform:translateY(16px);
}

/* Pink / purple bottom-right edge */
.neon-edge::after{
  border-radius:inherit;
  box-shadow:
    0 0 0 1px rgba(255,46,220,.18),
    10px 10px 28px rgba(255,46,220,.35),
    18px 18px 60px rgba(138,92,255,.25);
  transform:translateY(-16px);
}

/* Activated state */
.neon-active::before,
.neon-active::after{
  opacity:1;
  transform:translateY(0);
}

/* Image section neon frame */
.ff-image-separator.neon-edge::before{
  box-shadow:
    0 0 0 1px rgba(31,224,255,.25),
    0 0 80px rgba(31,224,255,.45);
}

.ff-image-separator.neon-edge::after{
  box-shadow:
    0 0 0 1px rgba(255,46,220,.25),
    0 0 100px rgba(255,46,220,.35);
}

/* Cards & panels */
.ff-panel.neon-edge::before,
.ff-card.neon-edge::before,
.glass-card.neon-edge::before{
  box-shadow:
    0 0 0 1px rgba(31,224,255,.22),
    -10px -10px 36px rgba(31,224,255,.45);
}

.ff-panel.neon-edge::after,
.ff-card.neon-edge::after,
.glass-card.neon-edge::after{
  box-shadow:
    0 0 0 1px rgba(255,46,220,.22),
    10px 10px 40px rgba(255,46,220,.45);
}

/* Section glow edge */
.ff-section.neon-edge::before{
  box-shadow:
    inset 0 1px 0 rgba(31,224,255,.35),
    inset 0 -1px 0 rgba(255,46,220,.25);
}
/* =========================================
   PATCH: HERO HEIGHT + GLOBAL SECTION RHYTHM
   (append to bottom of site.css)
========================================= */

/* 1) HERO: shorter + cleaner spacing */
.ff-hero-slider{
  min-height:72vh;          /* was 94vh */
  max-height:760px;         /* prevents giant hero on big monitors */
}

@media (max-width: 992px){
  .ff-hero-slider{ min-height:64vh; max-height:none; }
}

@media (max-width: 576px){
  .ff-hero-slider{ min-height:58vh; }
}

/* Hero content vertical position */
.ff-hero-content{
  padding-top:120px;        /* was 190px */
  padding-bottom:70px;
}

@media (max-width: 992px){
  .ff-hero-content{ padding-top:92px; padding-bottom:56px; }
}

@media (max-width: 576px){
  .ff-hero-content{ padding-top:76px; padding-bottom:44px; }
}

/* 2) GLOBAL SPACING: consistent rhythm between every section */
.section-pad{ padding:120px 0; }   /* was 110px */
.section-tight{ padding:84px 0; }  /* was 70px */

/* If you are using ff-section blocks too, enforce spacing there as well */
.ff-section{ padding:120px 0; }        /* adds spacing even if section-pad not applied */
.ff-section.alt{ padding:120px 0; }

/* Prevent “sections feel glued together” after separators */
.ff-image-separator{ margin:0; }
.ff-image-separator + section{ padding-top:130px !important; }

/* Optional: extra breathing room before/after dividers */
.mv-divider{
  margin:110px 0;           /* was 90px */
}

/* 3) STOP COLLISIONS: remove accidental double-padding stacking */
.ff-section .section-pad,
.ff-section .section-tight{
  padding-top:0 !important;
  padding-bottom:0 !important;
}

/* 4) Make separators feel premium (more height + clean) */
.ff-image-separator{
  min-height:520px;         /* was 440px */
}
@media (max-width: 992px){
  .ff-image-separator{ min-height:420px; }
}
/* =========================================================
   STICKY "GET QUOTE" NEON BAR (Bottom)
========================================================= */

.sticky-quote{
  position:fixed;
  left:18px;
  bottom:18px;
  z-index:9999;
  text-decoration:none;
}

.sticky-quote-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding:12px 16px;
  border-radius:999px;

  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;

  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;

  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 22px 70px rgba(0,0,0,.75),
    0 0 22px rgba(31,224,255,.35),
    0 0 22px rgba(255,46,220,.22);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.sticky-quote-inner::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--mv-cyan),var(--mv-pink));
  box-shadow:
    0 0 18px rgba(31,224,255,.75),
    0 0 18px rgba(255,46,220,.55);
}

.sticky-quote:hover .sticky-quote-inner{
  transform:translateY(-1px);
  border-color:rgba(31,224,255,.40);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 26px 90px rgba(0,0,0,.85),
    0 0 34px rgba(31,224,255,.55),
    0 0 34px rgba(255,46,220,.35);
}

.sticky-quote:active .sticky-quote-inner{
  transform:translateY(0);
}

/* Mobile: make it full width */
@media (max-width: 767px){
  .sticky-quote{
    left:12px;
    right:12px;
    bottom:12px;
  }
  .sticky-quote-inner{
    width:100%;
    justify-content:center;
    padding:14px 16px;
  }
}
/* =========================================================
   FULL-BLEED IMAGE SECTIONS
========================================================= */

.ff-full-bleed{
  position:relative;
  width:100vw;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;

  background:#000;
  overflow:hidden;
}

.ff-full-bleed::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.25),
    rgba(0,0,0,.80),
    rgba(0,0,0,.98)
  );
}

.ff-full-bleed img{
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
}

/* Optional: height lock for hero-style images */
.ff-full-bleed.tall img{
  min-height:420px;
  object-fit:cover;
}

/* Mobile safety */
@media (max-width: 768px){
  .ff-full-bleed{
    margin-left:-50vw;
    margin-right:-50vw;
  }
}
/* =========================================================
   FULL BLEED IMAGE + OVERLAY SYSTEM
========================================================= */

.ff-full-bleed{
  position:relative;
  width:100vw;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;

  background:#000;
  overflow:hidden;
}

/* Image */
.ff-full-bleed img{
  width:100%;
  height:100%;
  min-height:520px;
  object-fit:cover;
  display:block;
  filter:contrast(1.05) brightness(.78);
}

/* Dark gradient overlay */
.ff-full-bleed::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.20),
    rgba(0,0,0,.78) 65%,
    rgba(0,0,0,.95)
  );
  z-index:1;
}

/* Overlay content */
.ff-full-bleed-overlay{
  position:absolute;
  z-index:2;
  bottom:90px;
  left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:900px;
  padding:0 24px;
  text-align:left;
}

/* Responsive adjustments */
@media (max-width: 992px){
  .ff-full-bleed img{ min-height:420px; }
  .ff-full-bleed-overlay{ bottom:64px; }
}

@media (max-width: 576px){
  .ff-full-bleed img{ min-height:360px; }
  .ff-full-bleed-overlay{
    bottom:48px;
    text-align:left;
  }
}
/* =========================================================
   FULL-BLEED NEON RAILS (TOP + BOTTOM)
   - thinner than .mv-divider
   - matches Miami Vice gradient
========================================================= */

.ff-full-bleed{
  position:relative; /* required for rails */
}

/* top + bottom neon rails */
.ff-full-bleed::after{
  content:"";
  position:absolute;
  left:0; right:0;
  top:0;
  height:2px;                 /* thin rail */
  z-index:3;                  /* above overlay */
  pointer-events:none;

  background:linear-gradient(
    90deg,
    transparent,
    var(--mv-cyan),
    var(--mv-pink),
    var(--mv-purple),
    transparent
  );

  /* glow, but not as heavy as mv-divider */
  box-shadow:
    0 0 10px rgba(31,224,255,.45),
    0 0 18px rgba(255,46,220,.28);
}

/* bottom rail */
.ff-full-bleed .ff-neon-rail-bottom{
  position:absolute;
  left:0; right:0;
  bottom:0;
  height:2px;
  z-index:3;
  pointer-events:none;

  background:linear-gradient(
    90deg,
    transparent,
    var(--mv-cyan),
    var(--mv-pink),
    var(--mv-purple),
    transparent
  );

  box-shadow:
    0 0 10px rgba(31,224,255,.45),
    0 0 18px rgba(255,46,220,.28);
}

/* optional: slightly thicker on big screens */
@media (min-width: 992px){
  .ff-full-bleed::after,
  .ff-full-bleed .ff-neon-rail-bottom{
    height:3px;
  }
}

/* =========================================================
   Battery interactive "slides"
========================================================= */

.ff-pills{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.ff-pill{
  appearance:none;
  border:1px solid rgba(255,255,255,.20);
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  color:#fff;
  border-radius:999px;
  padding:12px 16px;
  font-weight:900;
  letter-spacing:.02em;
  cursor:pointer;
  transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.ff-pill:hover{ transform:translateY(-1px); }

.ff-pill.is-active{
  border-color:rgba(31,224,255,.45);
  box-shadow:
    0 0 0 1px rgba(31,224,255,.18),
    0 0 26px rgba(31,224,255,.25),
    0 0 30px rgba(255,46,220,.18);
}

.ff-battery-right{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.ff-battery-media img{
  width:100%;
  height:auto;
  display:block;
}

/* Slide card */
.ff-battery-slideWrap{
  display:block;
}

.ff-battery-slide{
  padding:18px;
  border-radius:18px;
}

.ff-slide-kicker{
  font-size:12px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(255,255,255,.70);
}

.ff-slide-title{
  margin-top:10px;
  font-weight:900;
  letter-spacing:-.02em;
  font-size:18px;
}

.ff-slide-copy{
  margin-top:10px;
  color:rgba(255,255,255,.72);
  line-height:1.75;
}

.ff-slide-list{
  list-style:none;
  padding:0;
  margin:14px 0 0;
  display:grid;
  gap:10px;
}

/* Nice reveal animation */
.ff-battery-slide[hidden]{ display:none !important; }
.ff-battery-slide.is-active{
  animation:ffSlideIn .22s ease-out both;
}
@keyframes ffSlideIn{
  from{ opacity:0; transform:translateY(10px); }
  to{ opacity:1; transform:translateY(0); }
}

/* Responsive: show only one slide stack */
.ff-battery-slideWrap--mobile{ display:none; }
.ff-battery-slideWrap--desktop{ display:block; }

@media (max-width: 920px){
  .ff-battery-slideWrap--mobile{ display:block; margin-top:18px; }
  .ff-battery-slideWrap--desktop{ display:none; }
}

/* =========================================================
   FIREFLY SOLAR — TAX CREDITS GRID (MATCHES SITE TOKENS)
========================================================= */

.ff-incentives-grid{
  margin-top:26px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  text-align:center;
}

/* Make these feel like your other panels/cards */
.ff-incentive{
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-height:320px;
}

.ff-incentive-top{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}

.ff-incentive-title{
  margin:0;
  font-size:14px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:900;
}

.ff-incentive-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:34px;
  min-width:56px;
  padding:0 14px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.08em;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 18px 50px rgba(0,0,0,.75);
}

.ff-incentive-badge.cyan{
  border-color:rgba(31,224,255,.45);
  box-shadow:
    0 0 0 1px rgba(31,224,255,.18) inset,
    0 0 24px rgba(31,224,255,.25),
    0 18px 50px rgba(0,0,0,.75);
}

.ff-incentive-badge.pink{
  border-color:rgba(255,46,220,.42);
  box-shadow:
    0 0 0 1px rgba(255,46,220,.16) inset,
    0 0 24px rgba(255,46,220,.22),
    0 18px 50px rgba(0,0,0,.75);
}

.ff-incentive-badge.purple{
  border-color:rgba(139,92,255,.42);
  box-shadow:
    0 0 0 1px rgba(139,92,255,.16) inset,
    0 0 24px rgba(139,92,255,.20),
    0 18px 50px rgba(0,0,0,.75);
}

.ff-incentive .ff-copy{
  margin:10px 0 0;
  font-size:15px;
}

.ff-incentive-note{
  margin-top:12px;
  font-size:12px;
  color:rgba(255,255,255,.62);
}

/* Responsive */
@media (max-width: 1100px){
  .ff-incentives-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ff-incentive{ min-height:auto; }
}
@media (max-width: 600px){
  .ff-incentives-grid{ grid-template-columns:1fr; }
  .ff-incentive{ text-align:left; }
  .ff-incentive-top{ align-items:flex-start; }
}
/* =========================================================
   PURCHASE OPTIONS (3-COLUMN) — FIREFLY MIAMI VICE STYLE
========================================================= */

.ff-purchase-grid{
  margin-top:22px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.ff-purchase-card{
  overflow:hidden;
}

.ff-purchase-media{
  position:relative;
  aspect-ratio:16/10;
  background:#000;
}

.ff-purchase-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:contrast(1.05) brightness(.82);
}

.ff-purchase-media::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.10),
    rgba(0,0,0,.55),
    rgba(0,0,0,.92)
  );
  pointer-events:none;
}

.ff-purchase-chip{
  position:absolute;
  left:14px;
  bottom:14px;
  z-index:2;

  padding:10px 14px;
  border-radius:999px;

  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:11px;

  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ff-purchase-chip.cyan{ border-color:rgba(31,224,255,.45); box-shadow:0 0 22px rgba(31,224,255,.22); }
.ff-purchase-chip.pink{ border-color:rgba(255,46,220,.45); box-shadow:0 0 22px rgba(255,46,220,.20); }
.ff-purchase-chip.purple{ border-color:rgba(139,92,255,.45); box-shadow:0 0 22px rgba(139,92,255,.18); }

.ff-purchase-body{
  padding:18px;
  text-align:left;
}

.ff-purchase-kicker{
  font-size:12px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(255,255,255,.70);
}

.ff-purchase-title{
  margin-top:10px;
  font-weight:900;
  letter-spacing:-.02em;
  font-size:18px;
  text-transform:uppercase;
}

.ff-purchase-list{
  list-style:none;
  padding:0;
  margin:14px 0 0;
  display:grid;
  gap:10px;
}

.ff-purchase-list li{
  display:flex;
  gap:12px;
  align-items:flex-start;
  color:rgba(255,255,255,.78);
  line-height:1.55;
  font-size:15px;
}

.ff-purchase-note{
  margin-top:14px;
  font-size:12px;
  color:rgba(255,255,255,.62);
}

/* Responsive */
@media (max-width: 920px){
  .ff-purchase-grid{ grid-template-columns:1fr; }
}
/* =========================================================
   REVIEWS — FULL BLEED BG + PARALLAX
========================================================= */

.ff-reviews-bg{
  position:relative;
  width:100%;
  min-height:680px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  overflow:hidden;

  display:flex;
  align-items:center;

  /* performance hint */
  will-change: background-position;
}

/* Darker overlay for readability */
.ff-reviews-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.62),
      rgba(0,0,0,.86) 55%,
      rgba(0,0,0,.97)
    );
}

.ff-reviews-inner{
  position:relative;
  z-index:2;
  text-align:center;
}

.ff-reviews-bg .ff-quote{
  max-width:860px;
  margin:0 auto;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 992px){
  .ff-reviews-bg{ min-height:620px; }
}
@media (max-width: 576px){
  .ff-reviews-bg{ min-height:560px; }
}
/* =========================================================
   BACK TO TOP — FIRE FLY NEON
========================================================= */

.ff-backtotop{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;

  width:46px;
  height:46px;
  border-radius:999px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:18px;
  font-weight:900;
  text-decoration:none;

  color:#fff;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.18);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 20px 60px rgba(0,0,0,.75),
    0 0 20px rgba(31,224,255,.35),
    0 0 20px rgba(255,46,220,.25);

  opacity:0;
  pointer-events:none;
  transform:translateY(8px);

  transition:
    opacity .25s ease,
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

/* Visible state */
.ff-backtotop.is-visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}

/* Hover */
.ff-backtotop:hover{
  border-color:rgba(31,224,255,.45);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 26px 90px rgba(0,0,0,.85),
    0 0 34px rgba(31,224,255,.55),
    0 0 34px rgba(255,46,220,.35);
  transform:translateY(-1px);
}

/* Mobile spacing (avoid OS UI overlap) */
@media (max-width: 576px){
  .ff-backtotop{
    right:14px;
    bottom:84px; /* clears sticky quote bar */
  }
}
/* =========================================================
   FIREFLY ALERTS (Success / Error)
========================================================= */
.ff-alert{
  border-radius:18px;
  padding:16px 16px;
  margin-bottom:14px;

  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 22px 70px rgba(0,0,0,.55);
}

.ff-alert-title{
  font-weight:900;
  letter-spacing:.02em;
}

.ff-alert-sub{
  margin-top:6px;
  color:rgba(255,255,255,.72);
  line-height:1.6;
  font-size:14px;
}

.ff-alert-success{
  border-color:rgba(31,224,255,.38);
  box-shadow:
    0 22px 70px rgba(0,0,0,.55),
    0 0 26px rgba(31,224,255,.18);
}

.ff-alert-error{
  border-color:rgba(255,46,220,.38);
  box-shadow:
    0 22px 70px rgba(0,0,0,.55),
    0 0 26px rgba(255,46,220,.16);
}
/* =========================================================
   PATCH: HERO VIDEO MORE VISIBLE
========================================================= */

/* brighten the actual video slightly */
.ff-hero-video{
  filter:contrast(1.12) brightness(.92) saturate(1.05); /* was brightness(.75) */
}

/* lighten the overlay so the video shows through */
.ff-hero-overlay{
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.08),  /* was .15 */
    rgba(0,0,0,.78) 65%, /* was .88 */
    rgba(0,0,0,.92)      /* was .98 */
  );
}
/* =========================================================
   FREE TRIM LIGHTS OFFER
========================================================= */

.ff-trim-offer{
  background:
    radial-gradient(1200px 500px at 50% -200px,
      rgba(31,224,255,.08),
      transparent 60%
    ),
    #000;
}

.ff-accent{
  background:linear-gradient(
    90deg,
    var(--mv-cyan),
    var(--mv-pink),
    var(--mv-purple)
  );
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.ff-trim-grid{
  margin-top:22px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}

.ff-trim-card{
  padding:22px;
}

.ff-trim-kicker{
  font-size:12px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(255,255,255,.72);
  margin-bottom:12px;
}

.ff-trim-note{
  margin-top:12px;
  font-size:12px;
  color:rgba(255,255,255,.60);
}

/* Responsive */
@media (max-width: 920px){
  .ff-trim-grid{ grid-template-columns:1fr; }
}
/* =========================================================
   FIREFLY BUG — CONSOLIDATED (no conflicts)
========================================================= */

.ff-trim-title{
  position:relative;
  display:inline-block;
  padding-right:84px;
  line-height:1.05;
  z-index:2;
}

/* Default: visible */
.ff-trim-title .ff-bug-logo{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%) rotate(12deg);
  transform-origin:60% 60%;

  height:56px;
  width:auto;
  max-width:90px;

  z-index:5;
  opacity:.98;
  display:block;

  filter:
    drop-shadow(0 8px 22px rgba(0,0,0,.55))
    drop-shadow(0 0 18px rgba(31,224,255,.28));

  transition:transform .22s ease, filter .22s ease, opacity .22s ease;
}

/* Hover flutter (keeps translateY so it stays centered) */
.ff-trim-title:hover .ff-bug-logo{
  transform:translateY(-50%) rotate(16deg) scale(1.03);
  filter:
    drop-shadow(0 12px 30px rgba(0,0,0,.65))
    drop-shadow(0 0 26px rgba(31,224,255,.45))
    drop-shadow(0 0 18px rgba(255,46,220,.22));
}

/* Optional reveal: ONLY apply if JS adds .is-inview
   We do NOT hide it by default anymore */
.ff-bug-reveal.is-inview .ff-bug-logo{
  opacity:.98;
}

/* Mobile: stack under title */
@media (max-width: 576px){
  .ff-trim-title{ padding-right:0; }
  .ff-trim-title .ff-bug-logo{
    position:relative;
    right:auto; top:auto;
    transform:rotate(10deg);
    margin-top:12px;
    height:42px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .ff-trim-title .ff-bug-logo,
  .ff-trim-title:hover .ff-bug-logo{
    transition:none !important;
    transform:none !important;
  }
}
/* =========================================================
   SOLAR BID CALCULATOR MODAL (SCOPED) — ONLY #ffEstModal
   Fix: footer leaking to page + sticky behavior outside modal
========================================================= */

#ffEstModal{ display:none; } /* default hard-hide no matter what */

#ffEstModal[aria-hidden="false"]{
  display:block !important;
  position:fixed;
  inset:0;
  z-index:10000;
}

/* When closed: NOTHING renders */
#ffEstModal[aria-hidden="true"]{
  display:none !important;
}

#ffEstModal .ff-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Card becomes a flex column so footer stays INSIDE it */
#ffEstModal .ff-modal-card{
  position:relative;
  width:min(980px, calc(100% - 24px));
  margin:72px auto;
  max-height:calc(100vh - 144px);

  display:flex;
  flex-direction:column;

  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 40px 120px rgba(0,0,0,.85);

  overflow:hidden; /* IMPORTANT: keep sticky footer inside card */
}

#ffEstModal .ff-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;

  padding:18px 18px 10px;
  background:rgba(0,0,0,.35);
  border-bottom:1px solid rgba(255,255,255,.10);

  position:sticky;
  top:0;
  z-index:2;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#ffEstModal .ff-modal-body{
  padding:18px;
  overflow:auto;         /* body scrolls */
  flex:1 1 auto;         /* takes remaining height */
}

#ffEstModal .ff-modal-foot{
  flex:0 0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;

  padding:14px 18px;
  border-top:1px solid rgba(255,255,255,.10);

  background:rgba(0,0,0,.55);
  position:sticky;
  bottom:0;
  z-index:2;

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#ffEstModal .ff-foot-right{
  display:flex;
  align-items:center;
  gap:12px;
}

#ffEstModal .ff-modal-foot .ff-btn{
  position:static !important;
}
/* HARD step gating — only active step shows */
#ffEstModal .ff-step{ display:none !important; }
#ffEstModal .ff-step.is-active{ display:block !important; }

/* =========================================================
   ESTIMATOR RESULTS — CLEAN TABLE LOOK (Step 4)
========================================================= */

#ffEstModal .ff-summary{
  margin-top:14px;
  display:grid;
  gap:10px;
}

/* 3-column “table”: Label | Low | High */
#ffEstModal .ff-range-head,
#ffEstModal .ff-range-row{
  display:grid;
  grid-template-columns: minmax(220px, 1fr) 140px 140px;
  column-gap:14px;
  align-items:center;
}

/* Header */
#ffEstModal .ff-range-head{
  padding:10px 0 6px;
  color:rgba(255,255,255,.55);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

/* Rows */
#ffEstModal .ff-range-row{
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,.10);
}

#ffEstModal .ff-range-row span{
  color:rgba(255,255,255,.80);
}

/* Low/High cells */
#ffEstModal .ff-range-row strong{
  justify-self:end;
  text-align:right;
  font-variant-numeric: tabular-nums;
  letter-spacing:.01em;
  color:#fff;
}

/* Make “Net cost” row pop */
#ffEstModal .ff-range-row.is-total{
  border-bottom:0;
  padding:14px 0 10px;
}
#ffEstModal .ff-range-row.is-total span{
  color:#fff;
  font-weight:900;
}
#ffEstModal .ff-range-row.is-total strong{
  font-size:18px;
}

/* Optional: soften the divider used inside results */
#ffEstModal .mv-divider{
  margin:14px 0 !important;
  height:2px;
  opacity:.8;
}

/* Mobile: switch to stacked rows */
@media (max-width: 560px){
  #ffEstModal .ff-range-head{
    display:none;
  }

  #ffEstModal .ff-range-row{
    grid-template-columns: 1fr;
    row-gap:6px;
    padding:14px 0;
  }

  #ffEstModal .ff-range-row strong{
    justify-self:start;
    text-align:left;
  }

  /* Show low/high labels on mobile */
  #ffEstModal .ff-range-row strong::before{
    content: attr(data-col) ": ";
    color:rgba(255,255,255,.55);
    font-weight:800;
    letter-spacing:.10em;
    text-transform:uppercase;
    font-size:11px;
  }
}
/* =========================================================
   BATTERY PAGE HELPERS (matches your tokens)
========================================================= */

.ff-batt-hero{
  padding:110px 0;
  background:
    radial-gradient(1200px 550px at 20% 10%,
      rgba(31,224,255,.10),
      transparent 60%
    ),
    radial-gradient(1200px 550px at 80% 20%,
      rgba(255,46,220,.08),
      transparent 55%
    ),
    #000;
}

.ff-grid-hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:22px;
  align-items:start;
}
@media (max-width: 920px){
  .ff-grid-hero{ grid-template-columns: 1fr; }
}

.ff-hero-media{
  border-radius: var(--radius);
  overflow:hidden;
}
.ff-hero-media-inner{
  padding:20px;
}

.ff-hero-media-kicker{
  font-size:12px;
  font-weight:900;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(255,255,255,.70);
}
.ff-hero-media-title{
  margin-top:8px;
  font-weight:900;
  font-size:18px;
  letter-spacing:-.02em;
}

.ff-mini-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.ff-mini-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  font-weight:800;
  font-size:12px;
  letter-spacing:.06em;
}

.ff-two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
}
@media (max-width: 920px){
  .ff-two{ grid-template-columns: 1fr; }
}

/* Simple table look (matches neon/card style) */
.ff-table{
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  overflow:hidden;
  background:rgba(255,255,255,.03);
}
.ff-trow{
  display:grid;
  grid-template-columns: 160px 1fr 1fr;
  gap:12px;
  padding:12px 14px;
  border-top:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.78);
}
.ff-trow:first-child{ border-top:0; }
.ff-thead{
  color:rgba(255,255,255,.62);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-weight:900;
  font-size:12px;
  background:rgba(0,0,0,.25);
}
@media (max-width: 680px){
  .ff-trow{ grid-template-columns: 1fr; }
}

.ff-benefits-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:18px;
}
@media (max-width: 1100px){
  .ff-benefits-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .ff-benefits-grid{ grid-template-columns: 1fr; }
}

.ff-faq{ display:grid; gap:12px; }
.ff-faq-item{
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.14);
  padding:14px 16px;
}
.ff-faq-item summary{
  cursor:pointer;
  font-weight:900;
  list-style:none;
}
.ff-faq-item summary::-webkit-details-marker{ display:none; }
.ff-faq-item > div{ margin-top:10px; }

/* =========================================
   FIX: Ghost buttons disappearing on light / image sections
========================================= */

/* Default ghost button contrast */
.ff-btn.ghost{
  color:#fff;
  background:rgba(0,0,0,.45);   /* subtle dark glass */
  border-color:rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Hover: slightly brighter */
.ff-btn.ghost:hover{
  background:rgba(0,0,0,.65);
  border-color:rgba(31,224,255,.45);
}

/* CTA rows specifically (safety net) */
.ff-cta .ff-btn.ghost{
  color:#fff !important;
}
/* Benefits grid layout */
.ff-benefits-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}

/* Make it responsive */
@media (max-width: 1100px){
  .ff-benefits-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px){
  .ff-benefits-grid{ grid-template-columns:1fr; }
}

/* Optional: make panels read cleaner on photo */
.ff-full-bleed .ff-panel{
  background:linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.25));
  border-color:rgba(255,255,255,.18);
}
/* =========================================================
   BATTERY PAGE — MOBILE PATCH
   (append to bottom of site.css)
========================================================= */

@media (max-width: 920px){

  /* tighten global spacing on mobile */
  .section-pad{ padding:72px 0; }
  .section-tight{ padding:56px 0; }

  /* HERO: stack cleanly */
  .ff-grid-hero{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  .ff-hero-title{
    font-size:clamp(34px, 9vw, 54px) !important;
    line-height:1.06 !important;
  }

  .ff-hero-sub{ max-width:unset !important; }

  /* buttons: full width + no weird “double pill” look */
  .ff-hero-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
  .ff-hero-actions .ff-btn{
    width:100% !important;
    justify-content:center !important;
    border-radius:16px !important; /* less “pill” on mobile */
    padding:14px 16px !important;
  }

  /* mini badges wrap better */
  .ff-mini-badges{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:10px !important;
  }
  .ff-mini-badge{
    width:auto !important;
    flex:1 1 auto !important;
    white-space:normal !important;
  }

  /* FULL BLEED: keep text readable and not off-screen */
  .ff-full-bleed img{
    min-height:420px !important;
  }
  .ff-full-bleed-overlay{
    position:relative !important;   /* <- key for mobile */
    left:auto !important;
    transform:none !important;
    bottom:auto !important;
    max-width:none !important;
    padding:20px 0 26px !important;
    margin-top:-34px !important;    /* pulls overlay into image area */
  }

  /* Put overlay content into a panel so it reads on photos */
  .ff-full-bleed-overlay .ff-wrap{
    background:rgba(0,0,0,.55);
    border:1px solid rgba(255,255,255,.16);
    border-radius:18px;
    padding:18px 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* “How it works” cards */
  .ff-cards{ grid-template-columns:1fr !important; }

  /* Two-column sections -> single column */
  .ff-two{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  /* The “table” block becomes stacked */
  .ff-table .ff-trow{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:6px !important;
    padding:12px 0 !important;
  }
  .ff-table .ff-thead{ display:none !important; }
  .ff-table .ff-trow > div{
    padding:0 !important;
  }

  /* Pills inside modal/sections: allow wrap + avoid overflow */
  .ff-pills{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:10px !important;
  }
  .ff-pill{
    flex:1 1 calc(50% - 10px) !important;
    border-radius:14px !important;
    padding:12px 12px !important;
  }
}

@media (max-width: 576px){

  /* even tighter on very small screens */
  .ff-wrap{ padding:0 16px; }

  /* make full-bleed overlay less tall */
  .ff-full-bleed img{
    min-height:360px !important;
  }

  /* benefits grid -> single column (if you used ff-benefits-grid) */
  .ff-benefits-grid{
    grid-template-columns:1fr !important;
  }

  /* buttons everywhere: full width in CTAs */
  .ff-cta{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
  }
  .ff-cta .ff-btn{
    width:100% !important;
    justify-content:center !important;
    border-radius:16px !important;
  }
}


