/* ==========================================================================
   AKSHAYA ENTERPRISES — Solar Energy Company, Davangere, Karnataka
   Design system + layout. Zero build step, no CSS framework.
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
/* Any author rule that sets `display` (grid, flex, block) outranks the UA's
   [hidden]{display:none} at equal specificity, silently un-hiding the element.
   This keeps the hidden attribute authoritative everywhere. */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sun-3); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- 2. Tokens ---------- */
:root {
  color-scheme: light;

  --bg:            #F1ECE4;
  --bg-2:          #E7E0D5;
  --surface:       rgba(255, 255, 255, 0.74);
  --surface-2:     rgba(255, 255, 255, 0.55);
  --surface-solid: #FFFFFF;
  --sunk:          rgba(23, 20, 15, 0.055);

  --ink:    #17140F;
  --ink-2:  #57514A;
  --ink-3:  #8C857B;
  --line:   rgba(23, 20, 15, 0.10);
  --line-2: rgba(23, 20, 15, 0.055);

  /* Brand — sunlight */
  --sun-1: #FFD25A;
  --sun-2: #FFA51F;
  --sun-3: #FF7A18;
  --sun-4: #EF4E14;
  --grad-sun: linear-gradient(135deg, #FFD25A 0%, #FFA51F 42%, #FF7A18 78%, #EF4E14 100%);
  --grad-sun-soft: linear-gradient(135deg, #FFEAC0 0%, #FFC97A 55%, #FFAB70 100%);

  /* Support hues */
  --sky:  #2F7DF6;
  --leaf: #1FA36B;
  --plum: #7A5AF8;
  --rose: #E1443B;

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 38px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(23,20,15,.05), 0 4px 12px -4px rgba(23,20,15,.08);
  --shadow-2: 0 1px 2px rgba(23,20,15,.04), 0 10px 26px -10px rgba(23,20,15,.14), 0 36px 68px -40px rgba(23,20,15,.22);
  --shadow-glow: 0 12px 34px -10px rgba(255,122,24,.48);

  --container: 1240px;
  --gutter: clamp(1.15rem, 4vw, 2.75rem);
  /* Applied as padding on BOTH sides, so adjacent sections stack two of these —
     the perceived gap is double this value. Kept deliberately modest for that reason. */
  --section-y: clamp(2rem, 3.6vw, 3.5rem);
  --nav-h: 76px;

  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --expo: cubic-bezier(.16,1,.3,1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:            #0C0A08;
  --bg-2:          #15110D;
  --surface:       rgba(255, 255, 255, 0.055);
  --surface-2:     rgba(255, 255, 255, 0.035);
  --surface-solid: #17130F;
  --sunk:          rgba(255, 255, 255, 0.05);

  --ink:    #F6F1E8;
  --ink-2:  #B5ACA0;
  --ink-3:  #857D71;
  --line:   rgba(255, 245, 230, 0.13);
  --line-2: rgba(255, 245, 230, 0.07);

  --leaf: #34C98A;
  --sky:  #5A9BFF;

  --shadow-1: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px -8px rgba(0,0,0,.6);
  --shadow-2: 0 2px 6px rgba(0,0,0,.45), 0 18px 44px -18px rgba(0,0,0,.75);
}

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

/* Warm ambient light behind everything */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 78% -8%, rgba(255,165,31,.22), transparent 62%),
    radial-gradient(46rem 34rem at 6% 14%, rgba(255,210,90,.15), transparent 60%),
    radial-gradient(52rem 40rem at 50% 106%, rgba(255,122,24,.11), transparent 62%);
  transition: opacity .5s var(--ease);
}
:root[data-theme="dark"] body::before { opacity: .5; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.35rem + 5.2vw, 5rem); }
h2 { font-size: clamp(1.95rem, 1.15rem + 3.2vw, 3.4rem); }
h3 { font-size: clamp(1.14rem, 1rem + 0.7vw, 1.5rem); letter-spacing: -0.02em; }
h4 { font-size: 1.02rem; letter-spacing: -0.015em; }
p  { text-wrap: pretty; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1440px; }
.section { padding-block: var(--section-y); position: relative; }
.lede { font-size: clamp(1.02rem, 0.95rem + 0.45vw, 1.26rem); color: var(--ink-2); max-width: 62ch; line-height: 1.58; }
.muted { color: var(--ink-3); }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.sun-text {
  background: var(--grad-sun); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.skip-link {
  position: absolute; left: 1rem; top: -120px; z-index: 999;
  background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.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;
}

/* ---------- 4. Shared components ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .73rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: .46rem .95rem; border-radius: var(--r-pill);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  width: fit-content;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--grad-sun); box-shadow: 0 0 0 3px rgba(255,165,31,.22);
}

.section-head { display: grid; gap: 1.05rem; margin-bottom: clamp(1.75rem, 3.2vw, 2.75rem); max-width: 76ch; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.center .lede { margin-inline: auto; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  position: relative;
}
.card > * { position: relative; z-index: 1; }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.5), rgba(255,255,255,0) 44%);
}
:root[data-theme="dark"] .card::after {
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,0) 46%);
}

.btn {
  --btn-bg: var(--ink); --btn-fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 650; font-size: .93rem; letter-spacing: -.01em;
  padding: .92rem 1.55rem; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent;
  transition: transform .32s var(--expo), box-shadow .32s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn svg { flex: none; }

.btn--sun { --btn-fg: #2B1400; background: var(--grad-sun); background-size: 200% 200%; box-shadow: var(--shadow-glow); }
.btn--sun:hover { box-shadow: 0 18px 44px -12px rgba(255,122,24,.62); background-position: 100% 50%; }

.btn--ghost {
  background: var(--surface); color: var(--ink); border-color: var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn--ghost:hover { border-color: var(--ink-3); box-shadow: var(--shadow-1); }
.btn--sm { padding: .66rem 1.1rem; font-size: .86rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Reveal on scroll — without JS, content simply shows. */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--expo), transform .85s var(--expo); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
.reveal[data-d="5"] { transition-delay: .35s; }
.reveal[data-d="6"] { transition-delay: .42s; }
.no-js .reveal, .reduced .reveal { opacity: 1 !important; transform: none !important; transition: none; }

