/* GLAN website — design system and components. Mobile first. */

@font-face {
  font-family: "Noto Sans Bengali";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/noto-sans-bengali-bengali.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1, U+11DF0-11DF1;
}
@font-face {
  font-family: "Noto Sans Bengali";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/noto-sans-bengali-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Sans Bengali";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/noto-sans-bengali-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Brand name only ("GLAN BD"), matching the slanted lettering of the logo */
@font-face {
  font-family: "Exo 2";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/exo-2-latin-800-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy-950: #071a33;
  --navy-900: #0b2243;
  --navy-800: #12325f;
  --navy-700: #1b4580;
  --blue-600: #1661d9;
  --blue-500: #2f7bf0;
  --blue-50: #eef4ff;
  --green-700: #17703d;
  --green-600: #1f8a4c;
  --green-500: #2fae5f;
  --green-50: #eaf7ef;
  --amber-600: #a35c00;
  --amber-50: #fff6e5;
  --red-600: #c62828;
  --red-50: #fdecec;
  --wa: #25d366;
  --wa-dark: #128c4b;
  --gray-950: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d9e2;
  --gray-200: #e3e8ee;
  --gray-100: #eef2f6;
  --gray-50: #f6f8fa;
  --white: #ffffff;

  --font: "Noto Sans Bengali", "Nirmala UI", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 34, 67, .06), 0 1px 3px rgba(11, 34, 67, .08);
  --shadow: 0 4px 16px rgba(11, 34, 67, .08);
  --shadow-lg: 0 12px 32px rgba(11, 34, 67, .12);
  --gutter: 16px;
  --max: 1180px;
  --header-h: 64px;     /* header at the top of the page */
  --header-h-s: 56px;   /* header after scrolling down */
  --mark: 46px;         /* logo tile */
  --mark-s: 40px;

  /* Text roles (the dark theme at the end of this file gives them other values) */
  --c-heading: var(--navy-900);
  --c-link: var(--blue-600);
  --c-link-hover: var(--navy-800);
}
@media (min-width: 640px) { :root { --header-h: 72px; --header-h-s: 60px; --mark: 52px; --mark-s: 44px; } }
@media (min-width: 1200px) { :root { --header-h: 80px; --header-h-s: 62px; --mark: 60px; --mark-s: 46px; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--gray-800);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
.lang-en body, body.lang-en { line-height: 1.6; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--c-link); text-underline-offset: 3px; }
a:hover { color: var(--c-link-hover); }
h1, h2, h3, h4 { color: var(--c-heading); line-height: 1.35; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; color: #fff; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--gray-600); }
.small { font-size: .9rem; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--navy-800); color: #fff; }
.btn-green { background: var(--green-600); color: #fff; }
.btn-green:hover { background: var(--green-700); color: #fff; }
.btn-outline { border-color: var(--blue-600); color: var(--c-link); background: transparent; }
.btn-outline:hover { background: var(--blue-50); color: var(--navy-800); }
.btn-light { background: #fff; color: var(--c-heading); }
.btn-light:hover { background: var(--gray-100); color: var(--c-heading); }
.btn-ghost { background: transparent; color: var(--c-heading); border-color: var(--gray-300); }
.btn-whatsapp { background: var(--wa-dark); color: #fff; }
.btn-whatsapp:hover { background: #0d6b39; color: #fff; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row-center { justify-content: center; }
/* A main button with a second one centred under it (solar: calculator, then free assessment) on phones and tablets */
@media (max-width: 899px) { .btn-pair { display: inline-flex; flex-direction: column; align-items: center; } }
/* Phones: one row whatever the width — the words shrink a little (app.js sets the row's font size) */
@media (max-width: 639px) {
  .fit-row.fit-row { flex-wrap: nowrap; gap: 6px; font-size: 15px; }   /* doubled class: beats .filter-tabs / .share-row further down */
  .fit-row.fit-row > * { flex: 1 0 auto; white-space: nowrap; font-size: inherit; padding-left: .8em; padding-right: .8em; }
  .fit-row.fit-row > .label { flex: none; padding: 0; }
  .fit-row.fit-row > .btn-lg { min-height: 46px; }
  .share-row.fit-row { gap: 4px; }
  .share-row.fit-row > .btn { padding-left: .55em; padding-right: .55em; }
}

/* ---------------------------------------------------------------- tags */
.tag { display: inline-block; font-size: .78rem; font-weight: 600; line-height: 1.4; padding: 2px 8px; border-radius: 999px; background: var(--gray-100); color: var(--gray-700); vertical-align: middle; white-space: nowrap; }
.tag-pending { background: var(--amber-50); color: var(--amber-600); }
.tag-green { background: var(--green-50); color: var(--green-700); }
.tag-blue { background: var(--blue-50); color: var(--c-link); }
.eyebrow { display: inline-block; font-size: .9rem; font-weight: 700; color: var(--green-700); letter-spacing: .02em; margin-bottom: 6px; }

/* ---------------------------------------------------------------- header */
/* The header box keeps its full height, so the page never jumps; only the visible bar shrinks.
   The strip it frees up is transparent and lets clicks through. */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); pointer-events: none; }
.header-bar { position: relative; isolation: isolate; height: var(--header-h); pointer-events: auto; transition: height .32s cubic-bezier(.2, .7, .2, 1); }
/* Background on a separate layer: a blur on the bar itself would trap the fixed mobile menu inside it */
.header-bar::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--gray-200); transition: background-color .32s ease, box-shadow .32s ease, border-color .32s ease; }
.site-header.is-scrolled .header-bar { height: var(--header-h-s); }
.site-header.is-scrolled .header-bar::before { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border-bottom-color: transparent; box-shadow: 0 6px 22px rgba(11, 34, 67, .09); }
.header-inner { display: flex; align-items: center; gap: 10px; height: 100%; }

/* Fade-in on scroll: only applied by JS to content below the first screen; off for reduced motion */
.reveal-pending { opacity: 0; transform: translateY(14px); }
.reveal-pending.revealed { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
@media (prefers-reduced-motion: reduce) { .reveal-pending { opacity: 1; transform: none; } }
/* Brand: logo on a navy tile (its white "GLAN" lettering disappears on white) + name in Exo 2 */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; text-decoration: none; color: var(--c-heading); }
.brand-mark { flex: none; display: grid; place-items: center; width: var(--mark); height: var(--mark); border-radius: 28%; background: radial-gradient(110% 85% at 50% 22%, #1f5296 0%, #12325f 48%, #0a1f3d 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 3px 10px rgba(11, 34, 67, .22); transition: width .32s cubic-bezier(.2, .7, .2, 1), height .32s cubic-bezier(.2, .7, .2, 1); }
.brand-mark img { display: block; width: 86%; height: 86%; object-fit: contain; }
.site-header.is-scrolled .brand-mark { width: var(--mark-s); height: var(--mark-s); }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.brand-name { font-family: "Exo 2", var(--font); font-style: italic; font-weight: 800; font-size: 1.22rem; letter-spacing: .02em; white-space: nowrap; color: var(--c-heading); transition: font-size .32s cubic-bezier(.2, .7, .2, 1); }
.brand-name span { color: var(--green-700); }
.brand-text small { display: none; max-height: 1.4em; overflow: hidden; margin-top: 3px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--gray-600); white-space: nowrap; transition: max-height .32s ease, opacity .25s ease, margin .32s ease; }
.site-header.is-scrolled .brand-text small { max-height: 0; margin-top: 0; opacity: 0; }

.desktop-nav { display: none; }
.header-actions { display: flex; flex: none; align-items: center; gap: 8px; margin-left: 14px; }   /* clear gap from the name / menu links */

/* Language toggle: links, so it works without JavaScript. All header tools are 36px tall. */
.lang-toggle { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--gray-100); border: 1px solid var(--gray-200); }
.lang-toggle a { display: inline-grid; place-items: center; min-width: 36px; height: 30px; padding: 0 8px; border-radius: 999px; font-size: .82rem; font-weight: 700; line-height: 1; color: var(--navy-800); text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.lang-toggle a:hover { background: #fff; color: var(--c-heading); }
.lang-toggle a[aria-current] { background: linear-gradient(135deg, #146536, #1b7d45); color: #fff; box-shadow: 0 2px 6px rgba(23, 112, 61, .32); }
/* The Bengali font sits its letters a little high; nudge them to the optical centre (measured: EN 2.3px, বাং 1.3px) */
.lang-toggle a[lang="en"] { padding-top: 4.5px; }
.lang-toggle a[lang="bn"] { padding-top: 2.5px; }

.header-call { display: none; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); color: #fff; font-size: .86rem; font-weight: 700; white-space: nowrap; text-decoration: none; box-shadow: 0 3px 10px rgba(22, 97, 217, .25); transition: transform .15s ease, box-shadow .15s ease; }
.header-call:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(22, 97, 217, .35); }

.account-menu, .mobile-menu { position: relative; }
.account-menu > summary, .mobile-menu > summary { list-style: none; }
.account-menu > summary::-webkit-details-marker, .mobile-menu > summary::-webkit-details-marker { display: none; }
/* Round header buttons (services menu, light/dark toggle). Not .icon-btn: the calculators use that name. */
.hdr-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--gray-300); border-radius: 50%; background: #fff; color: var(--c-heading); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.hdr-btn:hover, .account-menu[open] > .hdr-btn { background: var(--blue-50); border-color: var(--blue-500); color: var(--c-link); }
.theme-toggle svg { width: 17px; height: 17px; }
.account-menu > .hdr-btn svg { width: 18px; height: 18px; }
.theme-toggle .ti-sun { display: none; }
.account-panel { position: absolute; z-index: 5; top: calc(100% + 10px); right: 0; width: 310px; padding: 10px; background: #fff; border: 1px solid var(--gray-200); border-radius: 16px; box-shadow: var(--shadow-lg); }
.account-title { margin: 4px 8px 6px; font-size: .8rem; font-weight: 700; color: var(--gray-600); }
.account-panel ul { list-style: none; margin: 0; padding: 0; }
.account-panel a { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 12px; color: var(--c-heading); text-decoration: none; }
.account-panel a:hover { background: var(--gray-50); color: var(--c-heading); }
.account-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--blue-50); color: var(--c-link); }
.account-icon svg { width: 20px; height: 20px; }
.account-panel strong { display: block; font-size: .95rem; line-height: 1.4; }
.account-panel small { display: block; font-size: .82rem; line-height: 1.45; color: var(--gray-600); }

/* Menu button: icon only (the word stays for screen readers) */
.menu-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--gray-300); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s ease; }
.menu-button:hover { border-color: var(--navy-700); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2.5px; border-radius: 2px; position: relative; transition: transform .25s ease, top .25s ease, background-color .2s ease; }
.menu-icon { background: var(--green-600); }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; background: var(--navy-900); }
.menu-icon::before { top: -6.5px; }
.menu-icon::after { top: 6.5px; }
.mobile-menu[open] .menu-icon { background: transparent; }
.mobile-menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
.mobile-menu[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }
.mobile-panel { position: fixed; left: 0; right: 0; top: var(--header-h); bottom: 0; background: #fff; overflow-y: auto; padding: 8px var(--gutter) 120px; border-top: 1px solid var(--gray-200); }
.site-header.is-scrolled .mobile-panel { top: var(--header-h-s); }
.mobile-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-panel li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--gray-100); font-size: 1.1rem; font-weight: 600; color: var(--c-heading); text-decoration: none; }
.mobile-panel li a[aria-current="page"] { color: var(--c-link); }
.mobile-panel-contact { display: grid; gap: 10px; margin-top: 20px; }

