/* Go Green Quote, Spray Foam Removal Landing
   Forest green + cream, gold CTA. Direct/problem-solver tone. */

/* Self-hosted fonts (no render-blocking Google Fonts round-trip).
   Manrope is a variable font — one file covers 400–800. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --forest: #0a3324;
  --forest-2: #135a3e;
  --forest-3: #1f7d59;
  --cream: #f6f1e3;
  --cream-2: #fbf7eb;
  --paper: #ffffff;
  --gold: #f5b800;
  --gold-hi: #ffc91f;
  --gold-shadow: #b88600;
  --ink: #0f1a14;
  --ink-2: #2a382f;
  --muted: #5b6862;
  --line: #e3ddc9;
  --line-dark: #143929;
  --alert: #c0392b;
  --ok: #1f7d59;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 0 rgba(20,57,41,.06), 0 12px 32px -16px rgba(20,57,41,.18);
  --shadow-cta: 0 1px 0 rgba(255,255,255,.4) inset, 0 -2px 0 rgba(0,0,0,.12) inset, 0 8px 20px -8px rgba(245,184,0,.55);
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 450;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Urgency bar ---------- */
.urgency {
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.urgency .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(245,184,0,.7);
  animation: pulse 1.8s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,184,0,.7); }
  70% { box-shadow: 0 0 0 8px rgba(245,184,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,184,0,0); }
}

/* ---------- Header ---------- */
.nav {
  background: var(--forest);
  color: var(--cream);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}
.logo {
  display: inline-flex; align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 30px;
  width: auto;
  display: block;
}
.nav-meta { display: flex; align-items: center; gap: 18px; font-size: 14px; color: rgba(246,241,227,.78); }
.nav-meta .check { color: var(--gold); }
.nav-meta-item { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 720px) {
  .nav-meta { display: none; }
  .nav-row { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 110% -10%, rgba(31,125,89,.35), transparent 60%),
    linear-gradient(180deg, var(--forest) 0%, #0c3a29 100%);
  color: var(--cream);
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 32px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.18));
  pointer-events: none;
  z-index: 1;
}

/* Animated background: aurora orbs + faint grid overlay
   GPU-accelerated transforms only, no JS, no layout thrash. */
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-aurora {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  filter: blur(20px) saturate(1.1);
  will-change: transform;
}
.hero-aurora .orb { mix-blend-mode: screen; transform-origin: center; }
.orbA { animation: orbA 22s ease-in-out infinite alternate; }
.orbB { animation: orbB 28s ease-in-out infinite alternate; }
.orbC { animation: orbC 18s ease-in-out infinite alternate; }
@keyframes orbA {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-120px,80px,0) scale(1.18); }
  100% { transform: translate3d(60px,-40px,0) scale(.92); }
}
@keyframes orbB {
  0%   { transform: translate3d(0,0,0) scale(1.05); }
  50%  { transform: translate3d(180px,-100px,0) scale(.85); }
  100% { transform: translate3d(-80px,60px,0) scale(1.15); }
}
@keyframes orbC {
  0%   { transform: translate3d(0,0,0) scale(.95); }
  50%  { transform: translate3d(-160px,-60px,0) scale(1.2); }
  100% { transform: translate3d(120px,80px,0) scale(.9); }
}
@media (prefers-reduced-motion: reduce) {
  .orbA, .orbB, .orbC { animation: none; }
}

