/* Vishwa Energy website styles. Read with docs/ui-spec.md (visuals) and docs/ux-spec.md (behaviour).
   Colours: only var(--…) from css/tokens.css and css/tokens-ui.css. No hex, rgb() or hsl() in this file. */

/* ================= 1. Base ================= */
:root {
  --ff-display: var(--font-display);
  --ff-text: var(--font-text);
  --ff-num: "Unbounded", system-ui, sans-serif;
  --ff-latin: "Inter", system-ui, sans-serif;
  --ff-deva: var(--font-deva);
  --actionbar-h: 72px;
}
:root:lang(hi), :root:lang(mr) { --ff-display: var(--font-deva); --ff-text: var(--font-deva); }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 8px);   /* the only top offset (QA-1): header + 8 px, ui-spec §1.4 */
  background: var(--surface-dark);
}
body {
  margin: 0;
  font-family: var(--ff-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  background: var(--surface);
  color: var(--text);
  overflow-x: clip;
}
html.i18n-pending main { visibility: hidden; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
dialog { color: inherit; }
[hidden] { display: none !important; }
main:focus { outline: none; }
.container { width: min(var(--container), 100% - 2 * var(--margin)); margin-inline: auto; }
.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;
}
.small { font-size: var(--fs-small); line-height: var(--lh-small); }

/* focus ring (ui-spec §4.5): never removed without this replacement */
:focus-visible { outline: 3px solid var(--c-ring, var(--focus-on-light)); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.skip {
  position: absolute; left: var(--space-4); top: -200px; z-index: 200;
  background: var(--vw-gold); color: var(--vw-midnight); font-weight: 700;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-s); text-decoration: none;
}
.skip:focus { top: var(--space-2); outline: 3px solid var(--vw-midnight); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.foil-0 { stop-color: var(--vw-sun); } .foil-1 { stop-color: var(--vw-gold); }
.foil-2 { stop-color: var(--vw-foil-deep); } .foil-3 { stop-color: var(--vw-gold-hover); }
.tank-0 { stop-color: var(--vw-saffron); } .tank-1 { stop-color: var(--vw-gold); }

/* icons (ui-spec §5.1): 24-unit grid, stroke by rendered size */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic-fill { stroke: none; }

/* ================= 2. Type ================= */
h1, h2 { font-family: var(--ff-display); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; }
h2:lang(en) { letter-spacing: -.01em; }
:root:lang(hi) h2, :root:lang(mr) h2 { font-weight: 700; }
h3 { font-family: var(--ff-text); font-size: var(--fs-h3); line-height: var(--lh-h3); }
h4 { font-size: var(--fs-body); line-height: var(--lh-h3); }
h1 em, h2 em { font-style: normal; color: var(--c-accent); }
.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); }
.eyebrow {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--ff-text); font-size: var(--fs-eyebrow); line-height: 1.2; font-weight: 700;
  color: var(--c-eyebrow); margin: 0 0 var(--space-4);
}
.eyebrow:lang(en) { text-transform: uppercase; letter-spacing: .12em; }
:root:lang(hi) .eyebrow, :root:lang(mr) .eyebrow { font-weight: 600; line-height: 1.4; }

/* the beam rule: 2 px gold over 2 px saffron, the only decorative line on the site (ui-spec §0 move 3) */
.beam-rule { display: block; width: 24px; height: 4px; background: var(--beam-rule); flex: none; }
.beam-rule-48 { width: 48px; }

.text-link {
  color: var(--c-accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 24px;
}
.text-link:hover { text-decoration-thickness: 2px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; }

/* ================= 3. Buttons (ui-spec §4.4) ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font-family: var(--ff-text); font-weight: 600; line-height: var(--lh-label); text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn-l { min-height: 56px; padding: var(--space-2) 28px; font-size: 1.125rem; }
.btn-l .ic { width: 22px; height: 22px; }
.btn-m { min-height: 48px; padding: var(--space-2) var(--space-5); font-size: var(--fs-label); }
.btn-s { min-height: 44px; padding: var(--space-1) 20px; font-size: var(--fs-label); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--c-btn); color: var(--c-btn-fg); position: relative; overflow: hidden; }
.btn-secondary { background: transparent; border-color: currentColor; color: var(--c-fg); }
.btn-wa { background: var(--vw-whatsapp); color: var(--vw-midnight); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--c-btn-hover); }
  .btn-secondary:hover { background: var(--c-tint); }
  .btn-wa:hover { box-shadow: inset 0 0 0 2px var(--wa-ring); }
}
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1.5px solid var(--c-line-strong); background: transparent; color: var(--c-fg);
  padding: 0; text-decoration: none;
}
@media (hover: hover) { .icon-btn:hover { background: var(--c-tint); } }
.icon-btn[aria-disabled="true"] { border-color: var(--c-line); color: var(--c-muted); cursor: default; }

/* ================= 4. Header (ux-spec §3.1, ui-spec §4.1) ================= */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--bar-h);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: var(--shadow-2); }
[data-theme="daylight"] .site-header.is-scrolled { box-shadow: var(--shadow-1); }
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.brand { display: flex; align-items: center; min-height: 44px; flex: 0 1 auto; min-width: 0; color: var(--c-fg); }   /* 44 px tap target (QA-3) */
.brand .lockup { flex: none; }
.lockup { overflow: visible; }
.wm-text { font-family: "Unbounded", system-ui, sans-serif; font-weight: 700; font-size: 100px; letter-spacing: 3px; fill: var(--wordmark-fill); }
.wm-desc { font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 60px; fill: currentColor; }
.lockup-full { display: none; width: 210px; height: auto; }
.lockup-short { width: clamp(108px, 100vw - 236px, 189px); height: auto; }
@media (min-width: 768px) {
  .site-header .lockup-full { display: block; }
  .site-header .lockup-short { display: none; }
}
.nav-desktop { display: none; }
.header-tools { display: flex; align-items: center; gap: var(--space-2); flex: none; }
.header-cta { display: none; }
.theme-pop-wrap { display: none; position: relative; }
.menu-btn { color: var(--c-fg); }
@media (min-width: 768px) {
  .header-row { gap: var(--space-4); }
  .header-tools { gap: var(--space-3); }
  .header-cta { display: inline-flex; }
}
@media (min-width: 1200px) {
  .nav-desktop { display: block; flex: 1 1 auto; margin-left: var(--space-6); }
  .nav-desktop ul { display: flex; gap: 20px; flex-wrap: nowrap; }
  .nav-desktop a {
    position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px;   /* QA-8 */
    font-weight: 600; font-size: var(--fs-label); text-decoration: none; color: var(--c-fg); white-space: nowrap;
  }
  .nav-desktop a:hover { color: var(--c-accent); }
  .nav-desktop a[aria-current] { font-weight: 700; }
  .nav-desktop a[aria-current]::after {
    content: ""; position: absolute; left: 50%; bottom: 2px; width: 24px; height: 4px;
    transform: translateX(-50%); background: var(--beam-rule);
  }
  .theme-pop-wrap { display: block; }
  .menu-btn { display: none; }
}