/* Phones: four small tools in one row (language, light/dark, services, menu). The language
   toggle shows only the other language as one round chip; the full name "GLAN BD" stays. */
@media (max-width: 639px) {
  .header-actions { gap: 5px; margin-left: 10px; }
  .lang-toggle { padding: 0; }
  .lang-toggle a[aria-current] { display: none; }
  .lang-toggle a { width: 28px; min-width: 0; height: 28px; padding: 0; font-size: .72rem; }   /* + 1px border each side = 30px */
  .hdr-btn { width: 30px; height: 30px; }
  .theme-toggle svg { width: 15px; height: 15px; }
  .account-menu > .hdr-btn svg { width: 16px; height: 16px; }
  .menu-button { width: 34px; height: 34px; border-radius: 10px; }
  .menu-icon, .menu-icon::before, .menu-icon::after { width: 17px; height: 2.2px; }
  .menu-icon::before { top: -5.5px; }
  .menu-icon::after { top: 5.5px; }
  .account-panel { position: fixed; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 6px); width: auto; }
  .site-header.is-scrolled .account-panel { top: calc(var(--header-h-s) + 6px); }
}
@media (max-width: 359px) {
  :root { --mark: 38px; --mark-s: 34px; }
  .header-inner, .header-actions { gap: 4px; }
  .header-actions { margin-left: 6px; }
  .brand { gap: 6px; }
  .brand-name { font-size: 1rem; }
  .lang-toggle a { width: 26px; height: 26px; }   /* + 1px border each side = the 28px round buttons */
  .hdr-btn { width: 28px; height: 28px; }
  .menu-button { width: 32px; height: 32px; }
}
@media (min-width: 640px) {
  .brand-name { font-size: 1.3rem; }
  .site-header.is-scrolled .brand-name { font-size: 1.16rem; }
  .brand-text small { display: block; }
  .header-call { display: inline-flex; }
}
/* Full menu only where it fits in one row; narrower screens use the menu button */
@media (min-width: 1200px) {
  .brand { margin-right: 0; }
  .brand-name { font-size: 1.42rem; }
  .site-header.is-scrolled .brand-name { font-size: 1.2rem; }
  .desktop-nav { display: block; margin: 0 auto; }   /* equal space on both sides */
  .header-actions { margin-left: 22px; }   /* menu links and tools never touch; no divider */
  .desktop-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
  .brand { flex: none; }   /* never squeezed: the nav gives way instead */
  .desktop-nav { min-width: 0; }
  .desktop-nav a { display: block; padding: 8px 8px; border-radius: 999px; color: var(--gray-700); font-weight: 600; font-size: .98rem; white-space: nowrap; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
  .desktop-nav a:hover { background: var(--gray-100); color: var(--c-heading); }
  .desktop-nav a[aria-current="page"] { color: var(--c-link); background: var(--blue-50); }
  .mobile-menu { display: none; }
}
@media (min-width: 1200px) and (max-width: 1319px) {
  .desktop-nav a { padding: 8px 7px; }   /* English labels are longer; keep breathing room at 1200px */
  .header-actions { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .header-bar, .header-bar::before, .brand-mark, .brand-name, .brand-text small { transition: none; }
}

/* ---------------------------------------------------------------- breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 14px 0 0; margin: 0; font-size: .92rem; color: var(--gray-600); }
.breadcrumbs li + li::before { content: "›"; margin: 0 6px; color: var(--gray-500); }
.breadcrumbs a { color: var(--gray-600); }

/* ---------------------------------------------------------------- sections */
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-gray { background: var(--gray-50); }
.section-navy { background: var(--navy-900); color: #dbe6f5; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.12rem; color: var(--gray-700); }
.section-navy .lead { color: #c9d7ec; }
@media (min-width: 900px) { .section { padding: 80px 0; } }
/* Phones: even, tighter spacing between sections (about 60px from one section's last line to the next
   section's first) and no extra margin under the last line of a section or card. */
@media (max-width: 639px) {
  .section { padding: 30px 0; }
  .section-sm { padding: 22px 0; }
  .page-hero { padding-bottom: 22px; }
  main :is(p, ul, ol, dl, .btn-row, .table-wrap, .section-cta, .notice):last-child { margin-bottom: 0; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 45%, #effaf3 100%); padding: 36px 0 44px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { margin-bottom: 14px; }
.hero .lead { margin-bottom: 22px; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--gray-700); }
.hero-points li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.hero-visual { position: relative; }
.hero-visual .product-visual { background: radial-gradient(circle at 50% 45%, #ffffff 0%, #e8f0fc 70%); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.hero-models { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero-models a { font-weight: 600; font-size: .92rem; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--gray-300); text-decoration: none; color: var(--c-heading); }
.hero-models a:hover { border-color: var(--blue-600); color: var(--c-link); }
@media (min-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .hero .lead { text-wrap: balance; }   /* SS9: even lines instead of a short last line */
}
/* Hero photo: white frame, soft shadow, 5° tilt; desktop height kept level with the text column.
   It turns to 3° on hover (desktop) or on tap (phones: app.js toggles .is-moved). */
.hero-photo { display: block; width: min(64%, 240px); margin: 6px auto 4px; padding: 9px; background: #fff; border-radius: 20px; box-shadow: 0 1px 0 rgba(11, 34, 67, .04), 0 18px 40px -12px rgba(11, 34, 67, .32); transform: rotate(5deg); -webkit-tap-highlight-color: transparent; }
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 13px; }
@media (min-width: 900px) {
  .hero-photo { width: min(100%, 330px); margin: 0 auto; padding: 12px; border-radius: 22px; box-shadow: 0 1px 0 rgba(11, 34, 67, .04), 0 22px 48px -12px rgba(11, 34, 67, .32); }
  .hero-photo img { border-radius: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-photo { transition: transform .4s ease; }
  .hero-photo:hover { transform: rotate(3deg); }
  .hero-photo.is-moved { animation: hero-sway .7s ease; }
}
@keyframes hero-sway { 0% { transform: rotate(5deg); } 30% { transform: rotate(1.5deg) scale(1.02); } 65% { transform: rotate(6.5deg); } 100% { transform: rotate(5deg); } }
.page-hero { background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 60%, #effaf3 100%); padding: 28px 0 40px; }
.page-hero .lead { max-width: 760px; }
@media (min-width: 900px) { .page-hero { padding: 40px 0 56px; } }

/* ---------------------------------------------------------------- grids & cards */
.grid { display: grid; gap: 18px; }
ul.grid { list-style: none; padding: 0; margin: 0; }
.section-navy .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.section-navy .card .muted { color: #c9d7ec; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--blue-500); box-shadow: var(--shadow); color: inherit; transform: translateY(-2px); }
.card-link .more { display: inline-block; margin-top: 8px; font-weight: 600; color: var(--c-link); }
.icon-badge { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; align-items: center; justify-content: center; background: var(--blue-50); color: var(--c-link); margin-bottom: 12px; }
.icon-badge.green { background: var(--green-50); color: var(--green-700); }
.icon-badge svg { width: 26px; height: 26px; }

/* product cards */
.product-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } .product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .15s, border-color .15s; }
.product-card:hover { box-shadow: var(--shadow); border-color: var(--gray-300); }
.product-card-visual { display: block; background: linear-gradient(180deg, #f4f7fb, #e9eff7); }
/* EV photos: upright pack in its carton, same tall frame everywhere (also beats the home rail 16:10 rule) */
.product-visual.is-tall, .page-home .model-rail .product-visual.is-tall { aspect-ratio: 3 / 4; }
.product-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-fits { margin: 0 0 2px; font-size: .9rem; font-weight: 600; color: var(--green-700); }
.product-name { font-size: 1.15rem; margin: 0 0 10px; }
.product-name a { color: var(--c-heading); text-decoration: none; }
.product-name a:hover { color: var(--c-link); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 0 0 16px; }
.facts div { background: var(--gray-50); border-radius: 8px; padding: 6px 10px; }
.facts dt { font-size: .78rem; color: var(--gray-600); line-height: 1.3; }
.facts dd { margin: 0; font-weight: 700; color: var(--c-heading); font-size: .98rem; line-height: 1.4; }
/* Card facts: two equal columns that never push past the card; a lone last fact (size) spans both */
.facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.facts-stack { grid-template-columns: 1fr; }
.facts-stack div { background: #fff; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.card-actions .btn { flex: 1 1 auto; }

.product-visual { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.product-visual picture, .product-visual img, .product-visual svg { width: 100%; height: 100%; object-fit: contain; }
.product-visual .ev-svg { padding: 6% 4%; }
.img-missing { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--gray-500); font-size: .9rem; }

/* buyer route cards — the link sits at the bottom, so cards in one row share the same link line;
   compact rows on phones so all four fit in about one screen */
.route-card { display: flex; flex-direction: column; align-items: flex-start; }
.route-card h3 { font-size: 1.1rem; }
.route-card .more { margin-top: auto; padding-top: 12px; }
@media (max-width: 639px) {
  .route-card { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; padding: 14px 16px; }
  .route-card .icon-badge { grid-row: span 3; margin: 0; }
  .route-card h3 { font-size: 1.02rem; margin: 0 0 2px; }
  .route-card p { font-size: .92rem; margin: 0; line-height: 1.5; }
  .route-card .more { margin-top: 4px; padding-top: 0; font-size: .95rem; justify-self: start; }
}

/* filter tabs */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter-tabs button { font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--gray-300); background: #fff; color: var(--gray-700); cursor: pointer; min-height: 42px; }
.filter-tabs button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--gray-100); }
thead th { background: var(--gray-50); color: var(--c-heading); font-size: .9rem; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.spec-table th { width: 42%; color: var(--gray-600); font-weight: 600; }
.spec-table td { color: var(--gray-950); font-weight: 600; }
.spec-note { display: block; font-weight: 400; font-size: .88rem; color: var(--gray-600); margin-top: 2px; }
.compare-table td, .compare-table th { white-space: nowrap; }
.compare-table td:first-child { font-weight: 700; }

/* ---------------------------------------------------------------- steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.step { display: flex; gap: 14px; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; }
.step-num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-title { font-size: 1.05rem; margin: 2px 0 4px; }
.step p { margin: 0; color: var(--gray-700); }
@media (min-width: 900px) { .steps.cols { grid-template-columns: repeat(4, 1fr); } .steps.cols .step { flex-direction: column; } }

/* ---------------------------------------------------------------- faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq-item { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }
.faq-item summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; color: var(--c-heading); list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--c-link); line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 18px 4px; color: var(--gray-700); }

/* ---------------------------------------------------------------- notices */
.notice { border-radius: var(--radius-sm); padding: 14px 16px; background: var(--blue-50); color: var(--c-heading); border-left: 4px solid var(--blue-600); }
.notice-amber { background: var(--amber-50); border-left-color: var(--amber-600); }
.notice-green { background: var(--green-50); border-left-color: var(--green-600); }
.notice p:last-child { margin: 0; }

/* ---------------------------------------------------------------- forms */
.inquiry-box { background: #fff; border: 1px solid var(--gray-200); border-radius: 18px; padding: 22px 18px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .inquiry-box { padding: 30px; } }
.inquiry-title { font-size: 1.35rem; }
.inquiry-intro { color: var(--gray-700); }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; gap: 16px 18px; } .field-wide { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; color: var(--c-heading); margin-bottom: 4px; font-size: .98rem; }
.field .req { color: var(--red-600); }
.field .hint { font-size: .85rem; color: var(--gray-600); margin: -2px 0 6px; line-height: 1.5; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 1rem; color: var(--gray-950);
  background: #fff; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(22, 97, 217, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-600); }
.field-error { color: var(--red-600); font-size: .9rem; font-weight: 600; margin: 4px 0 0; }
.form-alert { background: var(--red-50); color: var(--red-600); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 600; margin-bottom: 16px; }

/* Inquiry status result */
.status-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 18px; padding: 22px 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.status-id { display: flex; flex-direction: column; margin-bottom: 8px; }
.status-id span { font-size: .85rem; font-weight: 600; color: var(--gray-600); }
.status-id strong { font-size: 1.5rem; letter-spacing: .02em; color: var(--c-heading); }
.status-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .92rem; color: var(--gray-600); }
.status-steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 18px 0 10px; padding: 0; counter-reset: none; }
.status-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--gray-500); text-align: center; line-height: 1.3; }
.status-steps li::before { content: ""; position: absolute; top: 8px; right: 50%; width: 100%; height: 3px; background: var(--gray-200); z-index: 0; }
.status-steps li:first-child::before { display: none; }
.status-dot { position: relative; z-index: 1; width: 19px; height: 19px; border-radius: 50%; background: #fff; border: 3px solid var(--gray-300); }
.status-steps .is-done, .status-steps .is-current { color: var(--c-heading); }
.status-steps .is-done .status-dot { background: var(--green-600); border-color: var(--green-600); }
.status-steps .is-done::before, .status-steps .is-current::before { background: var(--green-600); }
.status-steps .is-current .status-dot { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(47, 174, 95, .2); }
.status-now { font-size: 1.12rem; font-weight: 700; color: var(--c-heading); margin: 12px 0 4px; }
.form-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.form-note { font-size: .88rem; color: var(--gray-600); margin: 0; }
@media (min-width: 640px) { .form-actions { flex-direction: row; align-items: center; gap: 18px; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.calc-attached { grid-column: 1 / -1; background: var(--green-50); color: var(--green-700); font-weight: 600; padding: 10px 12px; border-radius: var(--radius-sm); margin: 0; }
.form-success { text-align: left; }
.form-success:focus { outline: none; }
.success-title { color: var(--green-700); font-size: 1.35rem; display: flex; gap: 10px; align-items: center; }
.success-title::before { content: ""; width: 30px; height: 30px; border-radius: 50%; background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; flex: none; }
.success-id { font-size: 1.1rem; background: var(--gray-50); border: 1px dashed var(--gray-300); border-radius: var(--radius-sm); padding: 10px 14px; }
.success-id strong { font-size: 1.25rem; letter-spacing: .03em; color: var(--c-heading); }

/* ---------------------------------------------------------------- contact */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-label { font-size: .85rem; color: var(--gray-600); font-weight: 600; }
.contact-value { font-weight: 600; color: var(--c-heading); font-size: 1.05rem; }
a.contact-value { color: var(--c-link); }
.small-link { font-size: .9rem; }
.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } .split-wide { grid-template-columns: .9fr 1.1fr; } }
/* Sticky shorter column, chosen and offset by app.js (header height measured there) */
@media (min-width: 900px) { .split > .split-stick { position: sticky; top: var(--stick-top, 0); } }

/* ---------------------------------------------------------------- bands */
.band { border-radius: 22px; padding: 28px 22px; display: grid; gap: 18px; align-items: center; }
.band-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #dbe6f5; }
.band-navy h2 { color: #fff; }
.band-green { background: linear-gradient(135deg, #0f5e33, var(--green-600)); color: #e5f6ec; }
.band-green h2 { color: #fff; }
.band p { margin: 0; }
.band h2, .band p { text-wrap: balance; }   /* even lines: no single word left alone on the last line */
@media (min-width: 900px) { .band { grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; padding: 40px 44px; } .band > div { max-width: 640px; } }

/* ---------------------------------------------------------------- media */
.photo { border-radius: var(--radius); overflow: hidden; background: var(--gray-100); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.photo-grid .photo { aspect-ratio: 4 / 3; }
.photo-grid .photo.wide { grid-column: 1 / -1; aspect-ratio: 2 / 1; }   /* the team photo is very wide: 2:1 keeps everyone in */
figure { margin: 0; }
figcaption { font-size: .88rem; color: var(--gray-600); margin-top: 6px; }

/* ---------------------------------------------------------------- calculators */
.calc { display: grid; gap: 22px; }
@media (min-width: 1000px) { .calc { grid-template-columns: 1fr 1fr; align-items: start; } }
.calc-panel { background: #fff; border: 1px solid var(--gray-200); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-sm); }
.calc-panel h2 { font-size: 1.25rem; }
fieldset { min-width: 0; }   /* browsers default to min-content, which can push a form past a phone's edge */
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.choice-row label { max-width: 100%; }
.choice-row label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--gray-300); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem; min-height: 42px; }
.choice-row input { accent-color: var(--blue-600); }
.choice-row label:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); color: var(--c-heading); }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 600; color: var(--c-heading); margin-bottom: 6px; padding: 0; }
.result-card { background: var(--navy-900); color: #dbe6f5; border-radius: 18px; padding: 22px; }
.result-card h2, .result-card h3 { color: #fff; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.result-item { background: rgba(255, 255, 255, .07); border-radius: 12px; padding: 12px; }
.result-item span { display: block; font-size: .82rem; color: #b8c8df; line-height: 1.35; }
.result-item strong { display: block; color: #fff; font-size: 1.25rem; line-height: 1.3; margin-top: 2px; }
.result-item.wide { grid-column: 1 / -1; }
.result-card .assumptions { font-size: .85rem; color: #b8c8df; }
.result-card .assumptions li { margin-bottom: 4px; }
.result-empty { color: #b8c8df; }
.appliance-table td { vertical-align: middle; padding: 8px 10px; }
.appliance-table input { width: 100%; min-width: 64px; min-height: 40px; padding: 6px 8px; font: inherit; border: 1.5px solid var(--gray-300); border-radius: 8px; }
.appliance-table .num-col { width: 90px; }
.calc { grid-template-columns: minmax(0, 1fr); }   /* a wide table must never widen the page */
/* Grid columns may shrink below their content (tables, forms, long English words): a wide table then
   scrolls inside its own frame instead of pushing the whole page sideways on phones. */
:is(.split, .grid, .product-grid, .hero-grid, .product-hero, .calc, .footer-grid, .form-grid, .band, .selector) > * { min-width: 0; }
/* Phones: the appliance table becomes rows of cards — the name on its own line, then the three numbers
   and the remove button side by side. Fields are 16px so phones do not zoom in (and shift the page) on tap. */
@media (max-width: 639px) {
  .calc-panel { padding: 16px 14px; }
  .appliance-table, .appliance-table tbody { display: block; width: 100%; }
  .appliance-table thead tr, .appliance-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 40px; gap: 4px 8px; align-items: center; padding: 8px 10px; }
  .appliance-table thead { display: block; }
  .appliance-table thead tr { background: var(--gray-50); }
  .appliance-table thead th { padding: 0; border: 0; background: none; font-size: .82rem; }
  .appliance-table td { border: 0; }
  .appliance-table thead th:first-child { display: none; }
  .appliance-table .num-col { width: auto; }
  .appliance-table tbody tr { border-top: 1px solid var(--gray-200); }
  .appliance-table td { display: block; padding: 0; min-width: 0; }
  .appliance-table td:first-child { grid-column: 1 / -1; font-weight: 600; line-height: 1.4; }
  .appliance-table input { min-width: 0; }
  .calc-panel input, .calc-panel select, .calc-panel textarea { font-size: 16px; }
  .add-row select { min-width: 0; }
  .add-row .btn { flex: none; }
}
.icon-btn { border: 0; background: var(--gray-100); color: var(--gray-700); border-radius: 8px; min-width: 40px; min-height: 40px; cursor: pointer; font-size: 1.1rem; }
.icon-btn:hover { background: var(--red-50); color: var(--red-600); }
.noscript-note { background: var(--amber-50); color: var(--amber-600); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; }

/* ---------------------------------------------------------------- selector */
.selector { display: grid; gap: 14px; }
.selector-result { min-height: 60px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy-950); color: #b8c8df; padding: 48px 0 0; font-size: .96rem; }
.site-footer a { color: #e2ebf7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 30px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } }
/* Same navy tile as the header: on the old white pad the logo's white lettering disappeared */
.footer-brand img { background: radial-gradient(110% 85% at 50% 22%, #1f5296 0%, #12325f 48%, #0a1f3d 100%); border-radius: 28%; padding: 5px; margin-bottom: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.footer-name { color: #fff; font-weight: 700; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-contact span { display: block; font-size: .8rem; color: #8ea3c2; }
.social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 14px; max-width: 360px; }   /* six links, three per line in equal columns (Mostak, 2026-11-09); never widens the page */
.social a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 36px; padding-top: 18px; padding-bottom: 90px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (min-width: 900px) { .footer-bottom { padding-bottom: 24px; } }

/* ---------------------------------------------------------------- mobile contact bar */
/* Floating quick-contact bar (phones/tablets). Steps aside while reading down, typing, or with the menu open. */
.mobile-bar { position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; padding: 5px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border: 1px solid rgba(11, 34, 67, .08); border-radius: 18px; box-shadow: 0 10px 30px rgba(11, 34, 67, .18), 0 2px 6px rgba(11, 34, 67, .08); transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .3s ease; }
.mobile-bar { border: 1.5px solid rgba(22, 97, 217, .42); }   /* the bar's edge in brand blue, so it stands clear of the page */
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px; border-radius: 13px; font-size: .9rem; font-weight: 700; white-space: nowrap; color: var(--c-heading); text-decoration: none; transition: background-color .15s ease, transform .1s ease; }
.mobile-bar a:active { transform: scale(.97); }
.mobile-bar svg { flex: none; width: 19px; height: 19px; }
.mobile-bar .qb-call:hover { background: var(--gray-100); color: var(--c-heading); }
.mobile-bar .qb-wa { background: var(--green-50); color: #0e6b39; }
.mobile-bar .qb-inq { background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); color: #fff; box-shadow: 0 4px 12px rgba(22, 97, 217, .3); }
.qb-icon { position: relative; display: inline-grid; }
.qb-dot { position: absolute; top: -3px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 2px #fff; }
.mobile-bar.is-away, .menu-open .mobile-bar, .is-typing .mobile-bar { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
@media (max-width: 359px) {
  .mobile-bar { left: 6px; right: 6px; gap: 4px; padding: 4px; }
  .mobile-bar a { gap: 5px; font-size: .8rem; }
  .mobile-bar svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) { .mobile-bar { transition: none; } }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ---------------------------------------------------------------- consent */
.consent { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px; font-size: .92rem; }
.consent-actions { display: flex; gap: 10px; }
@media (min-width: 900px) { .consent { bottom: 20px; } }

/* ---------------------------------------------------------------- misc */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.2em; }
.prose li { margin-bottom: 6px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip-list li { background: #fff; border: 1px solid var(--gray-300); border-radius: 999px; padding: 4px 12px; font-size: .92rem; font-weight: 500; }
.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; }
.stat strong { display: block; font-size: 1.15rem; color: var(--c-heading); }
.stat span { font-size: .9rem; color: var(--gray-600); }
.not-found { text-align: center; padding: 80px 0; }
.product-hero { display: grid; gap: 24px; }
@media (min-width: 900px) { .product-hero { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.product-hero .product-visual { background: linear-gradient(180deg, #f4f7fb, #e6edf7); border-radius: 20px; }
.product-hero .product-visual.is-tall { max-width: 420px; margin-inline: auto; overflow: hidden; }
.key-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; list-style: none; padding: 0; }
.key-chips li { background: var(--blue-50); color: var(--c-heading); border-radius: 10px; padding: 6px 12px; font-weight: 700; }
.key-chips li span { display: block; font-size: .75rem; font-weight: 600; color: var(--gray-600); }
.section-cta { margin: 24px 0 0; }

/* compare */
@media (min-width: 900px) { .mobile-only { display: none; } }
.compare-check { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--c-link); margin-bottom: 6px; cursor: pointer; }
.compare-check input { width: 18px; height: 18px; accent-color: var(--blue-600); }
.compare-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 12px 16px; margin: 8px 0 24px; box-shadow: var(--shadow); }
.js-compare .compare-bar { position: sticky; bottom: 72px; z-index: 40; }
@media (min-width: 900px) { .js-compare .compare-bar { bottom: 16px; } }
.compare-bar .btn[disabled] { opacity: .5; cursor: not-allowed; }
.spec-compare th, .spec-compare td { min-width: 160px; vertical-align: top; }
.spec-compare tbody th { color: var(--gray-600); font-weight: 600; background: var(--gray-50); position: sticky; left: 0; min-width: 130px; }
.compare-head { display: block; text-decoration: none; color: var(--c-heading); font-weight: 700; }
.compare-head .product-visual { background: var(--gray-50); border-radius: 10px; margin-bottom: 6px; }
.th-icon { display: inline-flex; vertical-align: -6px; margin-right: 4px; color: var(--c-link); }
.th-icon svg { width: 18px; height: 18px; }
.replace-guide { background: linear-gradient(135deg, #f3f8ff, #effaf3); }
@media (max-width: 639px) {
  .stack-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack-table tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--gray-200); }
  .stack-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; white-space: normal; text-align: right; }
  .stack-table td::before { content: attr(data-label); font-weight: 600; color: var(--gray-600); text-align: left; }
}

/* calculator extras: bars, presets, wizard, actions */
.chart-title { font-size: 1rem; margin: 18px 0 8px; }
.bar-chart { display: grid; gap: 6px; margin-bottom: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; align-items: center; gap: 10px; font-size: .88rem; }
.bar-label { color: #dbe6f5; line-height: 1.3; }
.bar-track { height: 14px; background: rgba(255, 255, 255, .08); border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: #7fb3ff; border-radius: 0 4px 4px 0; }
.bar-fill.is-muted { background: #9aa9bd; }
.bar-value { color: #fff; font-weight: 700; white-space: nowrap; }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.preset { font: inherit; font-weight: 600; font-size: .92rem; padding: 6px 12px; border: 1.5px solid var(--gray-300); border-radius: 10px; background: #fff; color: var(--c-heading); cursor: pointer; line-height: 1.3; text-align: left; }
.preset small { display: block; font-weight: 500; color: var(--gray-600); font-size: .78rem; }
.preset:hover, .preset.is-active { border-color: var(--blue-600); background: var(--blue-50); }
.wizard-progress { font-size: .85rem; font-weight: 600; color: var(--c-link); background: var(--blue-50); padding: 2px 10px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.print-only { display: none; }
@media print {
  .site-header, .site-footer, .mobile-bar, .consent, .breadcrumbs, .calc-panel, .result-actions, .noscript-note, [data-send-calc], .skip-link, .page-hero .lead { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .page-hero { background: none; padding: 0 0 8px; }
  .calc { display: block; }
  .result-card { background: #fff; color: #000; border: 1px solid #999; }
  .result-card h2, .result-card h3, .result-item strong, .bar-value, .bar-label { color: #000; }
  .result-item { background: #f3f3f3; }
  .result-item span, .result-card .assumptions { color: #333; }
  .bar-fill { background: #555 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .print-only { display: block; font-weight: 600; }
  .assumptions-box { display: block; }
  .assumptions-box summary { color: #000; }
}

/* diagrams */
.diagram { margin: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; overflow-x: auto; }
.diagram svg { min-width: 560px; width: 100%; height: auto; }
.diagram .d-label { font-size: 15px; font-weight: 600; fill: var(--c-heading); }
.diagram .d-strong { font-size: 15px; font-weight: 700; fill: var(--c-heading); }
.diagram .d-small { font-size: 12px; fill: var(--gray-600); }
.nm-flow { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
@media (min-width: 640px) { .nm-flow { grid-template-columns: repeat(3, 1fr); } }
.nm-step { position: relative; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; }
.nm-step h3 { font-size: 1.02rem; margin: 6px 0 4px; }
.nm-step p { margin: 0; font-size: .95rem; color: var(--gray-700); }
.nm-icon { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; background: var(--blue-50); color: var(--c-link); }
@media (min-width: 640px) { .nm-step:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--c-link); font-weight: 700; background: var(--gray-50); border-radius: 50%; width: 22px; text-align: center; z-index: 1; } }

/* about */
.md-message { display: grid; gap: 18px; align-items: center; }
@media (min-width: 700px) { .md-message { grid-template-columns: 160px 1fr; } }
.md-photo img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.md-message blockquote { margin: 0 0 10px; font-size: 1.08rem; }
.mv-card h2 { font-size: 1.3rem; }
.mv-vision { font-size: 1.12rem; color: var(--c-heading); font-weight: 500; }
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery-item .photo { aspect-ratio: 4 / 3; }
.gallery-item.wide { grid-column: 1 / -1; }
@media (min-width: 900px) { .gallery-item.wide { grid-column: span 2; grid-row: span 2; } .gallery-item.wide .photo { aspect-ratio: auto; height: calc(100% - 30px); } }
.md-photo img { object-position: center top; }

/* team */
.team-section { background: radial-gradient(1200px 400px at 50% 0%, #eef4ff 0%, rgba(238, 244, 255, 0) 70%); }
.team-filter { justify-content: flex-start; gap: 8px; }
.team-description { max-width: 720px; margin-inline: auto; text-wrap: balance; }
@media (max-width: 699px) {
  .team-filter { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .team-filter::-webkit-scrollbar { display: none; }
  .team-filter button { flex: none; white-space: nowrap; }
}
.team-group { margin-top: 30px; }
.team-group-title { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; margin-bottom: 14px; }
.team-group-icon { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; align-items: center; justify-content: center; background: var(--blue-50); color: var(--c-link); }
.team-group-icon svg { width: 20px; height: 20px; }
.team-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.team-card { position: relative; margin: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: 20px; padding: 18px 14px 18px; text-align: center; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.team-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 74px; background: linear-gradient(120deg, var(--navy-800) 0%, var(--blue-600) 55%, var(--green-500) 100%); }
.team-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--blue-600), var(--green-500)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.team-card:hover::after { transform: scaleX(1); }
.team-avatar { position: relative; z-index: 1; width: 104px; height: 104px; margin: 14px auto 12px; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--green-500), var(--blue-500)); box-shadow: 0 10px 24px rgba(11, 34, 67, .2); transition: transform .25s ease; }
.team-card:hover .team-avatar { transform: scale(1.04); }
.team-avatar picture, .team-avatar img, .team-avatar svg { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid #fff; background: #fff; }
.team-card.is-lead .team-avatar { width: 120px; height: 120px; }
.team-card figcaption { position: relative; z-index: 1; }
.team-card strong { display: block; font-size: 1.05rem; color: var(--c-heading); line-height: 1.35; }
.team-role { display: block; color: var(--gray-600); font-size: .9rem; line-height: 1.45; margin-top: 3px; min-height: 2.6em; }
.team-dept { display: inline-block; margin-top: 10px; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-700); }
.team-card.is-placeholder { border-style: dashed; border-color: var(--gray-300); }
.team-card.is-placeholder::before { opacity: .55; }
.team-card.is-placeholder strong { color: var(--gray-500); font-weight: 600; }
@media (max-width: 699px) {
  .team-avatar { width: 84px; height: 84px; }
  .team-card.is-lead .team-avatar { width: 92px; height: 92px; }
  .team-card { padding: 14px 10px; }
  .team-card::before { height: 62px; }
  .team-role { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) { .team-card, .team-avatar, .team-card::after { transition: none; } }

/* inquiry success: next steps */
.next-title { font-size: 1rem; margin: 14px 0 6px; color: var(--c-heading); }
.next-steps { list-style: none; counter-reset: ns; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.next-steps li { counter-increment: ns; position: relative; padding-left: 36px; line-height: 1.5; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-50); color: var(--c-link); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.lang-bn .next-steps li::before { content: counter(ns, bengali); }

/* contact */
.open-now { display: inline-block; font-weight: 600; padding: 4px 12px; border-radius: 999px; font-size: .95rem; margin: 0; }
.open-now.is-open { background: var(--green-50); color: var(--green-700); }
.open-now.is-closed { background: var(--amber-50); color: var(--amber-600); }
.dept-card .contact-value { font-size: 1.02rem; }
.map-card { margin: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; justify-items: start; }
.map-card > svg { width: 100%; height: auto; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* dealer */
.district-chips { margin: 14px 0 18px; }
.district-chips li { display: inline-flex; align-items: center; gap: 4px; }
.district-chips svg { width: 16px; height: 16px; color: var(--green-600); }
.coverage .btn { margin: 4px 8px 0 0; }
.dealer-document-grid { align-items: stretch; }
.dealer-document { display: flex; flex-direction: column; align-items: flex-start; }
.dealer-document h3 { line-height: 1.45; }
.dealer-document .dealer-document-meta { margin-top: auto; padding-top: 12px; color: var(--gray-600); font-size: .9rem; }
.dealer-document .btn { margin-top: 4px; }
.dealer-profile-card { max-width: 340px; }
.benefit-table td { white-space: normal; }
.benefit-name { display: flex; align-items: center; gap: 10px; }
.benefit-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--green-50); color: var(--green-700); }
.benefit-icon svg { width: 20px; height: 20px; }
/* Phones: each benefit is a card — icon and name on top, then "What you get" and "Condition" each with a
   small label above full-width text (no right-aligned two-column rows). */
@media (max-width: 639px) {
  .benefit-wrap { overflow: visible; border: 0; background: none; box-shadow: none; }
  html[data-theme="dark"] .benefit-wrap { background: none; }
  .benefit-table, .benefit-table tbody { display: block; }
  .benefit-table tbody { display: grid; gap: 12px; }
  .benefit-table tr { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
  html[data-theme="dark"] .benefit-table tr { background: var(--d-surface); }
  .benefit-table td { display: block; padding: 0; text-align: left; line-height: 1.6; }
  .benefit-table td:first-child::before { content: none; }
  .benefit-table td:first-child { font-size: 1.1rem; color: var(--c-heading); }
  .benefit-table td + td::before { display: block; width: max-content; margin-bottom: 4px; padding: 1px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.6; }
  .benefit-table td:nth-child(2)::before { background: var(--green-50); color: var(--green-700); }
  .benefit-table td:nth-child(3) { padding: 10px 12px; border-radius: 10px; background: var(--gray-50); color: var(--gray-700); font-size: .95rem; }
  .benefit-table td:nth-child(3)::before { background: var(--gray-200); color: var(--gray-700); }
}

/* share */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.share-row .label { font-size: .9rem; color: var(--gray-600); font-weight: 600; }

/* demo mode (local preview only) */
.demo-banner { background: #fff3cd; color: #664d03; border-bottom: 2px solid #f0c040; padding: 8px var(--gutter); font-size: .9rem; font-weight: 600; text-align: center; }
.demo-banner a { color: #664d03; margin-left: 8px; }
.video-demo { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); }
.video-demo-text { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 600; }

/* video */
.video-box { margin: 0; }
.video-box video, .video-box iframe, .video-facade { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: var(--navy-950); }
.video-facade { position: relative; overflow: hidden; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(198, 40, 40, .92); box-shadow: var(--shadow-lg); }
.video-play::after { content: ""; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.video-facade:hover .video-play { background: #c62828; transform: scale(1.05); }
.video-box figcaption { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* testimonials */
.testimonial blockquote { margin: 0 0 12px; font-size: 1.02rem; color: var(--gray-800); }
.testimonial blockquote p::before { content: "“"; color: var(--green-600); font-size: 1.6rem; line-height: 0; margin-right: 2px; }
.testimonial figcaption { display: flex; gap: 10px; align-items: center; }
.testimonial-photo img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.h3 { font-size: 1.15rem; }
.add-row { display: flex; gap: 8px; margin: 12px 0 18px; }
.add-row select { flex: 1; min-height: 42px; font: inherit; padding: 6px 10px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); background: #fff; }
.assumptions-box { margin: 12px 0 16px; }
.assumptions-box summary { cursor: pointer; color: #fff; font-weight: 600; }
.result-card .btn { margin-top: 8px; }
.anchor-offset { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ================================================================ dark theme
   Applied when <html data-theme="dark"> (set by theme.js before the page draws: the visitor's choice,
   otherwise the phone/computer setting). Light theme rules above are not changed by anything here.
   Rules of thumb: navy-tinted greys instead of pure black; soft white text instead of pure white;
   surfaces step lighter as they rise (page < card < menu); brand colours lifted so they stay readable. */
html[data-theme="dark"] {
  color-scheme: dark;
  --d-bg: #0b1420;
  --d-surface: #142131;
  --d-surface-2: #1a293c;
  --d-input: #0f1a28;
  --d-photo: radial-gradient(circle at 50% 40%, #2a4466 0%, #1a2c44 75%);

  --white: var(--d-bg);
  --gray-50: #0f1928;
  --gray-100: #172435;
  --gray-200: #243446;
  --gray-300: #31445a;
  --gray-500: #8391a4;
  --gray-600: #a3afbf;
  --gray-700: #bac5d2;
  --gray-800: #d6dee9;
  --gray-950: #eef2f7;
  --blue-50: rgba(79, 140, 255, .14);
  --green-50: rgba(52, 190, 105, .14);
  --amber-50: rgba(245, 170, 50, .14);
  --red-50: rgba(255, 105, 105, .14);
  --green-700: #62d593;
  --amber-600: #f3b456;
  --red-600: #ff8c8c;
  --c-heading: #eef2f7;
  --c-link: #7fb2ff;
  --c-link-hover: #a8cbff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .3);
  --shadow: 0 4px 16px rgba(0, 0, 0, .35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
}

/* Surfaces that were plain white */
html[data-theme="dark"] :is(.card, .product-card, .table-wrap, .step, .faq-item, .inquiry-box, .status-card, .calc-panel, .chip-list li, .stat, .compare-bar, .preset, .diagram, .nm-step, .team-card, .map-card, .filter-tabs button, .hero-models a, .facts-stack div, .hdr-btn, .menu-button) { background: var(--d-surface); }
html[data-theme="dark"] :is(.account-panel, .consent) { background: var(--d-surface-2); border-color: var(--gray-300); }
html[data-theme="dark"] .section-navy .card { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] :is(.field input, .field select, .field textarea, .appliance-table input, .add-row select) { background: var(--d-input); color: var(--gray-950); }
html[data-theme="dark"] :is(.field input, .field textarea)::placeholder { color: #75849a; }

/* Gradients and photo frames */
html[data-theme="dark"] :is(.hero, .page-hero) { background: linear-gradient(135deg, #0f1f38 0%, #0b1420 50%, #0c1f1b 100%); }
html[data-theme="dark"] .replace-guide { background: linear-gradient(135deg, #12233c, #10241f); }
html[data-theme="dark"] .team-section { background: radial-gradient(1200px 400px at 50% 0%, rgba(79, 140, 255, .10) 0%, rgba(79, 140, 255, 0) 70%); }
html[data-theme="dark"] :is(.product-card-visual, .product-hero .product-visual, .hero-visual .product-visual) { background: var(--d-photo); }
html[data-theme="dark"] .hero-photo { background: var(--d-surface); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 22px 48px -12px rgba(0, 0, 0, .6); }
html[data-theme="dark"] :is(.product-visual, .photo, .md-photo, .testimonial-photo) img { filter: brightness(.9); }
html[data-theme="dark"] .status-dot { background: var(--d-surface); }
html[data-theme="dark"] .team-avatar :is(picture, img, svg) { border-color: var(--d-surface); background: var(--d-surface); }
html[data-theme="dark"] .avatar-ph rect { fill: #1d2d42; }
html[data-theme="dark"] .avatar-ph :is(circle, path) { fill: #3d5370; }

/* Things that were navy on white */
html[data-theme="dark"] .filter-tabs button[aria-pressed="true"] { background: #245ec9; border-color: #245ec9; color: #fff; }
html[data-theme="dark"] .step-num { background: rgba(79, 140, 255, .18); color: var(--c-link-hover); }
html[data-theme="dark"] .result-card { background: #10223d; border: 1px solid #22395c; }
html[data-theme="dark"] .btn-light, html[data-theme="dark"] .btn-light:hover { color: #0b2243; }
html[data-theme="dark"] .btn-light:hover { background: #e3e9f1; }
html[data-theme="dark"] .btn-green { background: #1a7a43; }
html[data-theme="dark"] .btn-green:hover { background: #15693a; }
html[data-theme="dark"] .btn-whatsapp { background: #0f7a41; }
html[data-theme="dark"] .btn-whatsapp:hover { background: #0c6836; }
html[data-theme="dark"] .btn-outline { border-color: #5b95f5; }
html[data-theme="dark"] .btn-outline:hover { color: var(--c-link-hover); }
html[data-theme="dark"] .site-footer { border-top: 1px solid var(--gray-200); }

/* Header */
html[data-theme="dark"] .header-bar::before { background: rgba(11, 20, 32, .96); }
html[data-theme="dark"] .site-header.is-scrolled .header-bar::before { background: rgba(11, 20, 32, .84); box-shadow: 0 6px 22px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .brand-mark { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 0 1px rgba(255, 255, 255, .12), 0 3px 10px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .lang-toggle a { color: #c9d4e2; }
html[data-theme="dark"] .lang-toggle a:hover { background: var(--d-surface-2); color: var(--c-heading); }
html[data-theme="dark"] .lang-toggle a[aria-current] { color: #fff; }
html[data-theme="dark"] .menu-button:hover { border-color: #4a6a90; }
html[data-theme="dark"] .menu-icon::before, html[data-theme="dark"] .menu-icon::after { background: var(--c-heading); }
html[data-theme="dark"] .mobile-panel { background: var(--d-bg); }
html[data-theme="dark"] .theme-toggle .ti-sun { display: block; }
html[data-theme="dark"] .theme-toggle .ti-moon { display: none; }

/* Quick-contact bar */
html[data-theme="dark"] .mobile-bar { background: rgba(20, 33, 49, .92); border-color: rgba(127, 178, 255, .5); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3); }
html[data-theme="dark"] .mobile-bar .qb-wa { color: #6fdc9a; }
html[data-theme="dark"] .qb-dot { box-shadow: 0 0 0 2px var(--d-surface-2); }

/* Drawings with fixed colours */
html[data-theme="dark"] .diagram [fill="#ffffff"] { fill: var(--d-surface-2); }
html[data-theme="dark"] .diagram [fill="#eaf7ef"] { fill: rgba(52, 190, 105, .16); }
html[data-theme="dark"] .diagram [fill="#12325f"] { fill: #2a4c7f; }
html[data-theme="dark"] .diagram [stroke="#12325f"] { stroke: #7fa7e6; }
html[data-theme="dark"] .diagram [stroke="#4b5563"] { stroke: #8391a4; }
html[data-theme="dark"] .diagram [fill="#1661d9"] { fill: #5b95f5; }
html[data-theme="dark"] .diagram [stroke="#1661d9"] { stroke: #5b95f5; }
html[data-theme="dark"] .map-card svg > rect:first-child { fill: #16263b; }
html[data-theme="dark"] .map-card svg [stroke="#ffffff"] { stroke: #23364c; }
html[data-theme="dark"] .map-card svg [fill="#d6e4fa"] { fill: #22395a; }
html[data-theme="dark"] .map-card svg [fill="#dff2e6"] { fill: #1b3a2b; }

/* While the visitor flips light/dark: no colour fades, so everything changes in the same frame */
html.theme-switching, html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; animation: none !important; }

/* ================================================================ guided helper (desktop only)
   Tap-only question tree. Shown from 900px up, the same point where the phone quick-contact bar hides. */
.helper { display: none; --h-bg: #fff; --h-log: #f6f8fa; --h-line: #e3e8ee; --h-edge: #d7dee8; --h-bot: #fff; --h-text: #1f2937; --h-opt: #12325f; --h-opt-hover: #eef4ff; --h-link: #17703d; --h-link-hover: #eaf7ef; --h-wa-bg: #e6f5ec; --h-wa: #0e6b39; --h-sub: #4b5563; }
@media (min-width: 900px) { .helper { display: block; position: fixed; z-index: 55; right: 24px; bottom: 24px; font-size: 14px; } }
@media (min-width: 1280px) { .helper { font-size: 15px; } }
@media (min-width: 1800px) { .helper { font-size: 16px; } }
@media (min-width: 900px) and (max-width: 1199px) { body:has(#consent:not([hidden])) .helper { bottom: 150px; } }
.helper[hidden] { display: none !important; }
/* Phones: a 48px round icon button (the words stay for screen readers) just above the quick-contact bar;
   the panel opens as a sheet from the bottom over the bar. Hidden while the menu is open or the keyboard is up. */
@media (max-width: 899px) {
  .helper { display: block; position: fixed; z-index: 58; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); font-size: 15px; }
  .helper .helper-launch { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .helper .helper-launch > span:not(.helper-launch-icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .helper .helper-launch-icon { background: none; }
  .helper.is-open { left: 0; right: 0; bottom: 0; z-index: 70; }
  .helper .helper-panel { width: 100%; height: min(80vh, 620px); max-height: none; border-radius: 20px 20px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .menu-open .helper, .is-typing .helper:not(.is-open), body:has(#consent:not([hidden])) .helper:not(.is-open) { display: none; }
}

.helper-launch { display: flex; align-items: center; gap: 10px; padding: 7px 20px 7px 7px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--blue-600), var(--navy-800)); color: #fff; font: inherit; font-weight: 700; font-size: 1.04em; cursor: pointer; box-shadow: 0 8px 24px rgba(22, 97, 217, .35), 0 2px 6px rgba(11, 34, 67, .2); transition: transform .15s ease, box-shadow .15s ease; }
.helper-launch:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22, 97, 217, .42), 0 2px 6px rgba(11, 34, 67, .2); }
.helper-launch-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.helper-icon { width: 24px; height: 24px; }
.helper.is-open .helper-launch { display: none; }

.helper-panel { display: none; flex-direction: column; width: clamp(340px, 25vw, 440px); height: clamp(420px, 72vh, 600px); max-height: calc(100vh - 48px); background: var(--h-bg); color: var(--h-text); border: 1px solid var(--h-edge); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(11, 34, 67, .28), 0 4px 12px rgba(11, 34, 67, .12); }
.helper.is-open .helper-panel { display: flex; animation: helper-in .22s cubic-bezier(.2, .7, .2, 1); }
.helper-panel:focus { outline: none; }
@keyframes helper-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.helper-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #fff; background: radial-gradient(130% 160% at 20% 0%, #1f5296 0%, #12325f 55%, #0a1f3d 100%); }
.helper-mark { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .14); }
.helper-head strong { display: block; font-size: 1.06em; line-height: 1.3; }
.helper-head small { display: block; font-size: .82em; line-height: 1.35; color: #c4d3e8; }
.helper-x { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.helper-x:hover { background: rgba(255, 255, 255, .16); }
.helper-x:focus-visible, .helper-launch:focus-visible, .helper-opt:focus-visible, .helper-nav button:focus-visible, .helper-wa:focus-visible { outline: 3px solid #7fb2ff; outline-offset: 2px; }

.helper-log { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 6px; background: var(--h-log); scroll-behavior: smooth; }
.helper-msg { max-width: 90%; margin: 0 0 9px; padding: 9px 13px; border-radius: 15px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; animation: helper-pop .2s ease; }
.helper-msg.is-bot { background: var(--h-bot); border: 1px solid var(--h-line); border-bottom-left-radius: 4px; color: var(--h-text); }
.helper-msg.is-user { margin-left: auto; background: var(--blue-600); color: #fff; border-bottom-right-radius: 4px; }
@keyframes helper-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.helper-typing span { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #9aa7b8; animation: helper-dot 1s infinite; }
.helper-typing span:nth-child(2) { animation-delay: .15s; }
.helper-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes helper-dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.helper-opts { display: flex; flex-direction: column; gap: 7px; padding: 4px 0 10px; }
.helper-opt { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 8px 15px; border: 1.5px solid var(--blue-600); border-radius: 999px; background: var(--h-bg); color: var(--h-opt); font: inherit; line-height: 1.4; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .12s ease; }
.helper-opt:hover { background: var(--h-opt-hover); color: var(--h-opt); }
.helper-opt.is-link { border-style: dashed; border-color: var(--green-500); color: var(--h-link); }
.helper-opt.is-link:hover { background: var(--h-link-hover); color: var(--h-link); }
.helper-opt svg { flex: none; }

.helper-nav { display: flex; justify-content: space-between; padding: 4px 12px; border-top: 1px solid var(--h-line); background: var(--h-log); }
.helper-nav button { padding: 5px 8px; border: 0; background: transparent; color: var(--h-sub); font: inherit; font-size: .88em; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 6px; }
.helper-nav button:disabled { opacity: .45; cursor: default; text-decoration: none; }
.helper-foot { padding: 10px 12px 12px; border-top: 1px solid var(--h-line); background: var(--h-bg); }
.helper-wa { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 999px; background: var(--h-wa-bg); color: var(--h-wa); font-weight: 700; text-decoration: none; transition: background-color .12s ease; }
.helper-wa:hover { background: #d4eddd; color: var(--h-wa); }

@media (prefers-reduced-motion: reduce) {
  .helper.is-open .helper-panel, .helper-msg, .helper-launch { animation: none; transition: none; }
  .helper-typing span { animation: none; opacity: .6; }
}
@media print { .helper { display: none !important; } }

html[data-theme="dark"] .helper { --h-bg: #142131; --h-log: #0f1928; --h-line: #243446; --h-edge: #31445a; --h-bot: #1a293c; --h-text: #d6dee9; --h-opt: #cfe0ff; --h-opt-hover: rgba(79, 140, 255, .16); --h-link: #62d593; --h-link-hover: rgba(52, 190, 105, .14); --h-wa-bg: rgba(52, 190, 105, .16); --h-wa: #6fdc9a; --h-sub: #a3afbf; }
html[data-theme="dark"] .helper-panel { box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 4px 12px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .helper-opt { border-color: #5b95f5; }
html[data-theme="dark"] .helper-opt.is-link { border-color: #3fae6d; }
html[data-theme="dark"] .helper-msg.is-user { background: #245ec9; }
html[data-theme="dark"] .helper-wa:hover { background: rgba(52, 190, 105, .26); }

/* ================================================================ home page (round 2: phone first) */
.swipe-hint { display: none; }
/* H13: the floating bottom bar already carries WhatsApp below 900px */
@media (max-width: 899px) { .page-home .hero-wa { display: none; } }
@media (max-width: 639px) {
  /* H12: tighter vertical rhythm on phones */
  .page-home .section { padding: 30px 0; }
  .page-home .section-sm { padding: 22px 0; }
  .page-home .section-head { margin-bottom: 18px; }

  /* H1: hero fits the first screen: main button, models, one trust line, a smaller picture */
  .page-home .hero { padding: 22px 0 26px; }
  .page-home .hero-grid { gap: 18px; grid-template-columns: minmax(0, 1fr); }   /* the sideways model row must not widen the column */
  .page-home .hero h1 { margin-bottom: 10px; }
  .page-home .hero .lead { font-size: 1.04rem; margin-bottom: 16px; }
  /* SS7: main button centred and only as wide as its words */
  .page-home .hero .btn-row { justify-content: center; }
  .page-home .hero .btn-row .btn { width: auto; min-width: 170px; min-height: 44px; padding: 9px 28px; font-size: 1rem; }
  /* SS3: model chips run slowly sideways like a ticker (app.js); a finger stops them, swiping still works */
  .page-home .hero-models { flex-wrap: nowrap; overflow-x: auto; margin: 14px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%); }
  .page-home .hero-models::-webkit-scrollbar { display: none; }
  .page-home .hero-models a { flex: none; white-space: nowrap; }
  /* SS5: short wording, each point on one line; the text shrinks a little on narrow phones */
  .page-home .hero-points { margin-top: 14px; gap: 6px; grid-template-columns: minmax(0, 1fr); }
  .page-home .hero-points li { align-items: center; font-size: 1rem; line-height: 1.5; white-space: nowrap; }   /* app.js lowers the size until the longest point fits */
  .page-home .hero-points li::before { margin-top: 0; width: 18px; height: 18px; background-size: 12px; }
  .page-home .hero-points .pt-long { display: none; }

  /* H4: the four EV models as a sideways rail, one card per screen with the next one peeking */
  .page-home .swipe-hint { display: block; margin: 6px 0 0; font-size: .9rem; font-weight: 600; color: var(--c-link); }
  .page-home .model-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scroll-padding-left: var(--gutter); scrollbar-width: thin; }
  .page-home .model-rail > .product-card { flex: 0 0 84%; scroll-snap-align: start; }
  .page-home .model-rail .product-visual { aspect-ratio: 16 / 10; }

  /* H6: steps as a compact list */
  .page-home .steps { gap: 8px; }
  .page-home .step { padding: 12px 14px; gap: 12px; }
  .page-home .step-num { width: 32px; height: 32px; font-size: .95rem; }
  .page-home .step-title { margin: 0 0 2px; font-size: 1rem; }
  .page-home .step p { font-size: .95rem; line-height: 1.55; }
}
@media (min-width: 640px) {
  .page-home .hero-points .pt-short, .page-home .hero-models .is-clone { display: none; }
}
/* Model facts: keep "≈ 10.56 kWh" on one line */
.page-home .facts dd { white-space: nowrap; }
.page-home .facts { gap: 8px; }
.page-home .facts div { padding: 6px 8px; }
/* ---------------------------------------------------------------- home page round 2, batch 2 */
/* H10: photos fill their frame (no grey strip under the picture) */
.photo > picture { display: block; width: 100%; height: 100%; }

/* Home solar section (desktop): the assessment button sits centred under the calculator button */
@media (min-width: 900px) { body.page-home #solar .btn-row { display: inline-flex; flex-direction: column; align-items: center; } }

/* Load calculator button: green words inside the blue outline (both themes) */
.btn-outline.btn-green-text, .btn-outline.btn-green-text:hover, html[data-theme="dark"] .btn-outline.btn-green-text:hover { color: var(--green-700); }

/* H5: the selector answer has its own clear spot */
.page-home .selector-result { min-height: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--blue-50); }
.page-home .selector-result p { margin: 0 0 8px; }
.page-home .selector-result ul { margin: 0 0 4px; }
.page-home .selector-result .btn-row { gap: 8px; margin-top: 10px; }
.page-home .selector-empty { margin: 0 !important; }
@media (max-width: 639px) { .page-home .selector-empty { font-size: 1rem; white-space: nowrap; } }   /* SS6: one line; app.js lowers the size until it fits */

/* H7: both backup pictures in the same, shorter frame */
.page-home #backup .product-visual { aspect-ratio: 16 / 10; }

/* H11: contact links big enough to tap; the short form folds its optional fields */
.page-home .contact-list a.contact-value { display: inline-flex; align-items: center; min-height: 44px; }
.form-more { border: 1px dashed var(--gray-300); border-radius: var(--radius-sm); padding: 0 14px; }
.form-more > summary { list-style: none; cursor: pointer; padding: 12px 0; font-weight: 600; line-height: 1.45; color: var(--c-link); }
.form-more > summary::-webkit-details-marker { display: none; }
.form-more > summary::before { content: "+ "; font-weight: 700; }
.form-more[open] > summary::before { content: "− "; }
.form-more[open] { padding-bottom: 14px; }

@media (max-width: 639px) {
  /* H7 */
  .page-home #backup .product-visual { aspect-ratio: 16 / 9; }
  /* H8: solar boxes show only their headings; buttons full width */
  .page-home #solar .grid { gap: 8px; }
  .page-home #solar .grid .card { padding: 12px 14px; }
  .page-home #solar .grid .card h3 { margin: 0; font-size: 1rem; }
  .page-home #solar .grid .card p { display: none; }
  .page-home #solar .btn-row .btn { width: 100%; }
  /* H9 */
  .page-home .band .btn { width: 100%; }
  /* H11 */
  .page-home .contact-list { gap: 6px; }
}

/* ================================================================ load calculator demo (products page, backup row)
   A phone browser opening the load calculator and working through the "Small home" example on a 14 s loop.
   Without JavaScript or with reduced motion it rests on the finished result. app.js adds .is-live when the
   card is on screen and .is-paused when it scrolls away. Sizes are fixed px: it is a picture of a phone. */
.calc-promo { display: flex; flex-direction: column; }
.calc-promo h3 { margin-top: 14px; }
.calc-promo .more { margin-top: auto; padding-top: 10px; }
.calc-demo { --cd-dur: 14s; --cd-scroll: -196px; --cd-bg: #eef2f7; --cd-card: #fff; --cd-line: #dfe5ec; --cd-text: #1f2937; --cd-muted: #6b7280; --cd-chip: #fff; display: flex; justify-content: center; }
html[data-theme="dark"] .calc-demo { --cd-bg: #0b1420; --cd-card: #142131; --cd-line: #26374b; --cd-text: #d6dee9; --cd-muted: #93a3b8; --cd-chip: #1a293c; }
.cd-phone { width: 184px; height: 356px; padding: 7px; border-radius: 36px; background: linear-gradient(160deg, #2b3647, #0d141f 55%, #1d2735); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), 0 18px 40px -14px rgba(11, 34, 67, .55); }
.cd-screen { position: relative; height: 100%; overflow: hidden; border-radius: 29px; background: var(--cd-bg); color: var(--cd-text); font-size: 8px; line-height: 1.35; }
.cd-status { display: flex; align-items: center; justify-content: space-between; height: 24px; padding: 0 16px 0 20px; font-weight: 700; font-size: 8.5px; background: var(--cd-card); }
.cd-island { width: 58px; height: 15px; border-radius: 10px; background: #05080d; }
.cd-icons { display: flex; gap: 2px; align-items: flex-end; }
.cd-icons i { width: 3px; height: 4px; border-radius: 1px; background: currentColor; }
.cd-icons i:nth-child(2) { height: 6px; }
.cd-icons i:nth-child(3) { width: 12px; height: 6px; margin-left: 3px; border-radius: 2px; }
.cd-url { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; height: 22px; margin: 0 8px 4px; border-radius: 8px; background: var(--cd-bg); color: var(--cd-muted); font-size: 7.5px; white-space: nowrap; overflow: hidden; box-shadow: 0 6px 0 var(--cd-card), 0 -4px 0 var(--cd-card); }
.cd-url svg { flex: none; color: var(--green-600); }
.cd-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue-600); transform-origin: left; opacity: 0; }
.cd-view { position: absolute; left: 0; right: 0; top: 54px; bottom: 0; overflow: hidden; }
.cd-page { position: relative; padding: 6px 8px 40px; transform: translateY(var(--cd-scroll)); }
.cd-h { display: block; font-size: 9.5px; margin-bottom: 5px; }
.cd-panel { padding: 8px; border-radius: 10px; background: var(--cd-card); border: 1px solid var(--cd-line); }
.cd-chips { display: flex; gap: 3px; margin-bottom: 6px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }   /* longer English chips run off the edge like a scroll row */
.cd-chip { flex: none; }
.cd-chip { padding: 2px 5px; border-radius: 5px; border: 1px solid var(--cd-line); background: var(--cd-chip); font-weight: 600; font-size: 7px; white-space: nowrap; }
.cd-chip-pick { border-color: var(--blue-600); background: var(--blue-50); }
.cd-row { display: grid; grid-template-columns: 1fr 22px 22px 22px; gap: 3px; align-items: center; padding: 3px 0; border-top: 1px solid var(--cd-line); }
.cd-head { border-top: 0; color: var(--cd-muted); font-weight: 700; font-size: 6.5px; }
.cd-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-row i { font-style: normal; text-align: center; padding: 2px 0; border-radius: 4px; border: 1px solid var(--cd-line); background: var(--cd-bg); }
.cd-field { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; font-weight: 600; font-size: 7px; }
.cd-input { width: 30px; padding: 3px 5px; border-radius: 4px; border: 1px solid var(--cd-line); background: var(--cd-bg); font-style: normal; }
.cd-result { margin-top: 8px; padding: 9px 8px; border-radius: 10px; background: var(--navy-900); color: #dbe6f5; }
html[data-theme="dark"] .cd-result { background: #10213a; }
.cd-result .cd-h { color: #fff; }
.cd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 7px; }
.cd-stats div { padding: 4px 5px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.cd-stats span { display: block; font-size: 6px; color: #b8c8df; }
.cd-stats b { font-size: 9px; color: #fff; }
.cd-stats .cd-wide { grid-column: 1 / -1; }
.cd-barrow { display: grid; grid-template-columns: 62px 1fr; gap: 5px; align-items: center; margin-bottom: 3px; font-size: 6.5px; }
.cd-barrow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-bar { display: block; width: 100%; height: 4px; }
.cd-track { fill: rgba(255, 255, 255, .1); }
.cd-fill { fill: #8bb8ff; transform-origin: left; transform-box: fill-box; }
.cd-btn { display: block; margin-top: 8px; padding: 6px 4px; border-radius: 999px; background: #1f8a4c; color: #fff; font-weight: 700; font-size: 7.5px; text-align: center; }
.cd-tap { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(22, 97, 217, .35); box-shadow: 0 0 0 2px rgba(22, 97, 217, .45); opacity: 0; pointer-events: none; }
.cd-home { position: absolute; left: 50%; bottom: 6px; width: 64px; height: 3px; margin-left: -32px; border-radius: 2px; background: var(--cd-text); opacity: .55; }

.calc-demo.is-live :is(.cd-progress, .cd-page, .cd-chip-pick, .cd-item, .cd-input, .cd-input b, .cd-stats, .cd-fill, .cd-btn, .cd-tap) { animation-duration: var(--cd-dur); animation-iteration-count: infinite; animation-timing-function: ease; }
.calc-demo.is-paused * { animation-play-state: paused !important; }
.calc-demo.is-live .cd-progress { animation-name: cd-progress; animation-timing-function: linear; }
.calc-demo.is-live .cd-page { animation-name: cd-page; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
.calc-demo.is-live .cd-chip-pick { animation-name: cd-chip; }
.calc-demo.is-live .cd-item-1 { animation-name: cd-row1; }
.calc-demo.is-live .cd-item-2 { animation-name: cd-row2; }
.calc-demo.is-live .cd-item-3 { animation-name: cd-row3; }
.calc-demo.is-live .cd-item-4 { animation-name: cd-row4; }
.calc-demo.is-live .cd-input { animation-name: cd-focus; }
.calc-demo.is-live .cd-input b { animation-name: cd-type; }
.calc-demo.is-live .cd-stats { animation-name: cd-stats; }
.calc-demo.is-live .cd-bar-1 .cd-fill { animation-name: cd-bar1; }
.calc-demo.is-live .cd-bar-2 .cd-fill { animation-name: cd-bar2; }
.calc-demo.is-live .cd-bar-3 .cd-fill { animation-name: cd-bar3; }
.calc-demo.is-live .cd-bar-4 .cd-fill { animation-name: cd-bar4; }
.calc-demo.is-live .cd-btn { animation-name: cd-btn; }
.calc-demo.is-live .cd-tap { animation-name: cd-tap; animation-timing-function: ease-out; }

@keyframes cd-progress { 0% { opacity: 1; transform: scaleX(0); } 8% { opacity: 1; transform: scaleX(1); } 11%, 100% { opacity: 0; transform: scaleX(1); } }
@keyframes cd-page { 0%, 6% { opacity: 0; transform: translateY(0); } 10%, 52% { opacity: 1; transform: translateY(0); } 60%, 93% { opacity: 1; transform: translateY(var(--cd-scroll)); } 98%, 100% { opacity: 0; transform: translateY(var(--cd-scroll)); } }
@keyframes cd-chip { 0%, 15% { border-color: var(--cd-line); background: var(--cd-chip); } 17%, 100% { border-color: var(--blue-600); background: var(--blue-50); } }
@keyframes cd-row1 { 0%, 19% { opacity: 0; transform: translateY(5px); } 22%, 100% { opacity: 1; transform: none; } }
@keyframes cd-row2 { 0%, 24% { opacity: 0; transform: translateY(5px); } 27%, 100% { opacity: 1; transform: none; } }
@keyframes cd-row3 { 0%, 29% { opacity: 0; transform: translateY(5px); } 32%, 100% { opacity: 1; transform: none; } }
@keyframes cd-row4 { 0%, 34% { opacity: 0; transform: translateY(5px); } 37%, 100% { opacity: 1; transform: none; } }
@keyframes cd-focus { 0%, 42% { border-color: var(--cd-line); } 44%, 52% { border-color: var(--blue-600); box-shadow: 0 0 0 2px rgba(22, 97, 217, .25); } 55%, 100% { border-color: var(--cd-line); box-shadow: none; } }
@keyframes cd-type { 0%, 46% { opacity: 0; } 47%, 100% { opacity: 1; } }
@keyframes cd-stats { 0%, 59% { opacity: 0; transform: translateY(6px); } 64%, 100% { opacity: 1; transform: none; } }
@keyframes cd-bar1 { 0%, 63% { transform: scaleX(0); } 68%, 100% { transform: scaleX(1); } }
@keyframes cd-bar2 { 0%, 65% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
@keyframes cd-bar3 { 0%, 67% { transform: scaleX(0); } 72%, 100% { transform: scaleX(1); } }
@keyframes cd-bar4 { 0%, 69% { transform: scaleX(0); } 74%, 100% { transform: scaleX(1); } }
@keyframes cd-btn { 0%, 79% { transform: none; filter: none; } 81% { transform: scale(.94); filter: brightness(1.15); } 85%, 100% { transform: none; filter: none; } }
/* One finger: the "Small home" chip, then the backup-hours box, then the green button (positions from app.js) */
@keyframes cd-tap {
  0%, 12% { opacity: 0; transform: translate(var(--t1x), var(--t1y)) scale(.4); }
  14% { opacity: 1; transform: translate(var(--t1x), var(--t1y)) scale(.6); }
  18% { opacity: 0; transform: translate(var(--t1x), var(--t1y)) scale(1.6); }
  19%, 42% { opacity: 0; transform: translate(var(--t2x), var(--t2y)) scale(.4); }
  44% { opacity: 1; transform: translate(var(--t2x), var(--t2y)) scale(.6); }
  48% { opacity: 0; transform: translate(var(--t2x), var(--t2y)) scale(1.6); }
  49%, 78% { opacity: 0; transform: translate(var(--t3x), var(--t3y)) scale(.4); }
  80% { opacity: 1; transform: translate(var(--t3x), var(--t3y)) scale(.6); }
  84%, 100% { opacity: 0; transform: translate(var(--t3x), var(--t3y)) scale(1.6); }
}
/* ---------------------------------------------------------------- social dock (2026-11-09)
   Right edge, always at the vertical centre of the screen; no box, only the icons (Mostak).
   Resting: icons are small (13px phone / 15px desktop) with a small gap, and 75% of each shows; the rest is
   off-screen. Open (hover on desktop, tap on phones, keyboard focus): they slide fully in and grow to their
   full size (26px / 30px); the gap stays the same small one.
   The outer element is a clipping window, so the hidden part can never widen a phone's page (that bug was
   the footer links, but the clip keeps the dock safe too). Only the icons' own hit pads take pointer events,
   so the empty window never blocks the page underneath. The centre uses a viewport height that does not change
   when a phone's address bar hides or shows (svh/lvh average), and the box grows around its centre, so the dock
   does not move on scroll. */
.social-dock { --W: 38px; --ic-open: 26px; --ic-rest: 13px; --gap: 9px; --ic: var(--ic-rest);
  position: fixed; z-index: 54; right: 0; top: 50%; top: calc(25svh + 25lvh); transform: translateY(-50%); width: var(--W); overflow: hidden; pointer-events: none; }
@media (min-width: 900px) { .social-dock { --W: 42px; --ic-open: 30px; --ic-rest: 15px; --gap: 7px; } }
.social-dock.is-open, .social-dock:focus-within { --ic: var(--ic-open); }
@media (hover: hover) and (pointer: fine) { .social-dock:hover { --ic: var(--ic-open); } }
.social-dock ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; pointer-events: none;
  transform: translateX(calc(var(--W) / 2 - var(--ic) * .25)); transition: transform .28s cubic-bezier(.2, .7, .2, 1); }
.social-dock.is-open ul, .social-dock:focus-within ul { transform: translateX(0); }
@media (hover: hover) and (pointer: fine) { .social-dock:hover ul { transform: translateX(0); } }
.social-dock-link { position: relative; display: block; width: var(--W); height: calc(var(--ic) + var(--gap)); border-radius: 50%; pointer-events: none; -webkit-tap-highlight-color: transparent; transition: height .28s cubic-bezier(.2, .7, .2, 1); }
.social-dock-link::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; left: calc((var(--W) - var(--ic)) / 2 - 8px); pointer-events: auto; }   /* the icon's hit pad */
.social-dock-link::before { content: ""; position: absolute; top: calc(var(--gap) / 2); left: calc((var(--W) - var(--ic)) / 2); width: var(--ic); height: var(--ic); border-radius: 50%; background: var(--sd-bg); box-shadow: 0 1px 4px rgba(0, 0, 0, .28); transition: width .28s cubic-bezier(.2, .7, .2, 1), height .28s cubic-bezier(.2, .7, .2, 1), left .28s cubic-bezier(.2, .7, .2, 1); }
.social-dock-link svg { position: absolute; left: 50%; top: 50%; width: calc(var(--ic) * .58); height: calc(var(--ic) * .58); transform: translate(-50%, -50%); pointer-events: none; transition: width .28s cubic-bezier(.2, .7, .2, 1), height .28s cubic-bezier(.2, .7, .2, 1); }
.social-dock-link:focus-visible { outline: 3px solid var(--blue-600); outline-offset: -2px; }
.sd-facebook { --sd-bg: #1877f2; }
.sd-instagram { --sd-bg: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4); }
.sd-youtube { --sd-bg: #ff0000; }
.sd-tiktok { --sd-bg: #000; }
.sd-linkedin { --sd-bg: #0a66c2; }
.menu-open .social-dock { display: none; }
@media (prefers-reduced-motion: reduce) { .social-dock ul, .social-dock-link, .social-dock-link::before, .social-dock-link svg { transition: none; } }
@media print { .social-dock { display: none; } }
html[data-theme="dark"] .sd-tiktok::before { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
/* ---------------------------------------------------------------- about gallery: "more photos" tile + photo viewer */
a.photo { display: block; cursor: zoom-in; }
a.photo:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; }
.gallery-more { align-self: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 4 / 3; border: 2px dashed var(--gray-300); border-radius: var(--radius); background: var(--gray-50); color: var(--c-heading); font: inherit; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.gallery-more:hover { background: var(--gray-100); border-color: var(--blue-600); }
.gallery-more:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; }
.gallery-more-count { font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--blue-600); }
.gallery-more-label { font-weight: 700; }
.gallery-more.is-less { aspect-ratio: auto; padding: 14px; grid-column: 1 / -1; flex-direction: row; }
.gallery-more.is-less .gallery-more-count { display: none; }
html[data-theme="dark"] .gallery-more { background: var(--d-surface); border-color: rgba(255, 255, 255, .2); }
html[data-theme="dark"] .gallery-more:hover { background: #1b2b40; border-color: #6ea2ff; }
html[data-theme="dark"] .gallery-more-count { color: #8db8ff; }

.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 12px 16px; background: rgba(6, 12, 22, .92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(100%, 1200px); max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); }
.lightbox-cap { margin: 12px 0 0; color: #e6edf7; text-align: center; font-size: .95rem; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .26); }
.lightbox button:focus-visible { outline: 3px solid #8db8ff; outline-offset: 2px; }
.lightbox-close { top: 10px; right: 12px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }
body.has-lightbox { overflow: hidden; }

/* supplier partner cards (About page): same cards as the team, but a blue label instead of the green department tag */
.team-dept-partner { background: var(--blue-50); color: var(--c-link); }
.supplier-team .team-grid { justify-content: center; }

/* ---------------------------------------------------------------- team profile page (/team/<slug>/) and its link on the About card */
.team-card.has-profile { cursor: pointer; }
.team-link { color: inherit; text-decoration: none; }
.team-card.has-profile figcaption { position: static; }   /* so the link's ::after covers the whole card, photo included */
.team-link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.team-link:focus-visible { outline: none; }
.team-card.has-profile:has(.team-link:focus-visible) { outline: 3px solid var(--blue-600); outline-offset: 3px; }
.profile-head { display: grid; gap: 22px; align-items: center; justify-items: center; text-align: center; }
.profile-photo { width: 168px; height: 168px; border-radius: 50%; padding: 5px; background: linear-gradient(135deg, var(--green-500), var(--blue-500)); box-shadow: 0 10px 24px rgba(11, 34, 67, .22); }
.profile-photo picture, .profile-photo img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.profile-id h1 { margin: 0 0 6px; overflow-wrap: anywhere; }
.profile-role { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--c-heading); }
.profile-org { margin: 4px 0 16px; color: var(--gray-700); }
.profile-actions { justify-content: center; }
.profile-body { display: grid; gap: 20px; }
.profile-main { display: grid; gap: 16px; align-content: start; }
.profile-section p { margin: 0; line-height: 1.8; }
.profile-side { display: grid; gap: 16px; align-content: start; }
.profile-facts dl { margin: 0; display: grid; gap: 4px 12px; }
.profile-facts dt { font-weight: 700; color: var(--gray-700); font-size: .92rem; margin-top: 10px; }
.profile-facts dd { margin: 0; overflow-wrap: anywhere; }
.profile-verify { background: var(--blue-50); border-color: var(--blue-100, var(--gray-200)); }
.profile-verify p { margin: 0 0 10px; }
@media (min-width: 760px) {
  .profile-head { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 32px; }
  .profile-photo { width: 220px; height: 220px; }
  .profile-actions { justify-content: flex-start; }
  .profile-body { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 28px; }
  .profile-side { position: sticky; top: calc(var(--header-h-s) + 16px); align-self: start; }
}
html[data-theme="dark"] .profile-role { color: #e6edf7; }
html[data-theme="dark"] .profile-org, html[data-theme="dark"] .profile-facts dt { color: #b4c2d6; }
html[data-theme="dark"] .profile-verify { background: #12233a; border-color: rgba(255, 255, 255, .14); }
.print-only { display: none; }
.profile-facts dl, .profile-verify dl { margin: 0; display: grid; gap: 4px 12px; }
.profile-verify dl { margin-top: 10px; }
.profile-verify dt { font-weight: 700; color: var(--gray-700); font-size: .92rem; margin-top: 10px; }
.profile-verify dd { margin: 0; overflow-wrap: anywhere; }
.profile-statement { font-weight: 600; line-height: 1.7; }
.profile-updated { margin-top: 12px; }
html[data-theme="dark"] .profile-verify dt { color: #b4c2d6; }
@media print {
  @page { size: A4; margin: 15mm 16mm 20mm; }
  html, html[data-theme="dark"] { background: #fff !important; }
  body.profile-page, body.profile-page * { background: transparent !important; color: #111 !important; box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.profile-page { font-size: 10.5pt; line-height: 1.55; }
  .site-header, .site-footer, .social-dock, .mobile-bar, .breadcrumbs, .skip-link, .consent, .helper, .demo-banner, .profile-actions, .profile-back, .eyebrow::after { display: none !important; }
  .print-only { display: block !important; }
  .print-letterhead { display: flex !important; gap: 12pt; align-items: center; padding-bottom: 10pt; margin-bottom: 14pt; border-bottom: 2pt solid #0b2243; }
  .print-letterhead img { width: 18mm; height: 18mm; }
  .print-letterhead strong { display: block; font-size: 13pt; color: #0b2243 !important; }
  .print-letterhead span { display: block; font-size: 9pt; color: #333 !important; }
  .print-footer { position: fixed; left: 0; right: 0; bottom: 0; display: flex !important; justify-content: space-between; gap: 12pt; font-size: 8pt; color: #444 !important; border-top: .5pt solid #999; padding-top: 4pt; }
  .page-hero, .profile-hero { padding: 0 !important; margin: 0 !important; }
  .container { max-width: none !important; padding: 0 !important; }
  .profile-head { display: grid !important; grid-template-columns: 34mm 1fr; gap: 7mm; align-items: center; text-align: left; justify-items: start; margin-bottom: 12pt; }
  .profile-photo { width: 34mm !important; height: 34mm !important; padding: 0 !important; border: .75pt solid #888; border-radius: 3mm; overflow: hidden; }
  .profile-photo picture, .profile-photo img { border-radius: 0 !important; }
  .profile-id .eyebrow { font-size: 9.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #17703d !important; margin: 0 0 2pt; }
  .profile-id h1 { font-size: 19pt; line-height: 1.2; margin: 0 0 4pt; color: #0b2243 !important; }
  .profile-role { font-size: 11.5pt; font-weight: 700; }
  .profile-org { margin: 2pt 0 0; font-size: 10pt; }
  .section-sm { padding: 0 !important; }
  .profile-body { display: block !important; }
  .profile-main, .profile-side { display: block; }
  .profile-main .card, .profile-side .card { border: 0 !important; border-top: .75pt solid #bbb !important; border-radius: 0 !important; padding: 9pt 0 !important; margin: 0 !important; break-inside: avoid; }
  .profile-section h2, .profile-facts h2, .profile-verify h2 { font-size: 11.5pt; margin: 0 0 4pt; color: #0b2243 !important; text-transform: uppercase; letter-spacing: .04em; }
  .profile-section p { font-size: 10.5pt; line-height: 1.65; text-align: justify; }
  .profile-facts dl, .profile-verify dl { display: grid; grid-template-columns: 34mm 1fr; gap: 3pt 8pt; }
  .profile-facts dt, .profile-verify dt { margin: 0; font-size: 9.5pt; font-weight: 700; color: #444 !important; }
  .profile-facts dd, .profile-verify dd { margin: 0; font-size: 10pt; }
  body.profile-page .profile-side .card.profile-verify { border: .75pt solid #0b2243 !important; border-radius: 2mm !important; padding: 9pt 10pt !important; margin-top: 10pt !important; background: #f1f5fa !important; }
  .profile-statement { font-size: 10.5pt; margin: 0 0 6pt; }
  .profile-updated { display: none; }
  a { color: #0b2243 !important; text-decoration: none !important; }
  main { padding-bottom: 14mm; }
}