.hero-grid-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  opacity: .7;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}
.hero-grid.layout-centered {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-grid.layout-centered .bullets { justify-content: center; }
.hero-grid.layout-centered .hero-trust { justify-content: center; }
.hero-grid.layout-stacked {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 36px 0 48px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245,184,0,.12);
  border: 1px solid rgba(245,184,0,.35);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

h1.headline {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 18px 0 16px;
  color: #fff;
  text-wrap: balance;
}
h1.headline .highlight {
  background: linear-gradient(180deg, transparent 62%, rgba(245,184,0,.55) 62%, rgba(245,184,0,.55) 92%, transparent 92%);
  padding: 0 2px;
}
@media (max-width: 380px) {
  h1.headline .highlight { white-space: normal; }
}
.sub {
  font-size: 18px;
  color: rgba(246,241,227,.85);
  max-width: 52ch;
  margin: 0 0 22px;
  text-wrap: pretty;
}
.hero-grid.layout-centered .sub { margin-left: auto; margin-right: auto; }

/* ---------- Hero pain-point chips ---------- */
.pain-row {
  margin: 18px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pain-lead {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(246,241,227,.58);
}
.pain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pain-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  color: var(--cream);
  background: rgba(246,241,227,.06);
  border: 1px solid rgba(246,241,227,.16);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.pain-chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.pain-chip:hover {
  background: rgba(245,184,0,.12);
  border-color: rgba(245,184,0,.55);
  transform: translateY(-1px);
}
.pain-chip:active { transform: translateY(0); }
.pain-chip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.hero-grid.layout-centered .pain-row { align-items: center; }
.hero-grid.layout-centered .pain-chips { justify-content: center; }

.bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex; flex-wrap: wrap;
  gap: 10px 18px;
}
.bullets li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px;
  color: rgba(246,241,227,.92);
  font-weight: 600;
}
.bullets svg { color: var(--gold); flex: none; }
@media (max-width: 720px) {
  .bullets { flex-direction: column; gap: 10px; align-items: flex-start; }
  .hero-grid.layout-centered .bullets { align-items: center; }
}

.hero-trust {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.hero-trust .rating-text {
  font-size: 14px;
  color: rgba(246,241,227,.82);
}
.hero-trust .rating-text strong { color: #fff; }

/* ---------- Form card ---------- */
.form-card {
  background: var(--cream-2);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.5) inset;
  border: 1px solid var(--line);
  position: relative;
}
.ms-card { padding-top: 20px; }
.form-card h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 6px 0 4px;
}
.form-card .sub-form {
  font-size: 14px; color: var(--muted);
  margin: 0 0 18px;
}
.form-card .sub-form strong { color: var(--forest); }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.field-row.full { grid-template-columns: 1fr; }
.field { display: block; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 4px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--forest-2);
  box-shadow: 0 0 0 3px rgba(31,125,89,.18);
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%230a3324' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  margin-top: 6px;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--forest);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .01em;
  border: 0;
  border-radius: 10px;
  box-shadow: var(--shadow-cta);
  transition: transform .08s ease, filter .15s;
}
.cta:hover { filter: brightness(1.04); }
.cta:active { transform: translateY(1px); }
.cta .arrow { transition: transform .15s; }
.cta:hover .arrow { transform: translateX(3px); }

.form-foot {
  margin-top: 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.form-foot svg { color: var(--ok); flex: none; }

/* ---------- Trust strip, benefits ---------- */
.trust-strip {
  background: var(--cream);
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.benefits {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px 8px;
  align-items: center;
}
@media (max-width: 1100px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .benefits { grid-template-columns: repeat(2, 1fr); } }
.benefit {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 6px;
  min-width: 0;
}
.benefit-icon {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 10px;
  background: rgba(31,125,89,.1);
  color: var(--forest-2);
  display: grid; place-items: center;
}
.benefit-icon svg { width: 20px; height: 20px; }
.benefit-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.005em;
  line-height: 1.2;
}
.benefit-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1.2;
}

/* ---------- Sections ---------- */
section.block { padding: 80px 0; }
@media (max-width: 720px) { section.block { padding: 56px 0; } }

/* ---------- What's included (cost variant) ---------- */
.included { background: var(--cream); }
.included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}
@media (max-width: 720px) { .included-grid { grid-template-columns: 1fr; } }
.included-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.included-tick {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--forest);
  color: var(--gold);
  display: grid; place-items: center;
}

/* ---------- Why foam causes problems (problem-aware variant) ---------- */
.why-problems { background: var(--cream); }
.why-problems-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: start;
}
@media (max-width: 900px) { .why-problems-grid { grid-template-columns: 1fr; gap: 28px; } }
.wp-cards { display: grid; gap: 16px; }
.wp-card {
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  border: 1px solid var(--line);
}
.wp-card h4 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  display: flex; align-items: center; gap: 9px;
}
.wp-card-problem { background: var(--cream-2); }
.wp-card-problem ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 10px;
}
.wp-card-problem li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.4;
}
.wp-card-problem li::before {
  content: "";
  position: absolute; left: 6px; top: 8px;
  width: 8px; height: 8px; border-radius: 2px;
  background: #c4402f;
  transform: rotate(45deg);
}
.wp-card-fix {
  background: var(--forest);
  color: var(--cream);
  border-color: transparent;
}
.wp-card-fix h4 { color: #fff; }
.wp-card-fix p { margin: 0; font-size: 15.5px; line-height: 1.55; color: rgba(246,241,227,.9); }
.wp-fix-tick {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--forest);
  display: grid; place-items: center;
}