/* ---------- 5. Scroll progress + navigation ---------- */
.progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%; z-index: 120;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--grad-sun);
}

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 14px var(--gutter);
  transition: padding .4s var(--ease);
}
.nav.scrolled { padding-block: 8px; }
.nav-inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
  padding: .5rem .5rem .5rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background-color .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease), backdrop-filter .45s var(--ease);
}
.nav.scrolled .nav-inner {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
}

.brand { display: flex; align-items: center; gap: .68rem; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-mark .ray { transform-origin: 20px 20px; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand-text { display: grid; line-height: 1.08; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: .96rem; letter-spacing: -.02em; }
.brand-sub { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a {
  padding: .55rem .85rem; border-radius: var(--r-pill); font-size: .885rem; font-weight: 520;
  color: var(--ink-2); transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--sunk); }
.nav-links a.active { color: var(--ink); font-weight: 620; }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink-2);
  transition: color .25s var(--ease), background-color .25s var(--ease), transform .3s var(--expo);
}
.icon-btn:hover { color: var(--ink); transform: translateY(-1px); background: var(--sunk); }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }

.nav-toggle { display: none; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 110;
  background: var(--bg);
  padding: calc(var(--nav-h) + 1.5rem) var(--gutter) 2rem;
  display: grid; align-content: start; gap: .25rem;
  transform: translateY(-101%); transition: transform .5s var(--expo);
  overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer a {
  font-family: var(--font-display); font-weight: 650; font-size: 1.55rem; letter-spacing: -.03em;
  padding: .55rem 0; border-bottom: 1px solid var(--line-2);
}
.drawer .drawer-cta { margin-top: 1.5rem; display: grid; gap: .7rem; }
.drawer .drawer-cta a { font-size: .93rem; border: 0; padding: .92rem 1.55rem; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-phone { display: none; }
}
/* Login stays in the bar longer than the phone number — it has no equivalent
   elsewhere on the page. Below this it lives in the drawer. */
@media (max-width: 620px) { .nav-login { display: none; } }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: center;
  padding-top: calc(var(--nav-h) + clamp(1rem, 3vw, 2.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
}
/* Stacking inside .hero (which isolates): canvas -2, scrim -1, content above.
   The scrim MUST outrank the canvas — ::before is a first child, so at equal
   z-index the canvas would paint over it and the scrim would do nothing. */
.hero-canvas {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero-canvas.ready { opacity: 1; }
/* Fallback sky when WebGL is unavailable */
.hero-fallback {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(38rem 26rem at 76% 26%, rgba(255,205,90,.85), rgba(255,150,40,.28) 42%, transparent 68%),
    linear-gradient(180deg, rgba(255,236,200,.5), transparent 58%);
}
/* Legibility scrim over the 3D scene. Holds the copy column near-solid, then
   releases so the array stays visible on the right. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(100deg,
      var(--bg) 0 20%,
      rgba(241,236,228,.94) 34%,
      rgba(241,236,228,.72) 48%,
      rgba(241,236,228,.30) 64%,
      rgba(241,236,228,.08) 78%,
      transparent 88%),
    linear-gradient(0deg, rgba(241,236,228,.55), transparent 26%);
}
:root[data-theme="dark"] .hero::before {
  background:
    linear-gradient(100deg,
      var(--bg) 0 20%,
      rgba(12,10,8,.94) 34%,
      rgba(12,10,8,.76) 48%,
      rgba(12,10,8,.36) 64%,
      rgba(12,10,8,.10) 78%,
      transparent 88%),
    linear-gradient(0deg, rgba(12,10,8,.6), transparent 26%);
}
@media (max-width: 999px) {
  .hero::before {
    background: linear-gradient(180deg, var(--bg) 4%, rgba(241,236,228,.9) 30%, rgba(241,236,228,.62) 54%, rgba(241,236,228,.2) 78%, transparent);
  }
  :root[data-theme="dark"] .hero::before {
    background: linear-gradient(180deg, var(--bg) 4%, rgba(12,10,8,.92) 30%, rgba(12,10,8,.68) 54%, rgba(12,10,8,.24) 78%, transparent);
  }
}

.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: center; }
/* Weighted toward the copy: "Turn your rooftop into" is a long line to hold on
   one row, and the aside only needs to clear the 360px live card. */
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); } }

/* 40ch here would resolve against the BODY font-size, not the headline's —
   about 380px, far too narrow for a 70px display face. Sized in rem instead. */
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; max-width: min(100%, 34rem); }
.hero h1 { margin-block: .2rem; }
.hero .lede { max-width: 46ch; }

/* Tagline belongs to the headline, so it sits tighter to it than the grid gap
   allows — the negative margin closes that gap without special-casing the grid. */
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.12rem, .96rem + .78vw, 1.6rem);
  letter-spacing: -.025em;
  line-height: 1.28;
  color: var(--ink);
  margin-top: -.65rem;
  text-wrap: balance;
  /* Indented off the headline, measured in ch so the stagger stays proportional
     to the type at every size. 14ch is ~3.5 tab stops; the line needs ~308px of
     the 718px column, so it cannot wrap before roughly 6 tabs. */
  margin-left: 6ch;
}
@media (min-width: 1000px) { .hero-tagline { margin-left: 14ch; } }

