/* ==========================================================================
   Dubai Solar Installers - main.css
   Monochrome design system. Black ink on white paper, predominantly white.
   Signature element: the thick black "journey line" - it runs off the hero,
   forks into the Free Solar (PPA) and Buy Solar paths, and recurs as rules,
   list markers and the band meter throughout the site.
   All tokens live here. Do not introduce new hex values elsewhere.
   ========================================================================== */

:root {
  /* Ink & paper */
  --ink: #0d0d0d;
  --ink-soft: #3c3c3c;
  --ink-mute: #6b6b6b;
  --paper: #ffffff;
  --paper-dim: #f6f6f4;
  --line-hair: #e4e4e0;
  --line-mid: #cfcfca;

  /* DEWA band ramp, monochrome. Bands keep their official names
     (Green/Yellow/Orange/Red) as text labels; tone darkens as fils rise. */
  --band-1: #dcdcd7;   /* Green band  23 fils */
  --band-2: #a9a9a2;   /* Yellow band 28 fils */
  --band-3: #5e5e58;   /* Orange band 32 fils */
  --band-4: #0d0d0d;   /* Red band    38 fils */

  /* Accent colour: Dubai sun and panel blue. Used sparingly on the sun
     mark, kicker bars, illustrations and the featured PPA result card. */
  --clr-sun: #f4b942;
  --clr-sun-soft: #fcf0d4;
  --clr-panel: #34688a;
  --clr-panel-soft: #d9e7f0;

  /* Type */
  --font-sans: "Helvetica Neue", "Arial Nova", Inter, Roboto, "Segoe UI", Arial, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", Consolas, ui-monospace, monospace;
  --track-display: -0.035em;
  --track-tight: -0.02em;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.19rem, 1.12rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.32rem + 0.65vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.55rem + 1.25vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.85rem + 2.25vw, 3.7rem);
  --step-5: clamp(2.9rem, 2.1rem + 4vw, 5.4rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2.5rem;
  --sp-6: 4rem;
  --sp-7: 6.5rem;

  /* Shape */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --stroke: 5px;              /* journey line thickness (scaled up on wide screens) */
  --wrap: 76rem;
  --wrap-text: 44rem;

  --shadow-card: 0 1px 2px rgba(13,13,13,0.05), 0 12px 32px -16px rgba(13,13,13,0.18);
  --focus-ring: 3px solid var(--ink);
}

@media (min-width: 900px) {
  :root { --stroke: 7px; }
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 700; }

h1, h2, h3, h4 {
  line-height: 1.08;
  letter-spacing: var(--track-display);
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); letter-spacing: var(--track-tight); }
h4 { font-size: var(--step-1); letter-spacing: var(--track-tight); }

p { max-width: 65ch; }

a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--ink); color: var(--paper); }

.skip-link {
  position: absolute;
  left: -999px;
  top: var(--sp-2);
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-pill);
  z-index: 200;
  text-decoration: none;
}
.skip-link:focus { left: var(--sp-2); }

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

.wrap-text { max-width: var(--wrap-text); }

/* --------------------------------------------------------------------------
   Header & nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-hair);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 4.25rem;
  width: min(96rem, 100% - 2.5rem);
}

.brand {
  font-weight: 900;
  letter-spacing: var(--track-display);
  font-size: 1.25rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}
.brand-mark {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
}
/* DSI logo lockup (assets/img/logo.svg, built by _brand/build-logo.mjs) */
.brand-logo {
  display: block;
  height: 2.5rem;
  width: auto;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  gap: clamp(0.8rem, 1.6vw, 1.6rem);
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem !important;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--ink-soft); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  font-size: var(--step--1);
  cursor: pointer;
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-hair);
    padding: var(--sp-3) 0 var(--sp-4);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(var(--wrap), 100% - 2.5rem);
    margin-inline: auto;
  }
  .site-nav a {
    display: block;
    padding: 0.8rem 0.2rem;
    font-size: var(--step-0);
    border-bottom: 1px solid var(--line-hair);
  }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--line-hair); font-weight: 800; }
  .nav-cta { margin-top: var(--sp-3); text-align: center; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.7rem;
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

.btn-ghost { background: var(--paper); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-dim); }

.btn-sm { padding: 0.55rem 1.15rem; font-size: var(--step--1); }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: var(--sp-6) 0 var(--sp-7);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  gap: var(--sp-5);
  align-items: start;
}
@media (min-width: 940px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-6); }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--sp-4);
}
.hero-kicker::before {
  content: "";
  width: 2.2rem;
  height: var(--stroke);
  background: var(--clr-sun);
  border-radius: 2px;
}

