/* ==========================================================================
   EANO Brand Design System & Website Stylesheet
   Aligned with EANO 6082 Brand Guide + Registered Trademark Addendum
   ========================================================================== */

:root {
  /* Official EANO Brand Guide RGB Palette */
  --citron: #D8EA4E;
  --citron-hover: #CBE038;
  --citron-soft: #ECF4A4;
  --brown: #431A22;
  --brown-deep: #2C1016;
  --brown-muted: #66494E;
  --beige: #DED6CA;
  --paper: #F5F2EC;
  --surface: #FFFFFF;
  --sky: #84ACFF;
  --sky-soft: #C0D6FF;
  --purple: #C296DB;
  --purple-soft: #EADCF3;

  /* Semantic UI Tokens */
  --border: rgba(67, 26, 34, 0.14);
  --border-strong: rgba(67, 26, 34, 0.28);
  --shadow-sm: 0 2px 10px rgba(67, 26, 34, 0.06);
  --shadow-md: 0 12px 32px rgba(67, 26, 34, 0.09);
  --shadow-lg: 0 24px 56px rgba(44, 16, 22, 0.14);

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout & Radii */
  --container: 1220px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--brown);
  background-color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

/* Prevent CSS Grid intrinsic-width blowout on narrow viewports */
.hero-split > *,
.page-hero-grid > *,
.hardware-showcase > *,
.stack-visualizer > *,
.matcher-grid > *,
.quote-layout > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.pricing-grid > * {
  min-width: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: inherit;
}

h1 {
  font-size: clamp(2.55rem, 5vw, 4.2rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.05rem);
}

h3 {
  font-size: clamp(1.32rem, 2vw, 1.65rem);
}

h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0;
  padding: 0;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Accessibility Focus & Skip Link */
:focus-visible {
  outline: 3px solid var(--brown);
  outline-offset: 3px;
}

.section-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--citron);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brown);
  color: var(--surface);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Container & Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(56px, 7vw, 96px);
  position: relative;
}

.section-tight {
  padding-block: clamp(32px, 4vw, 52px);
}

.section-paper {
  background-color: var(--paper);
}

.section-white {
  background-color: var(--surface);
}

.section-beige {
  background-color: var(--beige);
}

.section-citron {
  background-color: var(--citron);
  color: var(--brown);
}

.section-sky {
  background-color: var(--sky-soft);
  color: var(--brown);
}

.section-dark {
  background-color: var(--brown);
  color: var(--surface);
  position: relative;
  overflow: hidden;
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-muted);
  margin-bottom: 0.75rem;
}

.section-dark .eyebrow {
  color: var(--citron);
}

.lead {
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
  color: var(--brown-muted);
  line-height: 1.65;
}

.section-dark .lead {
  color: rgba(255, 255, 255, 0.84);
}

/* Badges / Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.badge-citron {
  background-color: var(--citron);
  color: var(--brown);
}

.badge-brown {
  background-color: var(--brown);
  color: var(--surface);
}

.badge-beige {
  background-color: var(--beige);
  color: var(--brown);
}

.badge-sky {
  background-color: var(--sky-soft);
  color: var(--brown);
}

.badge-purple {
  background-color: var(--purple-soft);
  color: var(--brown);
}

.badge-outline {
  border: 1px solid var(--border-strong);
  color: var(--brown);
  background: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--brown);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--brown-deep);
  box-shadow: var(--shadow-md);
}

.btn-citron {
  background-color: var(--citron);
  color: var(--brown);
  box-shadow: var(--shadow-sm);
}

.btn-citron:hover {
  background-color: var(--citron-hover);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--brown);
  border-color: var(--brown);
}

.btn-outline:hover {
  background-color: rgba(67, 26, 34, 0.07);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--surface);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ==========================================================================
   Header & Navigation (Trademark-Compliant Logo Sizing)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(245, 242, 236, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

/* Clearance around brand logo >= mark unit */
.brand-link {
  display: inline-flex;
  align-items: center;
  padding-block: 6px;
  padding-right: 12px;
  flex-shrink: 0;
}

