/* ==========================================================================
   Warm Homes Marketplace – shared stylesheet
   All colours, fonts, radii and shadows live in :root. Change them here only.
   ========================================================================== */

:root {
  /* Brand colours (sampled from the logo) */
  --navy: #01417E;
  --blue: #004988;
  --blue-bright: #0067B6;
  --blue-light: #0776CD;
  --green: #327D21;
  --green-mid: #549F1E;
  --green-light: #6EB221;
  --green-btn-end: #3A8521; /* end of the button gradient: a touch darker than --green-mid so white text passes WCAG AA */
  --green-dark: #2A6A1B;    /* button hover */
  --sun: #FFD32A;

  /* Neutrals */
  --text: #1C2733;
  --text-soft: #4F5B66;
  --bg: #F7FAFC;
  --surface: #FFFFFF;
  --border: #E2E8EE;
  --blue-tint: #EEF5FB;
  --green-tint: #F1F8EC;
  --danger: #B02A37;
  --danger-tint: #FDF1F2;

  /* Disclaimer box */
  --disclaimer-bg: #FFF8F0;
  --disclaimer-border: #F0D9BF;
  --disclaimer-text: #6B4F2A;

  /* Translucent / overlay colours */
  --header-bg: rgba(255, 255, 255, 0.92);
  --on-dark: #FFFFFF;
  --on-dark-soft: rgba(255, 255, 255, 0.82);
  --on-dark-line: rgba(255, 255, 255, 0.18);
  --on-dark-tint: rgba(255, 255, 255, 0.12);

  /* Gradients */
  --grad-icon: linear-gradient(135deg, var(--blue), var(--green));
  --grad-btn: linear-gradient(135deg, var(--green), var(--green-btn-end));
  --grad-btn-hover: linear-gradient(135deg, var(--green-dark), var(--green));
  --grad-band: linear-gradient(135deg, var(--navy), var(--blue-bright));
  --grad-tint-blue: linear-gradient(180deg, var(--blue-tint), var(--surface));
  --grad-tint-green: linear-gradient(180deg, var(--green-tint), var(--surface));

  /* Fonts */
  --font: "Poppins", Arial, sans-serif;

  /* Radii */
  --radius-sm: 10px;
  --radius-btn: 12px;
  --radius-icon: 14px;
  --radius-card: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 18px 40px rgba(0, 0, 0, 0.14);
  --shadow-image: 0 18px 44px rgba(1, 65, 126, 0.16);
  --shadow-strong: 0 24px 60px rgba(1, 65, 126, 0.18);
  --shadow-btn: 0 8px 20px rgba(50, 125, 33, 0.28);
  --shadow-btn-hover: 0 12px 26px rgba(50, 125, 33, 0.36);
  --shadow-menu: 0 16px 36px rgba(0, 0, 0, 0.14);
  --shadow-header: 0 1px 0 rgba(0, 0, 0, 0.02);

  /* Layout */
  --container: 1140px;
  --container-narrow: 760px;
  --header-h: 86px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 0.6rem; font-weight: 700; }
h1 { font-weight: 800; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-bright); }
ul, ol { margin: 0; padding: 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.js-focus-target:focus { outline: none; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--sun); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--navy); color: var(--on-dark); padding: 0.75rem 1.1rem;
  border-radius: var(--radius-btn); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; color: var(--on-dark); }

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

/* ---------- Layout ---------- */
.container { width: min(var(--container), calc(100% - 2rem)); margin-inline: auto; }
.container-narrow { width: min(var(--container-narrow), calc(100% - 2rem)); margin-inline: auto; }

.section { padding: 4rem 0; }
.section-tint { background: var(--grad-tint-blue); }
.section-green { background: var(--grad-tint-green); }
.section-flat-tint { background: var(--blue-tint); }
@media (max-width: 640px) { .section { padding: 3rem 0; } }

.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.4px; color: var(--blue); background: var(--blue-tint);
  border: 1px solid var(--border); padding: 0.3rem 0.85rem; border-radius: var(--radius-pill);
  margin-bottom: 0.9rem; line-height: 1.4;
}
.section-tint .eyebrow, .section-green .eyebrow { background: var(--surface); }