@media (min-width: 1000px) {
  .hero-copy { max-width: 45rem; }
  /* Capped at 4.25rem: the long first line measures 9.82px wide per 1px of
     font size, so 68px needs 668px inside a ~718px column — enough slack that
     a slightly wider font fallback still can't force a third line. */
  .hero-title { font-size: clamp(2.9rem, 1.1rem + 3.3vw, 4.25rem); }
  .hero-title .l { display: block; }
  /* Let the lede use the widened column instead of wrapping to five short lines. */
  .hero .lede { max-width: 34rem; }
  /* Card centres against the copy column (inherits .hero-grid align-items). */
}

/* Short desktop viewports (laptops with deep browser chrome): tighten so the
   CTAs and trust chips both stay above the fold. */
@media (min-width: 1000px) and (max-height: 780px) {
  .hero { padding-top: calc(var(--nav-h) + .5rem); padding-bottom: 1.75rem; }
  .hero-title { font-size: clamp(2.3rem, .95rem + 2.75vw, 3.8rem); }
  .hero-tagline { font-size: clamp(1.05rem, .92rem + .6vw, 1.3rem); margin-top: -.8rem; }
  .hero-copy { gap: .85rem; }
  .hero .lede { font-size: 1.02rem; }
  .hero-trust { margin-top: 0; }
  .scroll-cue { display: none; }
}

.hero-trust { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .3rem; }
/* Anything floating on the 3D scene needs a denser surface than a card sitting
   on the flat page ground — glass at page opacity disappears over the array. */
:root {
  --surface-on-scene: rgba(255, 255, 255, 0.9);
  --line-on-scene: rgba(23, 20, 15, 0.12);
  /* Live-generation card sits at 80% — deliberately glassier than the chips so
     the array reads through it. Kept as its own token so tuning the card's
     transparency can't quietly thin the trust chips too. */
  --surface-hero-card: rgba(255, 255, 255, 0.8);
}
:root[data-theme="dark"] {
  --surface-on-scene: rgba(26, 21, 16, 0.86);
  --line-on-scene: rgba(255, 245, 230, 0.18);
  --surface-hero-card: rgba(26, 21, 16, 0.8);
}

.trust-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 560; color: var(--ink-2);
  background: var(--surface-on-scene); border: 1px solid var(--line-on-scene);
  padding: .42rem .8rem; border-radius: var(--r-pill);
  backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: var(--shadow-1);
}
.trust-chip strong { color: var(--ink); font-weight: 700; }
.stars { display: inline-flex; gap: 1px; color: var(--sun-2); }

/* Floating live-readout card, echoing the reference dashboard */
.hero-live {
  display: grid; gap: .9rem; padding: 1.15rem; border-radius: var(--r-lg);
  background: var(--surface-hero-card);
  border-color: var(--line-on-scene);
  box-shadow: var(--shadow-2);
  /* Light blur only. A heavy blur flattens the scene into a wash and makes an
     80%-opaque card read as solid — this keeps the array recognisable through it. */
  backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4);
}
/* The faintest label on the card; at 80% opacity --ink-3 no longer holds up
   against a bright scene, so this one steps up a level. */
.hero-live .live-title { color: var(--ink-2); }
/* Its inner wells need contrast against that denser surface, not the page. */
.hero-live .live-stat { background: var(--sunk); }
:root[data-theme="dark"] .hero-live .live-stat { background: rgba(255, 245, 230, 0.07); }
@media (min-width: 1000px) { .hero-live { justify-self: end; width: min(100%, 360px); } }
.live-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.live-title { font-size: .78rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.live-dot {
  display: inline-flex; align-items: center; gap: .38rem;
  font-size: .7rem; font-weight: 650; color: var(--leaf); text-transform: uppercase; letter-spacing: .08em;
}
.live-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,163,107,.5); } 60% { box-shadow: 0 0 0 7px rgba(31,163,107,0); } }

.live-figure { display: flex; align-items: baseline; gap: .4rem; }
.live-figure b { font-family: var(--font-display); font-size: 2.9rem; font-weight: 750; letter-spacing: -.045em; line-height: 1; }
.live-figure span { font-size: .95rem; color: var(--ink-3); font-weight: 600; }