/* Desktop Registered SVG MUST be >= 180px wide per Trademark Addendum */
.logo-desktop {
  display: block;
  width: 184px;
  height: auto;
}

/* Mobile swaps cleanly to unmarked Master Logo (>= 120px min) */
.logo-mobile {
  display: none;
  width: 132px;
  height: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--brown-muted);
  padding-block: 6px;
  transition: color 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brown);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2.5px;
  background-color: var(--brown);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brown-muted);
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--brown);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--brown);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--brown);
}

.mobile-nav-link.is-active {
  background-color: var(--citron);
}

/* ==========================================================================
   Hero Sections (Brand Guide Split Hero & Page Headers)
   ========================================================================== */

.hero-split {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  min-height: clamp(540px, 74vh, 720px);
  background-color: var(--citron);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-split-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(44px, 6vw, 76px) clamp(24px, 5vw, 60px) clamp(44px, 6vw, 76px) 24px;
  background-color: var(--citron);
  overflow: hidden;
}

.hero-split-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
}

.hero-watermark {
  position: absolute;
  width: 340px;
  height: 340px;
  right: -90px;
  bottom: -90px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

.hero-split-content .eyebrow {
  color: var(--brown);
  opacity: 0.85;
}

.hero-split-content .lead {
  color: var(--brown);
  opacity: 0.9;
  max-width: 50ch;
  margin-bottom: 28px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(67, 26, 34, 0.18);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.65);
  color: var(--brown);
  font-size: 0.84rem;
  font-weight: 600;
}

.hero-split-media {
  position: relative;
  min-height: 380px;
  background-color: var(--brown-deep);
}

.hero-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Center architectural NZ home with all-black rooftop solar array & coast */
  object-position: 50% center;
}

/* Inner Page Heroes */
.page-hero {
  background-color: var(--paper);
  padding-block: clamp(44px, 6vw, 74px);
  border-bottom: 1px solid var(--border);
}

.page-hero-citron {
  background-color: var(--citron);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.page-hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10;
  background-color: var(--brown-deep);
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero-media img.img-pos-top-30 {
  object-position: center 30%;
}

/* ==========================================================================
   Trust Strip & Grids
   ========================================================================== */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: var(--surface);
  color: var(--brown);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.trust-item h4 {
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.trust-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--brown-muted);
  line-height: 1.5;
}

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Cards */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
}

.card-beige {
  background-color: var(--beige);
  border-color: transparent;
}

.card-sky {
  background-color: var(--sky-soft);
  border-color: transparent;
}

.card-citron {
  background-color: var(--citron);
  border-color: transparent;
}

.card-dark {
  background-color: var(--brown);
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.1);
}

.card-dark p,
.card-dark .muted {
  color: rgba(255, 255, 255, 0.82);
}

.muted {
  color: var(--brown-muted);
}

/* ==========================================================================
   3-Scenario Pricing Switcher & Cards
   ========================================================================== */

.pricing-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.segmented {
  display: inline-flex;
  padding: 5px;
  border-radius: var(--radius-pill);
  background-color: var(--beige);
  border: 1px solid var(--border);
  gap: 4px;
}

.segmented-btn {
  border: 0;
  background: transparent;
  color: var(--brown-muted);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.segmented-btn[aria-pressed="true"] {
  background-color: var(--brown);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.plan-card.is-featured {
  background-color: var(--brown);
  color: var(--surface);
  border-color: var(--brown);
  box-shadow: var(--shadow-lg);
}

.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.plan-subtitle {
  font-size: 0.92rem;
  color: var(--brown-muted);
  margin-bottom: 20px;
}

.plan-card.is-featured .plan-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.plan-price-wrap {
  padding-block: 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.plan-card.is-featured .plan-price-wrap {
  border-color: rgba(255, 255, 255, 0.16);
}

.plan-from {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown-muted);
  margin-bottom: 4px;
}

.plan-card.is-featured .plan-from {
  color: var(--citron);
}

.plan-price {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.plan-unit {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
}

.plan-alt-price {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--brown-muted);
}

.plan-card.is-featured .plan-alt-price {
  color: rgba(255, 255, 255, 0.75);
}

.capacity-toggle {
  display: inline-flex;
  gap: 6px;
  margin-top: 14px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
}

.cap-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.cap-btn[aria-pressed="true"] {
  background: var(--citron);
  color: var(--brown);
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.48;
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--citron);
  color: var(--brown);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.74rem;
  font-weight: 800;
}

.plan-footnote {
  margin-top: 14px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--brown-muted);
}

