/* =========================================================
   QuoteOrbit — Design System
   ========================================================= */
:root {
  /* Brand palette */
  --navy-900: #0a1230;
  --navy-800: #0f1a44;
  --navy-700: #16225a;
  --indigo-600: #4f46e5;
  --indigo-500: #6366f1;
  --violet-500: #8b5cf6;
  --cyan-400: #22d3ee;
  --accent: #ff7a45;
  --accent-600: #f2622a;

  /* Neutrals */
  --ink: #101427;
  --body: #45506b;
  --muted: #6b7590;
  --line: #e6e9f2;
  --surface: #ffffff;
  --surface-2: #f6f8fd;
  --surface-3: #eef2fb;

  /* Effects */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(16,20,39,.06), 0 2px 8px rgba(16,20,39,.05);
  --shadow: 0 10px 30px -12px rgba(16,20,39,.18);
  --shadow-lg: 0 30px 60px -20px rgba(16,20,39,.28);
  --shadow-glow: 0 20px 50px -12px rgba(79,70,229,.45);

  --grad-brand: linear-gradient(120deg, var(--indigo-600), var(--violet-500) 55%, var(--cyan-400));
  --grad-accent: linear-gradient(120deg, var(--accent), var(--accent-600));
  --grad-dark: linear-gradient(160deg, var(--navy-900), var(--navy-700));

  --container: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--indigo-600); background: var(--surface-3);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow--light { color: #cfd6ff; background: rgba(255,255,255,.09); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }
.center .lead { margin-left: auto; margin-right: auto; }
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  --bg: var(--indigo-600); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg);
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, opacity .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad-accent); box-shadow: 0 14px 30px -10px rgba(242,98,42,.6); }
.btn--primary:hover { box-shadow: 0 20px 40px -10px rgba(242,98,42,.7); }
.btn--brand { background: var(--grad-brand); box-shadow: var(--shadow-glow); }
.btn--dark { background: var(--navy-800); }
.btn--ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.18); }
.btn--outline { background: transparent; color: var(--indigo-600); border: 1.6px solid var(--line); }
.btn--outline:hover { border-color: var(--indigo-500); background: var(--surface-2); }
.btn--lg { padding: 18px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.28rem; color: var(--ink); letter-spacing: -.02em; }
.brand__logo { width: 38px; height: 38px; flex: none; }
.brand span { color: var(--indigo-600); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  font-weight: 600; font-size: .98rem; color: var(--body);
  padding: 9px 14px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav__toggle span + span { margin-top: 6px; }
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; background: var(--grad-dark); color: #eef1ff; overflow: hidden; padding: 96px 0 108px; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: 0;
}
.hero::before { width: 520px; height: 520px; background: radial-gradient(circle, #6366f1, transparent 65%); top: -160px; right: -120px; }
.hero::after { width: 460px; height: 460px; background: radial-gradient(circle, #22d3ee, transparent 65%); bottom: -180px; left: -140px; }
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero__sub { font-size: 1.2rem; color: #c3caf0; max-width: 540px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px 30px; align-items: center; }
.hero__trust-item { display: inline-flex; align-items: center; gap: 9px; font-size: .95rem; color: #c9cffb; font-weight: 600; }
.hero__trust-item svg { width: 20px; height: 20px; color: var(--cyan-400); flex: none; }

/* Hero card */
.hero__card {
  background: rgba(255,255,255,.98); color: var(--ink);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg);
  position: relative;
}
.hero__card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.hero__card p.small { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice__card {
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  padding: 20px 18px; border: 1.6px solid var(--line); border-radius: var(--radius);
  transition: transform .2s, border-color .2s, box-shadow .2s; cursor: pointer; background: var(--surface);
}
.choice__card:hover { transform: translateY(-4px); border-color: var(--indigo-500); box-shadow: var(--shadow); }
.choice__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.choice__icon svg { width: 24px; height: 24px; }
.choice__icon--boiler { background: linear-gradient(135deg, #f97316, #ef4444); }
.choice__icon--solar { background: linear-gradient(135deg, #f59e0b, #22c55e); }
.choice__card strong { font-size: 1.05rem; color: var(--ink); }
.choice__card span { font-size: .88rem; color: var(--muted); }
.choice__arrow { margin-top: auto; color: var(--indigo-600); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; }

/* Logos / trust bar */
.trustbar { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.trustbar .container { display: flex; align-items: center; justify-content: center; gap: 14px 40px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.trustbar span { font-weight: 700; color: var(--muted); font-size: .92rem; opacity: .8; letter-spacing: .04em; }

/* Section head */
.sec-head { max-width: 640px; margin: 0 auto 52px; }

/* Cards grid */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 20px; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 16px; }
.card__link { font-weight: 700; color: var(--indigo-600); display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__link svg { transform: translateX(4px); }
.bg-boiler { background: linear-gradient(135deg, #f97316, #ef4444); }
.bg-solar  { background: linear-gradient(135deg, #f59e0b, #16a34a); }
.bg-soon   { background: linear-gradient(135deg, #64748b, #334155); }
.bg-indigo { background: var(--grad-brand); }

.badge-soon { position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface-3); padding: 5px 10px; border-radius: 999px; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { position: relative; padding: 34px 26px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step__num {
  counter-increment: step; width: 48px; height: 48px; border-radius: 14px; background: var(--grad-brand);
  color: #fff; font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; margin-bottom: 18px;
}
.step__num::before { content: counter(step); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-list { display: grid; gap: 18px; margin-top: 24px; }
.feature { display: flex; gap: 15px; align-items: flex-start; }
.feature__check { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--surface-3); color: var(--indigo-600); display: grid; place-items: center; }
.feature__check svg { width: 17px; height: 17px; }
.feature strong { display: block; color: var(--ink); font-size: 1.02rem; }
.feature span { color: var(--muted); font-size: .95rem; }
.media-card { background: var(--grad-dark); border-radius: var(--radius-xl); padding: 40px; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.media-card::after { content:""; position:absolute; width: 300px; height: 300px; right: -80px; top: -80px; background: radial-gradient(circle, rgba(99,102,241,.6), transparent 65%); filter: blur(40px); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; z-index: 1; }
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px; }
.stat b { font-size: 2rem; display: block; color: #fff; letter-spacing: -.03em; }
.stat span { color: #c3caf0; font-size: .92rem; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 24px; font-weight: 700; font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: inherit; }
.faq__q svg { width: 20px; height: 20px; flex: none; transition: transform .3s; color: var(--indigo-600); }
.faq__item.open .faq__q svg { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a p { padding: 0 24px 22px; color: var(--muted); margin: 0; }

/* CTA band */
.cta-band { background: var(--grad-brand); border-radius: var(--radius-xl); padding: 60px; text-align: center; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-glow); }
.cta-band::before, .cta-band::after { content:""; position:absolute; border-radius:50%; filter: blur(50px); opacity:.4; }
.cta-band::before { width: 300px; height: 300px; background:#fff; top:-120px; left:-60px; }
.cta-band::after { width: 260px; height: 260px; background: var(--cyan-400); bottom:-120px; right:-40px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 26px; font-size: 1.1rem; }

/* Forms */
.form-wrap { display: grid; grid-template-columns: 1fr .9fr; gap: 48px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form-card .small { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--accent-600); }
.input, .select, .textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1.6px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--indigo-500); box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.textarea { min-height: 110px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; }
.pill label { display: inline-block; padding: 10px 16px; border: 1.6px solid var(--line); border-radius: 999px; font-size: .92rem; font-weight: 600; color: var(--body); cursor: pointer; margin: 0; transition: .2s; }
.pill input:checked + label { background: var(--indigo-600); border-color: var(--indigo-600); color: #fff; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 20px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--indigo-600); }
.consent label { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.form-side { padding-top: 8px; }
.form-side h3 { font-size: 1.5rem; margin-bottom: 14px; }
.form-side .feature-list { margin-top: 20px; }

/* Steps mini (in form side) */
.mini-steps { display: grid; gap: 16px; margin-top: 8px; }
.mini-step { display: flex; gap: 14px; align-items: flex-start; }
.mini-step b { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-size: .9rem; }

/* Page hero (inner pages) */
.page-hero { background: var(--grad-dark); color: #fff; padding: 68px 0 76px; position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; width: 400px; height: 400px; border-radius:50%; background: radial-gradient(circle, rgba(99,102,241,.5), transparent 65%); filter: blur(60px); top:-140px; right:-100px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: #c3caf0; max-width: 620px; font-size: 1.12rem; margin: 0; }
.breadcrumb { font-size: .88rem; color: #9aa3d6; margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }

/* Prose (legal pages) */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 38px 0 12px; }
.prose h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--body); font-size: 1.02rem; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--indigo-600); text-decoration: underline; }
.prose .updated { color: var(--muted); font-size: .92rem; margin-bottom: 30px; }

/* Notice / alert */
.notice { background: var(--surface-3); border: 1px solid var(--line); border-left: 4px solid var(--indigo-500); border-radius: var(--radius-sm); padding: 18px 20px; font-size: .95rem; color: var(--body); }

/* Success (thank you) */
.success-wrap { max-width: 640px; margin: 0 auto; text-align: center; }
.success-icon { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; box-shadow: var(--shadow-glow); }
.success-icon svg { width: 48px; height: 48px; color: #fff; }

/* Footer */
.site-footer { background: var(--navy-900); color: #aeb6df; padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { color: #8b93c2; font-size: .96rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.footer-col a { display: block; color: #aeb6df; padding: 6px 0; font-size: .96rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #7b83b0; }
.footer-bottom a { color: #9aa3d6; }
.footer-bottom a:hover { color: #fff; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 760px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  transform: translateY(140%); transition: transform .45s cubic-bezier(.2,.7,.3,1);
}
.cookie-banner.show { transform: none; }
.cookie-banner__text { flex: 1 1 340px; font-size: .92rem; color: var(--body); }
.cookie-banner__text strong { color: var(--ink); display: block; margin-bottom: 3px; font-size: 1rem; }
.cookie-banner__text a { color: var(--indigo-600); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-banner .btn { padding: 11px 20px; font-size: .92rem; }
@media (max-width: 560px) {
  .cookie-banner { padding: 18px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .split, .form-wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid--3, .grid--4, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero__card { max-width: 520px; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta .btn--desktop { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 74px; left: 0; right: 0; background: #fff;
    padding: 14px 24px 22px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); gap: 4px;
  }
  .nav.open .nav__links a { padding: 12px 10px; }
  .section { padding: 66px 0; }
  .grid--3, .grid--4, .steps, .grid--2, .row-2, .choice, .stat-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  body { font-size: 16px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}