/* language switch: EN · मराठी · हिंदी (ux-spec §6.1, ui-spec §4.2) */
.lang-switch { display: inline-flex; border: 1px solid var(--c-line); border-radius: var(--radius-pill); }
.seg-btn {
  min-width: 44px; min-height: 44px; padding: 0 9px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--c-fg); font-family: var(--ff-deva); font-weight: 600; font-size: 1rem; line-height: 1;
}
.seg-btn[lang="en"] { font-family: var(--ff-latin); font-weight: 700; font-size: .9375rem; }
@media (min-width: 400px) { .seg-btn { padding: 0 12px; } }
@media (hover: hover) { .seg-btn:hover { background: var(--c-tint); } }
.seg-btn[aria-pressed="true"] { background: var(--c-btn); color: var(--c-btn-fg); }
.seg-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.seg-btn:focus-visible { outline-offset: 2px; }
.lang-switch-wide, .lang-switch-menu, .lang-switch-hero { display: flex; width: 100%; }
.lang-switch-wide .seg-btn, .lang-switch-menu .seg-btn, .lang-switch-hero .seg-btn { flex: 1 1 0; min-height: 48px; }
/* below 360 px the language switch moves into the menu (ux-spec §3.1) */
.lang-switch-menu { display: none; margin-bottom: var(--space-5); }
.hero-inner > .lang-switch-hero { display: none; margin-bottom: var(--space-5); }   /* QA-6 */
@media (max-width: 359.98px) {
  .header-tools > .lang-switch { display: none; }
  .lang-switch-menu, .hero-inner > .lang-switch-hero { display: flex; }
  .lockup-short { width: clamp(150px, 100vw - 100px, 189px); }
}

/* theme trigger and popover (ux-spec §6.9, ui-spec §8) */
.swatch { width: 35px; height: 20px; border-radius: 3px; overflow: hidden; }
.sw-gold { fill: var(--vw-gold); }
.sw-saffron { fill: var(--vw-saffron); }
/* each swatch: the theme's band colour (header, footer) and its page colour, over the beam rule */
.sw-dark { fill: var(--vw-midnight); }  .sw-light { fill: var(--vw-daylight); }
label:has(input[value="vishwa-blue"]) .sw-dark, [data-theme="vishwa-blue"] .theme-trigger .sw-dark { fill: var(--vw-blue); }
label:has(input[value="vishwa-blue"]) .sw-light, [data-theme="vishwa-blue"] .theme-trigger .sw-light { fill: var(--vw-white); }
label:has(input[value="daylight"]) .sw-dark, [data-theme="daylight"] .theme-trigger .sw-dark { fill: var(--vw-daylight); }
label:has(input[value="daylight"]) .sw-light, [data-theme="daylight"] .theme-trigger .sw-light { fill: var(--vw-white); }
label:has(input[value="daylight"]) .swatch, [data-theme="daylight"] .theme-trigger .swatch { outline: 1px solid var(--vw-steel); outline-offset: -1px; }
.theme-trigger .swatch { width: 28px; height: 16px; }
.theme-pop {
  position: absolute; right: 0; top: calc(100% + var(--space-2)); width: 280px; z-index: 110;
  border-radius: var(--radius-m); box-shadow: var(--shadow-2); padding: var(--space-2);
  animation: pop-in var(--dur-fast) var(--ease);
}
@keyframes pop-in { from { opacity: 0; transform: translateY(4px); } }
.theme-list legend { font-size: var(--fs-small); font-weight: 700; color: var(--c-muted); padding: var(--space-2) var(--space-3); }
.theme-opt {
  position: relative; display: flex; align-items: center; gap: var(--space-3); min-height: 64px;
  padding: 0 var(--space-3); border-radius: var(--radius-s); cursor: pointer; color: var(--c-fg);
}
.theme-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.theme-opt .swatch { width: 56px; height: 32px; }
.theme-txt { display: flex; flex-direction: column; flex: 1; line-height: 1.3; }
.theme-name { font-weight: 600; }
.theme-desc { font-size: var(--fs-small); color: var(--c-muted); }
.theme-opt .tick { visibility: hidden; color: var(--c-icon); }
.theme-opt:has(input:checked) .tick { visibility: visible; }
.theme-opt:has(input:checked) .theme-name { font-weight: 700; }
.theme-opt:has(input:focus-visible) { outline: 3px solid var(--c-ring); outline-offset: -2px; }
@media (hover: hover) { .theme-opt:hover { background: var(--c-tint); } }

/* theme cards: menu and footer */
.theme-cards legend { font-weight: 600; margin-bottom: var(--space-3); }
.theme-cards-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.theme-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2);
  width: 92px; padding: var(--space-2); border-radius: var(--radius-s); cursor: pointer;
  font-size: var(--fs-small); font-weight: 600; line-height: 1.25; color: var(--c-fg);
}
.theme-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.theme-card .swatch { width: 56px; height: 32px; border-radius: 4px; }
.theme-card:has(input:checked) .swatch { outline: 2px solid var(--c-ring); outline-offset: 2px; }
.theme-card:has(input:checked) { background: var(--c-tint); }
.theme-card:has(input:focus-visible) { outline: 3px solid var(--c-ring); outline-offset: 2px; }

/* mobile menu sheet: a native <dialog> (ux-spec §3.2, ui-spec §4.21) */
.menu {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; z-index: 120; overflow-y: auto; overscroll-behavior: contain;
}
.menu[open] { animation: fade-in var(--dur-fast) var(--ease); }
.menu::backdrop { background: color-mix(in srgb, var(--vw-midnight) 60%, transparent); }
@keyframes fade-in { from { opacity: 0; } }
.menu-inner { width: min(560px, 100% - 2 * var(--margin)); margin-inline: auto; padding-bottom: var(--space-7); }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--bar-h); margin-bottom: var(--space-2); }
.menu-top .lockup-short { width: 170px; }
.menu-links li { border-bottom: 1px solid var(--c-line); }
.menu-links a {
  position: relative; display: flex; align-items: center; gap: var(--space-4); min-height: 56px;
  font-weight: 600; font-size: var(--fs-h3); line-height: 1.25; text-decoration: none; color: var(--c-fg);
}
.menu-links .ic { width: 24px; height: 24px; stroke-width: 1.7; color: var(--c-icon); }
.menu-links a[aria-current]::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-3)); top: 12px; bottom: 12px; width: 4px; background: var(--beam-rule-v);
}
.menu-actions { display: grid; gap: var(--space-3); margin: var(--space-6) 0 var(--space-5); }
html.menu-open { overflow: hidden; }
html.menu-open body { overflow: hidden; }

/* ================= 5. Sections and headings ================= */
.section { padding-block: var(--section-pad); position: relative; }   /* no scroll-margin: html's scroll-padding is the offset (QA-1) */
.sec-head { margin-bottom: var(--stack); max-width: 788px; }
.sec-head .beam-rule { margin-bottom: var(--space-4); }
.sec-head h2 { margin-bottom: var(--space-4); }
.sec-head h2:last-child { margin-bottom: 0; }
.sec-head .lead { max-width: 66ch; }
.sec-cta { margin-top: var(--stack); margin-bottom: 0; }