.spark { width: 100%; height: 54px; overflow: visible; }
.spark path.l { fill: none; stroke: url(#sparkGrad); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark path.a { fill: url(#sparkFill); stroke: none; }

.live-foot { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.live-stat { background: var(--sunk); border-radius: var(--r-sm); padding: .6rem .75rem; }
.live-stat > span { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 620; }
.live-stat b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
.live-note { font-size: .74rem; line-height: 1.45; color: var(--ink-2); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: grid; justify-items: center; gap: .5rem; z-index: 2;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 620;
}
.scroll-cue i {
  width: 1px; height: 42px; background: linear-gradient(var(--ink-3), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 999px) { .scroll-cue { display: none; } }

/* ---------- 7. Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.05rem;
  overflow: hidden;
  background: var(--surface-2);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-track ul { display: flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem; }
.marquee-track li {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-display); font-weight: 620; font-size: clamp(.9rem, .82rem + .3vw, 1.06rem);
  letter-spacing: -.015em; color: var(--ink-2); white-space: nowrap;
}
.marquee-track li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-sun); flex: none;
}
.reduced .marquee-track { animation: none; }

/* ---------- 8. Bento dashboard ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(.7rem, 1.2vw, 1rem);
}
.bento .card { padding: 1.15rem 1.25rem; display: grid; align-content: start; gap: .85rem; }
.b-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.b-title { font-size: .85rem; font-weight: 650; letter-spacing: -.01em; }
.b-sub { font-size: .74rem; color: var(--ink-3); }
.b-dots { color: var(--ink-3); flex: none; line-height: 1; letter-spacing: .1em; font-weight: 700; }

/* card spans */
.c-journey   { grid-column: span 4; }
.c-arc       { grid-column: span 4; }
.c-hero      { grid-column: span 4; }
.c-mode      { grid-column: span 3; }
.c-alerts    { grid-column: span 3; }
.c-prod      { grid-column: span 3; }
.c-batt      { grid-column: span 3; }
.c-forecast  { grid-column: span 5; }
.c-weather   { grid-column: span 7; }
@media (max-width: 1080px) {
  .c-journey, .c-arc, .c-hero { grid-column: span 6; }
  .c-mode, .c-alerts, .c-prod, .c-batt { grid-column: span 6; }
  .c-forecast, .c-weather { grid-column: span 12; }
}
@media (max-width: 700px) {
  .bento > .card { grid-column: span 12 !important; }
}

/* Journey checklist */
.j-bar { height: 6px; border-radius: var(--r-pill); background: var(--sunk); overflow: hidden; }
.j-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-sun); transition: width 1.6s var(--expo); }
.j-pct { font-size: .72rem; font-weight: 700; color: var(--sun-4); }
.j-list { display: grid; gap: .5rem; }
.j-list li { display: flex; align-items: center; gap: .6rem; font-size: .83rem; color: var(--ink-2); }
.j-list li b { font-weight: 550; }
.j-tick { width: 17px; height: 17px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1.5px solid var(--line); color: transparent; }
.j-list li.done { color: var(--ink-3); }
.j-list li.done .j-tick { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.j-list li.done b { text-decoration: line-through; text-decoration-color: var(--line); }
.j-list li.now .j-tick { border-color: var(--sun-3); box-shadow: 0 0 0 3px rgba(255,122,24,.16); }

/* Arc gauge */
.arc-wrap { position: relative; display: grid; place-items: center; padding-block: .2rem; }
.arc { width: 100%; max-width: 260px; height: auto; overflow: visible; }
.arc .track { fill: none; stroke: var(--sunk); stroke-width: 13; stroke-linecap: round; }
.arc .fill { fill: none; stroke: url(#arcGrad); stroke-width: 13; stroke-linecap: round; transition: stroke-dashoffset 1.8s var(--expo); }
.arc .tickTxt { font-size: 9px; fill: var(--ink-3); font-weight: 600; }
.arc-centre { position: absolute; bottom: 9%; display: grid; justify-items: center; }
.arc-centre b { font-family: var(--font-display); font-size: 2rem; font-weight: 750; letter-spacing: -.04em; line-height: 1; }
/* Direct child only — the value itself lives in a <span> inside the <b>. */
.arc-centre > span { font-size: .7rem; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; font-weight: 620; }
.arc-times { display: flex; justify-content: space-between; font-size: .74rem; color: var(--ink-2); }
.arc-times b { font-weight: 650; color: var(--ink); }

/* Photo / illustration card */
.c-hero { padding: 0 !important; overflow: hidden; min-height: 250px; }
.roof-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-hero .roof-cap {
  position: absolute; left: .95rem; right: .95rem; bottom: .95rem; z-index: 2;
  background: rgba(20,16,12,.55); color: #fff; border-radius: var(--r-md);
  padding: .7rem .9rem; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.16);
}
.roof-cap b { display: block; font-family: var(--font-display); font-size: .92rem; font-weight: 700; }
.roof-cap span { font-size: .74rem; opacity: .82; }

/* Mode pills */
.modes { display: flex; gap: .35rem; background: var(--sunk); padding: .3rem; border-radius: var(--r-pill); }
.mode {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  font-size: .77rem; font-weight: 620; color: var(--ink-3); padding: .5rem .4rem; border-radius: var(--r-pill);
  transition: color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.mode[aria-pressed="true"] { color: #2B1400; background: var(--grad-sun); box-shadow: var(--shadow-1); }
.mode-note { font-size: .76rem; color: var(--ink-3); min-height: 2.6em; }

/* Alerts */
.alerts { display: grid; gap: .55rem; }
.alert { display: flex; gap: .6rem; align-items: flex-start; }
.alert-ic { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; }
.alert b { display: block; font-size: .8rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.alert span { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sev-crit .alert-ic { background: rgba(225,68,59,.14); color: var(--rose); }
.sev-crit span { color: var(--rose); }
.sev-warn .alert-ic { background: rgba(255,165,31,.16); color: var(--sun-4); }
.sev-warn span { color: var(--sun-4); }
.sev-ok .alert-ic { background: rgba(31,163,107,.14); color: var(--leaf); }
.sev-ok span { color: var(--leaf); }

/* Production meter */
.big-figure { display: flex; align-items: baseline; gap: .35rem; }
.big-figure b { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.5rem); font-weight: 750; letter-spacing: -.045em; line-height: 1; }
.big-figure span { font-size: .85rem; color: var(--ink-3); font-weight: 620; }
.meter { height: 8px; border-radius: var(--r-pill); background: var(--sunk); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad-sun); transition: width 1.4s var(--expo); }
.meter-scale { display: flex; justify-content: space-between; font-size: .68rem; color: var(--ink-3); font-weight: 600; }

/* Battery */
.batt-row { display: flex; align-items: center; gap: .7rem; }
.batt {
  flex: 1; height: 34px; border-radius: var(--r-pill); background: var(--sunk);
  position: relative; overflow: hidden; display: flex; align-items: center; padding: 0 .55rem;
}
.batt i {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit;
  background: var(--grad-sun); transition: width 1.6s var(--expo);
}
.batt b { position: relative; font-size: .78rem; font-weight: 700; color: #2B1400; }
.batt-meta { display: flex; align-items: center; gap: .45rem; font-size: .76rem; color: var(--ink-2); }

/* Forecast */
.fc-figure { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
.fc-figure b { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 1.8vw, 2.7rem); font-weight: 750; letter-spacing: -.045em; line-height: 1; }
.pill-delta {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .74rem; font-weight: 700; padding: .2rem .55rem; border-radius: var(--r-pill);
  background: rgba(31,163,107,.14); color: var(--leaf);
}
.seg { display: flex; gap: 4px; height: 26px; }
.seg > div { display: flex; gap: 3px; }
.seg em { display: block; width: 7px; border-radius: 3px; background: currentColor; opacity: .9; }
.seg-legend { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .72rem; color: var(--ink-2); font-weight: 550; }
.seg-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: .35rem; vertical-align: -1px; }

/* Weather impact */
.wx { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(.5rem, 1.4vw, 1rem); align-items: end; }
.wx-col { display: grid; gap: .55rem; justify-items: center; }
.wx-bar {
  width: 100%; height: 128px; border-radius: var(--r-md); background: var(--sunk);
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
}
.wx-bar i { display: block; width: 100%; height: 0; border-radius: inherit; background: var(--grad-sun); transition: height 1.5s var(--expo); }
.wx-bar b {
  position: absolute; inset: auto 0 .5rem 0; text-align: center;
  font-size: .74rem; font-weight: 700; color: #2B1400;
}
.wx-col span { font-size: .72rem; color: var(--ink-2); font-weight: 600; text-align: center; }
.wx-key { display: flex; gap: 1.1rem; font-size: .72rem; color: var(--ink-3); font-weight: 600; }

/* ---------- 9. Services ---------- */
.svc-grid { display: grid; gap: clamp(.8rem, 1.6vw, 1.15rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.svc {
  padding: 1.6rem; display: grid; gap: .8rem; align-content: start;
  transform-style: preserve-3d;
  transition: transform .5s var(--expo), box-shadow .5s var(--ease), border-color .4s var(--ease);
  will-change: transform;
}
.svc:hover { box-shadow: var(--shadow-2); border-color: rgba(255,165,31,.42); }
.svc-ic {
  width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--grad-sun-soft); color: #8A3B00; border: 1px solid rgba(255,165,31,.3);
  transition: transform .5s var(--expo);
}
:root[data-theme="dark"] .svc-ic { color: #FFD9A8; background: linear-gradient(135deg, rgba(255,210,90,.2), rgba(255,122,24,.16)); }
.svc:hover .svc-ic { transform: translateZ(28px) scale(1.06) rotate(-4deg); }
.svc h3 { transition: transform .5s var(--expo); }
.svc:hover h3 { transform: translateZ(18px); }
.svc p { font-size: .92rem; color: var(--ink-2); }
.svc-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .15rem; }
.svc-tags span {
  font-size: .71rem; font-weight: 600; color: var(--ink-3);
  border: 1px solid var(--line); padding: .22rem .55rem; border-radius: var(--r-pill);
}

/* ---------- 10. Calculator ---------- */
.calc { display: grid; gap: clamp(1rem, 2vw, 1.4rem); align-items: start; }
@media (min-width: 980px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); } }
.calc-panel { padding: clamp(1.3rem, 2.6vw, 2rem); display: grid; gap: 1.5rem; align-content: start; }

.field { display: grid; gap: .6rem; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.field label { font-size: .84rem; font-weight: 620; }
.field-val { font-family: var(--font-display); font-weight: 750; font-size: 1.12rem; letter-spacing: -.03em; color: var(--sun-4); }
.field-hint { font-size: .74rem; color: var(--ink-3); }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: grab;
}
input[type="range"]:active { cursor: grabbing; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--sun-2) 0 var(--p, 40%), var(--sunk) var(--p, 40%) 100%);
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: var(--r-pill); background: var(--sunk); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: var(--r-pill); background: var(--sun-2); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -8px; border-radius: 50%;
  background: var(--surface-solid); border: 2px solid var(--sun-3);
  box-shadow: 0 3px 10px rgba(23,20,15,.2);
  transition: transform .2s var(--expo);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface-solid); border: 2px solid var(--sun-3); box-shadow: 0 3px 10px rgba(23,20,15,.2);
}

.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  font-size: .82rem; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--surface-2);
  padding: .5rem .9rem; border-radius: var(--r-pill);
  transition: all .28s var(--ease);
}
.chip[aria-pressed="true"] { color: #2B1400; background: var(--grad-sun); border-color: transparent; box-shadow: var(--shadow-1); }

/* Results */
.result { padding: clamp(1.3rem, 2.6vw, 2rem); display: grid; gap: 1.15rem; align-content: start; }
.result-hero { display: grid; gap: .3rem; }
/* Direct children only — the values themselves are <span>s inside the <b>. */
.result-hero > span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }
.result-hero b { font-family: var(--font-display); font-size: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem); font-weight: 780; letter-spacing: -.05em; line-height: 1; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,132px), 1fr)); gap: .6rem; }
.res-cell { background: var(--sunk); border-radius: var(--r-md); padding: .85rem .9rem; display: grid; gap: .18rem; }
.res-cell > span { font-size: .69rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }
.res-cell b { font-family: var(--font-display); font-size: 1.28rem; font-weight: 730; letter-spacing: -.03em; line-height: 1.1; }
.res-cell small { font-size: .7rem; color: var(--ink-3); }