.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.5rem; }
.section-head h2, .h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section-head .lead { color: var(--text-soft); font-size: 1.08rem; margin-bottom: 0; }
.lead { font-size: 1.12rem; color: var(--text-soft); }
.prose { max-width: 46rem; margin-inline: auto; }
.prose h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-top: 2rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.prose ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.bullet-list { padding-left: 1.2rem; margin: 0 0 1rem; }
.bullet-list li { margin-bottom: 0.6rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 1rem 1.6rem; border-radius: var(--radius-btn);
  font-family: var(--font); font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-btn); color: var(--on-dark); box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--grad-btn-hover); color: var(--on-dark); box-shadow: var(--shadow-btn-hover); }
.btn-secondary { background: var(--surface); color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-tint); color: var(--blue); }
.btn-sm { min-height: 44px; padding: 0.7rem 1.2rem; }
.btn[disabled] { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.5rem 0 1rem; }
@media (max-width: 640px) {
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
}

/* ---------- Header & nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-header);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); padding-block: 0.4rem; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 70px; width: auto; }
.site-nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 0.15rem; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; padding: 0.55rem 0.85rem;
  font-family: var(--font); font-size: 0.97rem; font-weight: 600; color: var(--navy);
  text-decoration: none; background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer;
}
.nav-link:hover { background: var(--blue-tint); color: var(--blue); }
.nav-link.is-active { color: var(--blue); background: var(--blue-tint); }
.nav-link .chev { width: 16px; height: 16px; transition: transform 0.2s ease; }
.has-sub.is-open > .nav-link .chev { transform: rotate(180deg); }
.nav-cta { margin-left: 0.5rem; }
.sub-menu {
  list-style: none; display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 290px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-menu); padding: 0.5rem; z-index: 110;
}
.has-sub.is-open > .sub-menu { display: block; }
:root:not(.js) .has-sub:hover > .sub-menu, :root:not(.js) .has-sub:focus-within > .sub-menu { display: block; }
.sub-menu a {
  display: flex; align-items: center; min-height: 44px; padding: 0.5rem 0.85rem; color: var(--navy);
  font-weight: 500; text-decoration: none; border-radius: var(--radius-sm);
}
.sub-menu a:hover, .sub-menu a.is-active { background: var(--blue-tint); color: var(--blue); }
.sub-menu a.is-active { font-weight: 700; }

.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-btn); cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s ease, background 0.2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991px) {
  :root { --header-h: 72px; }
  .brand img { height: 56px; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-menu); padding: 0.75rem 1rem 1.25rem;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .js .site-nav.is-open { display: block; }
  .site-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .nav-link { width: 100%; justify-content: space-between; padding: 0.7rem 0.9rem; }
  .sub-menu { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--green-light); border-radius: 0; margin: 0.1rem 0 0.4rem 0.9rem; min-width: 0; padding: 0.2rem 0 0.2rem 0.4rem; }
  .no-js .sub-menu, :root:not(.js) .sub-menu { display: block; position: static; box-shadow: none; }
  .nav-cta { margin: 0.75rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { background: var(--grad-tint-blue); padding: 3.5rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.08; margin-bottom: 1rem; }
.hero h1 .accent { color: var(--green); }
.hero .lead { max-width: 36rem; }
.hero-note { font-size: 0.92rem; color: var(--text-soft); margin: 0; max-width: 34rem; }
.hero-media { position: relative; }
.hero-center { text-align: center; padding: 3rem 0 2.5rem; }
.hero-center .lead { max-width: 36rem; margin-inline: auto; }
.hero-center h1 { font-size: clamp(2rem, 5.5vw, 3rem); }
.time-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--navy);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0.4rem 1rem; font-size: 0.95rem;
}
.time-pill svg { width: 18px; height: 18px; color: var(--green); }
@media (max-width: 860px) {
  .hero { padding: 2rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-media { order: -1; }
}

/* ---------- Images & placeholders ---------- */
.img-ph {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-image); background: var(--blue-tint); border: 1px solid var(--border);
}
.img-ph.r-4x3 { aspect-ratio: 4 / 3; }
.img-ph.r-3x2 { aspect-ratio: 3 / 2; }
.img-ph .ph-label {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.35rem; padding: 1.25rem; font-size: 0.9rem; color: var(--text-soft);
  background: linear-gradient(135deg, var(--blue-tint), var(--green-tint));
}
.img-ph .ph-label svg { width: 34px; height: 34px; color: var(--blue); }
.img-ph .ph-label strong { color: var(--navy); }
.img-ph .ph-label code { font-size: 0.8rem; color: var(--blue); word-break: break-all; }
.img-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-ph img.is-missing { visibility: hidden; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: 1.75rem; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.card { display: flex; flex-direction: column; align-items: flex-start; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--text-soft); margin-bottom: 0; }
.card > p:has(+ .card-link) { margin-bottom: 0.75rem; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; min-height: 44px; font-weight: 700;
  color: var(--blue); text-decoration: none;
}
.card .card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.card .card-link svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.card:hover .card-link svg { transform: translateX(3px); }
.card-link:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--blue-bright); outline-offset: 3px; }