/* ================= 6. Hero (ui-spec §4.8, reworked for the golden-hour photos, 3 Nov) =================
   Phones: headline and buttons on the band colour, then the portrait photo, then the lead and links.
   From 1024 px: the landscape photo, uncropped where possible, with the headline and buttons on a solid panel in
   the open sky at the top right (the photo's text-safe third). The panel stops above the Sun, so the Sun stays in
   view. The lead and links sit in a strip under the photo. Contrast is measured by tools/measure_hero.py. */
.hero { position: relative; }
.hero-stage { position: relative; display: flex; flex-direction: column; }
.hero-inner { order: 1; position: relative; z-index: 2; padding-top: var(--space-6); padding-bottom: var(--space-6); }
.hero-media { order: 2; position: relative; overflow: hidden; }
.hero h1 { outline: none; }
.h1-main {
  display: block; font-family: var(--ff-display); font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700;
  text-wrap: balance;
}
.h1-main:lang(en) { letter-spacing: -.015em; }
.h1-sub {
  display: block; margin-top: var(--space-3); font-family: var(--ff-text); font-weight: 600;
  font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--c-fg);
}
.hero-ctas { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
/* QA-2: declared at every width so crossing 1024 px never restarts it (that hid the headline); below 1024 the
   start values are neutral, so phones see no motion */
.hero-panel { animation: rise var(--dur-slow) var(--ease) 150ms both; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; max-height: 86svh; object-fit: cover; object-position: 50% 85%; }
.hero-more { padding-block: var(--space-6) var(--space-7); }
.hero-lead { margin: 0; color: var(--c-fg); font-size: var(--fs-lead); line-height: var(--lh-lead); max-width: 60ch; }
.hero-call { margin: var(--space-4) 0 0; color: var(--c-muted); }
.hero-call a { color: var(--c-fg); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.hero-links { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
@media (min-width: 768px) {
  .hero-inner { padding-top: var(--space-7); }
  .hero-ctas { flex-direction: row; flex-wrap: wrap; gap: var(--space-4); }
  .hero-photo img { aspect-ratio: 4 / 3; max-height: 80svh; object-position: 50% 75%; }
}
@media (min-width: 1024px) {
  .hero-stage { display: block; height: clamp(680px, 56.25vw, calc(100svh - var(--bar-h))); min-height: 680px; }  /* 680: keeps the Sun below the panel at 1024 */
  .hero-media { position: absolute; inset: 0; z-index: 0; }
  .hero-photo, .hero-photo img { width: 100%; height: 100%; }
  .hero-photo img { aspect-ratio: auto; max-height: none; object-position: 55% 72%; }
  .hero-inner {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
    padding-top: var(--space-6); padding-bottom: 0;
  }
  .hero-panel {
    grid-column: 7 / 13; align-self: start;
    background: var(--surface-dark); color: var(--c-fg); border-radius: var(--radius-l);
    padding: var(--space-6) var(--space-6) var(--space-6); box-shadow: var(--shadow-2);
    --rise-y: 16px; --rise-o: .001;   /* the rise only shows from 1024 px (QA-2) */
  }
  .hero-ctas { margin-top: var(--space-5); }
  .hero-more {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start;
    padding-block: var(--space-6);
  }
  .hero-lead { grid-column: 1 / 7; }
  .hero-aside { grid-column: 7 / 13; }
  .hero-call { margin-top: 0; }
}
@media (min-width: 1440px) { .hero-panel { padding: 40px; } }
/* one sunrise glint across the photo on load (ui-spec §7) */
.hero-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(16deg, transparent 40%, color-mix(in srgb, var(--vw-gold) 22%, transparent) 50%, transparent 60%);
  background-size: 250% 250%; background-position: 100% 100%;
  mix-blend-mode: screen;
  animation: glint var(--dur-slow) var(--ease) 300ms 1 both;
}
@keyframes glint { 0% { opacity: 1; background-position: 100% 100%; } 100% { opacity: 1; background-position: 0 0; } }
@keyframes rise { from { transform: translateY(var(--rise-y, 0px)); opacity: var(--rise-o, 1); } }

/* ================= 6b. The Sun, the beams and the sky windows (client direction, 3 Nov) =================
   The Sun is always a saffron-gold core with a warm bloom and visible rays, in a golden-hour sky.
   It never sits on Midnight, and there are no stars or moons anywhere. */
.ctx-sky { --sx: calc(100% - 64px); --sy: calc(100% - 56px); }
.sun {
  position: absolute; left: var(--sx); top: var(--sy); width: var(--sun-d, 72px); aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none;
}
.sun::before { /* bloom */
  content: ""; position: absolute; inset: -110%; border-radius: 50%; background: var(--sun-bloom);
}
.sun::after { /* rays */
  content: ""; position: absolute; inset: -62%; border-radius: 50%; background: var(--sun-rays);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 50%, black 54%, black 72%, transparent 96%);
  mask: radial-gradient(circle closest-side, transparent 0 50%, black 54%, black 72%, transparent 96%);
}
.sun-core {
  position: absolute; inset: 0; z-index: 1; border-radius: 50%; background: var(--sun-core);
  box-shadow: 0 0 18px 4px color-mix(in srgb, var(--vw-gold) 55%, transparent);
}
.beam {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at var(--sx) var(--sy), black 0, black 25%, transparent 80%);
  mask-image: radial-gradient(circle at var(--sx) var(--sy), black 0, black 25%, transparent 80%);
}
/* two wedges from the Sun on the measured angles, saffron 6–16° and gold 16–28° (A4 axis). A conic gradient keeps
   the angles true at any aspect ratio; 0deg points up, so "up and to the left at θ" is 270deg + θ. */
.beam-gold { background: conic-gradient(from 0deg at var(--sx) var(--sy), transparent 0 286deg, color-mix(in srgb, var(--vw-gold) 60%, transparent) 286deg 298deg, transparent 298deg); }
.beam-saffron { background: conic-gradient(from 0deg at var(--sx) var(--sy), transparent 0 276deg, color-mix(in srgb, var(--vw-saffron) 45%, transparent) 276deg 286deg, transparent 286deg); }