.payback { display: grid; gap: .5rem; }
.payback-bar { height: 10px; border-radius: var(--r-pill); background: var(--sunk); overflow: hidden; position: relative; }
.payback-bar i { display: block; height: 100%; background: var(--grad-sun); border-radius: inherit; transition: width .7s var(--expo); }
.payback-scale { display: flex; justify-content: space-between; font-size: .68rem; color: var(--ink-3); font-weight: 600; }

.disclaimer {
  font-size: .74rem; color: var(--ink-3); line-height: 1.5;
  border-top: 1px solid var(--line-2); padding-top: .85rem;
}

/* ---------- 11. Process ---------- */
.steps { display: grid; gap: 0; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 23px; top: 34px; bottom: 34px; width: 2px;
  background: var(--line);
}
.steps-fill {
  position: absolute; left: 23px; top: 34px; width: 2px; height: 0;
  background: var(--grad-sun); transition: height .25s linear; z-index: 1;
}
.step { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: clamp(1rem, 2.5vw, 1.8rem); padding-block: clamp(1.2rem, 2.6vw, 1.9rem); position: relative; z-index: 2; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 750; font-size: .95rem;
  background: var(--bg); color: var(--ink-3); border: 2px solid var(--line);
  transition: all .5s var(--expo);
}
.step.in .step-num { background: var(--grad-sun); color: #2B1400; border-color: transparent; box-shadow: var(--shadow-glow); }
.step-body { display: grid; gap: .45rem; padding-top: .35rem; }
.step-body p { color: var(--ink-2); font-size: .95rem; max-width: 60ch; }
.step-meta { font-size: .74rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--sun-4); }
@media (max-width: 620px) { .step { grid-template-columns: 40px minmax(0,1fr); } .step-num { width: 40px; height: 40px; font-size: .85rem; } .steps::before, .steps-fill { left: 19px; } }

