/* =========================================================
   Solarhyper — styles
   ========================================================= */

/* Self-hosted fonts (latin subset, variable weight) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-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;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-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;
}

:root {
  /* Brand */
  --ink: #0A0D14;
  --ink-2: #111725;
  --ink-3: #1A2233;
  --blue: #2F6FED;
  --blue-bright: #5B9BFF;
  --blue-pale: #A9C8FF;
  --blue-wash: #EAF1FF;
  --amber: #FFB020;
  --amber-hover: #FFBE45;
  --amber-ink: #241800;
  --green: #17A34A;
  --red: #E5484D;

  /* Surfaces & text */
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --line: #E2E7F0;
  --line-strong: #CDD5E2;
  --text: #0B1220;
  --muted: #566176;
  --on-dark: #F2F5FA;
  --on-dark-muted: #A3AEC2;

  /* Type */
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(10, 13, 20, .06), 0 1px 1px rgba(10, 13, 20, .04);
  --shadow-md: 0 8px 24px -8px rgba(10, 13, 20, .14), 0 2px 6px rgba(10, 13, 20, .05);
  --shadow-lg: 0 30px 60px -20px rgba(10, 13, 20, .35), 0 8px 20px -8px rgba(10, 13, 20, .18);

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --container: 1180px;
  --gutter: 20px;
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

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

a { color: inherit; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--amber); color: var(--amber-ink); padding: 10px 16px;
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--amber);
  --btn-fg: var(--amber-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease, color 200ms ease;
  box-shadow: inset 0 -2px 0 rgba(10, 13, 20, .12), 0 1px 2px rgba(10, 13, 20, .2);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--amber-hover); }
  .btn .arrow { transition: transform 200ms var(--ease-out); }
  .btn:hover .arrow { transform: translateX(3px); }
}

.btn--ghost-dark {
  --btn-bg: rgba(255, 255, 255, .08);
  --btn-fg: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost-dark:hover { background: rgba(255, 255, 255, .14); }
}

.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  box-shadow: 0 1px 2px rgba(10, 13, 20, .2);
}
@media (hover: hover) and (pointer: fine) {
  .btn--dark:hover { background: var(--ink-3); }
}

