/* ==========================================================================
   style.css — ArawHome Solar (placeholder brand)
   Mobile-first base styles. Larger breakpoints live in responsive.css.

   Design notes
   - Palette: white paper, night-grid navy text, solar gold for action,
     leaf green for energy/sustainability.
   - Type: Archivo (variable width). Expanded widths for headings and key
     figures give a "spec plate" feel; normal width for reading text.
   - One memorable element: the hero energy-flow scene with its inverter
     readout. Everything else stays calm.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --navy-900: #0E2238;
  --navy-800: #16304D;
  --navy-700: #22415F;
  --slate-600: #4B5D71;
  --slate-500: #647589;
  --slate-300: #B9C4D0;
  --line: #E1E7EE;
  --line-strong: #CBD5E0;
  --surface: #F4F7F9;
  --surface-2: #EAF0F4;
  --white: #FFFFFF;
  --gold-600: #D99700;
  --gold-500: #F2A900;
  --gold-300: #FFD166;
  --gold-100: #FFF4D6;
  --green-700: #177A43;
  --green-600: #1F9D57;
  --green-100: #E2F5EA;
  --red-600: #C0392B;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(14, 34, 56, .06), 0 2px 8px rgba(14, 34, 56, .05);
  --shadow-md: 0 12px 32px -14px rgba(14, 34, 56, .28);
  --shadow-lg: 0 28px 64px -24px rgba(14, 34, 56, .42);

  --header-h: 64px;
  --container: 1200px;
  --gutter: 20px;
  --section-y: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.no-scroll { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy-900);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 700; }
h1, h2 { font-stretch: 112%; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 760; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--navy-800); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-700); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold-300); color: var(--navy-900); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-900); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--white); }

.muted { color: var(--slate-600); }
.small { font-size: .875rem; }
.optional { color: var(--slate-500); font-weight: 400; font-size: .875em; }
.placeholder-note {
  display: inline-block; font-size: .8125rem; color: #7A5A00; background: var(--gold-100);
  border: 1px dashed #E3C36A; border-radius: var(--radius-sm); padding: 4px 10px; margin-bottom: 1em;
}
.placeholder-inline { color: #7A5A00; background: var(--gold-100); padding: 0 4px; border-radius: 4px; }
.footnote { font-size: .8125rem; color: var(--slate-500); margin-top: 16px; max-width: 70ch; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: 40px var(--section-y); }
.section-soft { background: var(--surface); }
.section-dark { background: var(--navy-900); color: #DCE5EE; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a { color: var(--gold-300); }

.section-head { max-width: 64ch; margin-bottom: 32px; }
.section-head p { color: var(--slate-600); font-size: 1.0625rem; }
.section-head .btn { margin-top: 8px; }
.section-head-row { max-width: none; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.section-head-row > div { max-width: 64ch; }

.split { display: grid; gap: 32px; }
.split-media img { border-radius: var(--radius-lg); }
.split-media figcaption { font-size: .8125rem; color: var(--slate-500); margin-top: 8px; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); }
.narrow { max-width: 760px; }

/* ---------- 4. Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: var(--radius-pill);
  border: 2px solid transparent; font-weight: 650; font-size: .9375rem; line-height: 1.2;
  text-decoration: none; text-align: center; transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease), box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 6px 16px -8px rgba(217, 151, 0, .9); }
.btn-primary:hover { background: var(--gold-600); color: var(--navy-900); }
.btn-secondary { background: var(--white); color: var(--navy-900); border-color: var(--navy-900); }
.btn-secondary:hover { background: var(--navy-900); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy-800); color: var(--navy-900); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--gold-100); color: var(--navy-900); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.06); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn + .btn-block, .btn-block + .btn-block { margin-top: 10px; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white);
  display: inline-grid; place-items: center; font-size: 1.25rem; line-height: 1; color: var(--slate-600);
}
.icon-btn:hover { border-color: var(--red-600); color: var(--red-600); }

.pill {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--surface-2);
  font-size: .75rem; font-weight: 650; color: var(--navy-800);
}
.tag {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: .75rem; font-weight: 650; background: rgba(255,255,255,.92); color: var(--navy-800);
}
.tag-placeholder { color: #7A5A00; background: rgba(255, 244, 214, .95); }

/* Choice chips (radio/checkbox styled as pills) */
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip { position: relative; display: inline-flex; }
.choice-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-strong); background: var(--white); font-size: .9063rem; font-weight: 550;
  transition: background-color .15s, border-color .15s, color .15s;
}
.choice-chip:hover span { border-color: var(--navy-700); }
.choice-chip input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.choice-chip input[type="checkbox"]:checked + span { background: var(--green-600); border-color: var(--green-600); }
.choice-chip input:focus-visible + span { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.filter-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: var(--white);
  font-weight: 600; font-size: .9063rem; color: var(--navy-800); white-space: nowrap;
}
.filter-chip .count { font-size: .75rem; color: var(--slate-500); font-variant-numeric: tabular-nums; }
.filter-chip:hover { border-color: var(--navy-800); }
.filter-chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.filter-chip[aria-pressed="true"] .count { color: var(--gold-300); }

.check-list { list-style: none; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 26px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23D99700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.check-list.is-green li::before { background-color: var(--green-100); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%231F9D57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(14, 34, 56, .5); }
/* backdrop-filter creates a containing block for fixed children, so drop it while the drawer is open */
.site-header.menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--white); border-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); }
.brand img { width: 36px; height: 36px; }
.brand-name { font-weight: 780; font-stretch: 118%; font-size: 1.0625rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-light { color: var(--white); }
.brand-light:hover { color: var(--white); }

.nav-toggle {
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white);
  display: grid; place-items: center; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 20px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.menu-open .nav-toggle-bar { background: transparent; }
.menu-open .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.menu-open .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.site-menu {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); padding: 12px var(--gutter) 32px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 20px;
  visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s;
}
.menu-open .site-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease); }
.nav-list { list-style: none; }
.nav-list a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none;
  font-weight: 600; font-size: 1.0625rem; color: var(--navy-900);
}
.nav-list a[aria-current="page"] { color: var(--green-700); }
.header-ctas { display: grid; gap: 10px; }
.header-ctas .btn { white-space: nowrap; }