.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--forest-2);
  margin: 0 0 10px;
}
h2.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0 0 12px;
  text-wrap: balance;
}
.section-sub {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: transform .15s, box-shadow .15s;
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.step-num {
  font-size: 13px; font-weight: 800; letter-spacing: .12em;
  color: var(--forest-2);
  margin-bottom: 14px;
}
.step-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--forest);
  color: var(--gold);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.step p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}
.step-time {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--forest-2);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(31,125,89,.1);
  border-radius: 999px;
}

/* ---------- Why us ---------- */
.why {
  background: var(--cream);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 920px) { .why-grid { grid-template-columns: 1fr; gap: 32px; } }
.why-points { display: grid; gap: 18px; margin-top: 28px; }
.why-point {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
}
.why-point .tick {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold);
  display: grid; place-items: center;
  flex: none;
}
.why-point h4 { margin: 4px 0 4px; font-size: 17px; font-weight: 800; letter-spacing: -.005em; }
.why-point p { margin: 0; color: var(--muted); font-size: 15px; }

.stats {
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  border: 1px solid var(--line-dark);
}
.stat .n { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: #fff; }
.stat .n .plus { color: var(--gold); }
.stat .l { font-size: 13px; margin-top: 6px; color: rgba(246,241,227,.7); letter-spacing: .02em; }
.stats-foot {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(246,241,227,.78);
}
.stats-foot svg { color: var(--gold); flex: none; }

/* ---------- Coverage ---------- */
.coverage { background: var(--paper); }
.coverage-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 920px) { .coverage-grid { grid-template-columns: 1fr; gap: 32px; } }
.coverage-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 22px; }
.coverage-list span {
  font-size: 14px; color: var(--ink-2); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.coverage-list span::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.map-card {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.map-shell {
  background: var(--cream);
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.ukmap {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.ukmap-base {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  /* Tint the grey silhouette to match the brand without re-exporting */
  filter:
    brightness(.92)
    sepia(1) hue-rotate(95deg) saturate(2.4) brightness(.7);
  opacity: .85;
}
.ukmap-pins {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.map-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px;
  font-size: 13px; color: var(--muted);
}
.map-foot strong { color: var(--ink); }

/* ---------- Final CTA ---------- */
.final {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
}
.final h2 { color: #fff; }
.final .section-sub { color: rgba(246,241,227,.82); }
.final .cta-row {
  margin-top: 28px;
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
}
.final .cta {
  min-width: 280px;
}
.final .reassure {
  color: rgba(246,241,227,.7);
  font-size: 13px;
  margin-top: 8px;
}

/* ---------- Footer ---------- */
footer {
  background: #061d14;
  color: rgba(246,241,227,.6);
  font-size: 13px;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px -12px rgba(10,51,36,.25);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-cta-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 12px;
}
.sticky-cta-bar .live-ticker {
  background: rgba(31,125,89,.08);
  border: 1px solid rgba(31,125,89,.18);
  padding: 6px 10px;
  border-radius: 999px;
}
.sticky-cta-btn {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--forest);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .01em;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 -2px 0 rgba(0,0,0,.12) inset,
    0 8px 20px -8px rgba(245,184,0,.5);
  cursor: pointer;
}
.sticky-cta-btn:active { transform: translateY(1px); }
@media (max-width: 720px) {
  .sticky-cta { display: block; }
  footer { padding-bottom: 110px; }
  .final { padding-bottom: 120px; }
}
@media (max-width: 380px) {
  /* Very narrow phones: stack to keep button comfy */
  .sticky-cta-bar { grid-template-columns: 1fr; gap: 6px; }
  .sticky-cta-bar .live-ticker { justify-self: center; }
}

/* ---------- Live ticker ---------- */
.live-ticker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1;
  white-space: nowrap;
}
.live-ticker--default {
  margin: 2px 0 14px;
  padding: 6px 10px;
  background: rgba(31,125,89,.07);
  border: 1px solid rgba(31,125,89,.18);
  border-radius: 999px;
  align-self: flex-start;
  width: fit-content;
}
.live-ticker-n {
  font-weight: 800;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
  transition: color .25s;
}
.live-ticker.is-bumping .live-ticker-n {
  color: var(--forest-3);
  animation: tickerBump .7s ease-out;
}
@keyframes tickerBump {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}
.live-ticker-label { color: var(--muted); font-weight: 500; }

.live-dot {
  position: relative;
  width: 8px; height: 8px;
  flex: none;
}
.live-dot-core {
  position: absolute; inset: 0;
  background: #2dbb86;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(45,187,134,.7);
  animation: liveDot 1.6s ease-out infinite;
}
@keyframes liveDot {
  0%   { box-shadow: 0 0 0 0   rgba(45,187,134,.7); }
  70%  { box-shadow: 0 0 0 8px rgba(45,187,134,0); }
  100% { box-shadow: 0 0 0 0   rgba(45,187,134,0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot-core { animation: none; }
}

/* ---------- Placeholder graphics ---------- */
.placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(10,51,36,.06) 0 6px, transparent 6px 14px),
    var(--cream-2);
  border: 1px dashed rgba(10,51,36,.25);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--forest-2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .04em;
  text-align: center;
  padding: 16px;
}

/* ---------- Multi-step form ---------- */
.ms-progress { margin: 2px 0 18px; }
.ms-progress-meta {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ms-progress-meta span:first-child { color: var(--forest); }
.ms-progress-track {
  height: 6px;
  background: rgba(10,51,36,.08);
  border-radius: 999px;
  overflow: hidden;
}
.ms-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--forest-2), var(--gold));
  border-radius: 999px;
  transition: width .4s cubic-bezier(.2,.7,.2,1);
}

/* Final-step progress: hold at 99% with a pulsing glow */
.ms-progress.is-final .ms-progress-meta span:last-child {
  color: var(--forest);
  font-weight: 800;
  animation: msFinalText 1.6s ease-in-out infinite;
}
.ms-progress.is-final .ms-progress-fill {
  background: linear-gradient(90deg, var(--forest-2), var(--gold-hi));
  box-shadow: 0 0 0 0 rgba(245,184,0,.6);
  animation: msFinalGlow 1.6s ease-in-out infinite;
}
@keyframes msFinalGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,184,0,.55), 0 0 8px 0 rgba(245,184,0,.35); }
  50%      { box-shadow: 0 0 0 5px rgba(245,184,0,0),  0 0 18px 2px rgba(245,184,0,.55); }
}
@keyframes msFinalText {
  0%, 100% { opacity: 1; }
  50%      { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-progress.is-final .ms-progress-fill,
  .ms-progress.is-final .ms-progress-meta span:last-child { animation: none; }
}

.ms-head { margin-bottom: 16px; }
.ms-head h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.18;
  margin: 0 0 6px;
  text-wrap: balance;
}
.ms-head .sub-form { margin: 0; }

