/* ── Design tokens ────────────────────────────────────────────── */
:root {
  /* Default palette: dark editorial w/ solar gold */
  --bg: #0B0C0F;
  --bg-2: #14161B;
  --surface: #1A1D24;
  --surface-2: #23272F;
  --line: rgba(242, 237, 224, 0.08);
  --line-2: rgba(242, 237, 224, 0.14);
  --ink: #F2EDE0;
  --ink-2: rgba(242, 237, 224, 0.72);
  --ink-3: rgba(242, 237, 224, 0.48);
  --muted: rgba(242, 237, 224, 0.36);
  --accent: #F5B82E;   /* solar gold */
  --accent-2: #E2611A; /* burnt ember */
  --accent-soft: rgba(245, 184, 46, 0.14);
  --accent-glow: 0 0 80px rgba(245, 184, 46, 0.35);
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 40px rgba(0,0,0,0.4);
  --shadow-2: 0 24px 80px rgba(0,0,0,0.55);

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --container: 1240px;
}

[data-theme="light"] {
  --bg: #F4F1EA;
  --bg-2: #ECE7DC;
  --surface: #FFFFFF;
  --surface-2: #F9F6EF;
  --line: rgba(20, 22, 27, 0.08);
  --line-2: rgba(20, 22, 27, 0.16);
  --ink: #14161B;
  --ink-2: rgba(20, 22, 27, 0.74);
  --ink-3: rgba(20, 22, 27, 0.5);
  --muted: rgba(20, 22, 27, 0.38);
  --accent-soft: rgba(226, 97, 26, 0.10);
  --shadow-1: 0 1px 0 rgba(255,255,255,0.7) inset, 0 12px 40px rgba(0,0,0,0.08);
  --shadow-2: 0 24px 80px rgba(0,0,0,0.12);
}