.btn--outline {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
@media (hover: hover) and (pointer: fine) {
  .btn--outline:hover { background: var(--bg); }
}

.btn--wa {
  --btn-bg: #1FAF5A;
  --btn-fg: #fff;
  box-shadow: 0 1px 2px rgba(10, 13, 20, .2);
}
@media (hover: hover) and (pointer: fine) {
  .btn--wa:hover { background: #22BF62; }
}

.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

/* Main CTA with its small line underneath */
.cta-stack { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.cta-note {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500; line-height: 1.3;
  color: var(--muted);
}
.cta-note::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.est-result .cta-note, .cta-band .cta-note, .article-cta .cta-note, .quote .cta-note { color: var(--on-dark-muted); }
.est-result .cta-note::before, .cta-band .cta-note::before, .article-cta .cta-note::before { color: #3DDC84; }
.cta-note::before { color: var(--green); }

.btn[disabled],
.btn[aria-disabled="true"] {
  --btn-bg: #E6EAF1;
  --btn-fg: #8C96A8;
  box-shadow: none;
  cursor: not-allowed;
}
.btn[disabled]:active { transform: none; }

/* ---------- Eyebrow / section headings ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }
.section__title { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin-top: 14px; }
.section__lede { margin-top: 16px; font-size: 18.5px; color: var(--muted); max-width: 640px; }
.section__head--center .section__lede { margin-inline: auto; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: var(--on-dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.035em;
  color: #fff;
}
.brand__mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.brand__accent { color: var(--blue-bright); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--on-dark-muted);
  transition: color 150ms ease, background-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
}
.nav a[aria-current="page"] { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { background: rgba(255, 255, 255, .14); }
}

.menu-toggle { display: none; }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 49;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 12px var(--gutter) 24px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform 220ms var(--ease-out), opacity 180ms ease, visibility 0s linear 220ms;
}
.mobile-nav.is-open {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: transform 220ms var(--ease-out), opacity 180ms ease, visibility 0s;
}
.mobile-nav a:not(.btn) {
  display: block;
  padding: 14px 4px;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.mobile-nav .btn { margin-top: 18px; width: 100%; }

@media (max-width: 960px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-grid; }
}

/* ---------- Hero (homepage, light) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #EEF4FF;
  color: var(--text);
  padding: 64px 0 80px;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5.6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--text);
}
.hero h1 .hl { color: var(--blue); }
.hero__lede {
  margin-top: 20px;
  font-size: clamp(17px, 1.5vw, 19.5px);
  line-height: 1.55;
  color: #3B4558;
  max-width: 540px;
}
.hero__lede strong { color: var(--text); font-weight: 700; }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 32px;
}
.hero__ctas .cta-stack { align-items: flex-start; }
.btn--hero {
  min-height: 62px;
  padding: 0 34px;
  font-size: 18.5px;
  box-shadow: inset 0 -3px 0 rgba(36, 24, 0, .14), 0 14px 28px -12px rgba(36, 24, 0, .45);
}
.btn--hero svg { width: 20px; height: 20px; }
.hero .cta-note { color: #3B4558; padding-left: 2px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 16.5px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(11, 18, 32, .25);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
  transition: text-decoration-color 150ms ease;
}
.text-link svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: currentColor; }
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  font-weight: 500;
  color: #3B4558;
}
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--green); }

/* Photo with the bill card resting on it */
.hero__visual { position: relative; padding-bottom: 72px; }
.hero__photo {
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #CFE0FF;
  aspect-ratio: 4 / 4.2;
  box-shadow: var(--shadow-md);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 80%; }

.bill-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 24px 48px -20px rgba(10, 13, 20, .35), 0 0 0 1px rgba(10, 13, 20, .05);
}
.bill-card__q {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800; line-height: 1.25; letter-spacing: -0.02em;
  color: var(--text);
}
.bill-card__sub { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.bill-card__opts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 14px;
}
.bill-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 52px; padding: 0 14px;
  border: 0; border-radius: 14px;
  background: var(--blue-wash);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 237, .14);
  color: var(--text); font-weight: 700; font-size: 15px; text-align: left;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, box-shadow 150ms ease;
}
.bill-opt svg { width: 16px; height: 16px; flex: none; color: var(--blue); }
.bill-opt:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .bill-opt:hover { background: #DCE8FF; box-shadow: inset 0 0 0 1px rgba(47, 111, 237, .4); }
}

.form-fallback { margin-top: 12px; font-size: 13.5px; color: var(--muted); text-align: center; }
.form-fallback a { color: var(--blue); }
.estimator-method { margin-top: 20px; }

@media (max-width: 960px) {
  .hero { padding: 36px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__visual { max-width: 560px; padding-bottom: 0; }
  .hero__photo { aspect-ratio: 16 / 10; }
  .bill-card { position: relative; left: auto; right: auto; margin: -56px 14px 0; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 37px; }
  .hero__lede { margin-top: 14px; }
  .hero__ctas { margin-top: 22px; gap: 6px; }
  .hero__ctas .cta-stack { width: 100%; align-items: center; }
  .hero__ctas .btn { width: 100%; }
  .hero__ctas .text-link { width: 100%; justify-content: center; }
  .hero__trust { margin-top: 14px; gap: 8px 16px; font-size: 13.5px; justify-content: center; }
  .bill-card { margin: -44px 10px 0; padding: 16px; }
  .bill-card__opts { gap: 8px; }
  .bill-opt { justify-content: center; padding: 0 8px; font-size: 14.5px; white-space: nowrap; }
  .bill-opt svg { display: none; }
}
@media (max-width: 360px) { .bill-card__opts { grid-template-columns: 1fr; } }

/* ---------- Stats under hero ---------- */

.proof {
  background: var(--surface);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.proof__item {
  padding: 26px 20px;
  border-left: 1px solid var(--line);
}
.proof__item:first-child { border-left: 0; padding-left: 0; }
.proof__num { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--text); letter-spacing: -0.02em; }
.proof__label { font-size: 14px; }
.cap::first-letter { text-transform: uppercase; }
@media (max-width: 760px) {
  .proof__grid { grid-template-columns: 1fr 1fr; }
  .proof__item { padding: 18px 14px; }
  .proof__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof__item:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Homepage: light header ---------- */

.page-home .site-header {
  background: rgba(255, 255, 255, .96);
  color: var(--text);
  border-bottom-color: var(--line);
}
.page-home .brand { color: var(--text); }
.page-home .brand__accent { color: var(--blue); }
.page-home .brand__mark { box-shadow: none; }
.page-home .nav a { color: #3B4558; }
.page-home .nav a[aria-current="page"] { color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .page-home .nav a:hover { color: var(--text); background: #F0F3F8; }
  .page-home .site-header .icon-btn:hover { background: #E4E9F1; }
}
.page-home .site-header .icon-btn { background: #F0F3F8; color: var(--text); }
.page-home .mobile-nav { background: var(--surface); border-bottom-color: var(--line); }
.page-home .mobile-nav a:not(.btn) { color: var(--text); border-bottom-color: var(--line); }

/* ---------- Questionnaire pop-up (homepage) ---------- */

.quote-sheet {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: min(860px, calc(100dvh - 48px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.quote-sheet[open] { display: flex; animation: sheet-in 260ms var(--ease-out); }
.quote-sheet::backdrop { background: rgba(10, 13, 20, .55); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.quote-sheet__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 16px 14px 22px;
  border-bottom: 1px solid var(--line);
}
.quote-sheet__title { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.quote-sheet__sub { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.quote-sheet__close {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px;
  border: 0; border-radius: 999px;
  background: #F0F3F8; color: var(--text);
  cursor: pointer;
}
.quote-sheet__close svg { width: 20px; height: 20px; }
.quote-sheet__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 22px 22px;
}
.quote-sheet__body .form-pending { min-height: 320px; }
html.sheet-open { overflow: hidden; }

@media (max-width: 640px) {
  .quote-sheet {
    width: 100%;
    max-height: none;
    height: 100%;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }
  .quote-sheet[open] { animation-name: sheet-up; animation-duration: 320ms; animation-timing-function: var(--ease-drawer); }
  .quote-sheet__body { padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); }
}
@keyframes sheet-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .quote-sheet[open] { animation: none; }
}


/* ---------- Timeline (what happens after you submit) ---------- */

.timeline {
  --dot: 14px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0; padding: 0; list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: calc(var(--dot) / 2 - 1px);
  height: 2px;
  background: var(--line-strong);
}
.timeline li { position: relative; padding-top: 34px; }
.timeline li::before {
  content: "";
  position: absolute; left: 0; top: 0;
  width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 3px var(--ink);
}
.timeline li.is-key::before { background: var(--amber); box-shadow: inset 0 0 0 3px var(--amber-ink); }
.timeline__when {
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--blue);
}
.timeline h3 { margin-top: 6px; font-size: 20px; font-weight: 700; line-height: 1.2; }
.timeline p { margin-top: 8px; font-size: 15.5px; color: var(--muted); }
.timeline li.is-key h3 { font-size: 24px; }
@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 34px; }
  .timeline::before { left: calc(var(--dot) / 2 - 1px); right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -34px; top: 4px; }
}
.timeline--dark::before { background: rgba(255, 255, 255, .16); }
.timeline--dark li::before { background: var(--ink); box-shadow: inset 0 0 0 3px var(--on-dark-muted); }
.timeline--dark .timeline__when { color: var(--blue-pale); }
.timeline--dark h3 { color: #fff; }
.timeline--dark p { color: var(--on-dark-muted); }

.lead-line { margin-top: 16px; font-size: 19px; color: var(--muted); max-width: 640px; }
.lead-line strong { color: var(--text); }

/* ---------- Estimator ---------- */

.estimator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 20px;
}
.est-panel {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
}
.field + .field { margin-top: 30px; }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field__label { font-weight: 600; font-size: 16px; }
.field__value {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  font-variant-numeric: tabular-nums; color: var(--blue);
}
.field__hint { margin-top: 10px; font-size: 14px; color: var(--muted); }

.range {
  --pct: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 12px 0 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue) 0 var(--pct), #E3E8F1 var(--pct) 100%);
}
.range::-moz-range-track { height: 8px; border-radius: 999px; background: #E3E8F1; }
.range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--blue); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px; margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 7px var(--blue) inset, 0 2px 8px rgba(10, 13, 20, .25);
  transition: transform 150ms var(--ease-out);
}
.range::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: #fff;
  box-shadow: 0 0 0 7px var(--blue) inset, 0 2px 8px rgba(10, 13, 20, .25);
}
.range:active::-webkit-slider-thumb { transform: scale(1.1); }

.size-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 12px;
  padding: 6px;
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.size-opt {
  position: relative;
  padding: 12px 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 160ms var(--ease-out);
}
.size-opt:active { transform: scale(0.97); }
.size-opt b { display: block; font-family: var(--font-display); font-size: 15px; }
.size-opt span { display: block; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.size-opt[aria-checked="true"] { background: var(--surface); box-shadow: var(--shadow-md), inset 0 0 0 1.5px var(--blue); }
.size-opt__rec {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  padding: 1px 7px; border-radius: 999px;
  background: var(--amber); color: var(--amber-ink);
  font-size: 11px; font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 200ms ease;
}
.size-opt.is-recommended .size-opt__rec { opacity: 1; }
@media (max-width: 480px) {
  .size-picker { grid-template-columns: 1fr 1fr; row-gap: 14px; }
}

.est-result {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border-radius: var(--r-xl);
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--shadow-lg);
  display: flex;
  flex-direction: column;
}
.est-result__label {
  font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--blue-pale);
}
.est-result__big {
  margin-top: 10px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
}
.est-result__amount {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(54px, 8vw, 84px);
  letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.est-result__per { font-size: 17px; color: var(--on-dark-muted); }
.bar {
  position: relative;
  height: 12px;
  margin-top: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}
.bar__fill {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), #FFD37A);
  transform-origin: left center;
  transform: scaleX(.5);
  transition: transform 300ms var(--ease-out);
}
.bar__legend {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 10px; font-size: 14px; color: var(--on-dark-muted);
  font-variant-numeric: tabular-nums;
}
.bar__legend b { color: #fff; font-weight: 600; }
.est-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 24px;
}
.est-stat {
  padding: 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.est-stat b {
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  font-variant-numeric: tabular-nums; color: #fff; letter-spacing: -0.02em;
}
.est-stat span { font-size: 13px; color: var(--on-dark-muted); }
.est-result__note { margin-top: 20px; font-size: 13px; color: var(--on-dark-muted); line-height: 1.55; }
.est-result__cta { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.est-result__cta .cta-stack { align-items: flex-start; }
@media (max-width: 900px) { .estimator { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .est-panel, .est-result { padding: 24px 20px; border-radius: var(--r-lg); }
  .est-stats { grid-template-columns: 1fr 1fr; }
  .est-stat:last-child { grid-column: 1 / -1; }
}

/* ---------- Day simulator ---------- */

.sim {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: stretch;
}
.sim__stage {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #BFDDF6;
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
  min-height: 320px;
}
.sim__stage svg { width: 100%; height: 100%; display: block; }
.sim__panel {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column;
}
.sim__time-row { display: flex; align-items: flex-end; justify-content: space-between; }
.sim__label { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--muted); }
.sim__clock {
  font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.sim .range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--amber) 0 var(--pct), #2A3142 var(--pct) 100%); }
.sim .range::-moz-range-progress { background: var(--amber); }
.sim .range::-webkit-slider-thumb { box-shadow: 0 0 0 7px var(--amber) inset, 0 2px 8px rgba(10, 13, 20, .25); }
.sim .range::-moz-range-thumb { box-shadow: 0 0 0 7px var(--amber) inset, 0 2px 8px rgba(10, 13, 20, .25); }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.chip {
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.chip:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: var(--blue-wash); } }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--blue-wash);
  transition: background-color 200ms ease;
}
.toggle-row.is-off { background: #FDECEC; }
.toggle-row b { display: block; font-size: 15.5px; }
.toggle-row span { font-size: 13.5px; color: var(--muted); }
.switch {
  position: relative;
  flex: none;
  width: 54px; height: 32px;
  border: 0; border-radius: 999px;
  background: var(--green);
  cursor: pointer;
  transition: background-color 200ms ease;
}
.switch::after {
  content: "";
  position: absolute; top: 4px; left: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transform: translateX(22px);
  transition: transform 220ms var(--ease-out);
}
.switch[aria-checked="true"] { background: var(--red); }
.switch[aria-checked="true"]::after { transform: translateX(0); }

.sim__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.sim-stat {
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.sim-stat span { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.sim-stat b { font-family: var(--font-display); font-size: 21px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.sim-stat b.is-on { color: var(--green); }
.sim-stat b.is-off { color: var(--red); }
.sim__caption { margin-top: 16px; font-size: 15px; color: var(--muted); min-height: 3.2em; }

.flow { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 10; opacity: 0; transition: opacity 250ms ease; }
.flow.is-active { opacity: 1; animation: flow-dash 900ms linear infinite; }
@keyframes flow-dash { to { stroke-dashoffset: -24; } }

@media (max-width: 960px) {
  .sim { grid-template-columns: 1fr; }
  .sim__stage { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 420px) {
  .sim__panel { padding: 20px; }
  .presets { grid-template-columns: 1fr 1fr; }
}

/* ---------- Services (linked list) ---------- */

.svc-list { border-top: 1px solid var(--line-strong); }
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 120px 28px;
  gap: 24px;
  align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  transition: background-color 200ms ease;
}
.svc__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.svc__desc { font-size: 16px; color: var(--muted); }
.svc__size { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.svc__go { width: 28px; height: 28px; color: var(--blue); transition: transform 200ms var(--ease-out); }
.svc:active { background: var(--surface); }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { background: var(--surface); }
  .svc:hover .svc__go { transform: translateX(4px); }
}
@media (max-width: 760px) {
  .svc { grid-template-columns: minmax(0, 1fr) 28px; gap: 6px 16px; padding: 22px 4px; }
  .svc__name { grid-column: 1; }
  .svc__go { grid-column: 2; grid-row: 1 / span 3; }
  .svc__desc, .svc__size { grid-column: 1; }
}

/* ---------- Comparison ---------- */

.compare {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
}
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; }
.compare thead th {
  font-family: var(--font-display); font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.compare thead th:last-child { background: var(--ink); color: #fff; }
.compare tbody td { border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--muted); }
.compare tbody td:first-child { color: var(--text); font-weight: 600; width: 26%; }
.compare tbody td:last-child { background: #F3F7FF; color: var(--text); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--green); font-weight: 700; }
@media (max-width: 720px) {
  .compare thead { display: none; }
  .compare tr { display: block; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare td { display: block; padding: 4px 0; border: 0 !important; background: none !important; width: auto !important; }
  .compare td:nth-child(2)::before { content: "On your own: "; font-weight: 600; color: var(--text); }
  .compare td:nth-child(3)::before { content: "With Solarhyper: "; font-weight: 700; color: var(--blue); }
}

/* ---------- Quote / form section ---------- */

.quote {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
}
.quote .section__title { color: #fff; }
.quote .section__lede { color: var(--on-dark-muted); }
.quote .eyebrow { color: var(--blue-pale); }
.quote__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}
.quote__facts { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.quote__facts li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 15.5px; color: var(--on-dark-muted);
}
.quote__facts li b { color: #fff; font-weight: 600; text-align: right; }
.consent-note {
  margin-top: 24px;
  font-size: 14.5px; color: var(--on-dark-muted);
}
.consent-note a { color: var(--on-dark); }

.form-card {
  position: relative;
  min-height: 520px;
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.form-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.form-card__head h3 { font-size: 22px; }
.form-card__time { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.form-card__time svg { width: 15px; height: 15px; }
.form-card iframe { width: 100%; border: 0; min-height: 420px; }

.form-pending {
  display: grid; place-items: center; text-align: center;
  min-height: 440px; padding: 24px;
}

.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--blue);
  animation: spin 600ms linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) { .quote__grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) { .form-card { padding: 20px 16px; border-radius: var(--r-lg); } }

/* ---------- FAQ ---------- */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: start;
}
.faq__aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__aside .btn { margin-top: 24px; }
.faq-list { display: grid; gap: 10px; }
.faq-item {
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%;
  padding: 20px 22px;
  border: 0; background: none;
  text-align: left; cursor: pointer;
  font-family: var(--font-display); font-weight: 650; font-weight: 700; font-size: 17.5px;
  letter-spacing: -0.01em;
}
.faq-q__icon {
  position: relative; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg);
  transition: background-color 200ms ease, transform 250ms var(--ease-out);
}
.faq-q__icon::before, .faq-q__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px;
  background: var(--text);
  transition: transform 250ms var(--ease-out);
}
.faq-q__icon::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .faq-q__icon { background: var(--amber); }
.faq-q[aria-expanded="true"] .faq-q__icon::after { transform: rotate(0deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease-out);
}
.faq-a > div { overflow: hidden; }
.faq-a__inner { padding: 0 22px 22px; color: var(--muted); font-size: 16px; }
.faq-a__inner p + p, .faq-a__inner p + ul, .faq-a__inner ul + p { margin-top: 10px; }
.faq-a__inner ul { margin: 0; padding-left: 20px; }
.faq-a__inner strong { color: var(--text); }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; gap: 28px; }
  .faq__aside { position: static; }
}

/* ---------- Blog cards ---------- */

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card {
  display: flex; flex-direction: column;
  text-decoration: none;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  transition: transform 250ms var(--ease-out), box-shadow 250ms ease;
}
.post-card:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line); }
  .post-card:hover .post-card__more { color: var(--blue); }
}
.post-card__img { aspect-ratio: 16 / 10; background: #DDE4EE; overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; }
.post-card__meta b { color: var(--blue); font-weight: 600; }
.post-card h3 { margin-top: 10px; font-size: 20px; font-weight: 700; line-height: 1.2; }
.post-card p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.post-card__more { margin-top: auto; padding-top: 16px; font-weight: 600; font-size: 15px; transition: color 150ms ease; }
.section__foot { margin-top: 32px; display: flex; justify-content: center; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 56px;
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.cta-band p { margin-top: 12px; color: var(--on-dark-muted); font-size: 18px; max-width: 560px; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-band__actions .cta-stack { align-items: stretch; }
@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; padding: 36px 24px; }
  .cta-band__actions .btn { width: 100%; }
  .cta-band__actions .cta-note { justify-content: center; }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 96px;
  background: var(--ink);
  color: var(--on-dark-muted);
  padding: 64px 0 32px;
  font-size: 15px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.site-footer li a span { color: inherit; }
.footer__about p { margin-top: 14px; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 16px; letter-spacing: -0.01em; margin-bottom: 14px; font-weight: 700; }
.site-footer .social { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .social svg { width: 16px; height: 16px; flex: none; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { color: #fff; }
}
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 13.5px;
}
@media (max-width: 1060px) {
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #1FAF5A; color: #fff;
  font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(10, 13, 20, .35), 0 1px 3px rgba(10, 13, 20, .2);
  transition: transform 160ms var(--ease-out), opacity 200ms ease;
}
.wa-float:active { transform: scale(0.96); }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 560px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
}

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 240ms; }
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }

