/* ===========================================================================
   Solar Hub — Component kit (v3 light/premium). Consistent class names.
   =========================================================================== */

/* ---- Scroll reveal ----------------------------------------------------
   Content is VISIBLE by default. The hidden/animated state only applies once
   widgets.js adds .rv to <html> (same script that runs the observer), so a
   failed/blocked script can never leave sections invisible. */
.rv .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.rv .reveal.in {
  opacity: 1;
  transform: none;
}
.rv .reveal[data-delay="1"] { transition-delay: 0.08s; }
.rv .reveal[data-delay="2"] { transition-delay: 0.16s; }
.rv .reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .rv .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Section rhythm: eyebrow → title → subtitle → content ------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.sec-head {
  max-width: 64ch;
  margin: 0 auto var(--s-12);
  text-align: center;
}
.sec-head .eyebrow { margin-bottom: var(--s-4); }
.sec-head h2 { margin: 0 0 var(--s-3); }
.sec-head .lead { margin: 0 auto; }
.sec-head--left { text-align: left; margin-left: 0; }

/* ---- Floating pill nav ----------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--s-4) var(--s-4) 0;
  transition: padding 0.3s ease;
}
.header-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--s-6);
  min-height: 60px;
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-6);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-pill);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--sh-sm);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled { padding-top: var(--s-2); }
.site-header.scrolled .header-inner {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--sh);
  border-color: var(--line);
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img { height: 34px; width: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-left: auto;
}
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  padding: var(--s-2) 0;
  position: relative;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a[aria-current="page"] { color: var(--brand); }
.header-cta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-shrink: 0;
}
.header-phone {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
  font-size: 0.95rem;
}
.header-phone:hover { color: var(--brand); }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--accent);
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease,
    border-color 0.14s ease, color 0.14s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--ink); box-shadow: var(--sh-accent); }
.btn--primary:hover { background: var(--accent-deep); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--brand-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--on-dark { background: #fff; color: var(--ink); }
.btn--on-dark:hover { background: var(--accent); }
.btn--ghost-on-dark { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--ghost-on-dark:hover { background: rgba(255,255,255,0.16); border-color: #fff; }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.05rem; }

/* ---- Promo banner (fixed gold bar, sits ABOVE the floating nav) ------- */
.promo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101; /* above .site-header (100) so the nav never covers it */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  min-height: var(--promo-h);
  padding: 0.45rem var(--s-4);
  background: var(--accent);
  color: var(--ink);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}
.promo a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
/* When a promo is live, drop the fixed nav + hero down to clear the bar. */
.has-promo .site-header { top: var(--promo-h); }
.has-promo .hero { padding-top: calc(var(--header-h) + var(--promo-h) + var(--s-16)); }
.has-promo .page-hero { padding-top: calc(var(--header-h) + var(--promo-h) + var(--s-12)); }
@media (max-width: 760px) {
  :root { --promo-h: 58px; } /* room for two lines on small screens */
}

/* ---- HERO ------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + var(--s-16)) 0 var(--s-32);
  overflow: hidden;
  background: radial-gradient(120% 90% at 85% -10%, #1c7aa8 0%, var(--brand) 38%, var(--brand-deep) 100%);
  color: #fff;
}
/* warm sun-glow */
.hero::before {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  right: -10vw;
  top: -25vw;
  background: radial-gradient(circle, rgba(255,198,56,0.5) 0%, rgba(255,198,56,0) 60%);
  z-index: -1;
}
/* curved white sweep into next section */
.hero__curve {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(50px, 8vw, 120px);
  z-index: 2;
  fill: var(--bg);
  display: block;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.hero-badges span b { color: var(--accent); }
@media (max-width: 480px) {
  .hero-badges { gap: var(--s-2); }
  .hero-badges span { font-size: 0.7rem; padding: 0.28rem 0.6rem; }
}
.hero-promo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-5);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.hero-promo:hover { filter: brightness(1.06); }
.hero-promo .ic { width: 1.05em; height: 1.05em; }
.hero h1 {
  color: #fff;
  margin: 0 0 var(--s-5);
  max-width: 15ch;
}
.hero h1 .hl { color: var(--accent); }
.hero .lead { color: rgba(255, 255, 255, 0.92); max-width: 48ch; margin-bottom: var(--s-8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.hero-rating {
  margin-top: var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}
.hero-rating .stars { color: var(--accent); letter-spacing: 2px; }

/* ---- Calculator card (light) ----------------------------------------- */
.calc {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text);
}
.calc h2 { color: var(--ink); margin: 0 0 var(--s-1); font-size: 1.4rem; }
.calc .calc-sub { font-size: 0.9rem; color: var(--text-mid); margin-bottom: var(--s-6); }
.calc-field { margin-bottom: var(--s-5); }
.calc-field label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: var(--s-3);
  color: var(--text-mid);
}
.calc-field label .val { color: var(--brand); font-size: 1rem; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 4px solid #fff;
  box-shadow: var(--sh-sm);
}
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 4px solid #fff;
}
.calc-field select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font: inherit;
  background: var(--bg);
  color: var(--text);
}
.calc-toggle {
  display: flex;
  gap: var(--s-1);
  background: var(--bg);
  padding: 4px;
  border-radius: var(--r-pill);
}
.calc-toggle button {
  flex: 1;
  padding: 0.6rem;
  border: 0;
  background: transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text-mid);
  transition: all 0.15s ease;
}
.calc-toggle button.active { background: var(--ink); color: #fff; }
.calc-result {
  margin-top: var(--s-6);
  padding: var(--s-5);
  border-radius: var(--r);
  background: var(--green-soft);
  border: 1px solid rgba(24,160,107,0.25);
}
.calc-result .r-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mid); }
.calc-result .r-range { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; color: var(--green); line-height: 1.05; font-family: var(--font-display); }
.calc-result .r-meta { font-size: 0.88rem; color: var(--text-mid); margin-top: var(--s-1); }
.calc .btn { width: 100%; justify-content: center; margin-top: var(--s-5); }
.calc-fine { font-size: 0.72rem; color: var(--text-soft); margin: var(--s-3) 0 0; text-align: center; }

/* ---- Stat row -------------------------------------------------------- */
.statrow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s-8) var(--s-5);
  text-align: center;
  box-shadow: var(--sh-sm);
}
.stat-card .num { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; color: var(--brand); line-height: 1; }
.stat-card .label { font-size: 0.85rem; color: var(--text-mid); margin-top: var(--s-2); }

/* Two-up field row for short paired inputs (region + ownership) */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.field-row .field { margin-bottom: 0; }
.field__opt {
  font-weight: 400;
  color: var(--text-soft);
  font-size: 0.85em;
}
@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Style native select to match the field inputs */
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.7rem 2.2rem 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c4c75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 16px;
  cursor: pointer;
}
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(28, 76, 117, 0.15);
}
.field select:invalid { color: var(--text-soft); }

/* ============================================================
   Form submitted state — collapse fields, show only confirmation
   ============================================================ */
form.form-submitted > *:not(.form-status):not(.form-book-cta) {
  display: none !important;
}
form.form-submitted .form-status {
  /* Promote the success message to a proper confirmation block */
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  text-align: center;
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 var(--s-4);
}
form.form-submitted .form-status::before {
  content: "✓";
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-weight: 800;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ============================================================
   Booking CTAs — surfaced site-wide on forms / calculators / posts
   ============================================================ */
.form-book-cta {
  margin-top: var(--s-5);
  padding: var(--s-4) var(--s-5);
  background: linear-gradient(135deg, rgba(28,76,117,0.06), rgba(245,158,11,0.08));
  border: 1px solid rgba(28,76,117,0.12);
  border-radius: var(--r-md);
  text-align: center;
}
.form-book-cta__head {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: var(--s-2);
}
.form-book-cta__sub {
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 var(--s-3);
}
.form-book-cta__btn {
  width: 100%;
  justify-content: center;
}

/* Homepage hero calculator → secondary book link below the primary CTA */
.calc-book-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: var(--s-3);
  padding: 0.55rem;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: background 0.18s ease;
}
.calc-book-link:hover { background: rgba(28,76,117,0.06); }
.calc-book-link svg { width: 14px; height: 14px; }