/* ================= 7. Badges/* ================= 7. Badges (ui-spec §4.6) ================= */
.badge {
  display: inline-grid; place-items: center; border-radius: 50%; flex: none;
  background: var(--c-disc); color: var(--c-disc-fg);
  box-shadow: inset 0 0 0 1.5px var(--badge-ring);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.badge .ic { stroke-width: 1.7; }
.badge-s { width: 48px; height: 48px; } .badge-s .ic { width: 24px; height: 24px; }
.badge-m { width: 64px; height: 64px; } .badge-m .ic { width: 32px; height: 32px; }
.badge-l { width: 88px; height: 88px; } .badge-l .ic { width: 44px; height: 44px; stroke-width: 1.6; }
.badge-lit { background: var(--vw-gold); color: var(--vw-midnight); box-shadow: none; }
.ctx-dark .badge:not(.badge-lit), .ctx-night .badge:not(.badge-lit) { box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }

/* ================= 8. Products (ux-spec §2.2, ui-spec §4.9) ================= */
.product-grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.pcard {
  display: flex; flex-direction: column; background: var(--surface-alt); border-radius: var(--radius-l);
  overflow: hidden; box-shadow: var(--shadow-1); color: var(--c-fg);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.pcard-media { position: relative; }
.pcard-media picture { overflow: hidden; }
.pcard-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
#product-solar .pcard-media img { object-position: 50% 60%; }
#product-backup .pcard-media img { object-position: 65% 50%; }
.pcard-media .badge {
  position: absolute; left: var(--space-5); bottom: -32px; z-index: 1;
  box-shadow: 0 0 0 4px var(--surface-alt), inset 0 0 0 1.5px var(--badge-ring);
}
.pcard-media::after { /* the beam sweep, once per pointer-enter */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(16deg, transparent 38%, color-mix(in srgb, var(--vw-saffron) 40%, transparent) 46%, color-mix(in srgb, var(--vw-gold) 45%, transparent) 54%, transparent 62%);
  background-size: 250% 250%; background-position: 100% 100%; mix-blend-mode: screen;
}
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: var(--space-7) var(--space-5) var(--space-5); }
.pcard-for { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; color: var(--c-eyebrow); margin-bottom: var(--space-2); }
.pcard-body h3 { margin-bottom: var(--space-2); }
.pcard-line { margin-bottom: var(--space-4); }
.ticks { display: grid; gap: var(--space-2); margin-bottom: var(--space-4); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: calc((1em * var(--lh-body) - 20px) / 2); width: 20px; height: 20px;
  background: var(--c-icon);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.5l5 5 10-10'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* the key-choice tag: the card back's gold field in miniature */
.keytag {
  background: var(--vw-gold); color: var(--vw-midnight); border-radius: var(--radius-m);
  padding: var(--space-3) var(--space-4); font-weight: 500; margin-bottom: var(--space-4);
  --c-ring: var(--vw-midnight);
}
.keytag a { color: var(--vw-midnight); font-weight: 700; text-underline-offset: 3px; white-space: normal; }
.gated-line { font-size: var(--fs-small); color: var(--c-muted); }
.pcard-actions { margin-top: auto; padding-top: var(--space-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); }
@media (max-width: 767.98px) { .pcard-actions .btn { width: 100%; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pcard:not(.pcard-slim):hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
  .pcard:hover .pcard-media::after { animation: sweep var(--dur-slow) var(--ease) 1; }
  .pcard:hover .pcard-media .badge { box-shadow: 0 0 0 4px var(--surface-alt), 0 0 0 10px color-mix(in srgb, var(--vw-gold) 35%, transparent); }
}
@keyframes sweep { 0% { opacity: 1; background-position: 100% 100%; } 100% { opacity: 1; background-position: 0 0; } }

@media (min-width: 768px) and (max-width: 1023.98px) {
  .pcard:not(.pcard-slim) { flex-direction: row; }
  .pcard:not(.pcard-slim) .pcard-media { flex: 0 0 42%; }
  .pcard:not(.pcard-slim) .pcard-media picture, .pcard:not(.pcard-slim) .pcard-media img { height: 100%; }
  .pcard:not(.pcard-slim) .pcard-media img { aspect-ratio: auto; min-height: 100%; }
  .pcard:not(.pcard-slim) .pcard-media .badge { left: auto; right: -32px; bottom: auto; top: var(--space-6); }
  .pcard:not(.pcard-slim) .pcard-body { padding: var(--space-6) var(--space-6) var(--space-6) 56px; }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pcard-body { padding: var(--space-7) var(--space-6) var(--space-6); }
}
/* the slim generator card with its golden-hour window (ux-spec §2.2; client direction 3 Nov: no night windows) */
.pcard-slim { margin-top: var(--gap); }
.sky-window { position: relative; height: 168px; overflow: hidden; flex: none; --sx: 88%; --sy: 84%; --sun-d: 44px; }
.sw-icon { position: absolute; left: 40%; top: 52%; width: 88px; height: 88px; transform: translate(-50%, -50%); color: var(--vw-midnight); stroke-width: 1.6; }
.pcard-slim .pcard-body { padding: var(--space-5); }
.pcard-slim .pcard-actions { padding-top: var(--space-2); }
@media (min-width: 768px) {
  .pcard-slim { flex-direction: row; align-items: stretch; }
  .sky-window { width: 300px; height: auto; min-height: 184px; }
  .pcard-slim .pcard-body { padding: var(--space-6); justify-content: center; }
  .pcard-slim .pcard-line { max-width: 66ch; }
}

/* ================= 9. Chips, stepper (ui-spec §4.12) ================= */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill);
  border: 1.5px solid var(--c-line-strong); background: transparent; color: var(--c-fg);
  font-weight: 500; line-height: var(--lh-label); cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
@media (hover: hover) { .chip:hover { border-color: var(--c-fg); background: var(--c-tint); } }
.chip:has(input:checked) { background: var(--c-btn); border-color: var(--c-btn); color: var(--c-btn-fg); }
.chip:has(input:focus-visible) { outline: 3px solid var(--c-ring); outline-offset: 2px; }
.chip-check .tick { display: none; width: 18px; height: 18px; stroke-width: 2.2; }
.chip-check:has(input:checked) .tick { display: block; }
.chip-card { min-height: 64px; min-width: 132px; border-radius: var(--radius-m); padding: var(--space-3) var(--space-5) var(--space-3) var(--space-4); font-weight: 600; }
.chip-card .ic { width: 32px; height: 32px; stroke-width: 1.7; color: var(--c-icon); }
.chip-card:has(input:checked) .ic { color: var(--c-btn-fg); }
.chip-icon .ic { color: var(--c-icon); }
.chip-icon:has(input:checked) .ic { color: var(--c-btn-fg); }
.q { margin: 0 0 var(--space-5); }
.q:last-child { margin-bottom: 0; }
.q-legend { display: block; font-weight: 600; font-size: var(--fs-label); line-height: var(--lh-h3); margin-bottom: var(--space-3); }
.q-hint { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-muted); margin: calc(-1 * var(--space-2)) 0 var(--space-3); }
.stepper { display: flex; align-items: center; gap: var(--space-2); }
.step-btn { width: 48px; height: 48px; }
.step-val {
  width: 80px; height: 56px; text-align: center; border: 1.5px solid var(--c-line-strong); border-radius: var(--radius-s);
  background: var(--c-bg, transparent); font-family: var(--ff-num); font-weight: 700; font-size: 2rem; color: var(--c-fg);
  -moz-appearance: textfield; appearance: textfield;
}
.step-val::-webkit-outer-spin-button, .step-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.people-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--space-3); max-width: 300px; }
.people-row .ic { width: 20px; height: 20px; color: var(--c-line-strong); opacity: .35; transition: color var(--dur-fast), opacity var(--dur-fast); }
.people-row .ic.on { color: var(--c-icon); opacity: 1; }
.finetune { margin-top: var(--space-2); }
.finetune > summary, .est-how > summary {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; cursor: pointer; list-style: none;
  color: var(--c-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.finetune > summary::-webkit-details-marker, .est-how > summary::-webkit-details-marker, .faq-item > summary::-webkit-details-marker { display: none; }
.chev { transition: transform var(--dur) var(--ease); }
details[open] > summary .chev { transform: rotate(180deg); }
.finetune[open] > summary { margin-bottom: var(--space-4); }

/* ================= 10. Estimator (ux-spec §2.3, ui-spec §4.13) ================= */
.est { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.est-nojs { display: none; }
.no-js .est { display: none; }
.no-js .est-nojs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.est-inputs { background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow-1); padding: var(--space-5); }
.chips-mode .chip { flex: 1 1 auto; justify-content: center; }
.q-mode { padding-bottom: var(--space-5); margin-bottom: var(--space-5); border-bottom: 1px solid var(--c-line); }
.est-result {
  position: relative; overflow: hidden; border-radius: var(--radius-l); padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4);
}
[data-theme="daylight"] .est-result { box-shadow: inset 0 0 0 1px var(--line); }
.est-result > * { position: relative; z-index: 1; }
.est-result .sweep {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(16deg, transparent 38%, color-mix(in srgb, var(--vw-saffron) 30%, transparent) 46%, color-mix(in srgb, var(--vw-gold) 35%, transparent) 54%, transparent 62%);
  background-size: 250% 250%; background-position: 100% 100%; mix-blend-mode: var(--beam-blend);
}
.est-result.is-updated .sweep { animation: sweep var(--dur-slow) var(--ease) 1; }
.est-label { margin: 0; font-size: var(--fs-eyebrow); font-weight: 700; line-height: 1.3; color: var(--c-eyebrow); }
.est-label:lang(en) { text-transform: uppercase; letter-spacing: .12em; }
.est-value { margin: var(--space-2) 0 0; font-size: var(--fs-lead); line-height: 1.25; font-weight: 600; color: var(--c-fg); }
.est-value .num {
  font-family: var(--ff-num); font-size: var(--fs-num); line-height: 1.05; font-weight: 700; color: var(--c-accent);
  white-space: nowrap; display: inline-block;
}
.est-value.is-empty { font-size: var(--fs-lead); }
.est-value-2 .num { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.est-vis { margin-top: var(--space-4); }
.est-vis .est-label { margin-top: var(--space-2); }
.tank { width: 100%; }
.tank-svg { width: 100%; height: 48px; overflow: visible; }
.tank-outline { fill: none; stroke: var(--c-icon); stroke-width: 2; vector-effect: non-scaling-stroke; }
.tank-fill { fill: url(#vw-tank); transition: width var(--dur) var(--ease); }
.tank-half { fill: url(#vw-tank); opacity: .5; transition: width var(--dur) var(--ease); }
.tank-ticks { position: relative; height: 24px; margin-top: var(--space-2); font-size: var(--fs-small); line-height: 1.5; color: var(--c-muted); }
.tank-ticks span { position: absolute; top: 0; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.tank-ticks span:last-child { transform: translateX(-100%); }
.tank-ticks span.on { color: var(--c-fg); font-weight: 700; }
.panel-row, .batt-row { display: flex; flex-wrap: wrap; gap: 6px; }
.panel-row .ic, .batt-row .ic { width: 28px; height: 28px; stroke-width: 1.7; color: var(--c-line-strong); opacity: .35; transition: color var(--dur-fast), opacity var(--dur-fast); }
.batt-row .ic { width: 36px; height: 36px; }
.panel-row .ic.on, .batt-row .ic.on { color: var(--c-icon); opacity: 1; }
.panel-row .ic.half { color: var(--c-icon); opacity: .6; }
.est-legend { font-size: var(--fs-small); color: var(--c-muted); margin: var(--space-2) 0 0; }
.est-lines { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.est-lines li { display: flex; gap: var(--space-3); align-items: flex-start; }
.est-lines li .ic { color: var(--c-icon); margin-top: calc((1em * var(--lh-body) - 20px) / 2); }
.est-lines li.is-key { font-weight: 600; }
.est-lines a, .est-lines button { color: var(--c-accent); }
.est-lines .link-btn { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; text-align: left; min-height: 24px; }
.est-society { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.est-society h3 { font-size: var(--fs-h3); }
.est-disclaimer { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-muted); margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--c-line); }
.est-disclaimer .ic { width: 16px; height: 16px; stroke-width: 2; margin-top: 2px; }
.est-how p { margin-top: var(--space-2); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-muted); }
.est-ctas { display: flex; flex-direction: column; gap: var(--space-3); }
.est-ctas .btn { min-height: 56px; font-size: 1.0625rem; }
@media (min-width: 768px) {
  .est-inputs, .est-result { padding: var(--space-6); }
  .est-ctas { flex-direction: row; flex-wrap: wrap; }
  .est-ctas .btn { min-height: 48px; font-size: var(--fs-label); }
}
@media (min-width: 1200px) { :root { --est-min: 776px; } }   /* QA-10: tallest result state from 1200 px */
@media (min-width: 1024px) {
  .est { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .est-inputs { grid-column: 1 / 7; padding: 40px; }
  .est-result { grid-column: 7 / 13; padding: 40px; min-height: var(--est-min, 896px); position: sticky; top: calc(var(--bar-h) + var(--space-4)); }   /* QA-10 */
  .est-ctas { margin-top: auto; }
}

/* ================= 11. Day, night, power cut (ux-spec §2.4) ================= */
.dn-seg {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px;
  border: 1.5px solid var(--c-line-strong); border-radius: var(--radius-l); margin-bottom: var(--space-4);
  max-width: 560px;
}
.seg-opt {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; padding: var(--space-2); border-radius: calc(var(--radius-l) - 4px);
  font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; color: var(--c-fg);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.seg-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg-opt .ic { color: var(--c-icon); }
@media (hover: hover) { .seg-opt:hover { background: var(--c-tint); } }
.seg-opt:has(input:checked) { background: var(--c-btn); color: var(--c-btn-fg); }
.seg-opt:has(input:checked) .ic { color: var(--c-btn-fg); }
.seg-opt:has(input:focus-visible) { outline: 3px solid var(--c-ring); outline-offset: 2px; }
@media (min-width: 768px) {
  .dn-seg { border-radius: var(--radius-pill); }
  .seg-opt { flex-direction: row; gap: var(--space-2); min-height: 48px; border-radius: var(--radius-pill); }
}
.dn-stage {
  position: relative; overflow: hidden; border-radius: var(--radius-l); padding: var(--space-5);
  transition: background-color var(--dur) var(--ease);
}
.dn-sky { position: absolute; inset: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); }
.dn-stage { --sun-d: 88px; }
/* the Sun is up by day and in a daytime power cut; only Night has no sun (and never stars or a moon). CLAUDE.md rule 5,
   ui-spec §9 check 19 (QA-11: "cut" removed from this selector to match main.js) */
.dn-stage[data-scene="night"] .dn-sky { opacity: 0; visibility: hidden; }
.dn-intro { position: relative; z-index: 1; font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 600; margin-bottom: var(--space-5); }
.dn-tiles { position: relative; z-index: 1; display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
.dn-tile {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: var(--space-4); align-items: start;
  align-content: start;   /* QA-12: rows pack at the top, so badge, name and status line up across a row of tiles */
  padding: var(--space-4); border-radius: var(--radius-m);
  background: var(--c-bg); border: 1.5px solid var(--c-line);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.dn-tile .badge { grid-row: span 3; }
.dn-tile p { margin: var(--space-1) 0 0; color: var(--c-muted); }
.dn-tile strong { color: var(--c-fg); }
.dn-name { font-size: var(--fs-label); line-height: var(--lh-h3); }
.dn-tile:not(.is-lit) .badge { background: transparent; color: var(--c-muted); box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }
.dn-tile.is-lit { border-color: var(--vw-gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--vw-gold) 35%, transparent); }
.dn-tile.is-lit .badge { background: var(--vw-gold); color: var(--vw-midnight); box-shadow: none; }
.ctx-sky .dn-tile.is-lit { background: var(--vw-white); }
.ctx-night .dn-tile.is-lit { background: color-mix(in srgb, var(--vw-white) 6%, var(--vw-midnight)); }
.dn-tile.is-split { border-color: var(--vw-gold); border-style: dashed; }
.dn-tile .dn-row2 { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px dashed var(--c-line-strong); }
.dn-tile.is-split .dn-row1 strong::before, .dn-tile.is-split .dn-row2 strong::before {
  content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 1px;
}
.dn-tile.is-split .dn-row1 strong::before { box-shadow: inset 0 0 0 1.5px var(--c-line-strong); }
.dn-tile.is-split .dn-row2 strong::before { background: var(--vw-gold); }
.dn-note { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-muted); margin: var(--space-4) 0 var(--space-5); }
.dn-note .ic { width: 16px; height: 16px; stroke-width: 2; margin-top: 2px; }
.dn-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 767.98px) { .dn-ctas .btn { width: 100%; } }
@media (min-width: 768px) {
  .dn-stage { padding: var(--space-6); }
  .dn-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
}
@media (min-width: 1024px) {
  .dn-stage { padding: 40px; min-height: 380px; }
  .dn-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dn-tile { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-3); }
  .dn-tile .badge { grid-row: auto; }
}
/* without JavaScript: the plain table (also what search engines read) */
.js .dn-table-wrap { display: none; }
.no-js .dn { display: none; }
.table-wrap { overflow-x: auto; }
.dn-table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: var(--fs-small); }
.dn-table caption { text-align: left; font-weight: 700; margin-bottom: var(--space-3); }
.dn-table th, .dn-table td { text-align: left; vertical-align: top; padding: var(--space-3); border-bottom: 1px solid var(--c-line-strong); }

/* ================= 12. Societies (ux-spec §2.5) ================= */
.soc-grid { display: grid; gap: var(--space-7); grid-template-columns: minmax(0, 1fr); }
.soc-h3 { margin-bottom: var(--space-5); }
.soc-offers { display: grid; gap: var(--space-5); margin-bottom: var(--space-6); }
.soc-offers li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.soc-offers h4 { margin-bottom: var(--space-1); }
.soc-offers p { margin: 0; color: var(--c-muted); }
.soc-main .gated-line { margin: calc(-1 * var(--space-3)) 0 var(--space-6); }
.soc-steps { display: grid; gap: var(--space-4); counter-reset: none; }
.soc-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-3); align-items: start; }
.soc-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--ff-num); font-weight: 600; font-size: 1rem; color: var(--c-accent);
  box-shadow: inset 0 0 0 1.5px var(--c-accent);
}
.soc-steps p { margin: 6px 0 0; }
.soc-photo { margin: 0; border-radius: var(--radius-l); overflow: hidden; }
.soc-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 50%; }
.soc-flat {
  position: relative; margin: -72px var(--space-4) 0; padding: var(--space-5); border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
}
.soc-ctas { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 768px) {
  .soc-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gap); }
  .soc-main { grid-column: 1 / 5; }
  .soc-side { grid-column: 5 / 9; }
}
@media (min-width: 1024px) {
  .soc-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .soc-main { grid-column: 1 / 7; }
  .soc-side { grid-column: 7 / 13; }   /* A3 (QA-9) */
  .soc-flat { padding: var(--space-6); }
}