/* Palette variant: ember-bold (Tesla-dark + warm) */
[data-palette="ember"] {
  --accent: #FFB400;
  --accent-2: #FF6B35;
  --accent-soft: rgba(255, 180, 0, 0.14);
}
/* Palette variant: photonic (cool premium blue/white) */
[data-palette="photonic"] {
  --accent: #6FB7FF;
  --accent-2: #2A6FDB;
  --accent-soft: rgba(111, 183, 255, 0.14);
}
/* Palette variant: terra (warm earth + green) */
[data-palette="terra"] {
  --accent: #E0B43A;
  --accent-2: #2F7D5B;
  --accent-soft: rgba(224, 180, 58, 0.12);
}
/* Palette variant: isaac (navy + gold, matches the new logo badge) */
[data-palette="isaac"] {
  --bg: #0A1220;
  --bg-2: #0F1B2E;
  --surface: #142238;
  --surface-2: #1B2C46;
  --line: rgba(226, 237, 250, 0.09);
  --line-2: rgba(226, 237, 250, 0.16);
  --ink: #F3F6FA;
  --ink-2: rgba(243, 246, 250, 0.74);
  --ink-3: rgba(243, 246, 250, 0.5);
  --muted: rgba(243, 246, 250, 0.36);
  --accent: #F6B93B;
  --accent-2: #14284A;
  --accent-soft: rgba(246, 185, 59, 0.14);
}
[data-palette="isaac"][data-theme="light"] {
  --bg: #F4F7FB;
  --bg-2: #E9EFF7;
  --surface: #FFFFFF;
  --surface-2: #F4F7FB;
  --line: rgba(11, 30, 58, 0.08);
  --line-2: rgba(11, 30, 58, 0.16);
  --ink: #0B1E3A;
  --ink-2: rgba(11, 30, 58, 0.74);
  --ink-3: rgba(11, 30, 58, 0.5);
  --muted: rgba(11, 30, 58, 0.38);
  --accent: #E8A317;
  --accent-2: #14284A;
  --accent-soft: rgba(232, 163, 23, 0.12);
}
/* Palette variant: skyline (logo-matched: sky blue + navy + gold sun) */
[data-palette="skyline"] {
  --bg: #0C1524;
  --bg-2: #101F33;
  --surface: #16273E;
  --surface-2: #1E3350;
  --line: rgba(206, 231, 244, 0.10);
  --line-2: rgba(206, 231, 244, 0.18);
  --ink: #F3F8FC;
  --ink-2: rgba(243, 248, 252, 0.76);
  --ink-3: rgba(243, 248, 252, 0.52);
  --muted: rgba(243, 248, 252, 0.36);
  --accent: #FEB937;
  --accent-2: #4FA8DA;
  --accent-soft: rgba(254, 185, 55, 0.14);
}
[data-palette="skyline"][data-theme="light"] {
  --bg: #F2F7FC;
  --bg-2: #E7F0F9;
  --surface: #FFFFFF;
  --surface-2: #F2F7FC;
  --line: rgba(12, 30, 55, 0.08);
  --line-2: rgba(12, 30, 55, 0.16);
  --ink: #0C1E37;
  --ink-2: rgba(12, 30, 55, 0.74);
  --ink-3: rgba(12, 30, 55, 0.5);
  --muted: rgba(12, 30, 55, 0.38);
  --accent: #E8A317;
  --accent-2: #2C7FB0;
  --accent-soft: rgba(232, 163, 23, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ── Layout primitives ──────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 18px 0 0;
  text-wrap: balance;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 0;
  cursor: pointer;
  transition: transform .15s cubic-bezier(.3,.7,.4,1),
              background .15s, color .15s, box-shadow .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #14161B;
  box-shadow: 0 8px 24px rgba(245, 184, 46, 0.28);
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 12px 36px rgba(245, 184, 46, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-3); }
.btn-solid {
  background: var(--ink);
  color: var(--bg);
}
.btn-sm { height: 40px; padding: 0 16px; font-size: 13px; }

/* ── Nav ───────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 118px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-left: 32px;
  margin-right: 40px;
}
.nav-link { white-space: nowrap; }
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
.nav-link:hover { color: var(--ink); }
.nav-right { display: flex; gap: 18px; align-items: center; }

/* Click-to-call / text in the header */
.nav-contact { display: flex; align-items: center; gap: 8px; }
.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--accent);
  color: #14161B;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: transform .15s cubic-bezier(.3,.7,.4,1), box-shadow .2s;
}
.nav-call:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,0,0,.26); }
.nav-call svg { flex: none; }
.nav-text {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.nav-text svg { flex: none; }
.nav-text:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 1100px) {
  /* Space budget: logo + links + right controls overflow below ~1100px. The
     phone number is the highest-value affordance here and the three anchor
     links are all duplicated by page sections and the footer — so the links
     yield, not the number. */
  .nav-links { display: none; }
  .nav-book { display: none; }
  .logo-lockup .lockup-portrait { height: 84px !important; }
  .logo-lockup .lockup-word img { height: 62px !important; }
  .nav-inner { height: 100px; }
}
/* Very tight: labels yield to icons, last resort. */
@media (max-width: 430px) {
  .nav-call .nav-call-num { display: none; }
  .nav-call { width: 40px; padding: 0; justify-content: center; }
  .nav-text .nav-text-label { display: none; }
  .nav-text { width: 40px; padding: 0; justify-content: center; }
}
.theme-toggle {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--ink-3);
  width: 32px;
  height: 24px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-mono);
}
.lang-toggle button[data-on="1"] {
  background: var(--accent);
  color: #14161B;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 110px;
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero h1 {
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 1;
  letter-spacing: -0.028em;
  font-weight: 500;
  margin: 22px 0 32px;
  text-wrap: balance;
  padding-bottom: 0.08em;
}
.hero h1 em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 0 32px;
}