/* Blog post CTA → both buttons side by side */
.post-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
}
.post-cta__btns .btn { flex: 1 1 220px; justify-content: center; }

/* ============================================================
   Book page — HubSpot Meetings embed
   ============================================================ */
.book-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.book-side .eyebrow { color: var(--brand); }
.book-side h2 { margin: var(--s-3) 0 var(--s-5); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
.book-bullets { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.book-bullets li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--text-mid); line-height: 1.45; }
.book-bullets svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.book-promise {
  background: linear-gradient(135deg, rgba(28,76,117,0.06), rgba(245,158,11,0.08));
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-6);
}
.book-promise__head {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; color: var(--brand);
  margin-bottom: var(--s-2);
}
.book-promise__head svg { width: 16px; height: 16px; }
.book-promise p { color: var(--text-mid); margin: 0; font-size: 0.95rem; line-height: 1.5; }
.book-altctas { display: flex; flex-direction: column; gap: var(--s-3); }
.book-altctas__lead {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-soft); font-weight: 700;
  margin: 0;
}
.book-altctas .btn { justify-content: center; }

.book-embed {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  box-shadow: var(--sh-md);
  min-height: 720px;
}
.book-embed__head {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.8rem var(--s-3);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-3);
  font-size: 0.88rem;
  color: var(--text-mid);
}
.book-embed__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: live-pulse 1.8s infinite;
}
.book-embed__head b { color: var(--ink); }
.meetings-iframe-container { width: 100%; min-height: 640px; }
.meetings-iframe-container iframe { width: 100% !important; min-height: 640px !important; border: 0 !important; }

@media (max-width: 960px) {
  .book-layout { grid-template-columns: 1fr; }
  .book-embed { min-height: 0; }
}

/* ---- Trust strip ----------------------------------------------------- */
.trust p { text-align: center; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: #4e6878; margin-bottom: var(--s-6); } /* >=4.5:1 on the tinted bg (a11y) */
.trust-logos {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  font-family: var(--font-display);
  font-weight: 700; color: var(--text-soft); font-size: 1.05rem;
}
.trust-logos img {
  height: clamp(38px, 5vw, 56px);
  width: auto;
  object-fit: contain;
  /* Multiply drops near-white from the AVIF so the badge merges with the
     trust strip background. Some baked-in cream tints may still ghost — the
     truly-clean fix is a transparent-bg PNG/SVG asset. */
  mix-blend-mode: multiply;
  filter: grayscale(1) opacity(0.75);
  transition: filter 0.22s ease, transform 0.22s ease;
}
.trust-logos img:hover {
  filter: grayscale(0) opacity(1);
  transform: translateY(-2px);
}
/* Also apply the multiply blend to the certification card logos on the
   Standards section so the CEC badge merges with the card background. */
.cert-logo img { mix-blend-mode: multiply; }
.cert-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---- Feature / why cards (icon tiles) -------------------------------- */
/* auto-fit + min(260px,100%) wraps cleanly on tablet/mobile and never
   forces a column wider than the viewport (prevents horizontal overflow). */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--s-6); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  box-shadow: var(--sh-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.card h3 { color: var(--ink); margin-bottom: var(--s-3); }
.card p { color: var(--text-mid); margin: 0; }
.icon-tile {
  width: 60px; height: 60px; border-radius: var(--r);
  display: grid; place-items: center; font-size: 1.7rem;
  margin-bottom: var(--s-5);
}
.icon-tile.t-gold { background: var(--accent-soft); }
.icon-tile.t-blue { background: #e3f1f8; }
.icon-tile.t-green { background: var(--green-soft); }

/* ---- Solutions tabs -------------------------------------------------- */
.tabs {
  display: inline-flex; gap: var(--s-1); padding: 5px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); margin: 0 auto var(--s-8); box-shadow: var(--sh-sm);
}
.tabs button {
  border: 0; background: transparent; color: var(--text-mid);
  font: inherit; font-weight: 700; font-size: 0.95rem;
  padding: 0.65rem 1.6rem; border-radius: var(--r-pill); cursor: pointer; transition: all 0.15s ease;
}
.tabs button.active { background: var(--ink); color: #fff; }
@media (max-width: 420px) {
  /* Three tabs total ~389px — shrink so the pill never widens the page */
  .tabs { max-width: 100%; }
  .tabs button { padding: 0.6rem 0.9rem; font-size: 0.85rem; }
}
.tab-panel { display: none; }
.tab-panel.active {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh);
  animation: fade 0.35s ease;
}
.tab-panel__body { padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; }
.tab-panel__body h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ink); }
.tab-panel ul { list-style: none; padding: 0; margin: var(--s-4) 0 var(--s-8); }
.tab-panel li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; color: var(--text-mid); }
.tab-panel li::before {
  content: "✓"; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.tab-panel__img { min-height: 380px; background-size: cover; background-position: center; }

/* ---- System-size selector -------------------------------------------- */
.size-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); }
.size-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-8) var(--s-4);
  text-align: center; text-decoration: none; color: var(--text);
  box-shadow: var(--sh-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s;
}
.size-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--sh); }
.size-card .kw { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--brand); }
.size-card .who { font-size: 0.82rem; color: var(--text-mid); margin-top: var(--s-2); }

/* ---- Project cards --------------------------------------------------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.proj-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--sh-sm); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.proj-card__img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.proj-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.proj-card:hover .proj-card__img img { transform: scale(1.06); }
.proj-card__tag {
  position: absolute; top: var(--s-3); left: var(--s-3);
  background: var(--accent); color: var(--ink);
  font-size: 0.7rem; font-weight: 700; padding: 0.28rem 0.8rem;
  border-radius: var(--r-pill); letter-spacing: 0.03em; text-transform: uppercase;
}
.proj-card__body { padding: var(--s-6); display: flex; flex-direction: column; flex: 1; }
.proj-card__body h3 { margin-bottom: var(--s-1); color: var(--ink); }
.proj-card__loc { font-size: 0.82rem; color: var(--text-soft); margin-bottom: var(--s-3); }
.proj-card__outcome { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--green); margin-bottom: var(--s-3); }
.proj-card__body p { font-size: 0.9rem; color: var(--text-mid); }
.proj-card__stats { display: flex; gap: var(--s-6); margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.proj-card__stats .v { font-weight: 800; color: var(--ink); font-size: 1rem; font-family: var(--font-display); }
.proj-card__stats .l { font-size: 0.72rem; color: var(--text-soft); }

/* ---- Comparison table ------------------------------------------------ */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm);
}
.compare th, .compare td { padding: var(--s-4) var(--s-5); text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; }
.compare thead th.feat { background: var(--brand); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare td { color: var(--text-mid); }
.compare .yes { color: var(--green); font-weight: 800; }
.compare .no { color: var(--text-soft); }
.compare .col-hl { background: var(--accent-soft); }

/* ---- Video band ------------------------------------------------------ */
.video-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); display: block; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-frame .play span {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  font-size: 1.8rem; color: var(--ink); padding-left: 6px; box-shadow: var(--sh);
  transition: transform 0.2s ease;
}
.video-frame:hover .play span { transform: scale(1.08); }