/* ================= 13. Story (ux-spec §2.6, ui-spec §4.14) ================= */
.story { overflow: hidden; }
.story-grid { position: relative; display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
.story-art { display: none; }
.story-text { max-width: 60ch; }
.story-text h2 { margin-bottom: var(--space-5); }
.story-text .lead { margin-bottom: var(--space-5); }
.om {
  font-family: var(--ff-deva); font-weight: 600; font-size: var(--fs-h3); line-height: 1.4;
  color: var(--c-accent); margin: var(--space-6) 0;
}
.sign { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--c-line); }
.sign-name { font-family: var(--ff-num); font-weight: 600; font-size: var(--fs-h3); line-height: 1.2; color: var(--c-accent); margin-bottom: var(--space-2); }
.sign-role { font-size: var(--fs-small); font-weight: 700; color: var(--c-muted); line-height: 1.4; }
.sign-role:lang(en) { text-transform: uppercase; letter-spacing: .12em; }
.mission { font-weight: 600; margin-top: var(--space-5); }
/* the story art: a sunrise window, the Sun half-risen over the horizon */
.sunrise-art {
  position: relative; overflow: hidden; border-radius: var(--radius-l); aspect-ratio: 4 / 5;
  --sx: 64%; --sy: 76%; --sun-d: 30%;
}
.sunrise-art .horizon {
  position: absolute; left: 0; right: 0; bottom: 0; height: 24%; z-index: 2;
  background: linear-gradient(180deg, color-mix(in srgb, var(--vw-burnt) 70%, var(--vw-saffron)) 0, var(--vw-burnt) 100%);
}
.sunrise-art .sun { z-index: 1; }
@media (min-width: 768px) {
  .story-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gap); }
  .story-art { display: block; grid-column: 1 / 4; align-self: start; position: sticky; top: calc(var(--bar-h) + var(--space-7)); }
  .story-text { grid-column: 4 / 9; }
}
@media (min-width: 1024px) {
  .story-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .story-art { grid-column: 2 / 6; max-width: 320px; }
  .story-text { grid-column: 7 / 13; }
}