/* ---------- 6. Hero ---------- */
.hero { padding: 28px 0 56px; background: linear-gradient(180deg, #F6F9FB 0%, var(--white) 72%); overflow: hidden; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-grid > *, .benefits-layout > *, .battery-layout > *, .split > *, .contact-layout > *, .faq-layout > *, .faq-preview > * { min-width: 0; }
.hero-trust { font-size: .875rem; font-weight: 600; color: var(--green-700); margin-bottom: 14px; }
.hero-title {
  font-size: clamp(2.6rem, 1.4rem + 6.2vw, 5.1rem); font-weight: 820; font-stretch: 122%;
  line-height: .98; letter-spacing: -.03em; margin-bottom: 18px; max-width: 11ch;
}
.hero-sub { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--slate-600); max-width: 44ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-points { list-style: none; display: grid; gap: 6px; font-size: .9375rem; color: var(--slate-600); }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gold-500); flex: none; }

.energy-figure { margin: 0; position: relative; }
.energy-scene { width: 100%; height: auto; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.energy-scene .scene-tag text { font-family: var(--font); }
.energy-scene .flow { stroke-dasharray: 1 12; animation: flow-dash 1.3s linear infinite; }
.energy-scene .flow-sun { stroke-width: 3; opacity: .7; animation-duration: 1.6s; }
.energy-scene .flow-grid { animation-duration: 1.8s; }
.energy-scene .sun-rays { transform-origin: 0 0; animation: spin 60s linear infinite; }
.energy-scene .glint { animation: glint 7s ease-in-out infinite; }
.energy-scene .pv-array { animation: pv-float 6s ease-in-out infinite; }
.energy-scene, .energy-readout { will-change: transform; }
.energy-readout .readout-head .live-dot { flex: none; }
@keyframes pv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes flow-dash { to { stroke-dashoffset: -26; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glint { 0%, 55% { transform: translateX(-80px) skewX(-20deg); } 100% { transform: translateX(420px) skewX(-20deg); } }

/* Inverter-style readout */
.energy-readout {
  margin-top: 12px; background: var(--navy-900); color: #CFE0EE; border-radius: var(--radius-lg);
  padding: 14px 16px; box-shadow: var(--shadow-md); border: 1px solid #1F3A58;
}
.readout-head { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; margin-bottom: 10px; color: #E7EEF5; }
.readout-note { margin-left: auto; font-weight: 500; color: #8FA6BD; font-size: .75rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 0 rgba(31,157,87,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,157,87,.55); } 70% { box-shadow: 0 0 0 8px rgba(31,157,87,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,87,0); } }
.energy-readout dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 8px; }
.energy-readout dl > div { border-left: 2px solid #2A4868; padding-left: 10px; }
.energy-readout dt { font-size: .75rem; color: #8FA6BD; }
.energy-readout dd { margin: 0; font-size: 1.125rem; font-weight: 700; font-stretch: 110%; font-variant-numeric: tabular-nums; color: var(--white); white-space: nowrap; }
.energy-readout .ro-solar { border-color: var(--gold-500); }
.energy-readout .ro-solar dd span { color: var(--gold-300); }
.energy-readout .ro-home { border-color: #C79A6B; }
.energy-readout .ro-battery { border-color: var(--green-600); }
.energy-readout .ro-battery dd span { color: #7FDCA6; }
.energy-readout .ro-grid { border-color: #6F8AA6; }

/* ---------- 7. Benefits & long-term savings ---------- */
.benefits-layout { display: grid; gap: 36px; }
.benefit-list { list-style: none; border-top: 1px solid var(--line); }
.benefit { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.benefit h3 { margin-bottom: 4px; }
.benefit p { color: var(--slate-600); }
.benefit-icon {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-100); color: var(--gold-600);
}
.benefit:nth-child(3n+2) .benefit-icon { background: var(--green-100); color: var(--green-700); }
.benefit:nth-child(3n) .benefit-icon { background: var(--surface-2); color: var(--navy-800); }

.savings-panel {
  background: var(--navy-900); color: #D6E1EC; border-radius: var(--radius-xl); padding: 24px;
  box-shadow: var(--shadow-lg); align-self: start;
}
.savings-panel h3 { color: var(--white); font-size: 1.375rem; font-stretch: 112%; }
.savings-intro { color: #A9BBCD; }
.savings-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin: 18px 0 8px; color: var(--white); }
.savings-label output { font-size: 1.5rem; font-stretch: 115%; font-weight: 750; color: var(--gold-300); font-variant-numeric: tabular-nums; }
.savings-panel input[type="range"] { width: 100%; accent-color: var(--gold-500); height: 28px; }
.savings-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; height: 200px; margin: 18px 0 16px; padding-top: 4px; }
.sbar { height: 100%; display: flex; flex-direction: column; text-align: center; gap: 6px; }
.sbar-track { position: relative; flex: 1; }
.sbar-fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); transition: height .35s var(--ease); min-height: 6px; }
.sbar-track .sbar-val { position: absolute; left: -4px; right: -4px; transition: bottom .35s var(--ease); }
.sbar:nth-child(-n+2) .sbar-fill { background: linear-gradient(180deg, #7FDCA6, var(--green-600)); }
.sbar-val { font-size: .75rem; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sbar-year { font-size: .75rem; color: #8FA6BD; }
.savings-summary { color: var(--white); font-weight: 500; }
.savings-fine { font-size: .75rem; color: #8FA6BD; margin-top: 10px; }
.savings-fine strong { color: #CFE0EE; }

/* ---------- 8. Packages ---------- */
.package-grid { display: grid; gap: 16px; }
.package-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;
}
.package-card.is-featured { border: 2px solid var(--navy-900); box-shadow: var(--shadow-md); }
.package-flag {
  position: absolute; top: -12px; left: 20px; background: var(--gold-500); color: var(--navy-900);
  font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: var(--radius-pill);
}
.package-name { font-size: 1rem; font-weight: 700; color: var(--slate-600); margin: 0; }
.package-size { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin: 0; }
.package-unit { white-space: nowrap; }
.package-kw { font-size: 3.4rem; line-height: 1; font-weight: 800; font-stretch: 125%; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.package-unit { font-weight: 600; color: var(--slate-600); }
.package-for { font-size: .9375rem; margin: 0; }
.package-note { font-size: .875rem; color: var(--slate-600); margin: 0; }
.package-gen { margin: 4px 0 6px; padding: 10px 12px; background: var(--surface); border-radius: var(--radius-sm); font-size: .875rem; }
.package-gen dt { color: var(--slate-600); font-size: .75rem; }
.package-gen dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.package-card .check-list { font-size: .9375rem; margin-bottom: 12px; flex: 1; align-content: start; }

.sizing-factors { margin-top: 48px; display: grid; gap: 20px; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.sizing-factors h3 { font-size: 1.375rem; font-stretch: 110%; }
.sizing-factors-copy p { color: var(--slate-600); }
.factor-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.factor-list li { padding: 7px 14px; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: .9063rem; font-weight: 550; }

.assist-callout {
  margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  padding: 20px 22px; border-radius: var(--radius-lg); background: var(--gold-100); border: 1px solid #F0DB9C;
}
.assist-callout p { margin: 0; flex: 1 1 260px; font-size: 1.0625rem; }
.assist-sun { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); font-size: 1.4rem; color: var(--navy-900); }

/* ---------- 9. How it works ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 58px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-stretch: 120%; background: var(--navy-900); color: var(--gold-300);
}
.steps li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line-strong); }
.steps li:last-child::after { display: none; }
.steps h3 { margin: 7px 0 4px; }
.steps p { color: var(--slate-600); }

.energy-path { margin-top: 40px; display: grid; gap: 10px; }
.ep-item { position: relative; padding: 16px 18px 16px 56px; border-radius: var(--radius-md); background: var(--surface); }
.ep-item::before { content: ""; position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; border-radius: 6px; }
.ep-item h3 { font-size: 1rem; margin-bottom: 2px; }
.ep-item p { font-size: .9063rem; color: var(--slate-600); }
.ep-sun::before { background: var(--gold-500); border-radius: 50%; }
.ep-inv::before { background: var(--white); border: 2px solid var(--navy-700); }
.ep-home::before { background: #C79A6B; }
.ep-bat::before { background: var(--green-600); }
.ep-grid::before { background: var(--navy-700); }

/* ---------- 10. Battery section ---------- */
.battery-layout { display: grid; gap: 36px; }
.battery-copy .lead { font-size: 1.125rem; color: #C8D6E3; }
.battery-options { list-style: none; display: grid; gap: 12px; margin: 24px 0; }
.battery-options li { padding: 16px 18px; border: 1px solid #28476A; border-radius: var(--radius-md); background: rgba(255,255,255,.03); }
.battery-options h3 { font-size: 1rem; margin-bottom: 4px; color: var(--gold-300); }
.battery-options p { color: #B7C7D7; font-size: .9375rem; }
.battery-types { font-size: .9375rem; color: #B7C7D7; }
.battery-types strong { color: var(--white); }

.backup-estimator { background: var(--white); color: var(--navy-900); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-lg); align-self: start; }
.backup-estimator h3 { color: var(--navy-900); font-size: 1.25rem; font-stretch: 110%; }
.backup-estimator fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.backup-estimator legend { font-weight: 650; font-size: .875rem; margin-bottom: 8px; color: var(--slate-600); }
.be-result { background: var(--green-100); border-radius: var(--radius-md); padding: 16px 18px; }
.be-label { font-size: .8125rem; font-weight: 600; color: var(--green-700); margin: 0; }
.be-hours { font-size: 2.2rem; font-weight: 800; font-stretch: 120%; line-height: 1.1; margin: 4px 0; font-variant-numeric: tabular-nums; }
.be-detail { font-size: .875rem; color: var(--slate-600); }
.be-fine { font-size: .75rem; color: var(--slate-500); margin-top: 12px; }

/* ---------- 11. Projects ---------- */
.project-grid { display: grid; gap: 20px; }
.project-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s var(--ease);
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.project-card:focus-within { box-shadow: 0 0 0 3px var(--gold-500); }
.project-media { position: relative; aspect-ratio: 800 / 520; background: var(--surface); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-type {
  position: absolute; left: 12px; top: 12px; background: var(--navy-900); color: var(--white);
  font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill);
}
.project-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-loc { font-size: .8125rem; font-weight: 600; color: var(--green-700); margin: 0; }
.project-title { font-size: 1.0625rem; margin: 0; }
.project-open { all: unset; cursor: pointer; }
.project-open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.project-open:focus-visible { outline: none; }
.project-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 4px; }
.project-specs > div { background: var(--surface); border-radius: var(--radius-sm); padding: 8px 10px; }
.project-specs dt { font-size: .6875rem; color: var(--slate-500); font-weight: 600; }
.project-specs dd { margin: 0; font-weight: 750; font-stretch: 108%; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.project-desc { font-size: .9063rem; color: var(--slate-600); margin: 0; }

.project-detail { display: grid; gap: 24px; }
.gallery-main { position: relative; border-radius: var(--radius-md); overflow: hidden; background: var(--surface); aspect-ratio: 800 / 520; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); font-size: 1.6rem; line-height: 1; color: var(--navy-900); box-shadow: var(--shadow-sm);
}
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; margin: 0; background: rgba(14,34,56,.8); color: var(--white); font-size: .75rem; padding: 3px 10px; border-radius: var(--radius-pill); }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { flex: none; width: 96px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; }
.thumb[aria-pressed="true"] { border-color: var(--gold-500); }
.project-lede { font-size: 1.0625rem; }
.spec-table { display: grid; gap: 0; margin: 16px 0; border-top: 1px solid var(--line); }
.spec-table > div { display: grid; grid-template-columns: 11rem 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.spec-table dt { color: var(--slate-600); }
.spec-table dd { margin: 0; font-weight: 600; }
.project-lists { display: grid; gap: 20px; margin: 20px 0; }
.project-lists h3 { font-size: 1rem; }
.project-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.placeholder-note + .project-cta { margin-top: 4px; }

/* ---------- 12. Product categories (home) ---------- */
.category-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.category-grid a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--navy-900);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: border-color .15s;
}
.category-grid a:hover { border-color: var(--navy-800); color: var(--navy-900); }
.category-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.cat-name { font-weight: 700; padding: 12px 14px 0; }
.cat-desc { font-size: .8125rem; color: var(--slate-600); padding: 2px 14px 14px; }

/* ---------- 13. FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); transition: border-color .15s; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 9.5l4 4 4-4' fill='none' stroke='%230E2238' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-q { font-size: 1.0625rem; margin: 0; font-stretch: 100%; letter-spacing: 0; font-weight: 650; }
.faq-a { padding: 0 18px 18px; color: var(--slate-600); max-width: 72ch; }
.reg-inline { font-size: .875rem; padding: 10px 12px; background: var(--gold-100); border-radius: var(--radius-sm); color: #6B5000; }
.faq-preview { display: grid; gap: 24px; }
.faq-layout { display: grid; gap: 28px; }
.reg-note { background: var(--surface); border-radius: var(--radius-lg); padding: 22px; align-self: start; font-size: .9375rem; }
.reg-note h2 { font-size: 1.25rem; font-stretch: 105%; }

/* ---------- 14. Page hero (inner pages) ---------- */
.page-hero { padding: 36px 0 40px; background: var(--surface); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-300) 0 34%, rgba(255, 209, 102, .25) 35% 55%, transparent 56%);
  opacity: .8; pointer-events: none;
}
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.6vw, 3.6rem); font-weight: 800; font-stretch: 118%; line-height: 1.02; letter-spacing: -.025em; position: relative; z-index: 1; }
.page-intro { font-size: 1.125rem; color: var(--slate-600); max-width: 60ch; position: relative; z-index: 1; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; position: relative; z-index: 1; }
.breadcrumb { font-size: .8125rem; color: var(--slate-500); margin-bottom: 14px; position: relative; z-index: 1; }
.breadcrumb a { color: var(--slate-600); }

/* ---------- 15. CTA band & footer ---------- */
.cta-band { background: var(--navy-900); color: #C8D6E3; padding: 56px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; left: -120px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,169,0,.35), transparent 65%); pointer-events: none;
}
.cta-inner { display: grid; gap: 22px; position: relative; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer { background: #0A1A2B; color: #A9BBCD; padding: 48px 0 24px; font-size: .9375rem; }
.site-footer a { color: #DCE5EE; text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p { margin-top: 12px; max-width: 34ch; }
.footer-col h2 { font-size: .875rem; font-weight: 700; color: var(--white); font-stretch: 100%; letter-spacing: 0; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col .btn-primary { color: var(--navy-900); }
.footer-col p { margin-bottom: 12px; }
.footer-small { font-size: .8125rem; color: #7F95AB; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #1B3149; font-size: .8125rem; color: #7F95AB; display: grid; gap: 6px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: underline; }

/* ---------- 16. Products ---------- */
.catalog-toolbar { display: grid; gap: 12px; margin-bottom: 12px; }
.search-field input {
  width: 100%; min-height: 46px; padding: 10px 16px 10px 42px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6.5' fill='none' stroke='%23647589' stroke-width='2'/%3E%3Cpath d='M16 16l4 4' stroke='%23647589' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 14px center / 18px no-repeat;
}
.result-count { font-size: .875rem; color: var(--slate-500); margin: 4px 0 12px; }
.notice { font-size: .875rem; background: var(--gold-100); border: 1px solid #F0DB9C; color: #5E4600; border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 20px; }
.product-grid { display: grid; gap: 18px; }
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s var(--ease), border-color .2s; }
.product-card:hover, .package-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.package-card { transition: box-shadow .2s, transform .2s var(--ease); }
.category-grid a { transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.category-grid a:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-grid img { transition: transform .4s var(--ease); }
.category-grid a:hover img { transform: scale(1.03); }
.product-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-cat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8125rem; margin: 0; }
.product-name { font-size: 1.125rem; margin: 0; }
.product-desc { font-size: .9063rem; color: var(--slate-600); margin: 0; }
/* Spec table: label left, bold value right, one text size throughout */
.spec-list { margin: 0; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.45; }
.spec-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { flex: 0 0 auto; max-width: 42%; color: var(--slate-600); }
.spec-list dd { flex: 1 1 auto; min-width: 0; margin: 0; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.product-compat .muted { font-size: .875rem; color: var(--slate-600); }
.product-price { font-size: .9375rem; font-weight: 700; margin: 0; }
.product-source { font-size: .8125rem; margin: 0; }
.product-source a { color: var(--slate-600); }
.product-compat ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.product-compat li { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--green-100); color: var(--green-700); }
.product-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 6px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 40px 16px; color: var(--slate-600); background: var(--surface); border-radius: var(--radius-lg); }
.help-band { display: grid; gap: 20px; }
.help-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.price-product { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--surface); border-radius: var(--radius-md); margin-bottom: 14px; }
.price-product img { width: 96px; border-radius: 8px; }
.price-product p { margin: 0; }
.price-name { font-weight: 700; }

/* ---------- 17. About ---------- */
.stat-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.stat-band > div { background: var(--white); border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--line); display: flex; flex-direction: column-reverse; }
.stat-band dt { color: var(--slate-600); font-size: .9375rem; }
.stat-band dd { margin: 0; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; font-stretch: 122%; line-height: 1.05; font-variant-numeric: tabular-nums; }
.principles { list-style: none; display: grid; gap: 12px; }
.principles li { padding: 18px 20px; border-left: 4px solid var(--gold-500); background: var(--surface); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.principles li:nth-child(even) { border-color: var(--green-600); }
.principles p { color: var(--slate-600); }
.team-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.team-grid li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.team-grid h3 { margin: 12px 0 2px; font-size: 1rem; }
.team-grid p { font-size: .875rem; color: var(--slate-600); }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-stretch: 115%; background: var(--navy-900); color: var(--gold-300); }

/* ---------- 18. Forms ---------- */
.form-grid { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend, .q-label { font-weight: 600; font-size: .9063rem; }
.field input, .field select, .field textarea, .lead-form input:not([type="checkbox"]):not([type="radio"]), .lead-form select, .lead-form textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--white); font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.field textarea, .lead-form textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(242, 169, 0, .35);
}
[aria-invalid="true"] { border-color: var(--red-600) !important; }
.field-error { color: var(--red-600); font-size: .8125rem; font-weight: 600; margin: 0; }
.hint { font-size: .8125rem; color: var(--slate-500); margin: 0; }
fieldset.field, fieldset.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-group legend { margin-bottom: 8px; padding: 0; }
.input-affix { position: relative; }
.input-affix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--slate-500); font-weight: 600; }
.input-affix input { padding-left: 32px !important; }
.optional-details { margin: 16px 0 4px; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); padding: 0 14px; }
.optional-details summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: .9375rem; }
.optional-details[open] { padding-bottom: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 8px; font-weight: 600; font-size: .9375rem; flex-wrap: wrap; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green-600); flex: none; }
.consent span { flex: 1; }
.consent .field-error { flex-basis: 100%; }
.privacy-note { font-size: .8125rem; color: var(--slate-500); margin-bottom: 16px; }
.hp-wrap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: 24px; border-radius: var(--radius-lg); background: var(--green-100); border: 1px solid #BFE6CF; }
.form-success:focus { outline: none; }
.form-success h3 { color: var(--green-700); }

/* ---------- 19. Contact ---------- */
.contact-layout { display: grid; gap: 32px; }
.contact-info h2, .contact-form-card h2 { font-size: 1.5rem; font-stretch: 108%; }
.contact-list { list-style: none; display: grid; gap: 2px; margin-bottom: 20px; }
.contact-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list p { margin: 0; }
.ci-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--navy-800); }
.ci-label { font-size: .75rem; font-weight: 700; color: var(--slate-500); }
.contact-list a { font-weight: 600; word-break: break-word; }
.map-placeholder {
  display: grid; place-items: center; min-height: 180px; border-radius: var(--radius-lg); color: var(--slate-500); font-size: .875rem; text-align: center; padding: 16px;
  background: repeating-linear-gradient(45deg, var(--surface) 0 14px, var(--surface-2) 14px 28px);
}
.map-link { text-decoration: none; color: var(--navy-800); line-height: 1.5; transition: box-shadow .2s; }
.map-link strong { font-size: 1rem; }
.map-link:hover { color: var(--green-700); box-shadow: inset 0 0 0 2px var(--line-strong); }
.contact-form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 24px 20px; box-shadow: var(--shadow-md); }

/* ---------- 20. Calculator ---------- */
.calc-layout { display: grid; gap: 24px; align-items: start; }
.calc-form { display: grid; gap: 16px; min-width: 0; }
.calc-block { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 18px; margin: 0; background: var(--white); min-width: 0; }
.calc-block > legend { font-size: 1.125rem; font-weight: 750; font-stretch: 108%; padding: 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.calc-block > legend .optional { flex-basis: 100%; padding-left: 38px; font-size: .8125rem; font-stretch: 100%; }
.calc-step { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--navy-900); color: var(--gold-300); font-size: .875rem; font-weight: 800; flex: none; }
.calc-block .q-label { margin: 16px 0 8px; }
.calc-block .q-label:first-of-type { margin-top: 4px; }
.field-inline { margin: 18px 0 4px; }
.field-inline select { max-width: 240px; }
.switch-row { display: flex; gap: 10px; align-items: center; font-weight: 600; margin-bottom: 6px; }
.switch-row input { width: 20px; height: 20px; accent-color: var(--green-600); }
details.assumptions > summary { cursor: pointer; font-weight: 700; }
details.assumptions[open] > summary { margin-bottom: 12px; }
.appliance-list { display: grid; gap: 8px; margin: 14px 0; }
.appliance-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
}
.appliance-row.is-on { background: var(--white); border-color: var(--line-strong); }
.appliance-toggle { display: flex; align-items: center; gap: 10px; font-weight: 650; cursor: pointer; min-width: 0; }
.appliance-toggle input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--green-600); flex: none; }
.appl-icon { font-size: 1.2rem; }
.appliance-row .appliance-fields { grid-column: 1 / -1; display: none; flex-wrap: wrap; gap: 10px; }
.appliance-row.is-on .appliance-fields { display: flex; }
.appl-kwh { grid-column: 2; grid-row: 1; font-size: .8125rem; color: var(--slate-600); font-variant-numeric: tabular-nums; white-space: nowrap; }
.appliance-row:not(.is-on) .appl-kwh { visibility: hidden; }
.appliance-row.is-custom { grid-template-columns: 1fr auto auto; }
.appliance-row.is-custom .appl-kwh { grid-column: 2; }
.appliance-row.is-custom .icon-btn { grid-column: 3; grid-row: 1; }
.custom-name { min-height: 40px; padding: 8px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); min-width: 0; width: 100%; }
.mini-field { display: flex; flex-direction: column; gap: 4px; font-size: .75rem; font-weight: 600; color: var(--slate-600); flex: 1 1 110px; min-width: 0; }
.mini-field input, .mini-field select { min-height: 40px; padding: 7px 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--white); font-size: .9375rem; color: var(--navy-900); width: 100%; }
.appliance-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.appliance-total { margin: 0; font-size: .9375rem; }