/* ---- Testimonials ---------------------------------------------------- */
.t-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s-6); }
.t-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.6rem,3vw,2.2rem); box-shadow: var(--sh-sm); }
.t-card .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: var(--s-4); }
.t-card blockquote { margin: 0 0 var(--s-6); font-size: 1.05rem; color: var(--ink); line-height: 1.6; }
.t-card .who { display: flex; align-items: center; gap: var(--s-3); }
.t-card .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--ink); background: var(--accent); flex-shrink: 0; font-family: var(--font-display); }
.t-card .who .n { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.t-card .who .d { font-size: 0.82rem; color: var(--text-soft); }

/* ---- Finance / CTA band (dark) --------------------------------------- */
.band-dark {
  background: radial-gradient(120% 120% at 80% -20%, #14688f 0%, var(--ink) 60%);
  color: var(--on-dark);
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.band-dark h2 { color: #fff; }
.band-dark p { color: var(--on-dark-mid); }
.cta-band { text-align: center; }
.cta-band .lead { max-width: 56ch; margin: 0 auto var(--s-8); color: var(--on-dark-mid); }
.cta-band .hero-ctas { justify-content: center; }
.finance { display: grid; grid-template-columns: 1fr auto; gap: var(--s-8); align-items: center; }
.finance .partners { margin-top: var(--s-4); font-size: 0.85rem; color: var(--on-dark-mid); }

/* ---- Founder / split ------------------------------------------------- */
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split__img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 4/3; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { color: var(--ink); }

/* ---- FAQ accordion --------------------------------------------------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: var(--s-3); overflow: hidden; box-shadow: var(--sh-sm); transition: border-color 0.2s; }
.faq-item.open { border-color: var(--brand-sky); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0;
  font: inherit; font-weight: 700; font-size: 1.05rem; color: var(--ink);
  padding: var(--s-5) var(--s-6); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
}
.faq-q::after { content: "+"; font-size: 1.6rem; font-weight: 300; color: var(--brand); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-mid); }
.faq-item.open .faq-a { max-height: 440px; }
.faq-a p { padding: 0 var(--s-6) var(--s-5); margin: 0; }

/* ---- Inner-page compact hero ----------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + var(--s-12)) 0 var(--s-20);
  background: radial-gradient(120% 120% at 85% -20%, #1c7aa8 0%, var(--brand) 42%, var(--brand-deep) 100%);
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 50vw; height: 50vw; right: -8vw; top: -20vw;
  background: radial-gradient(circle, rgba(255,198,56,0.42) 0%, rgba(255,198,56,0) 60%);
  z-index: -1;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: 0 auto var(--s-4); max-width: 18ch; }
.page-hero h1 .hl { color: var(--accent); }
.page-hero .lead { color: rgba(255,255,255,0.92); max-width: 60ch; margin: 0 auto var(--s-8); }
.page-hero .hero-ctas { justify-content: center; }
.page-hero .crumbs { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: var(--s-5); }
.page-hero .crumbs a { color: rgba(255,255,255,0.9); }
.page-hero__curve { position: absolute; bottom: -1px; left: 0; width: 100%; height: clamp(40px,6vw,90px); z-index: 2; fill: var(--bg); display: block; }
.page-hero.on-white .page-hero__curve { fill: var(--surface); }
/* size-page key spec chips under the hero heading */
.spec-chips { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-bottom: var(--s-8); }
.spec-chips span {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
  padding: 0.5rem 1rem; border-radius: var(--r-pill); font-size: 0.85rem; font-weight: 600;
}
.spec-chips span b { color: var(--accent); }

/* ---- Prose / content blocks ------------------------------------------ */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: var(--s-10); }
.prose h3 { margin-top: var(--s-8); color: var(--ink); }
.prose p, .prose li { color: var(--text-mid); }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { display: flex; gap: var(--s-3); padding: var(--s-2) 0; }
.prose ul li::before { content: "✓"; color: var(--green); font-weight: 800; flex-shrink: 0; }

/* ---- Numbered process steps ------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-8) var(--s-6); box-shadow: var(--sh-sm); position: relative;
}
.step .n {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--ink);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem;
  margin-bottom: var(--s-4);
}
.step h3 { margin-bottom: var(--s-2); }
.step p { color: var(--text-mid); margin: 0; font-size: 0.95rem; }

/* ---- Spec table (size pages) ----------------------------------------- */
.spec-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.spec-table tr:nth-child(odd) { background: var(--bg); }
.spec-table th, .spec-table td { padding: var(--s-4) var(--s-5); text-align: left; }
.spec-table th { color: var(--text-mid); font-weight: 600; width: 42%; }
.spec-table td { color: var(--ink); font-weight: 700; }

/* ---- Other-sizes mini grid ------------------------------------------- */
.other-sizes { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.other-sizes a {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s-4) var(--s-6); text-decoration: none; box-shadow: var(--sh-sm);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.other-sizes a:hover { transform: translateY(-3px); border-color: var(--accent); }
.other-sizes a.current { border-color: var(--accent); background: var(--accent-soft); }
.other-sizes .k { font-family: var(--font-display); font-weight: 800; color: var(--brand); font-size: 1.3rem; }
.other-sizes .w { font-size: 0.75rem; color: var(--text-soft); }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---- Answer-first lead block (GEO) ----------------------------------- */
.answer-block {
  max-width: 820px; margin: 0 auto var(--s-12);
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r); padding: var(--s-6) var(--s-8);
  box-shadow: var(--sh-sm);
}
.answer-block p { margin: 0; font-size: var(--fs-lead); color: var(--ink); }

/* ---- Multi-step quote: numbered stage gates -------------------------- */
.quote-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: clamp(1.8rem,4vw,3rem); max-width: 700px; margin: 0 auto; }
.stage-gates { display: flex; align-items: flex-start; margin-bottom: var(--s-8); }
.gate { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; gap: var(--s-2); }
.gate:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 50%; width: 100%; height: 3px; background: var(--line-strong); z-index: 0; border-radius: 3px; }
.gate.done:not(:last-child)::after { background: var(--accent); }
.gate .dot {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--line-strong);
  color: var(--text-mid); font-weight: 800; font-size: 1rem;
  position: relative; z-index: 1; transition: all 0.25s ease; font-family: var(--font-display);
}
.gate.active .dot { background: var(--accent); border-color: var(--accent); color: var(--ink); box-shadow: 0 0 0 6px var(--accent-soft); }
.gate.done .dot { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.gate .glabel { font-size: 0.78rem; font-weight: 700; color: var(--text-soft); text-align: center; }
.gate.active .glabel { color: var(--ink); }
.quote-step { display: none; }
.quote-step.active { display: block; animation: fade 0.35s ease; }
.quote-step h3 { margin-bottom: var(--s-1); color: var(--ink); font-size: 1.5rem; }
.quote-step .hint { color: var(--text-mid); font-size: 0.95rem; margin-bottom: var(--s-6); }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.opt {
  border: 2px solid var(--line); border-radius: var(--r-sm);
  padding: var(--s-5); cursor: pointer; font-weight: 700; text-align: center;
  color: var(--ink); background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
}
.opt:hover { border-color: var(--brand-sky); }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.quote-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-top: var(--s-8); }
.quote-back { background: none; border: 0; color: var(--text-mid); font: inherit; font-weight: 700; cursor: pointer; }
.quote-back:hover { color: var(--ink); }
.quote-back[hidden] { visibility: hidden; }

/* ---- Forms ----------------------------------------------------------- */
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: var(--s-2); color: var(--text-mid); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: 0.85rem 1rem; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); background: var(--bg); color: var(--text);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-status { margin-top: var(--s-3); font-size: 0.92rem; min-height: 1.2em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #c0392b; }

/* ---- Footer ---------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-mid); padding: var(--s-20) 0 var(--s-8); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--s-8); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin: 0 0 var(--s-4); font-family: var(--font-display); }
.site-footer a { color: var(--on-dark-mid); font-size: 0.92rem; line-height: 2; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-brand img { height: 38px; width: auto; margin-bottom: var(--s-5); filter: brightness(0) invert(1); }
.footer-brand p { color: var(--on-dark-mid); font-size: 0.9rem; line-height: 1.8; margin: 0 0 var(--s-4); max-width: 32ch; }
.footer-brand p a { color: var(--on-dark-mid); }
.footer-brand p a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: var(--s-12); padding-top: var(--s-6); font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4); }

/* ---- Sticky mobile CTA ----------------------------------------------- */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: var(--s-3); gap: var(--s-2); }
.mobile-cta .btn { flex: 1; justify-content: center; padding: 0.8rem; font-size: 0.92rem; }

/* ---- Styleguide-only helpers ----------------------------------------- */
.sg-swatch { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.sg-swatch .chip { height: 96px; }
.sg-swatch .meta { padding: var(--s-3) var(--s-4); background: var(--surface); font-size: 0.82rem; }
.sg-swatch .meta b { display: block; color: var(--ink); font-size: 0.9rem; }
.sg-swatch .meta code { color: var(--text-mid); }
.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s-4); }
.sg-type > * { margin: 0 0 var(--s-3); }