.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius-icon); background: var(--grad-icon); color: var(--on-dark); margin-bottom: 1rem;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Split (two-column) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.reverse .split-media { order: -1; }
.split h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 1.75rem; }
  .split .split-media, .split.reverse .split-media { order: -1; }
}

/* ---------- Tick list ---------- */
.tick-list { list-style: none; display: grid; gap: 0.7rem; margin: 1.25rem 0; }
.tick-list li {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--green);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem 0.75rem 3.1rem; font-weight: 500; color: var(--text);
}
.tick-list li::before {
  content: ""; position: absolute; left: 0.9rem; top: 50%; width: 1.4rem; height: 1.4rem; transform: translateY(-50%);
  border-radius: 50%; background: var(--grad-icon);
}
.tick-list li::after {
  content: ""; position: absolute; left: 1.42rem; top: 50%; width: 0.36rem; height: 0.7rem; margin-top: -0.06rem;
  border: solid var(--on-dark); border-width: 0 2px 2px 0; transform: translateY(-58%) rotate(45deg);
}
.tick-list.two-col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .tick-list.two-col { grid-template-columns: 1fr; } }
.tick-list li small { display: block; font-weight: 400; color: var(--text-soft); font-size: 0.9rem; }

/* ---------- Steps ---------- */
.step-card { text-align: left; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-icon); color: var(--on-dark); font-weight: 800; font-size: 1.25rem; margin-bottom: 1rem;
}