/* ================= 14. Why Vishwa (ui-spec §4.15) ================= */
.why-grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.why-tile { background: var(--surface-alt); border-radius: var(--radius-l); padding: var(--space-5); display: flex; flex-direction: column; }
.why-tile .badge { margin: var(--space-4) 0; }
.why-tile h3 { margin-bottom: var(--space-2); }
.why-tile p { color: var(--c-muted); margin: 0; }
.why-brands { margin-top: var(--stack); }
.brand-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0; }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .why-tile { padding: var(--space-6); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ================= 15. How it works (ui-spec §4.11) ================= */
.steps { position: relative; display: grid; gap: var(--space-6); }
.steps::before { /* the beam-rule connector, vertical on phones */
  content: ""; position: absolute; left: 30px; top: 32px; bottom: 32px; width: 4px; background: var(--beam-rule-v);
}
.step { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-4); align-items: start; min-height: 96px; }
.step-badge { position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--c-bg), inset 0 0 0 1.5px var(--badge-ring); }
.step-badge.badge-lit { box-shadow: 0 0 0 6px var(--c-bg); }
.step-n { font-size: var(--fs-eyebrow); font-weight: 700; color: var(--c-eyebrow); margin: var(--space-2) 0 var(--space-2); }
.step-n:lang(en) { text-transform: uppercase; letter-spacing: .12em; }
.step-body h3 { margin-bottom: var(--space-2); }
.step-body p:last-child { color: var(--c-muted); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--gap); }
  .steps::before { left: 32px; right: calc((100% - 4 * var(--gap)) / 5 - 32px); top: 30px; bottom: auto; width: auto; height: 4px; background: var(--beam-rule); }
  .step { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step-n { margin-top: var(--space-5); }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal-on .steps::before { transform-origin: top; transition: transform var(--dur-slow) var(--ease); }
  .reveal-on .steps:not(.is-in)::before { transform: scaleY(0); }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .reveal-on .steps::before { transform-origin: left; }
  .reveal-on .steps:not(.is-in)::before { transform: scaleX(0); }
}