@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 1024px) {
  /* collapse nav to hamburger BEFORE the 6 items + CTA would wrap */
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + var(--s-2));
    left: var(--s-4);
    right: var(--s-4);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: var(--s-4) var(--s-6);
    box-shadow: var(--sh-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .header-cta .header-phone,
  .header-cta .btn { display: none; }
}
@media (max-width: 980px) {
  .hero .container,
  .video-band .container,
  .split,
  .finance,
  .tab-panel.active { grid-template-columns: 1fr; }
  .finance { text-align: center; }
  .finance .hero-ctas { justify-content: center; }
  .tab-panel__img { min-height: 240px; order: -1; }
  .proj-grid, .t-grid, .statrow { grid-template-columns: 1fr 1fr; }
  .size-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .statrow, .proj-grid, .t-grid, .opt-grid { grid-template-columns: 1fr; }
  .size-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gate .glabel { display: none; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 72px; }
  .compare { font-size: 0.85rem; }
  .compare th, .compare td { padding: var(--s-3); }
}

/* ===========================================================================
   CALCULATOR / TOOL PAGES (Sprint 4)
   =========================================================================== */
.tool-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
.tool-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); padding: clamp(1.6rem,3vw,2.4rem); }
.tool-result {
  background: linear-gradient(135deg, #e3f1f8, var(--bg));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.6rem,3vw,2.4rem); box-shadow: var(--sh-sm); position: sticky; top: calc(var(--header-h) + var(--s-4));
}
.tool-result .big { font-family: var(--font-display); font-weight: 800; color: var(--brand); font-size: clamp(2rem,5vw,3rem); line-height: 1; }
.tool-result .big.green { color: var(--green); }
.result-row { display: flex; justify-content: space-between; align-items: baseline; padding: var(--s-3) 0; border-bottom: 1px dashed var(--line-strong); }
.result-row:last-of-type { border-bottom: 0; }
.result-row .k { color: var(--text-mid); font-size: 0.9rem; }
.result-row .v { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.dga-flag { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); font-size: 0.85rem; color: var(--ink); margin-top: var(--s-4); display: none; }

/* Payback chart */
.pb-chart-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--sh-sm); }
#pb-chart { width: 100%; height: auto; display: block; }
#pb-chart .pb-savings { fill: none; stroke: var(--green); stroke-width: 3; }
#pb-chart .pb-costline { stroke: var(--text-soft); stroke-width: 2; stroke-dasharray: 5 5; }
#pb-chart .pb-marker { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 3; }
.pb-legend { display: flex; gap: var(--s-6); flex-wrap: wrap; margin-top: var(--s-4); font-size: 0.85rem; color: var(--text-mid); }
.pb-legend i { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 6px; }
.pb-legend .g { background: var(--green); }
.pb-legend .c { background: var(--text-soft); }
.pb-legend .m { background: var(--accent); }

/* Buy-back table */
.bb-search { width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); font: inherit; background: var(--surface); margin-bottom: var(--s-6); }
.bb-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.bb-table th, .bb-table td { padding: var(--s-4) var(--s-5); text-align: left; border-bottom: 1px solid var(--line); }
.bb-table thead th { background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; }
.bb-table tbody tr:last-child td { border-bottom: 0; }
.bb-table .name { font-weight: 700; color: var(--ink); }
.bb-table .rate { font-family: var(--font-display); font-weight: 700; color: var(--green); white-space: nowrap; }
.bb-table .notes { color: var(--text-mid); font-size: 0.88rem; }
.bb-pill { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: var(--r-pill); margin-left: var(--s-2); }
.bb-pill.high { background: var(--green-soft); color: var(--green); }
.bb-pill.mid { background: #e3f1f8; color: var(--brand); }
.disclaimer-note { background: var(--bg-warm); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-sm); padding: var(--s-4) var(--s-5); font-size: 0.85rem; color: var(--text-mid); margin-top: var(--s-6); }

/* Tools index grid links become clickable cards */
a.card { text-decoration: none; color: inherit; }
a.card:hover { text-decoration: none; }

@media (max-width: 900px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-result { position: static; }
}

/* ===========================================================================
   BLOG (Sprint 5)
   =========================================================================== */
.blog-filters { display: flex; gap: var(--s-2); flex-wrap: wrap; justify-content: center; margin-bottom: var(--s-8); }
.blog-filters button {
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-mid);
  font: inherit; font-weight: 600; font-size: 0.9rem; padding: 0.5rem 1.2rem;
  border-radius: var(--r-pill); cursor: pointer; transition: all 0.15s ease;
}
.blog-filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.post-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-sm);
  text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--sh); text-decoration: none; }
.post-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-warm); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { padding: var(--s-5) var(--s-6) var(--s-6); display: flex; flex-direction: column; flex: 1; }
.post-card__tag { align-self: flex-start; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.2rem 0.6rem; border-radius: var(--r-pill); margin-bottom: var(--s-3); }
.post-card__tag.guide { background: #e3f1f8; color: var(--brand); }
.post-card__tag.case-study { background: var(--green-soft); color: var(--green); }
.post-card__tag.news { background: var(--accent-soft); color: var(--ink); }
.post-card h3 { font-size: 1.1rem; margin-bottom: var(--s-2); color: var(--ink); }
.post-card p { font-size: 0.9rem; color: var(--text-mid); margin: 0 0 var(--s-4); }
.post-card__date { margin-top: auto; font-size: 0.78rem; color: var(--text-soft); }

/* Single post */
.post-hero { max-width: 820px; margin: 0 auto; text-align: center; }
.post-hero .post-meta { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: var(--s-4); }
.post-cover { max-width: 980px; margin: calc(-1 * var(--s-16)) auto var(--s-12); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); position: relative; z-index: 3; }
.post-cover img { width: 100%; display: block; }
.post-body { max-width: 760px; margin: 0 auto; }
.post-body p { color: var(--text-mid); margin-bottom: var(--s-5); }
.post-body h2 { margin-top: var(--s-10); }
.post-body .lead { color: var(--ink); }

@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } .post-cover { margin-top: var(--s-4); } }

/* ===========================================================================
   ICON SYSTEM (replaces emoji)
   =========================================================================== */
.ic { width: 1.4em; height: 1.4em; display: inline-block; vertical-align: middle; }
.icon-tile .ic { width: 30px; height: 30px; }
.btn .ic { width: 1.1em; height: 1.1em; }

/* ===========================================================================
   OUR IMPACT (dark stat band)
   =========================================================================== */