.hero-illo { margin-top: var(--sp-5); max-width: 30rem; }
.illo { width: 100%; height: auto; }

.hero h1 { margin-bottom: var(--sp-4); }

.hero-sub {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: var(--sp-4);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--sp-4); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1.5px solid var(--line-mid);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.95rem;
  font-size: var(--step--1);
  font-weight: 600;
  background: var(--paper);
}
.chip svg { width: 0.95rem; height: 0.95rem; flex: none; }

/* Hero form card */
.form-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
}
.form-card h2, .form-card h3 {
  font-size: var(--step-1);
  margin-bottom: var(--sp-1);
}
.form-card .form-note {
  font-size: var(--step--1);
  color: var(--ink-mute);
  margin-bottom: var(--sp-3);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: var(--sp-3); }
.field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line-mid);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: var(--focus-ring);
  outline-offset: 1px;
  border-color: var(--ink);
}
.field .hint { font-size: var(--step--1); color: var(--ink-mute); margin-top: 0.3rem; }
.field-error {
  display: none;
  font-size: var(--step--1);
  font-weight: 600;
  margin-top: 0.3rem;
}
.field.is-invalid input, .field.is-invalid select { border-color: var(--ink); border-width: 2px; }
.field.is-invalid .field-error { display: block; }

.form-disclaimer {
  font-size: var(--step--1);
  color: var(--ink-mute);
  margin-top: var(--sp-3);
}

.form-extra[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Journey / fork - the scroll-driven line section
   -------------------------------------------------------------------------- */
.journey {
  position: relative;
  padding: var(--sp-6) 0 var(--sp-7);
}

.journey-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.journey-lines path {
  fill: none;
  stroke: var(--ink);
  stroke-width: var(--stroke);
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.journey-lines .line-desktop { display: none; }
.journey-lines .line-mobile { display: block; }
@media (min-width: 900px) {
  .journey-lines .line-desktop { display: block; }
  .journey-lines .line-mobile { display: none; }
}

.journey .wrap { position: relative; z-index: 1; }

.journey-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto var(--sp-7);
}
.journey-intro h2 { margin-bottom: var(--sp-3); }
.journey-intro p { margin-inline: auto; color: var(--ink-soft); }

.path-grid {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 900px) {
  .path-grid { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
  .path-col-right { margin-top: var(--sp-7); }
}

.path-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.path-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--step--1);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--sp-3);
}
.path-label::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--clr-sun);
  border: 3px solid var(--ink);
}
.path-label.is-hollow::before {
  background: var(--paper);
  border: 3px solid var(--ink);
}

.path-card h3 { margin-bottom: var(--sp-2); }
.path-price {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: var(--track-display);
  margin-bottom: var(--sp-3);
}
.path-price small {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0;
}

.tick-list { list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: 0.7rem; }
.tick-list li { display: flex; gap: 0.7rem; align-items: baseline; }
.tick-list li::before {
  content: "";
  flex: none;
  width: 1.05rem;
  height: var(--stroke);
  background: var(--ink);
  border-radius: 2px;
  transform: translateY(-0.2em);
}

.tradeoff {
  font-size: var(--step--1);
  color: var(--ink-mute);
  border-left: 3px solid var(--line-mid);
  padding-left: var(--sp-3);
  margin-bottom: var(--sp-4);
}

/* Centerpiece: where both journey lines finally land. Holds the
   calculator. The merged line flows into the sun node on its top edge. */