/* ================= 16. FAQ (ui-spec §4.16) ================= */
.faq-grid { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
.faq-more { background: var(--surface-alt); border-radius: var(--radius-l); padding: var(--space-5); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.faq-more p { margin: 0; font-weight: 600; }
.faq-item { border-top: 1px solid var(--c-line-strong); }
.faq-item:last-child { border-bottom: 1px solid var(--c-line-strong); }
.faq-item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  min-height: 72px; padding-block: var(--space-5); cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--fs-lead); line-height: var(--lh-h3); color: var(--c-fg);
  border-radius: var(--radius-s);
}
.faq-item > summary:focus-visible { outline-offset: 4px; }
.faq-circle {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--c-line-strong); color: var(--c-fg);
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.faq-circle .ic { transition: transform var(--dur) var(--ease); }
@media (hover: hover) {
  .faq-item > summary:hover { color: var(--c-accent); }
  .faq-item > summary:hover .faq-circle { border-color: var(--c-fg); }
}
.faq-item[open] .faq-circle { background: var(--c-btn); border-color: var(--c-btn); color: var(--c-btn-fg); }
.faq-item[open] .faq-circle .ic { transform: rotate(180deg); }
.faq-a { padding: 0 0 var(--space-5); max-width: 68ch; animation: fade-in var(--dur-fast) var(--ease); }
.faq-a a:not(.text-link) { color: var(--c-accent); font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 768px) { .faq-a { padding-right: 56px; } }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .faq-side { grid-column: 1 / 5; position: sticky; top: calc(var(--bar-h) + var(--space-6)); }
  .faq-list { grid-column: 5 / 13; }
}

/* ================= 17. Contact and form (ui-spec §4.17–4.18) ================= */
.contact-grid { display: grid; gap: var(--space-7); grid-template-columns: minmax(0, 1fr); }
.contact .beam-rule { background: var(--vw-midnight); } /* gold on gold would vanish: the rule turns Midnight here */
.placeholder-note {
  font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; color: var(--vw-midnight);
  border: 1.5px dashed var(--vw-midnight); border-radius: var(--radius-s); padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-5);
}
.contact-ctas { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
.contact-rows { margin: 0 0 var(--space-6); display: grid; gap: var(--space-4); }
.crow { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--space-3); align-items: center; }
.crow dt { display: contents; }
.crow .disc { grid-row: 1 / 3; align-self: start; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--vw-midnight); color: var(--vw-gold); }
.crow .disc .ic { width: 18px; height: 18px; stroke-width: 2; }
.crow dt > span:not(.disc) { font-size: var(--fs-small); font-weight: 700; color: var(--c-eyebrow); line-height: 1.3; }
.crow dd { margin: 0; font-size: 1.125rem; overflow-wrap: anywhere; }
.crow dd a { font-weight: 600; text-underline-offset: 3px; }
.areas-label { font-size: var(--fs-small); font-weight: 700; color: var(--c-eyebrow); margin-bottom: var(--space-2); }
.area-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.area-tags li { background: var(--vw-daylight); color: var(--vw-midnight); border-radius: var(--radius-pill); padding: var(--space-1) var(--space-3); font-size: var(--fs-small); font-weight: 500; }
@media (min-width: 768px) { .contact-ctas { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .contact-details { grid-column: 1 / 6; }
  .form-card { grid-column: 7 / 13; }
}
.form-card { border-radius: var(--radius-l); box-shadow: var(--shadow-2); padding: var(--space-5); }
@media (min-width: 768px) { .form-card { padding: 40px; } }
.form-title { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.form-lead { color: var(--c-muted); margin-bottom: var(--space-5); }
.form-prefilled { display: flex; gap: var(--space-2); align-items: flex-start; font-weight: 600; background: var(--vw-sky); border-radius: var(--radius-s); padding: var(--space-3); color: var(--vw-midnight); }
.form-prefilled .ic { color: var(--vw-blue); margin-top: 2px; }
.field { margin: 0 0 var(--space-5); }
.label { display: block; font-weight: 600; font-size: var(--fs-label); line-height: var(--lh-h3); margin-bottom: var(--space-2); color: var(--c-fg); }
fieldset.field > .label { margin-bottom: var(--space-3); }
.hint { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-muted); margin: 0 0 var(--space-2); }
.input {
  display: block; width: 100%; min-height: 52px; padding: 0 var(--space-4); border-radius: var(--radius-s);
  background: var(--vw-white); border: 1.5px solid var(--line-strong); font-size: 1rem; color: var(--c-fg);
}
.textarea { padding: var(--space-3) var(--space-4); min-height: 104px; resize: vertical; line-height: var(--lh-body); }
@media (hover: hover) { .input:hover { border-color: var(--c-fg); } }
.input:focus-visible { outline-offset: 2px; border-color: var(--c-fg); }
.input-prefix { display: flex; align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: var(--vw-white); }
.input-prefix:focus-within { outline: 3px solid var(--c-ring); outline-offset: 2px; border-color: var(--c-fg); }
.input-prefix .prefix { display: flex; align-items: center; padding: 0 var(--space-3); border-right: 1px solid var(--line); font-weight: 600; color: var(--c-muted); }
.input-prefix .input { border: 0; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.input-prefix .input:focus-visible { outline: none; }
.has-error .input, .has-error .input-prefix { border: 2px solid var(--error); }
.has-error .input-prefix .input { border: 0; }
fieldset.has-error > .label { color: var(--error); }
.err { display: flex; gap: 6px; align-items: flex-start; margin: var(--space-2) 0 0; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 600; color: var(--error); }
.err .ic { width: 16px; height: 16px; stroke-width: 2; margin-top: 2px; }
.form-summary, .form-banner {
  background: var(--error-tint); border-left: 4px solid var(--error); border-radius: var(--radius-s);
  padding: var(--space-4); margin-bottom: var(--space-5); color: var(--c-fg);
}
.form-summary p { font-weight: 700; margin-bottom: var(--space-2); }
.form-summary ul { list-style: disc; padding-left: var(--space-5); }
.form-summary a { color: var(--error); font-weight: 600; }
.form-banner { display: flex; gap: var(--space-3); align-items: flex-start; }
.form-banner > .ic { color: var(--error); flex: none; margin-top: 2px; }
.banner-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.est-chip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
  border: 1.5px solid var(--c-line-strong); border-radius: var(--radius-m); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-5);
}
.est-chip p { margin: 0; font-weight: 600; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-submit { width: 100%; }
.form-submit .spin { display: none; }
.form-submit.is-sending .spin { display: block; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 768px) { .form-submit { width: auto; min-width: 280px; } }
.form-privacy { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--c-muted); margin-top: var(--space-4); }
.form-privacy a { display: inline-block; padding-block: 2px; color: var(--c-accent); font-weight: 600; }   /* 24 px+ tap height (QA-4) */
.form-ok { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); animation: fade-in var(--dur) var(--ease); }
.form-ok h3 { font-size: var(--fs-h3); margin-top: var(--space-5); }
.form-ok .btn-wa { margin-top: var(--space-4); }
.form-ok .text-link { margin-top: var(--space-2); }