/* ---------- 12. Stats ---------- */
.stat-grid { display: grid; gap: clamp(.8rem, 1.6vw, 1.1rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.stat { padding: 1.5rem; display: grid; gap: .3rem; }
.stat b { font-family: var(--font-display); font-size: clamp(2.2rem, 1.7rem + 2vw, 3.1rem); font-weight: 780; letter-spacing: -.05em; line-height: 1; }
.stat span { font-size: .86rem; color: var(--ink-2); font-weight: 550; }

/* ---------- 13. Testimonials ---------- */
.quote-grid { display: grid; gap: clamp(.8rem, 1.6vw, 1.1rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.quote { padding: 1.6rem; display: grid; gap: 1rem; align-content: start; }
.quote blockquote { font-family: var(--font-display); font-size: 1.06rem; font-weight: 550; letter-spacing: -.018em; line-height: 1.48; }
.quote-foot { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--ink-3); margin-top: auto; }
.g-mark { width: 22px; height: 22px; flex: none; }

.rating-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.6rem;
  padding: 1.1rem 1.5rem; border-radius: var(--r-pill); margin-bottom: clamp(1.4rem, 3vw, 2rem);
}
.rating-band .big { font-family: var(--font-display); font-size: 2.1rem; font-weight: 780; letter-spacing: -.04em; line-height: 1; }
.rating-band .sep { width: 1px; height: 30px; background: var(--line); }

/* ---------- 14. FAQ ---------- */
.faq { display: grid; gap: .6rem; max-width: 900px; margin-inline: auto; }
.faq details { padding: 0 1.3rem; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-weight: 620; font-size: 1.02rem; letter-spacing: -.018em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 1px solid var(--line); position: relative; transition: transform .4s var(--expo), background-color .3s var(--ease);
}
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
}
.faq summary i::before { width: 11px; height: 1.6px; }
.faq summary i::after { width: 1.6px; height: 11px; transition: transform .4s var(--expo); }
.faq details[open] summary i { background: var(--grad-sun); color: #2B1400; border-color: transparent; transform: rotate(90deg); }
.faq details[open] summary i::after { transform: scaleY(0); }
.faq-body { padding-bottom: 1.2rem; color: var(--ink-2); font-size: .95rem; max-width: 68ch; }

/* ---------- 15. Contact ---------- */
.contact-card { padding: clamp(1.5rem, 3.6vw, 3.2rem); display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); }
@media (min-width: 980px) { .contact-card { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); } }
.contact-info { display: grid; gap: 1.5rem; align-content: start; }
.info-list { display: grid; gap: 1.05rem; }
.info-row { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: .85rem; align-items: start; }
.info-ic {
  width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--sunk); color: var(--sun-4);
}
.info-row span { display: block; font-size: .71rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }
.info-row b { font-weight: 600; font-size: .95rem; letter-spacing: -.01em; }
.info-row a:hover { color: var(--sun-4); }

form.enquiry { display: grid; gap: .9rem; align-content: start; }
.f-row { display: grid; gap: .9rem; }
@media (min-width: 560px) { .f-row.two { grid-template-columns: 1fr 1fr; } }
.f-field { display: grid; gap: .38rem; }
.f-field label { font-size: .78rem; font-weight: 640; color: var(--ink-2); }
.f-field input, .f-field select, .f-field textarea {
  width: 100%; padding: .82rem 1rem; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
  font-size: .93rem;
}
.f-field textarea { resize: vertical; min-height: 96px; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus {
  outline: none; border-color: var(--sun-3); box-shadow: 0 0 0 4px rgba(255,122,24,.15);
}
.f-field input::placeholder, .f-field textarea::placeholder { color: var(--ink-3); }
.form-note { font-size: .76rem; color: var(--ink-3); }

/* ---------- 16. Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer h4 { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; font-weight: 700; }
.footer li { margin-bottom: .45rem; }
.footer a { color: var(--ink-2); font-size: .9rem; transition: color .25s var(--ease); }
.footer a:hover { color: var(--sun-4); }
.footer-bar {
  margin-top: clamp(2rem, 4vw, 3rem); padding-top: 1.4rem; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--ink-3);
}

/* ---------- 16b. Sign-in page (login.html) ---------- */
.auth-nav {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem var(--gutter);
  max-width: 1240px; margin-inline: auto;
}
.auth-nav .brand { margin-right: auto; }

.auth-main {
  display: grid; align-items: center;
  padding: clamp(1rem, 4vw, 3rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  min-height: calc(100svh - 90px);
}
.auth-grid {
  width: 100%; max-width: 1080px; margin-inline: auto;
  display: grid; gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
}
@media (min-width: 900px) { .auth-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); } }