/* breathing sun ambience */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  width: 1200px; height: 1200px;
  right: -360px; top: -380px;
  background: radial-gradient(circle at center,
    color-mix(in srgb, var(--accent) 36%, transparent) 0%,
    color-mix(in srgb, var(--accent-2) 16%, transparent) 28%,
    transparent 60%);
  filter: blur(20px);
  animation: sunBreathe 9s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    radial-gradient(ellipse at 0% 100%, color-mix(in srgb, var(--accent-2) 6%, transparent), transparent 50%);
}
@keyframes sunBreathe {
  from { transform: scale(1) translate(0,0); opacity: .9; }
  to   { transform: scale(1.06) translate(-12px, 18px); opacity: 1; }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px 7px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(8px);
}
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.18); }
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 15.5px;
  font-weight: 600;
}
.hero-trust > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-trust svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* ── Address input (hero) ──────────────────────────────────────── */
.address-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-1);
  z-index: 2;
}
.address-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.address-card .sub {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.address-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  height: 56px;
  padding: 0 14px;
  transition: border .15s, box-shadow .25s;
}
.address-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.address-input-wrap svg.pin { color: var(--accent); width: 18px; height: 18px; flex: none; }
.address-input-wrap input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  padding: 0 12px;
  min-width: 0;
}
.address-input-wrap input::placeholder { color: var(--muted); }

.address-suggestions {
  margin-top: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.address-sugg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.address-sugg:last-child { border-bottom: 0; }
.address-sugg:hover { background: var(--surface-2); color: var(--ink); }
.address-sugg svg { width: 14px; height: 14px; color: var(--accent); }
.address-sugg em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}

.estimate-cta {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.estimate-cta .btn { flex: 1; }
.legal-line {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.4;
}

/* ── Estimate reveal panel ─────────────────────────────────────── */
.estimate-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
  animation: revealUp .6s cubic-bezier(.2,.7,.2,1) both;
}
.estimate-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  opacity: 0.08;
  pointer-events: none;
  border-radius: inherit;
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.estimate-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.estimate-head .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.estimate-head .addr {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  margin-top: 4px;
  max-width: 260px;
}
.estimate-headline {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.estimate-headline .pre {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  margin-bottom: 10px;
}
.estimate-headline .currency {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  margin-right: 4px;
  font-weight: 400;
}
.estimate-headline .period {
  font-size: 16px;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 6px;
}
.estimate-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat .val {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat .lbl {
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.unlock-banner {
  margin-top: 20px;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 18%, var(--bg-2)),
    var(--bg-2));
  border: 1px solid var(--line-2);
  display: flex;
  gap: 14px;
  align-items: center;
}
.unlock-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: #14161B;
  display: grid; place-items: center;
  flex: none;
}
.unlock-banner h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
}
.unlock-banner p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.4;
}

/* ── Section base ──────────────────────────────────────────────── */
section.block { padding: 120px 0; position: relative; }
section.block.compact { padding: 80px 0; }

/* ── Full-report flow (bill upload + contact) ──────────────────── */
.flow-panel {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.flow-steps {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.flow-step {
  flex: 1;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--line);
  position: relative;
  cursor: default;
}
.flow-step:last-child { border-right: 0; }
.flow-step .num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-2);
  color: var(--ink-3);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line-2);
  flex: none;
}
.flow-step .lbl {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: -0.005em;
}
.flow-step.active .num {
  background: var(--accent);
  color: #14161B;
  border-color: var(--accent);
}
.flow-step.active .lbl { color: var(--ink); font-weight: 500; }
.flow-step.done .num {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}
.flow-step.done .num::after {
  content: "✓";
  font-size: 12px;
}
.flow-step.done .num span { display: none; }
.flow-body {
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 40px;
  min-height: 360px;
}
@media (max-width: 860px) {
  .flow-body { grid-template-columns: 1fr; padding: 28px 24px; }
  .flow-steps { display: none; }
}