/* ---------- Callout & disclaimer ---------- */
.callout {
  display: flex; gap: 0.9rem; align-items: flex-start; background: var(--blue-tint); border: 1px solid var(--blue-bright);
  border-radius: var(--radius-card); padding: 1.1rem 1.3rem; color: var(--navy); font-weight: 500;
}
.callout svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--blue-bright); margin-top: 2px; }
.callout p { margin: 0; }
.callout.center { max-width: 46rem; margin: 2rem auto 0; }
.disclaimer {
  display: flex; gap: 0.9rem; align-items: flex-start; background: var(--disclaimer-bg); border: 1px solid var(--disclaimer-border);
  border-radius: var(--radius-card); padding: 1.1rem 1.3rem; color: var(--disclaimer-text); font-size: 0.97rem;
}
.disclaimer svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; }
.disclaimer p { margin: 0; }
.disclaimer p + p { margin-top: 0.6rem; }
.disclaimer strong { color: var(--disclaimer-text); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad-band); color: var(--on-dark); text-align: center; padding: 4rem 0; }
.cta-band h2 { color: var(--on-dark); font-size: clamp(1.7rem, 4vw, 2.5rem); }
.cta-band p { color: var(--on-dark-soft); max-width: 40rem; margin: 0 auto 1.5rem; font-size: 1.08rem; }
.cta-band .btn-primary { box-shadow: var(--shadow-btn); border-color: var(--on-dark-line); }
@media (max-width: 640px) { .cta-band { padding: 3rem 0; } }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 46rem; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.faq-item h3 { margin: 0; font-size: 1.05rem; }
.faq-q {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: 0.9rem 1.25rem;
  background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font); font-size: 1.02rem; font-weight: 600; color: var(--navy);
  border-radius: var(--radius-card);
}
.faq-q svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--blue-bright); transition: transform 0.2s ease; }
.faq-q[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-a { padding: 0 1.25rem 1.1rem; color: var(--text-soft); }
.faq-a p { margin: 0; }

/* ---------- Note markers (temporary review flags) ---------- */
.marker { background: var(--sun); color: var(--navy); font-weight: 700; padding: 0.05rem 0.4rem; border-radius: 6px; font-size: 0.92em; }

/* ---------- Contact ---------- */
.contact-card .icon-badge { margin-bottom: 0.8rem; }
.contact-card p { word-break: break-word; }
.panel-cta {
  background: var(--grad-band); color: var(--on-dark); border-radius: var(--radius-lg); padding: 2rem; text-align: center; box-shadow: var(--shadow-strong);
}
.panel-cta h2, .panel-cta h3 { color: var(--on-dark); }
.panel-cta p { color: var(--on-dark-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer-logo { display: inline-block; background: var(--surface); border-radius: var(--radius-card); padding: 0.75rem 1rem; margin-bottom: 1rem; }
.footer-logo img { height: 84px; width: auto; }
.site-footer h2 { color: var(--on-dark); font-size: 1.05rem; margin-bottom: 0.9rem; }
.site-footer p, .site-footer li { color: var(--on-dark-soft); font-size: 0.96rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.15rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.site-footer a:hover { text-decoration: underline; color: var(--on-dark); }
.site-footer .marker { font-size: 0.85rem; }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.35rem; color: var(--green-light); }
.footer-legal { border-top: 1px solid var(--on-dark-line); margin-top: 2.5rem; padding: 1.5rem 0; }
.footer-legal p { font-size: 0.88rem; margin-bottom: 0.75rem; }
.footer-legal-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: center; justify-content: space-between; }
.footer-legal-row p { margin: 0; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 639px) {
  .site-footer { padding-bottom: 84px; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--header-bg);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--border);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  }
  .mobile-cta .btn { width: 100%; }
  .page-check .site-footer { padding-bottom: 0; }
  .page-check .mobile-cta { display: none; }
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-strong);
  padding: 2.25rem; margin-bottom: 2rem;
}
@media (max-width: 640px) { .form-card { padding: 1.4rem 1.1rem; } }
.form-card fieldset, .step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step > legend {
  float: left; width: 100%; padding: 0; margin: 0 0 1.25rem; font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1.25;
}
.step > legend + * { clear: both; }
.step > legend:focus { outline: none; }
.step-intro { color: var(--text-soft); margin-top: -0.5rem; }
.step[hidden] { display: none; }

.form-progress { display: none; margin-bottom: 1.75rem; }
.js .form-progress { display: block; }
.progress-text { font-size: 0.92rem; font-weight: 600; color: var(--text-soft); margin-bottom: 0.5rem; }
.progress-track { height: 10px; background: var(--blue-tint); border-radius: var(--radius-pill); overflow: hidden; border: 1px solid var(--border); }
.progress-bar { height: 100%; width: 0; background: var(--grad-btn); border-radius: var(--radius-pill); transition: width 0.3s ease; }

.field { margin-bottom: 1.35rem; }
.field > label, .q-label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 0.45rem; font-size: 1rem; }
.req { color: var(--danger); margin-left: 2px; }
.opt { font-weight: 400; color: var(--text-soft); font-size: 0.9rem; }
.hint { font-size: 0.9rem; color: var(--text-soft); margin: -0.15rem 0 0.6rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; font-family: var(--font); font-size: 1rem; color: var(--text);
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-btn); transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%; background-size: 0.4rem 0.4rem; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-bright); box-shadow: 0 0 0 3px var(--blue-tint); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background-color: var(--danger-tint); }
.field-error { display: flex; gap: 0.4rem; align-items: flex-start; color: var(--danger); font-size: 0.92rem; font-weight: 600; margin: 0.4rem 0 0; }
.field-error[hidden], .step-alert[hidden] { display: none; }
.field-error::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 1.1rem; height: 1.1rem; flex-shrink: 0; margin-top: 0.15rem; border-radius: 50%; background: var(--danger); color: var(--on-dark); font-size: 0.75rem; }
.step-alert { background: var(--danger-tint); border: 1px solid var(--danger); color: var(--danger); border-radius: var(--radius-btn); padding: 0.85rem 1rem; margin-bottom: 1.25rem; font-weight: 600; font-size: 0.95rem; }
.step-alert p { margin: 0; }