/* ---------- Article & legal pages ---------- */

.page-hero {
  background: var(--ink);
  color: var(--on-dark);
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 64px) 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow { color: var(--blue-pale); }
.page-hero h1 { margin-top: 14px; font-size: clamp(34px, 5vw, 58px); font-weight: 800; max-width: 900px; color: #fff; }
.page-hero p { margin-top: 16px; color: var(--on-dark-muted); font-size: 18px; max-width: 680px; }
.page-hero__meta { margin-top: 18px; font-size: 14px; color: var(--on-dark-muted); display: flex; gap: 14px; flex-wrap: wrap; }

.prose {
  max-width: 740px;
  margin-inline: auto;
  font-size: 18px;
  line-height: 1.75;
  color: #253044;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; font-weight: 800; margin-top: 2em; color: var(--text); }
.prose h3 { font-size: 22px; font-weight: 700; margin-top: 1.6em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--blue); }
.prose strong { color: var(--text); }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--r-lg); width: 100%; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--font-display); color: var(--text); }
.prose .callout {
  padding: 20px 22px; border-radius: var(--r-md);
  background: var(--blue-wash); color: var(--text); font-size: 16.5px;
}
.prose .callout--warn { background: #FFF6E5; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.article-cta {
  max-width: 740px; margin: 56px auto 0;
  padding: 32px; border-radius: var(--r-xl);
  background: var(--ink); color: #fff;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.article-cta .cta-stack { align-items: center; }
@media (max-width: 520px) { .article-cta .cta-stack, .article-cta .btn { width: 100%; } }
.article-updated { font-size: 14px; color: var(--muted); }
.sources { font-size: 15px; }
.sources li { word-break: break-word; }
.key-facts { padding: 20px 22px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 16.5px; }
.key-facts h2 { font-size: 20px; margin-top: 0 !important; }
.key-facts ul { margin-top: 10px; }
.article-cta h3 { font-size: 24px; }
.article-cta p { color: var(--on-dark-muted); margin-top: 6px; font-size: 16px; }

.legal-toc {
  max-width: 740px; margin: 0 auto 40px;
  padding: 20px 24px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
}
.legal-toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal-toc a { color: var(--blue); text-decoration: none; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }
.ph { background: #FFF1C2; padding: 0 5px; border-radius: 4px; color: #5A4310; font-weight: 600; }
.draft-flag {
  max-width: 740px; margin: 0 auto 28px;
  padding: 14px 18px; border-radius: 12px;
  background: #FFF6E5; box-shadow: inset 0 0 0 1px #F5D9A0;
  font-size: 14.5px; color: #5A4310;
}

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 70;
  max-width: 540px;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 12px 12px 18px;
  border-radius: 18px;
  background: var(--surface); color: var(--text);
  box-shadow: 0 18px 40px -16px rgba(10, 13, 20, .32), 0 0 0 1px rgba(47, 111, 237, .16);
  font-size: 14px; line-height: 1.45;
  animation: cookie-in 320ms var(--ease-out) both;
}
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } }
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { margin: 0; flex: 1 1 auto; color: #3B4558; }
.cookie-banner__text a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; gap: 8px; flex: none; }
.cookie-btn {
  height: 40px; padding: 0 18px;
  border: 0; border-radius: 999px;
  background: var(--text); color: #fff;
  font-family: var(--font-display); font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(10, 13, 20, .3);
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 160ms var(--ease-out);
}
.cookie-btn:active { transform: scale(0.97); }
.cookie-btn--ghost {
  background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
@media (hover: hover) and (pointer: fine) {
  .cookie-btn:hover { background: #1F2A3D; }
  .cookie-btn--ghost:hover { background: #F3F6FA; box-shadow: inset 0 0 0 1px #B7C1D1; }
}
.cookie-btn:focus-visible, .footer-link-btn:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
/* Small screens: text on one row, the two buttons side by side under it */
@media (max-width: 520px) {
  .cookie-banner { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); flex-wrap: wrap; gap: 10px; padding: 12px; font-size: 13.5px; }
  .cookie-banner__text { flex-basis: 100%; padding: 0 2px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-btn { flex: 1; height: 40px; }
}
/* Keep the WhatsApp button out of the way while the banner is open on small screens */
@media (max-width: 760px) {
  .has-cookie-banner .wa-float { opacity: 0; pointer-events: none; }
}
.footer-link-btn {
  padding: 0; border: 0; background: none;
  font: inherit; color: var(--on-dark-muted); cursor: pointer;
  transition: color 150ms ease;
}
@media (hover: hover) { .footer-link-btn:hover { color: #fff; } }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { transform: none !important; transition: opacity 300ms ease !important; }
  .flow.is-active { animation: none; stroke-dasharray: none; }
  .post-card { transition: box-shadow 200ms ease; }
  .post-card:hover { transform: none; }
  .svc__go { transition: none; }
}