.auth-card { padding: clamp(1.5rem, 3.5vw, 2.4rem); display: grid; gap: 1.1rem; align-content: start; }
.auth-head { display: grid; gap: .7rem; justify-items: start; }
.auth-head h1 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.5rem); }
.auth-role-note { font-size: .86rem; color: var(--ink-2); min-height: 2.4em; }

.auth-form { display: grid; gap: .9rem; }

.pw-wrap { position: relative; display: grid; }
.pw-wrap input { padding-right: 3rem; }
.pw-toggle {
  position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; color: var(--ink-3);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.pw-toggle:hover { color: var(--ink); background: var(--sunk); }
.pw-toggle[aria-pressed="true"] { color: var(--sun-4); }

.auth-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem; font-size: .84rem;
}
.auth-row a { color: var(--sun-4); font-weight: 600; }
.auth-row a:hover { text-decoration: underline; }
.check { display: inline-flex; align-items: center; gap: .48rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--sun-3); cursor: pointer; }

.auth-submit { width: 100%; margin-top: .2rem; }

.auth-status {
  font-size: .84rem; line-height: 1.5; color: var(--ink-2);
  background: var(--sunk); border-radius: var(--r-sm); padding: .7rem .85rem;
}
.auth-status.err { color: var(--rose); background: rgba(225, 68, 59, .1); }

.auth-notice {
  font-size: .78rem; line-height: 1.55; color: var(--ink-2);
  border: 1px dashed var(--line); border-radius: var(--r-sm);
  padding: .8rem .9rem; background: var(--surface-2);
}
.auth-notice strong { color: var(--ink); font-weight: 700; }

.auth-foot { font-size: .86rem; color: var(--ink-3); }
.auth-foot a { color: var(--sun-4); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

.auth-aside { display: none; }
@media (min-width: 900px) { .auth-aside { display: block; } }
.auth-aside-inner { display: grid; gap: 1.1rem; padding-left: clamp(0rem, 2vw, 1.5rem); }
.auth-aside h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem); }
.auth-aside .lede { font-size: .96rem; }
.auth-list { display: grid; gap: 1rem; margin-top: .3rem; }
.auth-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: .8rem; align-items: start; }
.auth-list b { display: block; font-family: var(--font-display); font-size: .95rem; font-weight: 700; letter-spacing: -.015em; }
.auth-list span { font-size: .86rem; color: var(--ink-2); }
.auth-ic {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad-sun-soft); color: #8A3B00; border: 1px solid rgba(255,165,31,.3);
}
:root[data-theme="dark"] .auth-ic {
  color: #FFD9A8; background: linear-gradient(135deg, rgba(255,210,90,.2), rgba(255,122,24,.16));
}

/* ---------- 16d. Roof preview (visualiser.html) ---------- */
.viz-main { padding-block: clamp(1rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem); }
.viz-main .section-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }

.viz-drop {
  display: grid; justify-items: center; gap: .85rem; text-align: center;
  padding: clamp(2.2rem, 6vw, 4rem) clamp(1.2rem, 4vw, 2.5rem);
  border: 2px dashed var(--line); color: var(--ink-3);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.viz-drop.over { border-color: var(--sun-3); background: rgba(255,165,31,.07); }
.viz-drop h2 { color: var(--ink); font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); }
.viz-drop .btn-row { margin-top: .4rem; }
.viz-hint { font-size: .78rem; color: var(--ink-3); max-width: 46ch; }
/* Camera capture only makes sense where there is one. */
@media (hover: hover) and (pointer: fine) { .viz-cam-btn { display: none; } }

.viz-editor { display: grid; gap: clamp(.9rem, 2vw, 1.3rem); align-items: start; }
@media (min-width: 1000px) { .viz-editor { grid-template-columns: minmax(0, 1fr) 320px; } }

.viz-stage {
  padding: clamp(.7rem, 1.6vw, 1rem);
  display: grid; justify-items: center; gap: .6rem;
  overflow: hidden;
}
.viz-stage canvas {
  border-radius: var(--r-md);
  touch-action: none;                 /* we handle dragging ourselves */
  cursor: grab; max-width: 100%;
  box-shadow: var(--shadow-1);
}
.viz-stage canvas.over-handle { cursor: move; }
.viz-stage canvas.grabbing { cursor: grabbing; }
.viz-stage-hint { font-size: .76rem; color: var(--ink-3); text-align: center; }

.viz-panel { padding: 1.2rem; display: grid; gap: 1.05rem; align-content: start; }
.viz-block { display: grid; gap: .45rem; }
.viz-label { font-size: .84rem; font-weight: 620; }

.viz-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.viz-actions { margin-top: .1rem; }
.viz-actions .btn:first-child { width: 100%; }
.viz-send { width: 100%; }

.viz-privacy {
  margin-top: clamp(1.4rem, 3vw, 2rem);
  font-size: .82rem; line-height: 1.6; color: var(--ink-2);
  max-width: 78ch;
  border-left: 3px solid var(--sun-3); padding-left: 1rem;
}
.viz-privacy strong { color: var(--ink); font-weight: 700; }