.impact { background: radial-gradient(130% 130% at 85% -10%, #14688f 0%, var(--brand) 55%, var(--brand-deep) 100%); color: #fff; overflow: hidden; position: relative; }
.impact::before { content:""; position:absolute; width:34vw; height:34vw; right:-6vw; top:-10vw; border-radius:50%; background:rgba(255,255,255,0.05); }
.impact .container { position: relative; z-index: 1; }
.impact-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: end; margin-bottom: var(--s-12); }
.impact-head h2 { color: #fff; margin: 0; }
.impact-head h2 .hl { color: var(--accent); display: block; }
.impact-head p { color: rgba(255,255,255,0.75); margin: 0; text-align: right; align-self: center; }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--r-lg); overflow: hidden; background: rgba(255,255,255,0.03); }
.impact-cell { padding: clamp(1.5rem,3vw,2.5rem); border-right: 1px solid rgba(255,255,255,0.12); }
.impact-cell:last-child { border-right: 0; }
.impact-cell .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem,4.5vw,3.4rem); color: var(--accent); line-height: 1; letter-spacing: -0.02em; }
.impact-cell .big sup, .impact-cell .big .unit { font-size: 0.5em; vertical-align: super; }
.impact-cell .rule { width: 38px; height: 3px; background: rgba(255,255,255,0.25); border-radius: 3px; margin: var(--s-4) 0; }
.impact-cell .lab { font-weight: 700; color: #fff; font-size: 1.05rem; }
.impact-cell .sub { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-top: var(--s-1); }
.impact-foot { border-top: 1px solid rgba(255,255,255,0.14); margin-top: var(--s-12); padding-top: var(--s-6); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-4); }
.impact-foot p { color: rgba(255,255,255,0.7); margin: 0; font-size: 0.95rem; }
.impact-foot p b { color: #fff; }

/* ===========================================================================
   CERTIFIED STANDARDS (industry recognition)
   =========================================================================== */
.standards { background: radial-gradient(130% 130% at 10% -10%, #14688f 0%, var(--brand) 55%, var(--brand-deep) 100%); color: #fff; overflow: hidden; position: relative; }
.standards::before { content:""; position:absolute; width:30vw; height:30vw; left:-8vw; bottom:-12vw; border-radius:50%; background:rgba(255,255,255,0.04); }
.standards .container { position: relative; z-index: 1; }
.standards-head { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s-8); align-items: end; margin-bottom: var(--s-12); }
.standards-head .eyebrow { color: var(--accent); }
.standards-head h2 { color: #fff; margin: var(--s-3) 0 0; text-transform: uppercase; }
.standards-head h2 .hl { color: var(--accent); display: block; }
.standards-head p { color: rgba(255,255,255,0.75); text-align: right; margin: 0; align-self: center; }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.cert-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r-lg); padding: clamp(1.6rem,3vw,2.2rem); }
.cert-logo { width: 76px; height: 76px; border-radius: var(--r); background: #fff; display: grid; place-items: center; margin-bottom: var(--s-5); padding: 10px; }
.cert-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cert-card .tag { color: var(--accent); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.cert-card h3 { color: #fff; text-transform: uppercase; margin: var(--s-2) 0 var(--s-3); font-size: 1.2rem; }
.cert-card p { color: rgba(255,255,255,0.72); margin: 0; font-size: 0.92rem; }
.standards-foot { border-top: 1px solid rgba(255,255,255,0.14); margin-top: var(--s-12); padding-top: var(--s-6); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-4); }
.standards-foot p { color: rgba(255,255,255,0.7); margin: 0; font-size: 0.95rem; }
.standards-foot p b { color: #fff; }
.std-badges { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.why-standards { border-top: 1px solid var(--line); margin-top: var(--s-12); padding-top: var(--s-6); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-4); }
.why-standards p { color: var(--text-mid); margin: 0; font-size: 0.95rem; }
.why-standards p b { color: var(--ink); }
.why-standards .std-badges span { border-color: var(--line-strong); color: var(--text-mid); }
.std-badges span { border: 1px solid rgba(255,255,255,0.25); border-radius: var(--r-sm); padding: 0.45rem 0.9rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); }

/* ===========================================================================
   EQUIPMENT SHOWCASE (premium split with framed photo + tick list)
   =========================================================================== */
.equip { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.equip__img { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); background: #fff; padding: 12px; }
.equip__img img { width: 100%; border-radius: calc(var(--r-xl) - 12px); display: block; aspect-ratio: 4/3; object-fit: cover; }
.equip__list { list-style: none; padding: 0; margin: var(--s-6) 0 var(--s-8); }
.equip__list li { display: grid; grid-template-columns: 26px 1fr; gap: var(--s-4); padding: var(--s-3) 0; align-items: start; border-bottom: 1px solid var(--line); }
.equip__list li:last-child { border-bottom: 0; }
.equip__list .ic { color: var(--green); width: 22px; height: 22px; margin-top: 2px; }
.equip__list b { color: var(--ink); }
.equip__list span { color: var(--text-mid); }

/* ===========================================================================
   STAT CARD ICON (homepage stat row gets icons not emoji — already iconless)
   =========================================================================== */

@media (max-width: 900px) {
  .impact-head, .standards-head, .equip { grid-template-columns: 1fr; }
  .impact-head p, .standards-head p { text-align: left; }
  .impact-grid, .cert-grid { grid-template-columns: 1fr 1fr; }
  .impact-cell:nth-child(2) { border-right: 0; }
  .impact-cell:nth-child(1), .impact-cell:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.12); }
}
@media (max-width: 560px) {
  .impact-grid, .cert-grid { grid-template-columns: 1fr; }
  .impact-cell { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
}

/* success tick (quote form) */
.success-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 2rem; font-weight: 800; margin: 0 auto var(--s-4); }

/* ---- Photo strip (real install gallery band) ------------------------- */
.photo-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-3); }
.photo-strip .ph { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--sh-sm); }
.photo-strip .ph:first-child { grid-row: span 2; aspect-ratio: auto; }
.photo-strip .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-strip .ph:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .photo-strip { grid-template-columns: 1fr 1fr; } .photo-strip .ph:first-child { grid-row: auto; grid-column: span 2; aspect-ratio: 16/9; } }

/* ===========================================================================
   ABOUT PAGE
   =========================================================================== */
.about-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,4rem); align-items: center; position: relative; z-index: 1; }
.about-hero .lead { color: rgba(255,255,255,0.9); }
.glance { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-lg); padding: clamp(1.5rem,3vw,2rem); backdrop-filter: blur(10px); }
.glance__title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 700; margin: 0 0 var(--s-4); }
.glance__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.glance__row:last-child { border-bottom: 0; }
.glance__row span { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.glance__row b { color: #fff; font-weight: 700; text-align: right; }
.pull-quote { border-left: 4px solid var(--accent); margin: 0 0 var(--s-5); padding: var(--s-2) 0 var(--s-2) var(--s-5); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem,2vw,1.35rem); color: var(--brand); line-height: 1.35; }
.pill-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.pill { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-pill); padding: 0.45rem 1rem; font-size: 0.85rem; font-weight: 600; color: var(--brand); }
.founders-band { background: radial-gradient(120% 120% at 80% -20%, #14688f 0%, var(--ink) 60%); }
.founders-band .split__img { border: 4px solid rgba(255,255,255,0.1); }
.founders-portraits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.founder-portrait {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.founder-portrait:hover { transform: translateY(-3px); }
.founder-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.founder-portrait figcaption {
  display: flex;
  flex-direction: column;
  padding: var(--s-3) var(--s-4) var(--s-4);
  gap: 0.15rem;
}
.founder-portrait figcaption b {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.founder-portrait figcaption span {
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
@media (max-width: 600px) {
  .founders-portraits { grid-template-columns: 1fr; }
}
.founder-note { display: grid; grid-template-columns: auto 1fr; gap: 0 var(--s-3); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r); padding: var(--s-4) var(--s-5); margin-top: var(--s-6); }
.founder-note b { color: #fff; grid-column: 1 / -1; }
.founder-note span { color: rgba(255,255,255,0.7); font-size: 0.9rem; grid-column: 1 / -1; }
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; } }

/* ===========================================================================
   PRODUCTS PAGE
   =========================================================================== */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.prod-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--sh); }
.prod-card__head { background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%); color: #fff; padding: var(--s-6); }
.prod-tag { display: inline-block; background: var(--accent); color: var(--ink); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.2rem 0.7rem; border-radius: var(--r-pill); margin-bottom: var(--s-3); }
.prod-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: #fff; line-height: 1; }
.prod-series { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-top: var(--s-1); }
.prod-watt { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-top: var(--s-3); }
.prod-card__body { padding: var(--s-6); display: flex; flex-direction: column; flex: 1; }
.prod-highlight { font-size: 0.92rem; color: var(--text-mid); margin-bottom: var(--s-4); font-style: italic; }
.prod-bullets { list-style: none; padding: 0; margin: 0 0 var(--s-5); }
.prod-bullets li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-2); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; color: var(--text-mid); align-items: start; }
.prod-bullets li:last-child { border-bottom: 0; }
.prod-bullets .ic { color: var(--green); width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.prod-meta { display: flex; flex-wrap: wrap; gap: var(--s-3); font-size: 0.8rem; font-weight: 600; color: var(--brand); margin-bottom: var(--s-3); }
.prod-meta span { display: flex; align-items: center; gap: 4px; }
.prod-meta .ic { width: 14px; height: 14px; }
.prod-best { font-size: 0.82rem; color: var(--text-soft); margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.prod-best b { color: var(--ink); }

/* Tech strip */
.tech-strip { display: grid; grid-template-columns: auto 1fr; gap: var(--s-8); align-items: start; }
.tech-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.tech-pt { }
.tech-pt .icon-tile { width: 44px; height: 44px; margin-bottom: var(--s-3); }
.tech-pt b { display: block; font-size: 0.95rem; color: var(--ink); margin-bottom: var(--s-2); }
.tech-pt p { font-size: 0.88rem; color: var(--text-mid); margin: 0; }

/* Enhanced calc page */
.calc-lp { max-width: 680px; margin: 0 auto; }
.address-field { position: relative; }
.address-field .ic { position: absolute; left: var(--s-3); top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-mid); }
.address-field input { padding-left: 2.6rem; }
.pac-container { border-radius: var(--r-sm); border: 1px solid var(--line-strong); box-shadow: var(--sh); font-family: var(--font-text); }

/* Savings table */
.savings-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); margin-top: var(--s-8); }
.savings-table th, .savings-table td { padding: var(--s-4) var(--s-5); text-align: left; border-bottom: 1px solid var(--line); }
.savings-table thead th { background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; }
.savings-table tbody tr:last-child td { border-bottom: 0; }
.savings-table .green { color: var(--green); font-weight: 700; font-family: var(--font-display); }