.calc-results { min-width: 0; }
.results-card { background: var(--navy-900); color: #C8D6E3; border-radius: var(--radius-xl); padding: 24px 22px; box-shadow: var(--shadow-lg); }
.results-card h2 { color: var(--white); font-size: 1.375rem; margin: 10px 0 12px; }
.results-card.is-empty p { color: #C8D6E3; }
.kpi-main { display: flex; flex-direction: column; margin: 0 0 16px; padding: 16px; border-radius: var(--radius-md); background: rgba(242, 169, 0, .12); border: 1px solid rgba(242, 169, 0, .4); }
.kpi-main span { font-size: .8125rem; color: var(--gold-300); font-weight: 600; }
.kpi-main strong { font-size: 2.8rem; line-height: 1.05; font-weight: 800; font-stretch: 122%; color: var(--white); font-variant-numeric: tabular-nums; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.kpi-grid > div { background: rgba(255,255,255,.05); border: 1px solid #25425F; border-radius: var(--radius-sm); padding: 10px 12px; }
.kpi-grid dt { font-size: .75rem; color: #8FA6BD; }
.kpi-grid dd { margin: 2px 0 0; font-size: .9688rem; font-weight: 750; color: var(--white); font-variant-numeric: tabular-nums; }
.suggested { margin: 0 0 6px; color: var(--white); font-weight: 650; }
.suggested .muted { display: block; font-size: .75rem; color: #8FA6BD; font-weight: 500; }
.basis { font-size: .8125rem; color: #9DB1C5; }
.calc-notes { margin: 8px 0 12px; font-size: .875rem; }
.calc-notes summary { cursor: pointer; font-weight: 650; color: var(--white); }
.calc-notes ul { margin: 8px 0 0 18px; display: grid; gap: 6px; }
.disclaimer { font-size: .8125rem; color: #B7C7D7; border-top: 1px solid #25425F; padding-top: 12px; }
.results-card .btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.results-card .btn-secondary:hover { background: var(--white); color: var(--navy-900); }
.prelim-badge {
  display: inline-block; margin: 0; padding: 4px 10px; border-radius: 6px; font-size: .6875rem; font-weight: 800;
  letter-spacing: .06em; background: var(--gold-500); color: var(--navy-900);
}
.calc-mini {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px;
  background: var(--navy-900); color: var(--white); border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
}
.calc-mini[hidden] { display: none; }
.calc-mini { transition: transform .25s var(--ease), opacity .2s; right: 84px; }
.calc-mini.is-away { transform: translateY(160%); opacity: 0; pointer-events: none; }
.calc-mini p { margin: 0; font-size: .875rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc-mini .muted { color: #8FA6BD; margin-right: 6px; }
.calc-mini .btn { flex: none; }
.formula { font-weight: 700; font-stretch: 105%; padding: 14px 16px; border-left: 4px solid var(--gold-500); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.report-wrap { max-width: 900px; }

/* ---------- 21. Solar report ---------- */
.solar-report { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 22px 20px; color: var(--navy-900); }
.report-head .prelim-badge { align-self: flex-start; }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 3px solid var(--navy-900); margin-bottom: 16px; }
.report-company { font-weight: 780; font-stretch: 115%; margin: 0; color: var(--green-700); }
.report-title { font-size: 1.6rem; margin: 2px 0; font-stretch: 112%; }
.report-meta { font-size: .8125rem; color: var(--slate-500); margin: 0; }
.report-block { padding: 14px 0; border-bottom: 1px solid var(--line); }
.report-block h3 { font-size: 1rem; margin-bottom: 8px; }
.report-block p { font-size: .9375rem; margin-bottom: .4em; }
.report-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 10px; }
.report-facts dt { font-size: .75rem; color: var(--slate-500); }
.report-facts dd { margin: 0; font-weight: 650; }
.report-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.report-kpi { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface); }
.report-kpi:first-child { background: var(--gold-100); border-color: #F0DB9C; }
.report-kpi dt { font-size: .75rem; color: var(--slate-600); }
.report-kpi dd { margin: 2px 0 0; font-size: 1.125rem; font-weight: 780; font-stretch: 110%; font-variant-numeric: tabular-nums; }
.report-table { width: 100%; border-collapse: collapse; font-size: .9063rem; }
.report-table th, .report-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.report-table th { font-weight: 500; color: var(--slate-600); width: 45%; padding-right: 12px; }
.report-table td { font-weight: 650; }
.report-list { margin: 0 0 0 18px; display: grid; gap: 6px; font-size: .875rem; color: var(--slate-600); }
.report-bars { list-style: none; display: grid; gap: 8px; font-size: .8125rem; }
.report-bars li { display: grid; grid-template-columns: minmax(0, 9rem) 1fr auto; gap: 10px; align-items: center; }
.rb-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.rb-bar span { display: block; height: 100%; background: var(--gold-500); border-radius: 4px; }
.rb-val { font-variant-numeric: tabular-nums; color: var(--slate-600); }
.report-two { display: grid; gap: 16px; }
.bom-wrap { overflow-x: auto; margin-top: 8px; }
.bom-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.bom-table th, .bom-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bom-table thead th { font-size: .75rem; font-weight: 700; color: var(--slate-600); background: var(--surface); }
.bom-table .bom-group th { background: var(--surface-2); font-size: .75rem; font-weight: 700; color: var(--navy-800); padding-top: 9px; }
.bom-table td small { display: block; margin-top: 2px; font-size: .75rem; color: var(--slate-500); }
.bom-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bom-table tr.is-optional td { color: var(--slate-600); }
.bom-opt { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--gold-100); color: #7A5A00; font-size: .6875rem; font-weight: 700; }
.bom-total { margin: 10px 0 4px; font-size: .9375rem; }
.package-bom-intro { margin: 10px 0 0; color: var(--slate-600); }
.package-bom .report-bom { border-bottom: 0; }
.package-bom .project-cta { margin-top: 8px; }
.report-disclaimer { margin-top: 16px; padding: 14px; border-radius: var(--radius-sm); background: var(--gold-100); font-size: .8125rem; color: #5E4600; }
.report-actions { display: grid; gap: 8px; margin-top: 16px; }

/* ---------- 22. Modal & toast ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 20, 34, .6); display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
.modal-backdrop.is-open { opacity: 1; }
.modal {
  background: var(--white); width: 100%; max-height: 92vh; overflow-y: auto; border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transform: translateY(24px); transition: transform .25s var(--ease); overscroll-behavior: contain;
}
.modal-backdrop.is-open .modal { transform: none; }
.modal:focus { outline: none; }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--white); border-bottom: 1px solid var(--line); }
.modal-title { font-size: 1.1875rem; margin: 0; font-stretch: 105%; letter-spacing: 0; }
.modal-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); font-size: 1.5rem; line-height: 1; flex: none; }
.modal-close:hover { background: var(--surface); }
.modal-body { padding: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }

.toast-region { position: fixed; left: 50%; top: calc(var(--header-h) + 12px); transform: translateX(-50%); z-index: 150; display: grid; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: var(--radius-md); background: var(--navy-900); color: var(--white); box-shadow: var(--shadow-lg); font-size: .9375rem; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease); }
.toast.is-in { opacity: 1; transform: none; }
.toast-success { background: var(--green-700); }
.toast-error { background: var(--red-600); }

/* ---------- 23. Solar AI Assistant ---------- */
.chat-launcher {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 18px 8px 8px;
  border: 0; border-radius: var(--radius-pill); background: var(--navy-900); color: var(--white);
  font-weight: 700; font-size: .9375rem; box-shadow: 0 16px 36px -12px rgba(14, 34, 56, .6);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.chat-launcher:hover { transform: translateY(-2px); color: var(--white); }
.chat-launcher-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-500); color: var(--navy-900); font-size: 1.25rem; }
html.chat-open .chat-launcher { opacity: 0; pointer-events: none; transform: scale(.9); }
@media (max-width: 599px) {
  body[data-page="calculator"] .chat-launcher { padding: 8px; }
  body[data-page="calculator"] .chat-launcher-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 599px) { html.chat-open { overflow: hidden; } }

.chat-panel {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--white);
  opacity: 0; transform: translateY(16px); transition: opacity .2s, transform .25s var(--ease);
}
.chat-panel.is-open { opacity: 1; transform: none; }
.chat-panel[hidden] { display: none; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); background: var(--navy-900); color: var(--white); }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-500); color: var(--navy-900); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.chat-heading { flex: 1; min-width: 0; }
.chat-heading h2 { font-size: 1rem; margin: 0; color: var(--white); font-stretch: 105%; letter-spacing: 0; }
.chat-heading p { font-size: .75rem; margin: 0; color: #9DB1C5; }
.chat-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: var(--white); display: grid; place-items: center; flex: none; }
.chat-icon-btn:hover { background: rgba(255,255,255,.18); }
.chat-progress { padding: 10px 16px 12px; background: var(--navy-900); border-top: 1px solid #1F3A58; }
.chat-progress-top { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 600; color: #C8D6E3; margin-bottom: 6px; }
.chat-progress-top span:last-child { font-variant-numeric: tabular-nums; color: var(--gold-300); }
.chat-progress-track { height: 6px; border-radius: 3px; background: #22415F; overflow: hidden; }
.chat-progress-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); border-radius: 3px; transition: width .5s var(--ease); }

.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scroll-behavior: smooth; }
.chat-log:focus-visible { outline-offset: -3px; }
.msg { display: flex; flex-direction: column; max-width: 88%; animation: msg-in .25s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg-body { padding: 10px 14px; border-radius: 18px; font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg-bot { align-self: flex-start; }
.msg-bot .msg-body { background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg-user { align-self: flex-end; align-items: flex-end; }
.msg-user .msg-body { background: var(--navy-900); color: var(--white); border-bottom-right-radius: 6px; }
.msg-edit { margin-top: 3px; border: 0; background: none; padding: 2px 6px; font-size: .75rem; font-weight: 600; color: var(--slate-600); text-decoration: underline; text-underline-offset: 2px; }
.msg-edit:hover { color: var(--navy-900); }
.msg-user.is-stale { opacity: .45; }
.msg-user.is-stale .msg-body { text-decoration: line-through; }
.msg-user.is-stale .msg-edit { display: none; }
.msg.is-wide { max-width: 100%; width: 100%; }
.msg .muted { color: var(--slate-500); }
.is-typing .msg-body { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.is-typing .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--slate-300); animation: typing 1s infinite ease-in-out; }
.is-typing .dot:nth-child(2) { animation-delay: .15s; }
.is-typing .dot:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }

.chat-card { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-sm); animation: msg-in .25s var(--ease); }
.chat-card.is-locked form { opacity: .5; pointer-events: none; }
.chat-card-host.is-locked { opacity: .6; }
.chat-card-host.is-locked button { pointer-events: none; }
.chat-card .lead-form .form-grid { gap: 10px; }
.chat-card .optional-details { margin-top: 12px; }
.chat-card .consent { font-size: .875rem; }
.cc-rows { display: grid; gap: 10px; margin-bottom: 10px; }
.cc-row { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px; background: var(--surface); }
.cc-name { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 0 0 8px; font-size: .9375rem; }
.cc-name input { flex: 1; min-width: 0; min-height: 38px; padding: 6px 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); }
.cc-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-fields .mini-field { flex: 1 1 90px; }
.cc-total { font-size: .875rem; margin: 10px 0; }
.cc-done { margin: 0; font-size: .875rem; color: var(--green-700); font-weight: 600; }

.profile-card { display: grid; gap: 8px; }
.profile-card h3 { font-size: 1.0625rem; margin: 4px 0 0; }
.profile-card h4 { font-size: .875rem; margin: 6px 0 0; }
.profile-hero { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; padding: 12px; border-radius: var(--radius-sm); background: var(--gold-100); }
.profile-hero span { font-size: .8125rem; font-weight: 600; }
.profile-hero strong { font-size: 1.75rem; font-weight: 800; font-stretch: 118%; font-variant-numeric: tabular-nums; }
.profile-rows, .profile-config { margin: 0; display: grid; }
.profile-rows > div, .profile-config > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .8438rem; }
.profile-rows dt, .profile-config dt { color: var(--slate-600); }
.profile-rows dd, .profile-config dd { margin: 0; font-weight: 650; text-align: right; }
.profile-disclaimer, .profile-note { font-size: .8125rem; padding: 10px 12px; border-radius: var(--radius-sm); margin: 4px 0 0; }
.profile-disclaimer { background: var(--gold-100); color: #5E4600; }
.profile-note { background: var(--surface); color: var(--slate-600); margin-top: 10px; }
.chat-actions { display: grid; gap: 8px; margin-top: 12px; }
.chat-report .solar-report { border: 0; padding: 4px; }
.chat-report .report-title { font-size: 1.25rem; }
.chat-report .report-kpi dd { font-size: 1rem; }
.chat-panel .report-actions, .chat-panel .report-kpis { grid-template-columns: 1fr 1fr; }
.chat-panel .report-actions { grid-template-columns: 1fr; }
.chat-panel .report-actions .btn { min-height: 42px; padding: 8px 14px; font-size: .875rem; }
.chat-panel .report-two { grid-template-columns: 1fr; }

.chat-dock { border-top: 1px solid var(--line); background: var(--white); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 128px; overflow-y: auto; padding: 2px 0 8px; }
.chat-chips:empty { display: none; }
.chip {
  min-height: 38px; padding: 7px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--navy-800);
  background: var(--white); color: var(--navy-900); font-weight: 600; font-size: .875rem; transition: background-color .15s, color .15s;
}
.chip:hover:not(:disabled) { background: var(--navy-900); color: var(--white); }
.chip:disabled { opacity: .5; }
.chip-primary { background: var(--gold-500); border-color: var(--gold-500); }
.chip[aria-pressed="true"] { background: var(--green-600); border-color: var(--green-600); color: var(--white); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); font-size: 1rem; background: var(--white); }
.chat-input-row input:focus { outline: none; border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(242,169,0,.35); }
.chat-send { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gold-500); color: var(--navy-900); display: grid; place-items: center; flex: none; }
.chat-send:disabled { background: var(--surface-2); color: var(--slate-300); cursor: default; }
.chat-controls { display: flex; gap: 8px; margin-top: 8px; }
.chat-ctrl { flex: 1; min-height: 38px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--white); font-size: .8438rem; font-weight: 650; color: var(--navy-800); }
.chat-ctrl:hover:not(:disabled) { border-color: var(--navy-800); }
.chat-ctrl:disabled { opacity: .45; cursor: default; }
.chat-ctrl.is-primary { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.chat-ctrl[hidden] { display: none; }
.chat-footnote { font-size: .6875rem; color: var(--slate-500); text-align: center; margin: 8px 0 0; }

/* ---------- 24. Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .energy-scene .flow { stroke-dasharray: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .energy-scene .pv-array { animation: none; }
}

/* ---------- 25. Print (preliminary report) ---------- */
#print-area { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  body.print-mode > *:not(#print-area) { display: none !important; }
  body.print-mode #print-area { display: block !important; }
  body:not(.print-mode) .site-header, body:not(.print-mode) .chat-launcher, body:not(.print-mode) .chat-panel, body:not(.print-mode) .cta-band { display: none !important; }
  .solar-report { border: 0; padding: 0; font-size: 10pt; }
  .report-block { padding: 8px 0; }
  .report-kpis { margin: 10px 0; }
  .report-table th, .report-table td { padding: 5px 0; }
  .report-list { gap: 3px; }
  .report-disclaimer { margin-top: 10px; }
  .report-kpi, .report-disclaimer, .report-kpi:first-child { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-block, .report-kpis, .report-disclaimer { break-inside: avoid; }
  .report-two { grid-template-columns: 1fr 1fr; }
  .report-kpis { grid-template-columns: repeat(3, 1fr); }
  .report-bom { break-inside: auto; }
  .bom-table { font-size: 8.5pt; }
  .bom-table tr { break-inside: avoid; }
  .bom-table thead th, .bom-table .bom-group th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .prelim-badge { border: 1.5px solid #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