/* ---------- 16c. Floating contact + assistant ---------- */
.fab-stack {
  position: fixed; right: clamp(.9rem, 2.5vw, 1.6rem); bottom: clamp(.9rem, 2.5vw, 1.6rem);
  z-index: 150; display: grid; gap: .6rem; justify-items: end;
}
.fab {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  display: grid; place-items: center; position: relative;
  box-shadow: 0 6px 20px -4px rgba(23,20,15,.32), 0 2px 6px rgba(23,20,15,.16);
  transition: transform .3s var(--expo), box-shadow .3s var(--ease);
}
.fab:hover { transform: translateY(-2px) scale(1.04); }
.fab:active { transform: translateY(0) scale(.97); }
.fab--wa {
  background: #25D366; color: #fff;
  transition: transform .3s var(--expo), opacity .25s var(--ease), box-shadow .3s var(--ease);
}
.fab--bot { background: var(--grad-sun); color: #2B1400; }

/* The open panel sits over this corner, so the WhatsApp button would be hidden
   behind it and read as missing. Retire it while the assistant is open — its
   footer carries a WhatsApp link anyway — and bring it back on close. */
body.bot-open .fab--wa { opacity: 0; transform: scale(.8); pointer-events: none; }

/* Name the button on hover/focus without a permanent label cluttering the corner. */
.fab-label {
  position: absolute; right: calc(100% + .6rem); top: 50%; transform: translateY(-50%) translateX(6px);
  white-space: nowrap; font-size: .78rem; font-weight: 650;
  background: var(--ink); color: var(--bg);
  padding: .34rem .7rem; border-radius: var(--r-pill);
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--expo);
}
.fab:hover .fab-label, .fab:focus-visible .fab-label { opacity: 1; transform: translateY(-50%) translateX(0); }

.fab--bot .ic-close { display: none; }
.fab--bot[aria-expanded="true"] .ic-open { display: none; }
.fab--bot[aria-expanded="true"] .ic-close { display: block; }

/* Panel */
.bot {
  position: fixed; z-index: 151;
  right: clamp(.9rem, 2.5vw, 1.6rem);
  bottom: calc(clamp(.9rem, 2.5vw, 1.6rem) + 54px + .7rem);
  width: min(370px, calc(100vw - 1.8rem));
  max-height: min(560px, calc(100svh - 8rem));
  display: grid; grid-template-rows: auto 1fr auto auto auto;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transform-origin: bottom right;
}
.bot.opening { animation: botIn .34s var(--expo); }
@keyframes botIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.reduced .bot.opening { animation: none; }

.bot-head {
  display: flex; align-items: center; gap: .65rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
}
.bot-avatar { width: 34px; height: 34px; flex: none; }
.bot-avatar svg { width: 100%; height: 100%; }
.bot-id { display: grid; margin-right: auto; line-height: 1.25; }
.bot-id b { font-family: var(--font-display); font-size: .92rem; font-weight: 700; letter-spacing: -.015em; }
.bot-id span { font-size: .68rem; color: var(--ink-3); font-weight: 600; }
.bot-x {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-3); flex: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.bot-x:hover { color: var(--ink); background: var(--sunk); }

.bot-log {
  padding: .95rem 1rem; display: grid; gap: .6rem; align-content: start;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin;
}
.msg {
  max-width: 88%; padding: .62rem .85rem; border-radius: 16px;
  font-size: .87rem; line-height: 1.5; white-space: pre-wrap;
}
.msg a { color: var(--sun-4); font-weight: 600; text-decoration: underline; }
.msg--bot { justify-self: start; background: var(--sunk); color: var(--ink); border-bottom-left-radius: 5px; }
.msg--me  { justify-self: end; background: var(--grad-sun); color: #2B1400; font-weight: 550; border-bottom-right-radius: 5px; }
:root[data-theme="dark"] .msg--bot { background: rgba(255,245,230,.07); }

/* Three-dot thinking indicator */
.msg--typing { display: flex; gap: 4px; align-items: center; padding: .75rem .85rem; }
.msg--typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3);
  animation: blink 1.3s var(--ease) infinite;
}
.msg--typing i:nth-child(2) { animation-delay: .18s; }
.msg--typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.reduced .msg--typing i { animation: none; opacity: .6; }

.bot-chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 1rem .7rem; }
.bot-chips:empty { display: none; }
.bot-chip {
  font-size: .76rem; font-weight: 600; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--surface-2);
  padding: .34rem .7rem; border-radius: var(--r-pill);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.bot-chip:hover { color: var(--ink); border-color: var(--sun-3); background: var(--sunk); }

.bot-form { display: flex; gap: .45rem; padding: .7rem 1rem; border-top: 1px solid var(--line-2); }
.bot-form input {
  flex: 1; min-width: 0; padding: .6rem .85rem; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); font-size: .87rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.bot-form input::placeholder { color: var(--ink-3); }
.bot-form input:focus { outline: none; border-color: var(--sun-3); box-shadow: 0 0 0 3px rgba(255,122,24,.15); }
.bot-form button {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-sun); color: #2B1400;
  transition: transform .25s var(--expo);
}
.bot-form button:hover { transform: scale(1.06); }

.bot-foot {
  padding: 0 1rem .85rem; font-size: .69rem; line-height: 1.45; color: var(--ink-3);
}
.bot-foot a { color: var(--sun-4); font-weight: 600; }

@media (max-width: 560px) {
  .bot { width: calc(100vw - 1.6rem); right: .8rem; max-height: min(70svh, 520px); }
  /* Keep the toast clear of the floating buttons on narrow screens. */
  .toast { bottom: 5.5rem; }
}

/* ---------- 17. Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem; z-index: 200;
  transform: translate(-50%, 130%); opacity: 0;
  background: var(--ink); color: var(--bg);
  padding: .85rem 1.3rem; border-radius: var(--r-pill);
  font-size: .88rem; font-weight: 550; box-shadow: var(--shadow-2);
  transition: transform .55s var(--expo), opacity .4s var(--ease);
  max-width: calc(100vw - 2rem);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- 18. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
.reduced .brand-mark .ray, .reduced .live-dot i { animation: none; }

/* Print — leave a usable, ink-light document */
@media print {
  .nav, .drawer, .progress, .scroll-cue, .hero-canvas, .marquee, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 1px solid #ccc; background: #fff; }
}