.ms-options { display: grid; gap: 8px; }
.ms-options--roomy { grid-template-columns: 1fr; }
.ms-options--compact { grid-template-columns: 1fr 1fr; }
@media (max-width: 460px) {
  .ms-options--compact { grid-template-columns: 1fr; }
}

.ms-option {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .12s, transform .08s, background .12s, box-shadow .12s;
  position: relative;
  min-height: 64px;
}
/* When an option has no icon, drop the icon column so text gets the room. */
.ms-option.no-icon { grid-template-columns: 1fr auto; }
.ms-options--compact .ms-option {
  grid-template-columns: 36px 1fr auto;
  padding: 12px 14px;
  gap: 10px;
  min-height: 56px;
}
.ms-options--compact .ms-option.no-icon { grid-template-columns: 1fr auto; }
.ms-option:hover {
  border-color: var(--forest-2);
  background: #fff;
  box-shadow: 0 8px 18px -10px rgba(10,51,36,.18);
}
.ms-option:active { transform: translateY(1px); }
.ms-option.is-selected {
  border-color: var(--forest-2);
  background: linear-gradient(180deg, #fff, rgba(31,125,89,.06));
  box-shadow: 0 0 0 3px rgba(31,125,89,.18);
}
.ms-option-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--cream);
  color: var(--forest);
  border-radius: 10px;
  flex: none;
}
.ms-options--compact .ms-option-icon { width: 36px; height: 36px; border-radius: 8px; }
.ms-option-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ms-option-label {
  font-weight: 700; font-size: 15px; letter-spacing: -.005em;
  line-height: 1.25;
  text-wrap: balance;
}
.ms-option-detail {
  font-size: 13px; color: var(--muted);
  line-height: 1.35;
  text-wrap: pretty;
}
.ms-option-arrow {
  font-size: 18px;
  color: var(--muted);
  font-weight: 700;
  opacity: .5;
  transition: transform .12s, opacity .12s, color .12s;
}
.ms-option:hover .ms-option-arrow { opacity: 1; color: var(--forest-2); transform: translateX(3px); }
.ms-option.is-selected .ms-option-arrow { color: var(--forest-2); opacity: 1; }