.upload-zone {
  border: 1.5px dashed var(--line-2);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
  background: var(--bg-2);
  transition: border-color .2s, background .2s;
  position: relative;
}
.upload-zone.dragging,
.upload-zone:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.upload-zone h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 12px 0 6px;
}
.upload-zone p {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
}
.upload-zone .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--accent);
  display: grid; place-items: center;
  margin: 0 auto;
  border: 1px solid var(--line-2);
}
.upload-zone .file-pill {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--surface);
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--line-2);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full { grid-column: span 2; }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-family: var(--font-mono);
}
.field input, .field textarea, .field select {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border .15s, box-shadow .25s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ── Savings chart ─────────────────────────────────────────────── */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-1);
}
.chart-tabs {
  display: inline-flex;
  background: var(--bg-2);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid var(--line);
}
.chart-tabs button {
  background: transparent;
  border: 0;
  color: var(--ink-3);
  height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.chart-tabs button[data-on="1"] {
  background: var(--accent);
  color: #14161B;
}
.chart-legend {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.chart-legend > div { display: flex; align-items: center; gap: 8px; }
.chart-legend .sw { width: 14px; height: 14px; border-radius: 4px; }

.timeline-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.timeline-card {
  padding: 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.timeline-card .yr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.timeline-card .save {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}
.timeline-card .delta {
  font-size: 13px;
  color: var(--accent);
}

/* ── Stats strip ──────────────────────────────────────────────── */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-strip > div {
  background: var(--surface);
  padding: 28px 24px;
}
.stat-strip .num {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-strip .num .sym {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
  font-size: 0.7em;
}
.stat-strip .lbl {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 6px;
}
@media (max-width: 768px) { .stat-strip { grid-template-columns: 1fr 1fr; } }

/* ── Testimonials ──────────────────────────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }
.t-feature, .t-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.t-feature {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
}
.t-quote {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 400;
  text-wrap: pretty;
}
.t-feature .t-quote { font-size: 28px; }
.t-quote em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: #14161B;
  font-weight: 600;
  font-size: 14px;
}
.t-author .meta .nm { font-size: 14px; font-weight: 500; }
.t-author .meta .where { font-size: 12px; color: var(--ink-3); }

/* ── Isaac block ──────────────────────────────────────────────── */
.isaac-block {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .isaac-block { grid-template-columns: 1fr; } }
.isaac-photo {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.isaac-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg,
      color-mix(in srgb, var(--accent) 12%, transparent) 0 1px,
      transparent 1px 14px);
  opacity: 0.5;
}
.isaac-photo .placeholder-label {
  position: absolute;
  inset: auto 16px 16px 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.isaac-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--surface);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ── Partners strip ──────────────────────────────────────────── */
.partners {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.partners .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.partner-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.partner-mark .sym {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--accent);
}

/* ── Booking ──────────────────────────────────────────────────── */
.booking-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
@media (max-width: 860px) { .booking-grid { grid-template-columns: 1fr; } }
.calendar-card, .callback-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.calendar-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}
.cal-nav { display: flex; gap: 6px; }
.cal-nav button {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--ink-2);
  cursor: pointer;
}
.cal-nav button:hover { background: var(--surface-2); color: var(--ink); }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-grid .h {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-align: center;
  padding: 8px 0;
}
.cal-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-2);
  display: grid; place-items: center;
  font-size: 13px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.cal-cell:hover:not(.disabled) {
  background: var(--surface-2);
  border-color: var(--line-2);
}
.cal-cell.disabled { color: var(--muted); cursor: default; }
.cal-cell.active {
  background: var(--accent);
  color: #14161B;
  font-weight: 500;
}
.cal-cell.today::after {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent);
  position: absolute;
  margin-top: 18px;
}
.cal-cell.today { position: relative; }

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}
.time-slot {
  padding: 10px 0;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-size: 13px;
  font-family: var(--font-mono);
  cursor: pointer;
  color: var(--ink-2);
}
.time-slot:hover { border-color: var(--accent); color: var(--ink); }
.time-slot.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #14161B;
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.faq-q .plus {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--accent);
  transition: transform .25s cubic-bezier(.3,.7,.4,1);
  flex: none;
}
.faq-item[data-open="1"] .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.faq-item[data-open="1"] .faq-a { max-height: 220px; }
.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 64ch;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer.foot {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--bg-2);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-grid a { color: var(--ink-2); font-size: 14px; }
.foot-grid a:hover { color: var(--accent); }
.foot-base {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Animations / utilities ───────────────────────────────────── */
.fade-in {
  animation: fadeIn .8s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.visible { opacity: 1; transform: none; }

/* Marquee for the partners bar */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Number ticker */
.ticker { font-variant-numeric: tabular-nums; }

/* ── CTA banner ─────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line-2);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 50%);
  pointer-events: none;
}
.cta-banner h2 {
  position: relative;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
  font-weight: 500;
}
.cta-banner h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
@media (max-width: 860px) { .cta-banner { grid-template-columns: 1fr; padding: 36px 28px; } }

/* ── Hero background layers ──────────────────────────────────── */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-layer::after {
  /* dark gradient overlay to keep text legible */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--bg) 78%, transparent) 38%,
      color-mix(in srgb, var(--bg) 24%, transparent) 60%,
      color-mix(in srgb, var(--bg) 60%, transparent) 100%);
  pointer-events: none;
}