@media (max-width: 900px) { .prod-grid { grid-template-columns: 1fr 1fr; } .tech-strip { grid-template-columns: 1fr; } .tech-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .prod-grid { grid-template-columns: 1fr; } .tech-points { grid-template-columns: 1fr; } }

/* ===========================================================================
   BLOG POST — properly typeset body
   =========================================================================== */
.post-body { max-width: 760px; margin: 0 auto; font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.post-body > .lead { font-size: 1.25rem; color: var(--ink); font-weight: 500; margin-bottom: var(--s-8); padding-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.post-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: var(--s-12) 0 var(--s-4); color: var(--ink); }
.post-body h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin: var(--s-8) 0 var(--s-3); color: var(--ink); }
.post-body h4 { font-size: 1.1rem; margin: var(--s-6) 0 var(--s-2); color: var(--ink); }
.post-body p { margin: 0 0 var(--s-5); color: var(--text-mid); }
.post-body ul { margin: 0 0 var(--s-5) var(--s-6); padding: 0; }
.post-body ul li { margin: 0 0 var(--s-2); color: var(--text-mid); }
.post-body blockquote { border-left: 4px solid var(--accent); margin: var(--s-6) 0; padding: var(--s-2) 0 var(--s-2) var(--s-5); font-family: var(--font-display); font-style: italic; color: var(--brand); font-size: 1.2rem; }
.post-body a { color: var(--brand); text-decoration: underline; }
.post-body strong { color: var(--ink); }
.post-cta { background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); padding: var(--s-6) var(--s-8); margin-top: var(--s-12); }
.post-cta h3 { margin: 0 0 var(--s-2); }
.post-cta p { color: var(--text-mid); margin: 0 0 var(--s-4); }

/* ===========================================================================
   BUILD YOUR OWN SYSTEM CALCULATOR
   =========================================================================== */

.byos-trust { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-8); justify-content: center; color: var(--text-mid); font-size: 0.92rem; font-weight: 600; }
.byos-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.byos-trust .ic { color: var(--brand); width: 18px; height: 18px; }

.byos-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(2rem, 4vw, 3rem); align-items: start; }

/* Config column */
.byos-config { min-width: 0; }
.byos-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: var(--s-6); box-shadow: var(--sh-sm); }
.byos-step__head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-6); }
.byos-step__head h2 { margin: 0; font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
.byos-num { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--ink); font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }

/* System type cards */
.byos-system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.byos-system { background: var(--bg); border: 2px solid var(--line); border-radius: var(--r); padding: var(--s-6); cursor: pointer; text-align: left; font: inherit; color: var(--text); position: relative; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.byos-system:hover { border-color: var(--brand-sky); transform: translateY(-2px); }
.byos-system.active { border-color: var(--accent); background: var(--accent-soft); }
.byos-system__title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); margin-bottom: var(--s-2); }
.byos-system p { font-size: 0.9rem; color: var(--text-mid); margin: 0 0 var(--s-3); }
.byos-system ul { list-style: none; padding: 0; margin: 0; }
.byos-system ul li { display: flex; gap: 0.5rem; align-items: center; font-size: 0.85rem; color: var(--text-mid); padding: 0.2rem 0; }
.byos-system .ic { color: var(--green); width: 14px; height: 14px; flex-shrink: 0; }
.byos-tag { position: absolute; top: -10px; right: var(--s-4); background: var(--accent); color: var(--ink); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.7rem; border-radius: var(--r-pill); }

/* Panel selector */
.byos-panels { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin-bottom: var(--s-6); }
.byos-panel-stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-4); text-align: center; }
.byos-panel-stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 2.5vw, 1.7rem); color: var(--brand); line-height: 1; }
.byos-panel-stat__lab { font-size: 0.78rem; color: var(--text-soft); margin-top: 4px; }
.byos-range-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-soft); margin-top: 4px; }
.byos-fine { font-size: 0.78rem; color: var(--text-soft); margin: var(--s-4) 0 0; }

/* Addons */
.byos-addon-group { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--ink); margin: var(--s-6) 0 var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.byos-addon-group:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.byos-addons { display: grid; gap: var(--s-2); }
.byos-addon { display: grid; grid-template-columns: 24px 1fr auto; gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; transition: background 0.15s, border-color 0.15s; align-items: center; min-height: 56px; }
.byos-addon:hover { background: var(--bg); }
.byos-addon:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.byos-addon input { width: 20px; height: 20px; accent-color: var(--brand); cursor: pointer; }
.byos-addon__label { font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.byos-addon__sub { font-size: 0.82rem; color: var(--text-soft); margin-top: 2px; }
.byos-addon__price { font-family: var(--font-display); font-weight: 800; color: var(--brand); font-size: 0.95rem; white-space: nowrap; text-align: right; }
.byos-addon__note { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-soft); white-space: nowrap; text-align: right; }

/* Sticky quote panel */
.byos-quote { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
.byos-quote__inner { background: linear-gradient(160deg, var(--ink) 0%, var(--brand) 100%); color: #fff; border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--sh-lg); }
.byos-quote__type { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: var(--s-2); }
.byos-quote__spec { color: rgba(255,255,255,0.8); font-size: 0.88rem; margin-bottom: var(--s-5); padding-bottom: var(--s-4); border-bottom: 1px solid rgba(255,255,255,0.15); }
.byos-quote__addons { margin-bottom: var(--s-5); min-height: 30px; }
.byos-quote__addons-title { color: var(--accent); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s-2); }
.byos-quote__addon-line { display: flex; justify-content: space-between; gap: var(--s-3); font-size: 0.85rem; color: rgba(255,255,255,0.85); padding: 0.25rem 0; }
.byos-quote__addon-line span:last-child { color: var(--accent); font-weight: 600; }
.byos-quote__empty { color: rgba(255,255,255,0.5); font-size: 0.85rem; font-style: italic; }
.byos-quote__total-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.06em; }
.byos-quote__total { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.6rem); color: var(--accent); line-height: 1; margin: var(--s-1) 0 var(--s-5); }
.byos-quote .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.byos-quote .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }
.byos-quote .byos-fine { color: rgba(255,255,255,0.6); }

/* Mobile bar */
.byos-mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4); align-items: center; justify-content: space-between; gap: var(--s-3); box-shadow: 0 -8px 24px rgba(0,0,0,0.25); }
.byos-mobile-bar__label { font-size: 0.7rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.06em; }
.byos-mobile-bar__total { font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: 1.4rem; line-height: 1; }