.ms-contact { display: grid; gap: 0; }

/* ---------- Dynamic, answer-tailored trust line (contact step) ---------- */
.ms-trust-line {
  display: flex; align-items: flex-start; gap: 8px;
  background: rgba(31,125,89,.07);
  border: 1px solid rgba(31,125,89,.18);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
  color: var(--forest);
}
.ms-trust-line svg { color: var(--forest-2); flex: none; margin-top: 2px; }
.ms-area-confirm { margin: 0 0 16px; }

/* Early-postcode step */
.ms-postcode .ms-postcode-ok {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--forest-2);
}
.ms-postcode .ms-postcode-ok svg { color: var(--forest-2); }

/* Postcode echo on the contact step */
.ms-contact-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 4px 0 14px; padding: 9px 12px;
  background: rgba(31,125,89,.07);
  border: 1px solid rgba(31,125,89,.16);
  border-radius: 10px;
  font-size: 13px; line-height: 1.4; color: var(--forest);
}
.ms-contact-note svg { color: var(--forest-2); flex: none; margin-top: 2px; }
.ms-contact-note strong { font-weight: 800; }

/* ---------- Payoff / recap step ---------- */
.ms-summary { display: grid; gap: 14px; }
.ms-summary-callout {
  background: linear-gradient(180deg, rgba(31,125,89,.09), rgba(31,125,89,.03));
  border: 1.5px solid rgba(31,125,89,.22);
  border-radius: 12px;
  padding: 15px 16px 17px;
}
.ms-summary-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--forest-2);
  margin-bottom: 8px;
}
.ms-summary-body {
  margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2);
  text-wrap: pretty;
}
.ms-summary-recap {
  border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff;
}
.ms-summary-recap-head {
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted);
  padding: 11px 14px; background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.ms-summary-row {
  display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.ms-summary-row:last-child { border-bottom: 0; }
.ms-summary-row-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--muted);
}
.ms-summary-row-value { font-size: 15px; font-weight: 700; color: var(--ink); min-width: 0; }
.ms-summary-edit {
  background: none; border: 0; padding: 4px 6px;
  font-size: 13px; font-weight: 700; color: var(--forest-2);
  text-decoration: underline; text-underline-offset: 3px;
}
.ms-summary-edit:hover { color: var(--forest); }
.ms-summary-foot {
  margin: 0; text-align: center; font-size: 12.5px; color: var(--muted);
}

.ms-nav {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px;
}
.ms-back {
  background: none;
  border: 0;
  color: var(--forest);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s;
}
.ms-back:hover { background: rgba(10,51,36,.06); }
.ms-meta { font-size: 12px; color: var(--muted); margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }

.ms-error {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(192,57,43,.08);
  color: var(--alert);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.ms-done { text-align: center; padding: 12px 4px 4px; }
.ms-done-tick {
  width: 64px; height: 64px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--forest);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px -6px rgba(245,184,0,.45);
}
.ms-done h2 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.01em; }
.ms-done .sub-form { margin: 0 0 16px; }
.ms-done-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
}
.ms-done-meta > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ms-done-meta strong {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.ms-done-meta span { font-size: 14px; font-weight: 700; color: var(--ink); text-transform: capitalize; }

/* CTA disabled state */
.cta[disabled] {
  filter: grayscale(.5);
  opacity: .7;
  cursor: not-allowed;
}
/* CTA ready: form is valid, illuminate to nudge the click */
.cta.is-ready:not([disabled]) {
  animation: ctaPulse 1.6s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% {
    box-shadow:
      0 1px 0 rgba(255,255,255,.4) inset,
      0 -2px 0 rgba(0,0,0,.12) inset,
      0 8px 20px -8px rgba(245,184,0,.7),
      0 0 0 0 rgba(245,184,0,.55);
    transform: translateY(0);
  }
  50% {
    box-shadow:
      0 1px 0 rgba(255,255,255,.5) inset,
      0 -2px 0 rgba(0,0,0,.12) inset,
      0 14px 28px -8px rgba(245,184,0,.85),
      0 0 0 8px rgba(245,184,0,0);
    transform: translateY(-1px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta.is-ready:not([disabled]) { animation: none; }
}

/* ---------- Certificate section ---------- */
.certificate { background: var(--cream); }
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}
@media (max-width: 980px) { .cert-grid { grid-template-columns: 1fr; gap: 32px; } }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--forest);
  background: rgba(31,125,89,.12);
  border: 1px solid rgba(31,125,89,.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.badge-pill svg { color: var(--forest-2); }

.cert-points {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}
@media (max-width: 560px) { .cert-points { grid-template-columns: 1fr; } }
.cert-point { display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.cert-point-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(31,125,89,.12);
  color: var(--forest);
  display: grid; place-items: center;
}
.cert-point h4 { margin: 4px 0 2px; font-size: 15px; font-weight: 800; letter-spacing: -.005em; }
.cert-point p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

.cert-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px -24px rgba(10,51,36,.25), 0 1px 0 #fff inset;
  display: flex;
  flex-direction: column;
}
.cert-card-head {
  background: linear-gradient(180deg, var(--forest-3), var(--forest-2));
  color: #fff;
  padding: 22px 24px;
  display: flex; align-items: center; gap: 14px;
}
.cert-card-head svg { color: rgba(255,255,255,.85); flex: none; }
.cert-card-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.cert-card-sub { font-size: 13px; color: rgba(255,255,255,.78); margin-top: 2px; }

.cert-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.cert-card-lead {
  text-align: center;
  font-size: 17px; font-weight: 800; letter-spacing: -.005em;
  margin: 4px 0 0;
}
.cert-card-leadsub {
  text-align: center;
  font-size: 13px; color: var(--muted);
  margin: 0 0 4px;
}

.lenders {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 640px) { .lenders { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .lenders { grid-template-columns: repeat(2, 1fr); } }
.lender {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 64px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
  transition: border-color .12s, transform .12s, box-shadow .12s;
}
.lender:hover {
  border-color: rgba(10,51,36,.25);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px rgba(10,51,36,.25);
}
.lender img {
  max-width: 100%;
  max-height: 36px;
  width: auto; height: auto;
  object-fit: contain;
}

.cert-card-foot {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.cert-card-stamp {
  margin-top: 4px;
  display: inline-flex; align-self: center; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(31,125,89,.12);
  color: var(--forest);
  font-size: 13px; font-weight: 800;
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-hero {
  background:
    radial-gradient(800px 400px at 110% -10%, rgba(31,125,89,.3), transparent 60%),
    linear-gradient(180deg, var(--forest) 0%, #0c3a29 100%);
  color: var(--cream);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.legal-hero .hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.legal-hero-inner {
  position: relative; z-index: 1;
  max-width: 760px;
}
.legal-hero h1 {
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 800;
  margin: 14px 0 8px;
  color: #fff;
  text-wrap: balance;
}
.legal-hero .meta {
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  font-size: 14px;
  color: rgba(246,241,227,.78);
  margin-top: 14px;
}
.legal-hero .meta strong { color: #fff; }
.legal-hero .breadcrumb {
  font-size: 13px;
  color: rgba(246,241,227,.66);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
}
.legal-hero .breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}
.legal-hero .breadcrumb a:hover { text-decoration: underline; }

.legal-body { background: var(--paper); padding: 64px 0 80px; }
.legal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 880px) { .legal-grid { grid-template-columns: 1fr; gap: 24px; } }

.legal-toc {
  position: sticky; top: 24px;
  align-self: start;
  border-left: 2px solid var(--line);
  padding: 4px 0 4px 18px;
}
.legal-toc-title {
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
.legal-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
  font-weight: 600;
  transition: color .12s;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero) "  ";
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.legal-toc a:hover { color: var(--forest-2); }
@media (max-width: 880px) {
  .legal-toc { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
}

.legal-content { max-width: 68ch; }
.legal-content h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 36px 0 12px;
  scroll-margin-top: 24px;
  display: flex; align-items: baseline; gap: 12px;
}
.legal-content h2 .n {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--forest-2);
  background: rgba(31,125,89,.1);
  padding: 4px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.005em;
  margin: 22px 0 8px;
}
.legal-content p, .legal-content li {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.65;
  text-wrap: pretty;
}
.legal-content p { margin: 0 0 14px; }
.legal-content ul, .legal-content ol { padding-left: 22px; margin: 0 0 18px; }
.legal-content li { margin: 4px 0; }
.legal-content a {
  color: var(--forest);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(31,125,89,.4);
}
.legal-content a:hover { text-decoration-color: var(--forest); }
.legal-content strong { color: var(--ink); }
.legal-content .lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.legal-content .callout {
  margin: 28px 0;
  padding: 18px 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest-2);
  border-radius: 10px;
}
.legal-content .callout p:last-child { margin-bottom: 0; }
.legal-content .callout strong { color: var(--forest); }

/* Footer link list, slightly different than landing page footer */
.foot-row.legal-foot { color: rgba(246,241,227,.7); }
.foot-links { display: inline-flex; gap: 18px; }
.foot-links a {
  color: rgba(246,241,227,.78);
  text-decoration: none;
  font-weight: 600;
  transition: color .12s;
}
.foot-links a:hover { color: var(--gold); }

/* ---------- Why-photo (hero photo under stats card) ---------- */
.why-photo {
  display: block;
  width: 100%;
  height: auto;              /* native aspect ratio — show the whole image, no crop */
  margin-top: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

/* ---------- Utility ---------- */
.scroll-target { scroll-margin-top: 24px; }

/* ---------- Cookie consent banner ----------
   The banner is rendered by cookie-consent.js and ships its own
   critical CSS inline (under the .ggq-cookie-* namespace) so it
   cannot flash unstyled. Nothing required here. */

/* ---------- Quote form modal ----------
   The quote form starts inline in the hero, then expands into this focused
   modal (a dimmed, blurred pop-up on desktop; full-screen on mobile) the moment
   the first question is answered — so the questionnaire and its CTA always sit
   inside the viewport. Branding, the live "quotes today" trust signal and the
   reassurance line are kept in the modal chrome. */
.ms-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 24, 17, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: msOverlayIn .2s ease both;
}
.ms-modal {
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6), 0 2px 0 rgba(255, 255, 255, .4) inset;
  animation: msModalIn .28s cubic-bezier(.2, .9, .3, 1.1) both;
}
.ms-modal-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--forest);
}
.ms-modal-logo { height: 21px; width: auto; display: block; }
.ms-modal-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: rgba(246, 241, 227, .9);
  cursor: pointer;
  transition: background .12s, color .12s;
}
.ms-modal-close:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.ms-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
}
/* The form card is flush inside the modal — the modal supplies the surface. */
.ms-modal-body .form-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
.ms-modal-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: var(--cream);
  color: var(--muted);
  font-size: 12.5px;
}
.ms-modal-foot svg { color: var(--forest-2); flex: none; }