.neighborhood {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: saturate(1.15) contrast(1.05);
}
.neighborhood-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.neighborhood-pan {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  animation: dronePan 38s ease-in-out infinite alternate;
  transform-origin: center;
}
@keyframes dronePan {
  0%   { transform: translate(0, 0) scale(1.04); }
  50%  { transform: translate(-3%, -1.5%) scale(1.08); }
  100% { transform: translate(2%, -3%) scale(1.05); }
}
.drone-hud {
  position: absolute;
  top: 92px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 8px;
  background: rgba(11, 12, 15, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 184, 46, 0.25);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  z-index: 1;
}
.dh-rec {
  width: 8px; height: 8px; border-radius: 50%;
  background: #FF3B30;
  animation: pulseDot 1.4s infinite;
}
@media (max-width: 768px) { .drone-hud { display: none; } }

/* ── Hero floating particles ─────────────────────────────────── */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-particles > span {
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(0.5px);
  box-shadow: 0 0 8px var(--accent);
  animation-name: floaty;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-direction: alternate;
}
@keyframes floaty {
  from { transform: translate(0, 0); }
  to   { transform: translate(var(--drift), -40px); opacity: 0.05; }
}

/* ── Mini-map (inside estimate card) ─────────────────────────── */
.mini-map {
  width: 120px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  flex: none;
}

/* ── How-grid responsive ─────────────────────────────────────── */
@media (max-width: 980px) { .how-grid { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 540px) { .how-grid { grid-template-columns: 1fr !important; } }

/* ── FAQ responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  section#faq .container > div {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* ── Light theme adjustments for neighborhood ────────────────── */
[data-theme="light"] .neighborhood { opacity: 0.55; }
[data-theme="light"] .hero-bg-layer::after {
  background:
    linear-gradient(105deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--bg) 88%, transparent) 38%,
      color-mix(in srgb, var(--bg) 50%, transparent) 70%,
      color-mix(in srgb, var(--bg) 78%, transparent) 100%);
}

/* ── Isaac stripe (compact landing-page version) ─────────────── */
.isaac-stripe {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
/* Real portrait art: it's already a clean transparent circle with its own
   navy + gold ring, so don't add a second frame — just seat it with a shadow. */
.isaac-photo.has-art::before { content: none; }
.isaac-photo.has-art {
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 50%;
  background-color: transparent;
  background-size: contain !important;
  background-position: center !important;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.42));
  box-shadow: none;
  margin-top: 4px;
}
.isaac-photo-small {
  aspect-ratio: 1 / 1.15;
  border-radius: var(--radius);
}
@media (max-width: 760px) { .isaac-stripe { grid-template-columns: 1fr; } }