.plan-card.is-featured .plan-footnote {
  color: rgba(255, 255, 255, 0.75);
}

.disclosure-banner {
  margin-top: 24px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background-color: var(--beige);
  border: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.9rem;
}

/* ==========================================================================
   Hardware Studio Showcase & Interactive Battery Stack Visualizer
   ========================================================================== */

.hardware-showcase {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hardware-stage {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  background: linear-gradient(180deg, #210B10 0%, #1B080C 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Strictly preserve uncropped device render: side cooling grille + dual recessed breakers */
.hardware-stage img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.hardware-stage-light {
  background: linear-gradient(180deg, #D8CFBE 0%, #E6DED1 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.hardware-caption {
  width: 100%;
  margin: 0;
  padding: 12px 20px 15px;
  background: rgba(20, 6, 9, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.84);
}

.spec-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-block: 26px;
}

.spec-mini-box {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.spec-mini-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--citron);
  margin-bottom: 4px;
}

.spec-mini-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

/* Interactive Stack Visualizer on technology.html */
.stack-visualizer {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}

.stack-diagram-stage {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.stack-chassis {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.stack-inverter {
  width: 100%;
  height: 82px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1EFEA 100%);
  border: 1.5px solid rgba(67, 26, 34, 0.25);
  border-radius: 10px 10px 4px 4px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.stack-inverter::before {
  /* Represents left-side cooling grille cue */
  content: "";
  position: absolute;
  left: -8px;
  top: 12px;
  width: 6px;
  height: 54px;
  border-radius: 2px;
  background: repeating-linear-gradient(180deg, #431A22 0 2px, #DED6CA 2px 5px);
}

.stack-visor {
  height: 22px;
  border-radius: 4px;
  background: #1B1B1D;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack-screen {
  width: 24px;
  height: 12px;
  border-radius: 2px;
  background: #4A5568;
}

.stack-inv-brand {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.08em;
  color: var(--brown);
}

.stack-modules {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stack-module {
  width: 100%;
  height: 76px;
  background: linear-gradient(180deg, #FFFFFF 0%, #ECEAE4 100%);
  border: 1.5px solid rgba(67, 26, 34, 0.22);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  animation: stackIn 0.24s var(--ease);
}

.stack-module::before {
  /* Represents left-side recessed breaker housing */
  content: "";
  position: absolute;
  left: -8px;
  top: 16px;
  width: 8px;
  height: 36px;
  border-radius: 2px 0 0 2px;
  background: #5B5754;
  border: 1px solid rgba(67, 26, 34, 0.35);
}

.stack-led {
  width: 3px;
  height: 24px;
  border-radius: 2px;
  background: #2563EB;
}

.stack-module-tag {
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brown-muted);
}

.stack-feet {
  width: 88%;
  display: flex;
  justify-content: space-between;
  padding-inline: 10px;
}

.stack-foot {
  width: 16px;
  height: 10px;
  border-radius: 0 0 4px 4px;
  background: #7A746E;
}

@keyframes stackIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.stack-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-block: 20px;
}

.stack-stat {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.stack-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--brown-muted);
  margin-bottom: 3px;
}

.stack-stat-val {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--brown);
}

/* ==========================================================================
   Process Steps, Matcher, Comparison Table & FAQ
   ========================================================================== */

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: var(--citron);
  color: var(--brown);
  font-weight: 700;
  font-size: 0.9rem;
}

.photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.photo-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--beige);
}

.photo-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card-body {
  padding: 24px;
}

/* Matcher Widget */
.matcher-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}

.matcher-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
}

.matcher-q {
  margin-bottom: 20px;
}

.matcher-q-label {
  display: block;
  font-weight: 700;
  font-size: 0.94rem;
  margin-bottom: 10px;
}