@keyframes msOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes msModalIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Full-screen on phones */
@media (max-width: 560px) {
  .ms-overlay { padding: 0; }
  .ms-modal {
    max-width: none;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ms-overlay, .ms-modal { animation: none; }
}

/* ---------- SEO content sections (static, crawlable) ---------- */
.content-section { background: var(--cream); }
.content-section--alt { background: var(--cream-2); }
.content-wrap { max-width: 860px; }
.content-section .kicker { text-align: left; }
.content-section .section-title { text-align: left; max-width: none; margin-left: 0; }
.prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--forest); font-weight: 700; }
.prose a { color: var(--forest-2); font-weight: 700; text-underline-offset: 2px; }
.prose ul { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(245,184,0,.18);
}
.prose li strong { color: var(--ink); }

/* ---------- FAQ accordion ---------- */
.faq-block { background: var(--cream); }
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 2px 18px; transition: border-color .15s;
}
.faq-item[open] { border-color: var(--forest-3); }
.faq-q {
  list-style: none; cursor: pointer; padding: 16px 30px 16px 0;
  font-weight: 700; font-size: 16.5px; color: var(--ink); position: relative;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 600; color: var(--forest-2); line-height: 1;
}
.faq-item[open] .faq-q::after { content: "\2212"; }
.faq-a { padding: 0 0 18px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.faq-a p { margin: 0; }

/* ---------- Services hub (homepage) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; transition: transform .12s, border-color .12s, box-shadow .12s;
}
.service-card:hover { transform: translateY(-2px); border-color: var(--forest-3); box-shadow: var(--shadow-card); }
.service-card h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; color: var(--forest);
}
.service-card h3 .arrow { color: var(--forest-3); transition: transform .15s; }
.service-card:hover h3 .arrow { transform: translateX(3px); }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