/* ── Slim footer ─────────────────────────────────────────────── */
footer.foot-slim { padding: 16px 0 14px; }
.foot-slim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.foot-slim-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.foot-slim-tagline {
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.4;
  max-width: 360px;
  padding-left: 18px;
  border-left: 1px solid var(--line-2);
}
.foot-slim-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  white-space: nowrap;
}
.foot-slim-contact a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}
.foot-slim-email { padding-left: 14px; border-left: 1px solid var(--line-2); }
.foot-slim-copy {
  color: var(--muted);
  font-size: 11.5px;
  padding-left: 14px;
  border-left: 1px solid var(--line-2);
}
@media (max-width: 760px) {
  .foot-slim-row { align-items: flex-start; }
  .foot-slim-brand { flex-wrap: wrap; }
  .foot-slim-tagline { border-left: 0; padding-left: 0; margin-top: 8px; max-width: none; }
  .foot-slim-contact { flex-direction: column; align-items: flex-start; gap: 4px; }
  .foot-slim-copy { border-left: 0; padding-left: 0; }
}

/* ── Variant: FOCUS (split-screen calculator) ────────────────── */
body.v-focus { background: var(--bg); }
.focus-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.focus-hero-wrap {
  position: relative;
  overflow: hidden;
}
.focus-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 56px;
  align-items: stretch;
  padding: 56px 0 72px;
}
@media (max-width: 1040px) {
  .focus-hero { grid-template-columns: 1fr; }
}
.focus-left h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  letter-spacing: -0.028em;
  line-height: 0.98;
  margin: 22px 0 18px;
  font-weight: 500;
  text-wrap: balance;
}
.focus-left h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.focus-left .lede {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
  max-width: 460px;
  margin: 0 0 28px;
}
.focus-preview {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  position: relative;
}
.focus-preview .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.focus-preview .value {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  margin: 6px 0 0;
  line-height: 1;
}
.focus-preview .value .cur {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.focus-preview .value .per {
  font-size: 14px;
  color: var(--ink-3);
  font-weight: 400;
}
.focus-preview .ghost {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 10px;
}
.focus-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.focus-stats > div { display: flex; flex-direction: column; gap: 4px; }
.focus-stats .val { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.focus-stats .lbl { font-size: 10.5px; color: var(--ink-3); font-family: var(--font-mono);
                    letter-spacing: 0.08em; text-transform: uppercase; }
.focus-right {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-2);
}
.focus-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.focus-step-head .pip {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #14161B;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.focus-step-head .of {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.focus-progress {
  display: flex;
  gap: 4px;
  margin-top: 16px;
}
.focus-progress span {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
}
.focus-progress span.on { background: var(--accent); }

/* ── Variant: POSTER (bold minimal) ──────────────────────────── */
body.v-poster {
  background: var(--bg);
}
.poster-hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.poster-hero > .container {
  position: relative;
  z-index: 2;
}
.poster-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 75% 30%,
                    color-mix(in srgb, var(--accent) 18%, transparent),
                    transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Soft / poster overlay variants — stronger fade so type stays legible. */
.hero-bg-layer-soft::after {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 35%, transparent) 0%,
      color-mix(in srgb, var(--bg) 75%, transparent) 80%,
      var(--bg) 100%) !important;
}
.hero-bg-layer-poster::after {
  background:
    linear-gradient(160deg,
      color-mix(in srgb, var(--bg) 45%, transparent) 0%,
      color-mix(in srgb, var(--bg) 75%, transparent) 60%,
      var(--bg) 100%) !important;
}
.poster-h1 {
  font-size: clamp(64px, 11vw, 188px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 500;
  margin: 24px 0 0;
  padding-bottom: 0.1em;
  text-wrap: balance;
}
.poster-h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.poster-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 580px;
  margin: 36px 0 36px;
}
.poster-input-wrap {
  display: flex;
  max-width: 620px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 8px 8px 8px 22px;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-1);
}
.poster-input-wrap input {
  flex: 1;
  height: 60px;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 17px;
  min-width: 0;
}
.poster-input-wrap input::placeholder { color: var(--muted); }
.poster-input-wrap .btn { height: 56px; padding: 0 24px; border-radius: 12px; }
.poster-side-meta {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  color: var(--ink-3);
  font-size: 13.5px;
  flex-wrap: wrap;
}
.poster-side-meta b { color: var(--ink); font-weight: 500; }
.poster-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 400;
  max-width: 18ch;
  text-wrap: balance;
}
.poster-quote-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 24px;
}
.poster-bigchart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
}