.choice-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill {
  border: 1.5px solid var(--border-strong);
  background: var(--paper);
  color: var(--brown);
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.choice-pill[aria-pressed="true"] {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--surface);
}

.matcher-result {
  background: var(--citron);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

/* Comparison Table & Spec Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.grid-2 .data-table {
  min-width: 0;
}

.data-table th,
.data-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.94rem;
}

.data-table thead th {
  background: var(--beige);
  font-weight: 700;
  color: var(--brown);
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table .col-highlight {
  background: rgba(216, 234, 78, 0.22);
}

/* FAQ Search & Accordion */
.faq-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.faq-search {
  min-width: 260px;
  flex: 1;
  max-width: 360px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--brown);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  text-align: left;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--brown);
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  background: var(--citron);
  transform: rotate(45deg);
}

.faq-panel {
  padding: 0 24px 20px;
  color: var(--brown-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-panel[hidden] {
  display: none;
}

/* ==========================================================================
   Quote / Free Assessment Form
   ========================================================================== */

.quote-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}

.form-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brown-muted);
  margin: 22px 0 12px;
}

.form-section-title:first-child {
  margin-top: 0;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.radio-card {
  position: relative;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.radio-card-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: all 0.16s var(--ease);
}

.radio-card input:checked + .radio-card-box {
  background: var(--citron);
  border-color: var(--brown);
  box-shadow: var(--shadow-sm);
}

.radio-card input:focus-visible + .radio-card-box {
  outline: 3px solid var(--brown);
  outline-offset: 2px;
}

.radio-card-title {
  font-weight: 700;
  font-size: 0.94rem;
}

.radio-card-sub {
  font-size: 0.8rem;
  color: var(--brown-muted);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brown);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--brown);
  transition: border-color 0.16s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brown);
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 234, 78, 0.45);
}

.field-error {
  font-size: 0.8rem;
  font-weight: 600;
  color: #B91C1C;
}

.upload-zone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.upload-zone:hover,
.upload-zone.is-dragover {
  background: var(--citron-soft);
  border-color: var(--brown);
}

.upload-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--beige);
  font-size: 0.86rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.checkbox-row input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--brown);
  flex-shrink: 0;
}

.confirmation-box {
  background: var(--paper);
  border: 2px solid var(--brown);
  border-radius: var(--radius-md);
  padding: 28px;
}

.summary-kv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-block: 18px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

/* ==========================================================================
   Bottom CTA & Footer
   ========================================================================== */

.cta-band {
  position: relative;
  background-color: var(--citron);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 58px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(67, 26, 34, 0.12);
}

.cta-band-mark {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 240px;
  height: 240px;
  opacity: 0.08;
  pointer-events: none;
}

.site-footer {
  background-color: var(--brown);
  color: rgba(255, 255, 255, 0.86);
  padding-top: 64px;
  padding-bottom: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.74);
  max-width: 34ch;
}

.footer-col h4 {
  color: var(--citron);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--citron);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal-links {
  display: flex;
  gap: 18px;
}

.footer-legal-links a:hover {
  color: var(--surface);
}

.prototype-note {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--sky-soft);
  color: var(--brown);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .nav-desktop,
  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-split,
  .page-hero-grid,
  .hardware-showcase,
  .stack-visualizer,
  .matcher-grid,
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .hero-split-content {
    justify-content: flex-start;
    padding: 44px 24px;
  }

  .hero-split-media {
    min-height: 320px;
    aspect-ratio: 16 / 9;
  }

  .trust-grid,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
  }

  .header-actions .btn {
    display: none;
  }

  .trust-grid,
  .grid-2,
  .grid-4,
  .spec-mini-grid,
  .radio-grid,
  .form-row-2,
  .summary-kv,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .segmented {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .segmented-btn {
    flex: 1 1 auto;
    padding: 9px 10px;
    font-size: 0.8rem;
    text-align: center;
  }

  .btn,
  .choice-pill {
    white-space: normal;
    text-align: center;
  }

  .hardware-stage {
    max-width: 300px;
  }
}