/* ================= 18. Footer (ui-spec §4.19) ================= */
.saffron-rule { height: 4px; background: var(--vw-saffron); }
.site-footer { padding-block: var(--space-7); }
.foot-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5) var(--space-2); padding-bottom: var(--space-6); border-bottom: 1px solid var(--c-line); }
.foot-strip a { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--c-fg); font-weight: 600; min-height: 44px; min-width: 44px; }   /* QA-8 */
.foot-strip .ic { width: 32px; height: 32px; stroke-width: 1.7; color: var(--c-icon); transition: filter var(--dur-fast); }
@media (hover: hover) { .foot-strip a:hover { color: var(--c-accent); } }
@media (min-width: 768px) {
  .foot-strip { display: flex; justify-content: space-between; }
  .foot-strip a:first-child { align-items: flex-start; }
  .foot-strip a:last-child { align-items: flex-end; }
}
.foot-main { display: grid; gap: var(--space-6); padding-block: var(--space-6); grid-template-columns: minmax(0, 1fr); }
.foot-brand .lockup-foot { display: block; width: 100%; max-width: 480px; height: auto; color: var(--c-fg); }
.foot-mission { margin-top: var(--space-5); color: var(--c-muted); max-width: 40ch; }
.foot-h { font-family: var(--ff-text); font-size: var(--fs-label); font-weight: 700; margin-bottom: var(--space-3); }
.foot-col ul { display: grid; gap: var(--space-1); }
.foot-col li { color: var(--c-muted); }
.foot-col a { display: inline-flex; align-items: center; min-height: 32px; color: var(--c-fg); text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-label { font-size: var(--fs-small); font-weight: 600; color: var(--c-muted); margin: 0 0 var(--space-2); }
.foot-settings .lang-switch { margin-bottom: var(--space-5); max-width: 320px; }
.foot-legal { font-size: var(--fs-small); color: var(--c-muted); margin: 0; padding-top: var(--space-5); border-top: 1px solid var(--c-line); }
.foot-legal a { display: inline-flex; align-items: center; min-height: 24px; color: var(--c-fg); text-underline-offset: 3px; }   /* QA-4 */
@media (min-width: 768px) {
  .foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .foot-main { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / 7; grid-row: 1 / 3; }
  .foot-brand .lockup-foot { max-width: 588px; }
  .foot-main > nav.foot-col { grid-column: 7 / 10; }
  .foot-main > .foot-col:not(nav):not(.foot-settings) { grid-column: 10 / 13; }
  .foot-settings { grid-column: 7 / 13; display: grid; grid-template-columns: auto 1fr; column-gap: var(--space-6); align-items: start; }
  .foot-settings .foot-h { grid-column: 1 / -1; }
  .foot-settings .foot-label#foot-lang-label { grid-column: 1; grid-row: 2; }
  .foot-settings .lang-switch { grid-column: 1; grid-row: 3; width: 240px; }
  .foot-settings .theme-cards { grid-column: 2; grid-row: 2 / 4; }
}

/* ================= 19. Floating WhatsApp and the mobile action bar (ux-spec §3.3–3.4) ================= */
.wa-float {
  position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 90; display: none;
  place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--vw-whatsapp); color: var(--vw-midnight); box-shadow: var(--shadow-2);
  --c-ring: var(--vw-midnight);
}
.wa-float .ic { width: 28px; height: 28px; }
@media (min-width: 768px) { .wa-float { display: grid; } }
.wa-float.is-hidden { display: none; }
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2);
  padding: var(--space-2) var(--margin) calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  box-shadow: inset 0 1px 0 var(--c-line);   /* the top edge inside the bar: 72 px tall, as reserved (QA-5) */
}
.ab-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; padding: var(--space-1); border-radius: var(--radius-m); text-decoration: none; text-align: center;
  font-size: var(--fs-small); font-weight: 600; line-height: 1.1;
  transition: transform var(--dur-fast);
}
:root:lang(hi) .ab-btn, :root:lang(mr) .ab-btn { font-size: .9375rem; line-height: 1.25; }
.ab-btn:active { transform: scale(.98); }
.ab-btn:focus-visible { outline-offset: 2px; }
.ab-call { border: 1.5px solid var(--c-line-strong); color: var(--c-fg); }
.ab-wa { background: var(--vw-whatsapp); color: var(--vw-midnight); }
.ab-quote { background: var(--c-btn); color: var(--c-btn-fg); }
body:has(.action-bar) { padding-bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 767.98px) { html { scroll-padding-bottom: calc(var(--actionbar-h) + 16px); } }
@media (min-width: 768px) {
  .action-bar { display: none; }
  body:has(.action-bar) { padding-bottom: 0; }
}
html.kb-open .action-bar, html.menu-open .action-bar { display: none; }

.toast {
  position: fixed; left: 50%; top: calc(var(--bar-h) + var(--space-3)); transform: translateX(-50%); z-index: 130;
  max-width: calc(100% - 2 * var(--margin)); padding: var(--space-3) var(--space-4); border-radius: var(--radius-m);
  background: var(--vw-white); color: var(--vw-midnight); box-shadow: var(--shadow-2); font-weight: 600;
}

/* ================= 20. Reveal on scroll and motion (ui-spec §7) ================= */
.reveal-on [data-reveal] { transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal-on [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(16px); }
html.theme-anim body, html.theme-anim .ctx-light, html.theme-anim .ctx-alt, html.theme-anim .ctx-dark,
html.theme-anim .pcard, html.theme-anim .why-tile, html.theme-anim .est-inputs, html.theme-anim .faq-more {
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important;
    transition-duration: 0ms !important; scroll-behavior: auto !important;
  }
  .hero-media::before { display: none; }
  .reveal-on [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
}

/* ================= 21. Privacy page ================= */
.legal-bar { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.legal-bar .lockup-short { display: block; width: 170px; }
.legal { padding-block: var(--space-8); }
.legal-inner { max-width: 72ch; }
.legal h1 { font-size: var(--fs-h2); line-height: var(--lh-h2); margin-bottom: var(--space-4); }
.legal h2 { font-family: var(--ff-text); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; margin: var(--space-6) 0 var(--space-3); }
.legal ul { list-style: disc; padding-left: var(--space-5); margin-bottom: var(--space-4); }
.legal li { margin-bottom: var(--space-1); }
.legal a { color: var(--c-accent); font-weight: 600; text-underline-offset: 3px; }
.legal-langs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-5) 0; }
.legal-lang { border-top: 1px solid var(--c-line-strong); margin-top: var(--space-7); padding-top: var(--space-5); }
.legal-lang:lang(hi), .legal-lang:lang(mr) { font-family: var(--ff-deva); line-height: 1.75; }
.legal-lang:lang(hi) h2, .legal-lang:lang(mr) h2 { font-family: var(--ff-deva); }