/* ── Raster logo treatment ──────────────────────────────────── */
.logo-raster {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  position: relative;
}
/* Dark-mode haze — soft radial backlight so dark text in raster logos
   stays readable against the dark page bg. Fades to transparent at the
   edges so it reads as a glow, not a card. */
[data-theme="dark"] .logo-raster {
  padding: 10px 18px;
}
[data-theme="dark"] .logo-raster::before {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(248, 244, 232, 0.92) 0%,
    rgba(248, 244, 232, 0.7) 35%,
    rgba(248, 244, 232, 0.32) 65%,
    transparent 95%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(3px);
}
.logo-raster[data-variant="isaac"]::before { content: none; }
.logo-raster[data-variant="isaac"] { padding: 0; }
.logo-lockup { display: inline-flex; align-items: center; gap: 11px; line-height: 0; }
/* The wordmark art is navy — on dark themes it needs a warm halo to read,
   matching the drop-shadow glow treatment used on the print flyer (traces
   the logo's actual shape, not a boxy backdrop). */
.logo-lockup .lockup-word { position: relative; display: inline-flex; line-height: 0; }
[data-theme="dark"] .logo-lockup .lockup-word img {
  filter: drop-shadow(0 0 3px rgba(248,246,240,.9)) drop-shadow(0 0 10px rgba(248,246,240,.55));
}
/* Narrow viewports (and the preview pane): scale the lockup down rather than
   dropping the wordmark — it carries the brand name. The portrait keeps its
   larger relative size. */
/* Mid widths: the full-size lockup crowds the nav well before phone sizes. */
@media (max-width: 620px) {
  .logo-lockup { gap: 6px; }
  .logo-lockup .lockup-portrait { height: 74px !important; }
  .logo-lockup .lockup-word img { height: 56px !important; }
  .logo-lockup .lockup-word { padding: 0; }
  .nav-inner { height: 90px; }
}
@media (max-width: 400px) {
  .logo-lockup .lockup-portrait { height: 58px !important; }
  .logo-lockup .lockup-word img { height: 44px !important; }
  .nav-inner { height: 74px; }
}

/* ════════════════════════════════════════════════════════════════
   COMPLIANCE + ACCESSIBILITY
   ════════════════════════════════════════════════════════════════ */

/* ── Accessibility: visible focus, skip link ──────────────────── */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 10000;
  background: var(--accent);
  color: #14161B;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.skip-link:focus { top: 16px; }

/* ── Reduced-motion: honor the OS/browser preference ──────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Freeze the ambient hero motion entirely */
  .hero-bg::before,
  .neighborhood-pan,
  .hero-particles > span,
  .dh-rec,
  .hero-tag .dot,
  .marquee-track { animation: none !important; }
  /* Pause looping SVG/video animation by hiding the most distracting layer */
  .neighborhood-video { /* video: let it play but it's muted+loop; UA reduced-motion may pause */ }
}