/* Modal */
.byos-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.byos-modal[aria-hidden="false"] { display: block; }
.byos-modal__backdrop { position: absolute; inset: 0; background: rgba(12, 36, 56, 0.65); backdrop-filter: blur(4px); animation: fade 0.2s ease; }
.byos-modal__panel { position: relative; max-width: 560px; margin: 5vh auto 0; background: #fff; border-radius: var(--r-lg); padding: clamp(1.8rem, 4vw, 2.6rem); box-shadow: var(--sh-lg); max-height: 90vh; overflow-y: auto; animation: byos-rise 0.3s cubic-bezier(0.22,1,0.36,1); }
@keyframes byos-rise { from { transform: translateY(20px); opacity: 0; } }
.byos-modal__close { position: absolute; top: var(--s-4); right: var(--s-4); width: 36px; height: 36px; background: var(--bg); border: 0; border-radius: 50%; font-size: 1.4rem; color: var(--text-mid); cursor: pointer; line-height: 1; }
.byos-modal__close:hover { background: var(--line); color: var(--ink); }
.byos-modal h2 { margin: 0 0 var(--s-2); }
.byos-modal__sub { color: var(--brand); font-weight: 600; margin: 0 0 var(--s-6); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }

.byos-radio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.byos-radio { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; font-size: 0.88rem; }
.byos-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.byos-radio input { accent-color: var(--brand); }

.byos-summary { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); margin: var(--s-5) 0; }
.byos-summary > div { padding: var(--s-2) 0; color: var(--text-mid); }
.byos-summary b { color: var(--ink); }
.byos-summary__total { border-top: 1px solid var(--line-strong); margin-top: var(--s-2); padding-top: var(--s-3); font-family: var(--font-display); font-size: 1.15rem; color: var(--brand) !important; }

@media (max-width: 980px) {
  .byos-grid { grid-template-columns: 1fr; }
  .byos-quote { position: static; margin-top: var(--s-6); }
  .byos-system-grid { grid-template-columns: 1fr; }
  .byos-panels { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .byos-mobile-bar { display: flex; }
  body:has([data-byos]) { padding-bottom: 84px; }
  .byos-radio-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Why Solar Hub — premium 3-up editorial
   ============================================================ */
.why-premium__head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.why-premium__intro h2 {
  margin: var(--s-3) 0 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.why-premium__lead {
  color: var(--text-mid);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  margin: 0;
  padding-bottom: 0.4rem;
}

.why-premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.why-card {
  position: relative;
  background: #fff;
  padding: clamp(2rem, 3.5vw, 2.75rem) clamp(1.75rem, 3vw, 2.5rem) clamp(2.25rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease;
}
.why-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 22px 50px -28px rgba(12, 36, 56, 0.32),
              0 4px 14px -4px rgba(12, 36, 56, 0.08);
}
.why-card:hover::before { transform: scaleX(1); }

.why-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}
.why-card__index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand);
  opacity: 0.92;
}
.why-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--brand);
  border: 1px solid var(--line);
}
.why-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.2;
  margin: 0 0 var(--s-4);
  letter-spacing: -0.01em;
}
.why-card p {
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0 0 var(--s-5);
  flex: 1;
}
.why-card__rule {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: auto;
}

@media (max-width: 920px) {
  .why-premium { grid-template-columns: 1fr; }
  .why-premium__head { grid-template-columns: 1fr; gap: var(--s-4); align-items: start; }
  .why-premium__lead { padding-bottom: 0; }
}

/* ============================================================
   Grid-tie vs Hybrid chooser
   ============================================================ */
.chooser {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--sh-sm);
}
.chooser__progress {
  height: 6px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: var(--s-3);
}
.chooser__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 999px;
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.chooser__step-label {
  font-size: 0.8rem;
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s-5);
}
.chooser__step h2 {
  margin: 0 0 var(--s-3);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  line-height: 1.25;
}
.chooser__hint {
  color: var(--text-mid);
  margin: 0 0 var(--s-6);
}
.chooser__choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
.chooser__choice {
  text-align: left;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.18s ease, transform 0.12s ease, background 0.18s ease;
}
.chooser__choice:hover {
  border-color: var(--brand);
  background: #fff;
}
.chooser__choice.is-selected {
  border-color: var(--brand);
  background: rgba(28, 76, 117, 0.06);
  transform: scale(0.98);
}
.chooser__choice-title { font-weight: 700; }
.chooser__choice-sub { font-size: 0.85rem; color: var(--text-mid); }

.chooser__result { animation: chooser-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.chooser__result[hidden] { display: none; }
@keyframes chooser-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chooser__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  margin-bottom: var(--s-3);
}
.chooser__result h2 {
  margin: 0 0 var(--s-3);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}
.chooser__lead {
  color: var(--text-mid);
  font-size: 1.05rem;
  margin: 0 0 var(--s-6);
}
.chooser__why { margin-bottom: var(--s-6); }
.chooser__why h3 {
  font-size: 1rem;
  margin: 0 0 var(--s-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
}
.chooser__why ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.chooser__why li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-mid);
}
.chooser__why li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 800;
}
.chooser__compare {
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 1rem 1.2rem;
  margin-bottom: var(--s-6);
}
.chooser__compare-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.chooser__compare-row:last-child { border-bottom: 0; }
.chooser__compare-row span { color: var(--text-mid); }
.chooser__compare-row strong { color: var(--ink); text-align: right; }
.chooser__upgrade {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  margin-bottom: var(--s-6);
}
.chooser__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.chooser__ctas .btn { flex: 1 1 220px; justify-content: center; }

/* Compare table */
.compare-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: var(--s-6);
}
.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row > div {
  padding: 1rem 1.1rem;
  font-size: 0.92rem;
}
.compare-row > div + div { border-left: 1px solid var(--line); }
.compare-row [role="rowheader"] {
  font-weight: 700;
  background: var(--bg);
  color: var(--ink);
}
.compare-row--head > div {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-align: center;
}
.compare-row--head > div + div { border-left: 1px solid rgba(255,255,255,0.15); }
.compare-pop { background: var(--accent) !important; }

@media (max-width: 680px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .compare-row [role="rowheader"] { background: var(--brand); color: #fff; }
  .compare-row--head { display: none; }
  .compare-row { border-bottom: 2px solid var(--brand); }
  .compare-row > div:nth-child(2)::before { content: "Grid-tie: "; font-weight: 700; color: var(--text-soft); }
  .compare-row > div:nth-child(3)::before { content: "Hybrid: "; font-weight: 700; color: var(--accent); }
}

/* ============================================================
   Products — datasheet download button on cards
   ============================================================ */
.prod-datasheet {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: var(--s-4);
  padding: 0.55rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--brand);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.prod-datasheet:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}
.prod-datasheet svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* ============================================================
   Products — Monitoring blocks
   ============================================================ */
.mon-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: var(--s-6);
  position: relative;
  overflow: hidden;
}
.mon-block::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
.mon-block:hover::before { transform: scaleX(1); }
.mon-block__head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s-3);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-5);
}
.mon-block__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  color: var(--brand);
  letter-spacing: -0.01em;
}
.mon-block__tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(245,158,11,0.1);
  padding: 0.32rem 0.7rem; border-radius: 999px;
}
.mon-block__body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-7);
  align-items: start;
}
.mon-block__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 0 0 var(--s-3);
}
.mon-block__app {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--bg);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 var(--s-4);
}
.mon-block__app svg { width: 14px; height: 14px; }
.mon-block__highlight {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0 0 var(--s-4);
}
.mon-block__best {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-mid);
}
.mon-block__best strong { color: var(--ink); }
.mon-block__list {
  list-style: none;
  padding: var(--s-4) var(--s-5);
  margin: 0;
  background: var(--bg);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.mon-block__list li {
  display: flex; align-items: flex-start; gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.45;
}
.mon-block__list svg {
  width: 16px; height: 16px;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}
.mon-foot {
  margin-top: var(--s-7);
  padding: var(--s-4) var(--s-5);
  background: rgba(28,76,117,0.04);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-sm);
}
.mon-foot p { margin: 0; color: var(--text-mid); font-size: 0.95rem; }
.mon-foot strong { color: var(--ink); }

@media (max-width: 760px) {
  .mon-block__body { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ============================================================
   Commercial — project strip + finance model blocks
   ============================================================ */
.proj-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-8);
}
.proj-strip__item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.proj-strip__item:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 18px 40px -22px rgba(12,36,56,0.32);
}
.proj-strip__item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
}
.proj-strip__body { padding: var(--s-5) var(--s-5) var(--s-6); }
.proj-strip__tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand); background: rgba(28,76,117,0.08);
  padding: 0.25rem 0.6rem; border-radius: 999px;
  margin-bottom: var(--s-3);
}
.proj-strip__body h3 { margin: 0 0 var(--s-2); font-size: 1.2rem; }
.proj-strip__body p { margin: 0; color: var(--text-mid); font-size: 0.92rem; }
@media (max-width: 900px) { .proj-strip { grid-template-columns: 1fr; } }