.tile-grid { display: grid; gap: 0.65rem; grid-template-columns: 1fr; }
.tile-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 480px) { .tile-grid.cols-2 { grid-template-columns: 1fr; } }
.tile { position: relative; display: block; margin: 0; cursor: pointer; }
.tile input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tile span {
  display: flex; align-items: center; gap: 0.75rem; min-height: 52px; padding: 0.7rem 1rem; border: 2px solid var(--border); border-radius: var(--radius-btn);
  font-weight: 500; color: var(--text); background: var(--surface); transition: border-color 0.2s ease, background 0.2s ease;
}
.tile span::before {
  content: ""; width: 1.3rem; height: 1.3rem; flex-shrink: 0; border: 2px solid var(--text-soft); border-radius: 50%; background: var(--surface);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tile.check span::before { border-radius: 6px; }
.tile:hover span { border-color: var(--blue-bright); }
.tile input:checked + span { border-color: var(--green); background: var(--green-tint); font-weight: 600; }
.tile input:checked + span::before { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 3px var(--surface); }
.tile.check input:checked + span::before { box-shadow: none; background: var(--green) no-repeat center / 0.85rem; background-image: none; }
.tile.check input:checked + span::before { content: "\2713"; color: var(--on-dark); font-size: 0.85rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.tile input:focus-visible + span { outline: 3px solid var(--blue-bright); outline-offset: 2px; }
.field.has-error .tile span { border-color: var(--danger); }
.field.has-error .tile input:checked + span { border-color: var(--green); }

.consent { display: flex; gap: 0.75rem; align-items: flex-start; background: var(--blue-tint); border: 2px solid var(--border); border-radius: var(--radius-btn); padding: 1rem; }
.consent input { width: 1.4rem; height: 1.4rem; margin-top: 0.2rem; flex-shrink: 0; accent-color: var(--green); }
.consent label { font-size: 0.95rem; font-weight: 500; color: var(--text); margin: 0; cursor: pointer; }
.field.has-error .consent { border-color: var(--danger); background: var(--danger-tint); }
.note-box { background: var(--blue-tint); border: 1px solid var(--blue-bright); border-radius: var(--radius-btn); padding: 0.85rem 1rem; color: var(--navy); font-size: 0.95rem; margin-bottom: 1.35rem; }
.note-box[hidden], .field[hidden] { display: none; }

.form-actions { display: flex; gap: 0.75rem; justify-content: space-between; align-items: center; margin-top: 1.75rem; }
.form-actions .btn { min-width: 140px; }
.js .form-actions [data-back] { margin-right: auto; }
.js .form-actions { justify-content: flex-end; }
.form-actions [hidden] { display: none; }
@media (max-width: 640px) {
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .js .form-actions { justify-content: flex-start; }
  .js .form-actions [data-back] { margin-right: 0; }
}
.no-js-only { display: block; }
.js .no-js-only { display: none; }
.js .step-submit-wrap { display: contents; }
.js-only { display: none; }
.js .js-only { display: block; }
html:not(.js) .step { margin-bottom: 2.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
html:not(.js) .field[hidden], html:not(.js) .note-box[hidden] { display: block; }
html:not(.js) [data-next], html:not(.js) [data-back] { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.reassure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.reassure-tile { display: flex; align-items: center; gap: 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1rem 1.1rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-card); }
.reassure-tile .icon-badge { margin: 0; width: 44px; height: 44px; }
.reassure-tile .icon-badge svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .reassure { grid-template-columns: 1fr; } }

/* ---------- Thank-you & 404 ---------- */
.center-page { text-align: center; padding: 5rem 0; }
.big-tick { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%; background: var(--grad-icon); color: var(--on-dark); margin-bottom: 1.5rem; box-shadow: var(--shadow-btn); }
.big-tick svg { width: 52px; height: 52px; stroke-width: 3; }
.center-page h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.center-page .lead { max-width: 36rem; margin-inline: auto; }
.center-page .btn-row { justify-content: center; }
.four-oh-four { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; line-height: 1; color: var(--blue-bright); margin-bottom: 0.5rem; }
.thanks-steps { max-width: 34rem; margin: 2rem auto; text-align: left; }

/* ---------- Scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .card:hover { transform: none; }
}