.centerpiece {
  position: relative;
  margin-top: var(--sp-7);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 4px rgba(13,13,13,0.06), 0 28px 64px -24px rgba(13,13,13,0.28);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.centerpiece::before {
  content: "";
  position: absolute;
  top: -1.05rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--clr-sun);
  border: 4px solid var(--ink);
}
.centerpiece-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto var(--sp-5);
}
.centerpiece-head h2 {
  font-size: var(--step-4);
  margin: var(--sp-3) 0;
}
.centerpiece-head p {
  color: var(--ink-soft);
  font-size: var(--step-1);
  margin-inline: auto;
}
.centerpiece .calc { border-width: 2px; box-shadow: none; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(0.2, 0.6, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: var(--sp-7) 0; }
.section-dim { background: var(--paper-dim); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink a { color: var(--paper); }
.section-ink .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.section-ink .btn-primary:hover { background: var(--line-hair); border-color: var(--line-hair); }
.section-ink .btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.section-ink .btn-ghost:hover { background: rgba(255,255,255,0.12); }

.section-head { max-width: 42rem; margin-bottom: var(--sp-6); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p { color: var(--ink-soft); }
.section-head.is-center p { margin-inline: auto; }
.section-ink .section-head p { color: var(--line-mid); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step--1);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: var(--sp-3);
}
.kicker::before {
  content: "";
  width: 2.2rem;
  height: var(--stroke);
  background: var(--clr-sun);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Band meter (DEWA slabs, monochrome ramp)
   -------------------------------------------------------------------------- */
.band-meter { display: grid; gap: 2px; margin: var(--sp-4) 0; }

.band-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) 1fr auto;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line-hair);
}
.band-row .band-name { font-weight: 800; font-size: var(--step--1); letter-spacing: var(--track-tight); }
.band-row .band-range { font-size: var(--step--1); color: var(--ink-mute); }
.band-row .band-rate {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--step-0);
  white-space: nowrap;
}
.band-row .band-bar {
  height: var(--stroke);
  border-radius: 3px;
}
.band-1 .band-bar { background: var(--band-1); width: 42%; }
.band-2 .band-bar { background: var(--band-2); width: 61%; }
.band-3 .band-bar { background: var(--band-3); width: 80%; }
.band-4 .band-bar { background: var(--band-4); width: 100%; }
.band-row.is-active { border: 2px solid var(--ink); box-shadow: var(--shadow-card); }

.band-footnote { font-size: var(--step--1); color: var(--ink-mute); max-width: 55ch; }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */
.card-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 700px) { .card-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--paper);
  border: 1px solid var(--line-hair);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.card h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.card p { font-size: var(--step--1); color: var(--ink-soft); }
.card .card-icon { width: 2.4rem; height: 2.4rem; margin-bottom: var(--sp-3); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font-weight: 800;
  margin-bottom: var(--sp-3);
  font-size: var(--step-0);
}

/* Split (dual-audience) */
.split { display: grid; gap: 2px; background: var(--line-hair); border: 1px solid var(--line-hair); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }
.split > div { background: var(--paper); padding: clamp(1.5rem, 4vw, 3rem); }
.split h3 { margin-bottom: var(--sp-3); }
.split p { color: var(--ink-soft); margin-bottom: var(--sp-4); }

/* Comparison table */
.compare-wrap { overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  min-width: 34rem;
}
.compare th, .compare td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line-hair);
  vertical-align: top;
}
.compare thead th {
  font-size: var(--step-0);
  border-bottom: 3px solid var(--ink);
}
.compare tbody th { font-weight: 700; white-space: nowrap; }

/* FAQ */
.faq { display: grid; gap: var(--sp-2); max-width: var(--wrap-text); }
.faq details {
  border: 1px solid var(--line-hair);
  border-radius: var(--radius);
  background: var(--paper);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 1.25rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 1.25rem 1.25rem; color: var(--ink-soft); }
.faq .faq-body p { margin-bottom: var(--sp-2); }

/* --------------------------------------------------------------------------
   Calculator
   -------------------------------------------------------------------------- */
.calc {
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.calc-head {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line-hair);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  justify-content: space-between;
}
.calc-head h2, .calc-head h3 { font-size: var(--step-1); }

.mode-toggle {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 3px;
  background: var(--paper);
}
.mode-toggle button {
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.3rem;
  font-weight: 700;
  cursor: pointer;
  font-size: var(--step--1);
}
.mode-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.calc-body { padding: clamp(1.25rem, 3vw, 2rem); }
.calc-inputs { display: grid; gap: var(--sp-3); }
@media (min-width: 700px) { .calc-inputs { grid-template-columns: 1fr 1fr; align-items: end; } .calc-inputs .field-full { grid-column: 1 / -1; } }
/* The hidden attribute must beat the grid display above, or the Business
   inputs leak into Home mode and vice versa. */
.calc-inputs[hidden] { display: none !important; }

.calc-results { border-top: 1px solid var(--line-hair); padding: clamp(1.25rem, 3vw, 2rem); }
.calc-results[hidden] { display: none; }

.result-cards { display: grid; gap: var(--sp-4); margin-bottom: var(--sp-4); }
@media (min-width: 800px) { .result-cards { grid-template-columns: 1fr 1fr; } }

.result-card { border: 1px solid var(--line-hair); border-radius: var(--radius-lg); padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.result-card.is-featured { border: 2px solid var(--ink); background: var(--clr-sun-soft); }
.result-card h4 { margin-bottom: var(--sp-1); }
.result-card .result-tag { font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-mute); margin-bottom: var(--sp-3); }
.result-figure { font-size: var(--step-3); font-weight: 800; letter-spacing: var(--track-display); line-height: 1.05; }
.result-figure small { display: block; font-size: var(--step--1); font-weight: 600; color: var(--ink-mute); letter-spacing: 0; margin-top: 0.3rem; }
.result-lines { list-style: none; padding: 0; margin: var(--sp-3) 0 0; display: grid; gap: 0.55rem; font-size: var(--step--1); }
.result-lines li { display: flex; justify-content: space-between; gap: var(--sp-3); border-bottom: 1px dashed var(--line-hair); padding-bottom: 0.55rem; }
.result-lines .val { font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }

.calc-note {
  background: var(--paper-dim);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--step--1);
  color: var(--ink-soft);
  margin: var(--sp-4) 0;
}

.calc-band-callout { margin: var(--sp-4) 0; }

/* --------------------------------------------------------------------------
   CTA sections
   -------------------------------------------------------------------------- */
.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: var(--sp-3); }
.cta-final p { margin: 0 auto var(--sp-4); color: inherit; }
.cta-final .btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

/* Sticky mobile CTA bar */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  background: var(--ink);
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0));
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  transform: translateY(110%);
  transition: transform 300ms ease;
}
.sticky-cta.is-shown { transform: none; }
.sticky-cta .btn { border-color: var(--paper); background: var(--paper); color: var(--ink); flex: 1; max-width: 24rem; padding: 0.7rem 1rem; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--sp-6) 0 var(--sp-5);
  margin-top: 0;
}
.site-footer a { color: var(--paper); text-decoration-color: rgba(255,255,255,0.5); }
.footer-grid { display: grid; gap: var(--sp-5); margin-bottom: var(--sp-5); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-weight: 900; font-size: var(--step-1); letter-spacing: var(--track-display); margin-bottom: var(--sp-2); display: inline-flex; align-items: center; gap: 0.55rem; }
.footer-brand svg { width: 1.4rem; height: 1.4rem; }
.footer-brand img { display: block; height: 2.75rem; width: auto; }
.site-footer p { color: var(--line-mid); font-size: var(--step--1); }
.site-footer h4 { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--sp-3); color: var(--line-mid); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; font-size: var(--step--1); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--line-mid);
}
.footer-legal ul { list-style: none; padding: 0; display: flex; gap: var(--sp-3); }

/* --------------------------------------------------------------------------
   Knowledge hub / article
   -------------------------------------------------------------------------- */
.breadcrumb { font-size: var(--step--1); color: var(--ink-mute); margin-bottom: var(--sp-4); }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-mid); }
.breadcrumb a { color: var(--ink-mute); }

.article-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 700px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  border: 1px solid var(--line-hair);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.article-card .cat { font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-mute); }
.article-card h3 { font-size: var(--step-1); }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { text-decoration: underline; }
.article-card p { font-size: var(--step--1); color: var(--ink-soft); flex: 1; }
.article-card .read-more { font-size: var(--step--1); font-weight: 700; }

.cat-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--sp-5); }

.prose { max-width: var(--wrap-text); }
.prose > * + * { margin-top: var(--sp-3); }
.prose h2 { margin-top: var(--sp-6); font-size: var(--step-2); }
.prose h3 { margin-top: var(--sp-5); font-size: var(--step-1); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line-hair); }
.prose thead th { border-bottom: 3px solid var(--ink); }
.prose blockquote { border-left: var(--stroke) solid var(--ink); padding-left: var(--sp-4); font-weight: 600; }
.prose .table-wrap { overflow-x: auto; }

.article-meta { font-size: var(--step--1); color: var(--ink-mute); margin-bottom: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.article-cta {
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: var(--sp-6);
}
.article-cta h2 { font-size: var(--step-2); margin-bottom: var(--sp-2); }
.article-cta p { color: var(--ink-soft); margin-bottom: var(--sp-4); }
.article-cta .btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Page hero (interior pages) */
.page-hero { padding: var(--sp-6) 0 var(--sp-5); }
.page-hero h1 { font-size: var(--step-4); margin-bottom: var(--sp-3); max-width: 22ch; }
.page-hero .lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 44ch; }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.center { text-align: center; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-mute); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

hr.rule {
  border: none;
  height: var(--stroke);
  width: 4.5rem;
  background: var(--ink);
  border-radius: 3px;
  margin: var(--sp-5) 0;
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .sticky-cta { transition: none; }
}

/* --------------------------------------------------------------------------
   Print - people print calculator estimates
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .sticky-cta, .site-nav, .btn, form, .journey-lines { display: none !important; }
  body { font-size: 11pt; }
  .calc, .result-card, .card { border: 1px solid #000; box-shadow: none; }
  .calc-results[hidden] { display: none; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