.fin-model {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  margin-top: var(--s-6);
  position: relative;
  overflow: hidden;
}
.fin-model::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.fin-model:hover::before { transform: scaleX(1); }
.fin-model--accent { background: linear-gradient(135deg, rgba(28,76,117,0.04), rgba(245,158,11,0.06)); border-color: var(--accent); }
.fin-model__head {
  display: flex; align-items: flex-start; gap: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-5);
}
.fin-model__n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  line-height: 1; color: var(--brand);
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.fin-model__tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.fin-model__head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin: 0;
  letter-spacing: -0.01em;
}
.fin-model__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: var(--s-7);
  align-items: start;
  margin-bottom: var(--s-5);
}
.fin-model__grid p { color: var(--text-mid); margin: 0 0 var(--s-4); line-height: 1.6; }
.fin-model__example {
  background: var(--bg);
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--text-mid);
}
.fin-model__example strong { color: var(--ink); }
.fin-model__points {
  list-style: none;
  padding: var(--s-4) var(--s-5);
  margin: 0;
  background: var(--bg);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 0.55rem;
}
.fin-model > .fin-model__example { margin-top: var(--s-4); }
.fin-model > .fin-model__example + .fin-model__example { margin-top: var(--s-3); }
.fin-model__points li {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.45;
  padding-left: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}
.fin-model__points li:last-child { border-bottom: 0; padding-bottom: 0; }
.fin-model__points strong { color: var(--ink); font-weight: 700; }

@media (max-width: 760px) {
  .fin-model__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .fin-model__head { flex-direction: column; gap: var(--s-3); }
}

/* 4-column comparison table */
.compare-table--4 .compare-row { grid-template-columns: 1.3fr repeat(4, 1fr); }
@media (max-width: 900px) {
  .compare-table--4 .compare-row { grid-template-columns: 1fr; }
  .compare-table--4 .compare-row > div:nth-child(2)::before { content: "Cash purchase: "; font-weight: 700; color: var(--text-soft); }
  .compare-table--4 .compare-row > div:nth-child(3)::before { content: "Payment plan: "; font-weight: 700; color: var(--text-soft); }
  .compare-table--4 .compare-row > div:nth-child(4)::before { content: "PPA: "; font-weight: 700; color: var(--accent); }
  .compare-table--4 .compare-row > div:nth-child(5)::before { content: "Green loan: "; font-weight: 700; color: var(--text-soft); }
}

/* ============================================================
   Finance page — stats + bank cards
   ============================================================ */
.fin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--sh-sm);
}
.fin-stat { text-align: center; padding: var(--s-3) var(--s-2); }
.fin-stat + .fin-stat { border-left: 1px solid var(--line); }
.fin-stat__n {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
}
.fin-stat__l {
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 600;
}
@media (max-width: 680px) {
  .fin-stats { grid-template-columns: repeat(2, 1fr); }
  .fin-stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding-top: var(--s-4); }
  .fin-stat:nth-child(4) { border-top: 1px solid var(--line); padding-top: var(--s-4); }
}

.finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-8);
}
.finance-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.finance-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}
.finance-card--accent {
  background: linear-gradient(135deg, rgba(28,76,117,0.04), rgba(245,158,11,0.06));
  border-color: var(--accent);
}
.finance-card__brand {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: 6px;
  margin-bottom: var(--s-3);
  color: #fff;
}
.finance-card__brand--bnz      { background: #00a651; }
.finance-card__brand--anz      { background: #0073cf; }
.finance-card__brand--asb      { background: #ffc20e; color: #003a70; }
.finance-card__brand--westpac  { background: #d5002b; }
.finance-card__brand--kiwibank { background: #007934; }
.finance-card__brand--qcard    { background: #ed1c24; }
.finance-card h3 { margin: 0 0 var(--s-3); font-size: 1.25rem; }
.finance-card p { color: var(--text-mid); margin: 0 0 var(--s-4); flex: 1; }
.finance-chips {
  list-style: none; padding: 0; margin: 0 0 var(--s-5);
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.finance-chips li {
  background: var(--bg);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.finance-card__link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}
.finance-card__link:hover { text-decoration: underline; }
.finance-card__link .arrow { transition: transform 0.18s ease; }
.finance-card__link:hover .arrow { transform: translateX(3px); }
.finance-fine {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.78rem;
  margin-top: var(--s-8);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Conversion engine — live viewer chip + exit-intent modal
   ============================================================ */
.live-chip {
  position: fixed;
  left: var(--s-4);
  bottom: var(--s-4);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem 0.55rem 0.75rem;
  background: rgba(12, 36, 56, 0.92);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(12, 36, 56, 0.18);
  backdrop-filter: blur(6px);
  animation: live-chip-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.live-chip[hidden] { display: none; }
.live-chip__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: live-pulse 1.8s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@keyframes live-chip-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
  .live-chip {
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(72px + var(--s-3)); /* sit above mobile sticky CTA */
    font-size: 0.78rem;
  }
}

.exit-modal { position: fixed; inset: 0; z-index: 250; }
.exit-modal[hidden] { display: none; }
.exit-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(12, 36, 56, 0.7);
  backdrop-filter: blur(5px);
  animation: fade 0.22s ease;
}
.exit-modal__panel {
  position: relative;
  max-width: 480px;
  margin: 8vh auto 0;
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--sh-lg);
  max-height: 90vh;
  overflow-y: auto;
  animation: byos-rise 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.exit-modal__close {
  position: absolute; top: var(--s-3); right: var(--s-3);
  width: 36px; height: 36px;
  background: var(--bg); border: 0; border-radius: 50%;
  font-size: 1.4rem; color: var(--text-mid); cursor: pointer; line-height: 1;
}
.exit-modal__close:hover { background: var(--line); color: var(--ink); }
.exit-modal__badge {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--brand);
  background: rgba(28, 76, 117, 0.08);
  padding: 0.3rem 0.6rem; border-radius: 999px;
  margin-bottom: var(--s-3);
}
.exit-modal h2 { margin: 0 0 var(--s-2); font-size: clamp(1.4rem, 3vw, 1.8rem); }
.exit-modal__sub { color: var(--text-mid); margin: 0 0 var(--s-5); font-size: 0.95rem; }
.exit-modal__form .field { margin-bottom: var(--s-3); }
.exit-modal__status { margin: var(--s-3) 0 0; font-size: 0.88rem; color: var(--text-mid); min-height: 1.2em; }
.exit-modal__book {
  display: block;
  text-align: center;
  padding: 0.7rem;
  margin-top: var(--s-3);
  background: rgba(28,76,117,0.06);
  border-radius: var(--r-sm);
  color: var(--brand);
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.18s ease;
}
.exit-modal__book:hover { background: rgba(28,76,117,0.12); }
.exit-modal__book strong { color: var(--brand); }
.exit-modal__fine { margin: var(--s-3) 0 0; font-size: 0.78rem; color: var(--text-soft); text-align: center; }
.exit-modal__fine a { color: var(--brand); font-weight: 600; }
.exit-modal__success { text-align: center; padding: var(--s-4) 0; }
.exit-modal__success[hidden] { display: none; }
.exit-modal__success h3 { margin: var(--s-3) 0 var(--s-2); }
.exit-modal__success p { color: var(--text-mid); margin: 0; }

@media (max-width: 600px) {
  .exit-modal__panel { margin: 4vh var(--s-3) 0; max-height: 92vh; }
}

/* Print stylesheet for quote summary */
@media print {
  .site-header, .site-footer, .mobile-cta, .byos-mobile-bar, .byos-modal__backdrop,
  .byos-modal__close, .reveal, .byos-config, .byos-quote .btn,
  #byos-print, #byos-modal-success-view .btn { display: none !important; }
  .byos-modal { position: static; }
  .byos-modal__panel { box-shadow: none; max-height: none; margin: 0; }
  body { background: #fff; }
}