/* ── Legal modal ──────────────────────────────────────────────── */
.legal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(5, 6, 8, 0.72);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  overflow-y: auto;
  animation: legalFade .2s ease both;
}
@keyframes legalFade { from { opacity: 0; } to { opacity: 1; } }
.legal-modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 44px 48px 32px;
  color: var(--ink-2);
}
@media (max-width: 600px) { .legal-modal { padding: 36px 22px 24px; } }
.legal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.legal-close:hover { background: var(--surface-2); }
.legal-content h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
}
.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 8px;
  letter-spacing: -0.01em;
}
.legal-content p, .legal-content li { font-size: 14.5px; line-height: 1.6; }
.legal-content ul { padding-left: 20px; margin: 8px 0; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
}
.legal-note {
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  margin: 16px 0;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13.5px;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}
.legal-table th {
  background: var(--bg-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 12px;
}
.legal-form { margin: 16px 0; display: flex; flex-direction: column; gap: 10px; }
.legal-form label { font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.legal-form input {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
}
.legal-footer-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* ── Consent block (in lead forms) ────────────────────────────── */
.consent-block {
  margin-top: 18px;
  padding: 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
}
.consent-row input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent-fine {
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink-3);
  margin: 10px 0 0;
}
.consent-broker {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  color: var(--ink-2);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.consent-broker svg { flex: none; margin-top: 1px; color: var(--accent); }

.estimate-disclaimer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px dotted var(--line-2);
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: 11.5px;
  cursor: pointer;
}
.estimate-disclaimer-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ── Bill auto-read feedback ──────────────────────────────────── */
.bill-read {
  margin-top: 14px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--ink-2);
  cursor: default;
}
.bill-read-busy { display: flex; align-items: center; gap: 10px; color: var(--ink-3); }
.bill-read-busy .spin {
  width: 14px; height: 14px; flex: none;
  border: 2px solid var(--line-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: billSpin .7s linear infinite;
}
@keyframes billSpin { to { transform: rotate(360deg); } }
.bill-read-head {
  display: flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 500; font-size: 12.5px;
}
.bill-read-head .util {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bill-read-grid {
  display: flex; gap: 22px; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line);
}
.bill-read-grid > div { display: flex; flex-direction: column; gap: 2px; }
.bill-read-grid b {
  font-size: 17px; font-weight: 500; letter-spacing: -.01em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.bill-read-grid span {
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.bill-read-warn { color: var(--ink-3); line-height: 1.45; }

/* ── Notice at collection (inline near forms) ─────────────────── */.notice-collection {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 14px 0 0;
}
.notice-collection a { color: var(--accent); text-decoration: underline; }

/* ── Footer legal links + license line ────────────────────────── */
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 2px;
}
.legal-links a {
  font-size: 12.5px;
  color: var(--ink-3);
  text-decoration: none;
}
.legal-links a:hover { color: var(--accent); text-decoration: underline; }
.license-line {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 760px;
  margin: 8px 0 0;
}

/* ── Privacy banner (bottom, dismissable) ─────────────────────── */
.privacy-banner {
  position: fixed;
  left: 16px;
  right: auto;
  bottom: 82px;
  z-index: 9990;
  width: 360px;
  max-width: calc(100vw - 32px);
  margin: 0;
  background: rgba(20, 22, 27, 0.96);
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.privacy-banner p {
  flex: none;
  min-width: 0;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.privacy-banner a { color: var(--accent); text-decoration: underline; }
.privacy-banner-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.privacy-banner button {
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 999px;
  padding: 9px 16px;
}
.privacy-banner .pb-dns {
  background: transparent;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
}
.privacy-banner .pb-dns:hover { color: var(--ink); }
.privacy-banner .pb-ok { background: var(--accent); color: #14161B; }
[data-theme="light"] .privacy-banner { background: rgba(255,255,255,0.97); }
@media (max-width: 640px) {
  .privacy-banner { bottom: 150px; left: 16px; right: 16px; width: auto; }
}
/* Bottom-right is owned by the fixed Tweaks button (~101px + margin). Any
   bottom-docked chrome must reserve that gutter or its right edge becomes
   unclickable. */
:root { --tweaks-gutter: 136px; }

/* Short windows: a fixed overlay will always cover part of a hero that's taller
   than the viewport. Drop the banner into normal flow instead — the required
   notice-at-collection still sits inline beside every form. */
@media (max-height: 700px) {
  body { padding-bottom: 0; }
  .privacy-banner {
    position: static;
    width: auto;
    margin: 0 16px 16px;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
  }
  .privacy-banner p {
    font-size: 11.5px;
    flex: 1;
    min-width: 0;
  }
  .privacy-banner-actions { flex: none; }
  .privacy-banner button { padding: 7px 13px; font-size: 11.5px; }
}
@media (max-width: 640px) and (max-height: 700px) {
  .privacy-banner { flex-direction: column; align-items: stretch; }
}
