/* ==========================================================================
   Free Boiler Schemes — Design System
   Original identity. Editorial layout + restrained Liquid Glass.
   ========================================================================== */

/* --- 0. Self-hosted fonts ------------------------------------------------
   Both families are SIL Open Font License 1.1. Licences and attribution live
   in assets/fonts/, and must stay with the files.

   These are the same woff2 files Google Fonts was serving, so rendering is
   byte-for-byte identical to before. That matters because the design drives
   Fraunces' SOFT and WONK variation axes in three places.

   Variable fonts: one file per subset covers the whole weight range, so Inter
   serves 400, 500, 600 and 700 from a single download.

   `unicode-range` is what keeps the extended-latin file off the wire unless a
   page actually contains one of those characters. `font-display: swap` matches
   the behaviour of the Google stylesheet this replaces. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- 1. Tokens ----------------------------------------------------------- */
:root {
  /* ---- Approved brand palette ---------------------------------------- */
  --brand-red:        #EF403B;
  --brand-red-dark:   #D93635;
  --brand-cream:      #F4EFD9;
  --brand-blush:      #F8DAD4;
  --brand-white:      #FFFFFF;
  --brand-brown:      #542522;
  --brand-beige:      #F3EBDD;

  /* Derived shades (same family, for depth and contrast only) */
  --brand-red-deep:   #C22E2A;
  --brand-brown-deep: #3B1A17;
  --brand-brown-mid:  #7A4844;
  --brand-cream-dim:  #E7DFC4;

  /* ---- Semantic ------------------------------------------------------- */
  --page-bg:   var(--brand-cream);
  --ink:       var(--brand-brown);
  --ink-muted: var(--brand-brown-mid);
  --rule:      color-mix(in srgb, var(--brand-brown) 16%, transparent);

  /* Glass */
  --glass-light: rgba(255, 255, 255, 0.70);
  --glass-dark:  rgba(84, 37, 34, 0.55);
  --glass-edge:  rgba(255, 255, 255, 0.60);
  --glass-blur:  14px;

  /* Type — fluid */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --t-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
  --t-sm:   clamp(0.86rem, 0.83rem + 0.18vw, 0.95rem);
  --t-base: clamp(1rem, 0.96rem + 0.22vw, 1.1rem);
  --t-lg:   clamp(1.13rem, 1.05rem + 0.4vw, 1.35rem);
  --t-xl:   clamp(1.35rem, 1.2rem + 0.75vw, 1.8rem);
  --t-2xl:  clamp(1.7rem, 1.4rem + 1.5vw, 2.6rem);
  --t-3xl:  clamp(2.1rem, 1.6rem + 2.5vw, 3.6rem);
  --t-4xl:  clamp(2.6rem, 1.7rem + 4.2vw, 5.4rem);

  /* Space — fluid */
  --s-1: clamp(0.4rem, 0.38rem + 0.1vw, 0.5rem);
  --s-2: clamp(0.7rem, 0.65rem + 0.25vw, 0.9rem);
  --s-3: clamp(1rem, 0.9rem + 0.5vw, 1.4rem);
  --s-4: clamp(1.5rem, 1.3rem + 0.9vw, 2.2rem);
  --s-5: clamp(2.2rem, 1.8rem + 1.8vw, 3.4rem);
  --s-6: clamp(3.2rem, 2.4rem + 3.2vw, 5.6rem);
  --s-7: clamp(4.5rem, 3.2rem + 5.5vw, 8.5rem);

  --wrap: 1280px;
  --wrap-narrow: 760px;
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;

  --shadow-sm: 0 2px 8px rgba(59, 26, 23, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(59, 26, 23, 0.22);
  --shadow-lg: 0 28px 70px -30px rgba(59, 26, 23, 0.4);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- 2. Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
  color: var(--brand-brown);
  font-variation-settings: "SOFT" 0, "WONK" 0;
}
h1 { font-size: var(--t-4xl); letter-spacing: -0.035em; }
h2 { font-size: var(--t-3xl); letter-spacing: -0.03em; }
h3 { font-size: var(--t-xl); line-height: 1.2; }
p  { margin: 0 0 var(--s-3); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: var(--s-3); top: -100px; z-index: 999;
  background: var(--brand-brown); color: #fff; padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm); transition: top 0.2s;
}
.skip-link:focus { top: var(--s-3); }

.wrap { width: min(100% - 2 * var(--s-4), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--s-4), var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: var(--s-7); position: relative; }
.section--tight { padding-block: var(--s-6); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-red);
  margin: 0 0 var(--s-2);
  display: flex; align-items: center; gap: var(--s-2);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.5; flex: none;
}
.eyebrow--center { justify-content: center; }
.lede { font-size: var(--t-lg); color: var(--ink-muted); line-height: 1.55; max-width: 60ch; }
.section-head { max-width: 44rem; margin-bottom: var(--s-5); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* --- 3. Buttons ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-brown);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.95em 1.7em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: 999px;
  font-size: var(--t-sm); font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--red { --btn-bg: var(--brand-red-deep); --btn-fg: var(--brand-white); }
.btn--red:hover { background: var(--brand-red-dark); }
.btn--light { --btn-bg: var(--brand-cream); --btn-fg: var(--brand-brown); }
.btn--cream { --btn-bg: var(--brand-cream); --btn-fg: var(--brand-brown); }
.btn--cream:hover { background: var(--brand-white); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--brand-brown);
  border-color: color-mix(in srgb, var(--brand-brown) 28%, transparent);
  box-shadow: none;
}
.btn--ghost:hover { background: color-mix(in srgb, var(--brand-brown) 6%, transparent); }
.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: #fff;
  border-color: rgba(255,255,255,0.4); box-shadow: none;
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.1em 2.1em; font-size: var(--t-base); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* --- 4. Announcement bar ------------------------------------------------- */
.announce {
  background: var(--brand-brown); color: var(--brand-cream);
  font-size: var(--t-xs); letter-spacing: 0.04em;
  text-align: center; padding: 0.65em var(--s-3);
  position: relative; z-index: 60;
}
.announce strong { color: var(--brand-blush); font-weight: 600; }
.announce a { color: #fff; }

/* --- 5. Navigation ------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--brand-cream) 72%, transparent);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.nav.is-stuck {
  border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--brand-cream) 88%, transparent);
  box-shadow: 0 4px 24px -18px rgba(59,26,23,0.5);
}
.nav__inner {
  display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 2rem);
  min-height: 72px; padding-block: var(--s-2);
}
.logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; margin-right: auto; flex: none;
}
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-base); line-height: 1.05; letter-spacing: -0.025em;
  color: var(--brand-brown);
}
.logo__text span { display: block; font-size: 0.62em; letter-spacing: 0.14em;
  text-transform: uppercase; font-family: var(--font-body); font-weight: 500;
  color: var(--brand-red); opacity: 0.85; }

.nav__links { display: flex; align-items: center; gap: clamp(0.7rem, 1.4vw, 1.5rem); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; font-size: var(--t-sm); font-weight: 500; white-space: nowrap;
  color: var(--brand-brown); position: relative; padding-block: 4px;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--brand-red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.nav__phone { font-size: var(--t-sm); font-weight: 600; text-decoration: none; white-space: nowrap; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--rule);
  background: transparent; border-radius: 50%; cursor: pointer;
  align-items: center; justify-content: center; flex: none;
}
.nav__toggle span { display: block; width: 17px; height: 1.5px; background: var(--brand-brown); position: relative; transition: background 0.2s; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--brand-brown);
  transition: transform 0.3s var(--ease);
}
.nav__toggle span::before { top: -5.5px; }
.nav__toggle span::after { top: 5.5px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__toggle { display: inline-flex; }
  .nav__links, .nav__phone { display: none; }
  .nav__panel[hidden] { display: none !important; }
  .nav__panel {
    position: absolute; inset-inline: 0; top: 100%;
    background: color-mix(in srgb, var(--brand-cream) 94%, transparent);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--rule); padding: var(--s-4);
    box-shadow: var(--shadow-md);
  }
  .nav__panel ul { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: grid; gap: var(--s-1); }
  .nav__panel a { text-decoration: none; font-size: var(--t-lg); font-family: var(--font-display);
    color: var(--brand-brown); display: block; padding: 0.5em 0; border-bottom: 1px solid var(--rule); }
}
@media (min-width: 1081px) { .nav__panel { display: none !important; } }

/* --- 6. Hero ------------------------------------------------------------- */
.hero { position: relative; padding-block: var(--s-6) var(--s-7); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero__bg::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 85%;
  background:
    radial-gradient(60% 70% at 18% 20%, color-mix(in srgb, var(--brand-cream-dim) 60%, transparent), transparent 70%),
    radial-gradient(50% 60% at 88% 8%, color-mix(in srgb, var(--brand-beige) 75%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero__inner { position: relative; z-index: 1; }

.hero__head { max-width: 46rem; }
.hero h1 .accent {
  font-style: italic; color: var(--brand-red);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.hero__lede { margin-top: var(--s-3); max-width: 46ch; }

.trustline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4); font-size: var(--t-sm); color: var(--ink-muted);
}
.trustline__item { display: inline-flex; align-items: center; gap: 0.5em; }
.trustline__item svg { width: 17px; height: 17px; flex: none; color: var(--brand-red); }

/* Dual enquiry panels — the conversion core */
.gateways {
  margin-top: var(--s-5);
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;           /* both cards share one row height */
}
/* Single column below the two-up threshold; B2C leads on mobile. */
@media (max-width: 900px) {
  .gateways { grid-template-columns: minmax(0, 1fr); }
  .gateway--b2c { order: -1; }
}
.gateway {
  border-radius: var(--r-xl);
  padding: var(--s-4);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;                   /* fill the stretched grid row */
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--glass-edge);
}
.gateway .form { flex: 1; }
.gateway__foot { margin-top: auto; }
/* Locked step area keeps both cards the same height on every step. */
.form__steps { position: relative; min-height: 20.5rem; display: flex; flex-direction: column; }
@media (max-width: 900px) { .form__steps { min-height: 0; } }
/* B2C — light cream card */
.gateway--b2c {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.92), rgba(255,255,255,0.62)),
    linear-gradient(140deg, var(--brand-beige), var(--brand-blush));
  border-color: color-mix(in srgb, var(--brand-brown) 12%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
/* B2B — solid brand red */
.gateway--b2b {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.10), rgba(255,255,255,0)),
    linear-gradient(140deg, var(--brand-red), var(--brand-red-deep));
  border-color: rgba(255,255,255,0.22);
  color: var(--brand-cream);
}
.gateway--b2b h2, .gateway--b2b h3 { color: #fff; }
.gateway--b2b .eyebrow { color: var(--brand-cream); }
.gateway--b2b .gateway__sub { color: var(--brand-cream); }

.gateway__tag {
  align-self: flex-start;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.45em 0.9em; border-radius: 999px; margin-bottom: var(--s-3);
}
.gateway--b2c .gateway__tag { background: var(--brand-red-deep); color: var(--brand-white); }
.gateway--b2b .gateway__tag { background: var(--brand-cream); color: var(--brand-brown); }

.gateway__title { font-size: var(--t-2xl); margin-bottom: var(--s-2); }
.gateway__sub { font-size: var(--t-sm); color: var(--ink-muted); margin-bottom: var(--s-3); max-width: 38ch; }
.gateway__foot {
  margin-top: var(--s-3); padding-top: var(--s-3);
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  font-size: var(--t-xs); opacity: 0.85; display: flex; align-items: center; gap: 0.5em;
}

/* --- 7. Multi-step form -------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--s-3); }
.form__progress { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.form__bar { flex: 1; height: 4px; border-radius: 999px; background: color-mix(in srgb, currentColor 18%, transparent); overflow: hidden; }
.form__bar i { display: block; height: 100%; border-radius: 999px; background: var(--brand-red); width: 25%; transition: width 0.5s var(--ease); }
.gateway--b2b .form__bar i { background: var(--brand-cream); }

.step { display: none; flex-direction: column; gap: var(--s-2); animation: stepIn 0.45s var(--ease); }
.step.is-active { display: flex; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step { animation: none; } }

.step__q { font-family: var(--font-display); font-size: var(--t-lg); line-height: 1.2; margin: 0; }
.gateway--b2b .step__q { color: #fff; }

.field { display: grid; gap: 0.4rem; }
.field > label { font-size: var(--t-xs); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; opacity: 0.75; }
.input, select.input {
  width: 100%; padding: 0.9em 1.05em;
  background: rgba(255,255,255,0.9);
  border: 1px solid color-mix(in srgb, var(--brand-brown) 16%, transparent);
  border-radius: var(--r-sm); color: var(--brand-brown-deep);
  font-size: var(--t-base); transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: color-mix(in srgb, var(--brand-brown-mid) 70%, transparent); }
.input:focus { border-color: var(--brand-red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-red) 25%, transparent); outline: none; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232A2B28' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.05em center; background-size: 12px; padding-right: 2.6em; }
.input[aria-invalid="true"] { border-color: #B4472F; box-shadow: 0 0 0 3px rgba(180,71,47,0.18); }
.field__err { font-size: var(--t-xs); color: #8E3220; min-height: 0; }
.gateway--b2b .field__err { color: #FFC2B2; }

/* Choice chips */
.choices { display: grid; gap: var(--s-1); grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 0.7em 0.9em;
  background: rgba(255,255,255,0.75);
  border: 1px solid color-mix(in srgb, var(--brand-brown) 16%, transparent);
  border-radius: var(--r-sm); font-size: var(--t-sm); font-weight: 500;
  color: var(--brand-brown-deep); cursor: pointer;
  transition: all 0.25s var(--ease);
}
.choice input:hover + span { border-color: var(--brand-red); transform: translateY(-1px); }
.choice input:checked + span {
  background: var(--brand-brown); color: #fff; border-color: var(--brand-brown);
  box-shadow: var(--shadow-sm);
}
.gateway--b2b .choice input:checked + span { background: var(--brand-brown); color: var(--brand-white); border-color: var(--brand-brown); }
.choice input:focus-visible + span { outline: 3px solid var(--brand-red); outline-offset: 2px; }

.form__nav { display: flex; gap: var(--s-2); align-items: center; margin-top: var(--s-1); }
.form__back {
  background: none; border: none; cursor: pointer; padding: 0.6em 0.2em;
  font-size: var(--t-sm); font-weight: 600; opacity: 0.7; text-decoration: underline;
  text-underline-offset: 3px;
}
.form__back:hover { opacity: 1; }
.form__legal { font-size: var(--t-xs); line-height: 1.5; opacity: 0.7; }
.form__legal a { color: inherit; }

.form__done { text-align: center; padding: var(--s-3) 0; }
.form__done svg { width: 54px; height: 54px; margin: 0 auto var(--s-2); color: var(--brand-red); }
.gateway--b2b .form__done svg { color: var(--brand-blush); }

/* --- 8. Marquee / proof strip -------------------------------------------- */
.proof {
  border-block: 1px solid var(--rule);
  background: color-mix(in srgb, var(--brand-beige) 55%, transparent);
  padding-block: var(--s-3);
  overflow: hidden;
}
.proof__label { text-align: center; font-size: var(--t-xs); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--s-3); }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--s-5); padding-right: var(--s-5); flex: none;
  animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee { mask-image: none; flex-wrap: wrap; justify-content: center; } }
.marquee__item {
  display: inline-flex; align-items: center; gap: 0.55em; white-space: nowrap;
  font-family: var(--font-display); font-size: var(--t-lg); color: var(--brand-red-dark);
}
.marquee__item::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-red); flex: none; }

/* --- 9. Editorial split sections ----------------------------------------- */
.split {
  display: grid; gap: var(--s-5) var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  align-items: center;
}
.split--flip .split__media { order: -1; }
@media (max-width: 800px) { .split--flip .split__media { order: 0; } }
.split__body { max-width: 38rem; }

.figure {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--brand-cream); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.figure--tall { aspect-ratio: 3 / 4; }
.figure--wide { aspect-ratio: 16 / 10; }
.figure img, .figure object, .figure svg { width: 100%; height: 100%; object-fit: cover; }

/* Glass caption floating over imagery */
.figure__glass {
  position: absolute; left: var(--s-3); bottom: var(--s-3);
  width: min(calc(100% - 2 * var(--s-3)), 27rem);
  background: var(--glass-light);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-md); padding: var(--s-3);
  box-shadow: var(--shadow-md);
}
.figure__glass strong { display: block; font-family: var(--font-display); font-size: var(--t-lg);
  color: var(--brand-brown); line-height: 1.15; margin-bottom: 0.25em; }
.figure__glass span { font-size: var(--t-sm); color: var(--ink-muted); }

.ticks { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.ticks li { display: flex; gap: 0.75em; align-items: flex-start; font-size: var(--t-sm); }
.ticks svg { width: 20px; height: 20px; flex: none; color: var(--brand-red); margin-top: 2px; }

/* --- 10. Technology / grant cards ---------------------------------------- */
.cards {
  display: grid; gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
}
.card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: var(--s-4); display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-blush); }
.card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md); margin-bottom: var(--s-3);
  display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--brand-cream) 80%, transparent);
  color: var(--brand-red-dark);
}
.card__icon svg { width: 27px; height: 27px; }
.card h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.card p { font-size: var(--t-sm); color: var(--ink-muted); }
.card__meta {
  margin-top: auto; padding-top: var(--s-3);
  display: flex; align-items: baseline; gap: 0.5em; flex-wrap: wrap;
  font-size: var(--t-xs); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-red); font-weight: 600;
}
.card__meta b { font-family: var(--font-display); font-size: var(--t-xl); letter-spacing: -0.02em;
  text-transform: none; color: var(--brand-brown); }
.card--feature { background: linear-gradient(150deg, var(--brand-beige), var(--brand-cream)); border-color: transparent; }

/* --- 11. How it works ---------------------------------------------------- */
.band-brand {
  background: var(--brand-brown); color: var(--brand-cream);
  border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-4);
  position: relative; overflow: hidden;
}
.band-brand::before {
  content: ""; position: absolute; inset: auto -5% -40% 40%; height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--brand-red) 90%, transparent), transparent 70%);
  pointer-events: none;
}
.band-brand > * { position: relative; }
.band-brand h2, .band-brand h3 { color: #fff; }
.band-brand .eyebrow { color: var(--brand-blush); }
.band-brand .lede { color: var(--brand-cream-dim); }

.steps {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  counter-reset: step;
}
.stepcard { position: relative; padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,0.18); }
.stepcard__n {
  font-family: var(--font-display); font-size: var(--t-2xl); line-height: 1;
  color: var(--brand-blush); display: block; margin-bottom: var(--s-2);
  font-variation-settings: "SOFT" 20, "WONK" 1;
}
.stepcard h3 { font-size: var(--t-lg); margin-bottom: var(--s-2); }
.stepcard p { font-size: var(--t-sm); color: var(--brand-cream-dim); }

/* --- 12. Why / reasons --------------------------------------------------- */
.reasons { display: grid; gap: var(--s-5) var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.reason__k {
  font-family: var(--font-display); font-size: var(--t-3xl); line-height: 1;
  color: var(--brand-red-dark); letter-spacing: -0.03em; display: block; margin-bottom: var(--s-2);
}
.reason h3 { font-size: var(--t-base); text-transform: uppercase; letter-spacing: 0.1em;
  font-family: var(--font-body); font-weight: 700; margin-bottom: var(--s-2); }
.reason p { font-size: var(--t-sm); color: var(--ink-muted); }

/* --- 13. Audience duo (homeowner / landlord) ----------------------------- */
.duo { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.audience {
  border-radius: var(--r-xl); overflow: hidden; position: relative;
  min-height: 540px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-4); color: #fff; isolation: isolate;
  box-shadow: var(--shadow-lg);
}
.audience__bg { position: absolute; inset: 0; z-index: -2; }
.audience__bg img, .audience__bg svg { width: 100%; height: 100%; object-fit: cover; }
.audience::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(59,26,23,0.28) 0%, rgba(59,26,23,0.46) 38%, rgba(59,26,23,0.88) 82%);
}
.audience h3 { color: #fff; font-size: var(--t-2xl); margin-bottom: var(--s-2); margin-top: var(--s-5); }
.audience p { font-size: var(--t-sm); color: rgba(255,255,255,0.85); max-width: 40ch; }
.audience .ticks { margin-bottom: var(--s-3); }
.audience .ticks li { color: rgba(255,255,255,0.9); }
.audience .ticks svg { color: var(--brand-blush); }
.audience__tag {
  align-self: flex-start; margin-bottom: auto;
  background: var(--glass-light); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-edge); color: var(--brand-brown);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.5em 1em; border-radius: 999px;
}

/* --- 14. Installer partnership ------------------------------------------- */
.installer {
  border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(135deg, var(--brand-brown-deep), var(--brand-red-dark) 55%, var(--brand-red));
  color: var(--brand-cream); position: relative;
  display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  box-shadow: var(--shadow-lg);
}
.installer__body { padding: var(--s-6) var(--s-5); }
.installer h2 { color: #fff; }
.installer .lede { color: var(--brand-cream-dim); }
.installer .eyebrow { color: var(--brand-blush); }
.installer__stats { display: flex; flex-wrap: wrap; gap: var(--s-4); margin: var(--s-4) 0; }
.installer__stat b { display: block; font-family: var(--font-display); font-size: var(--t-2xl);
  color: var(--brand-blush); line-height: 1; letter-spacing: -0.02em; }
.installer__stat span { font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-cream-dim); }
.installer__media { position: relative; min-height: 340px; }
.installer__media img, .installer__media svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- 15. Testimonials ---------------------------------------------------- */
.quotes { display: grid; gap: var(--s-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.quote {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2);
}
.quote__stars { display: flex; gap: 2px; color: var(--brand-red); }
.quote__stars svg { width: 16px; height: 16px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: var(--t-lg);
  line-height: 1.35; color: var(--brand-brown); letter-spacing: -0.015em; }
.quote cite { margin-top: auto; font-style: normal; font-size: var(--t-xs);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }

/* --- 16. FAQ accordion --------------------------------------------------- */
.faq { display: grid; gap: var(--s-1); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q {
  width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3);
  background: none; border: none; cursor: pointer; text-align: left;
  padding: var(--s-3) 0; font-family: var(--font-display); font-size: var(--t-lg);
  line-height: 1.25; color: var(--brand-brown); letter-spacing: -0.015em;
  transition: color 0.2s;
}
.faq__q:hover { color: var(--brand-red); }
.faq__ico { position: relative; width: 22px; height: 22px; flex: none; margin-top: 4px; }
.faq__ico::before, .faq__ico::after {
  content: ""; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  background: var(--brand-red-dark); border-radius: 2px; transition: transform 0.4s var(--ease), opacity 0.3s;
}
.faq__ico::before { width: 16px; height: 1.8px; }
.faq__ico::after { width: 1.8px; height: 16px; }
.faq__q[aria-expanded="true"] .faq__ico::after { transform: rotate(90deg); opacity: 0; }
.faq__a { overflow: hidden; height: 0; transition: height 0.45s var(--ease); }
.faq__a > div { padding: 0 0 var(--s-4); max-width: 68ch; font-size: var(--t-sm); color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) { .faq__a { transition: none; } }

/* --- 17. Newsletter ------------------------------------------------------ */
.news {
  border-radius: var(--r-xl); padding: var(--s-6) var(--s-5);
  background: linear-gradient(140deg, var(--brand-beige), var(--brand-cream));
  border: 1px solid var(--glass-edge);
  display: grid; gap: var(--s-4) var(--s-6);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: center;
}
.news__form { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.news__form .input { flex: 1 1 220px; background: rgba(255,255,255,0.94); }
.news__note { flex-basis: 100%; font-size: var(--t-xs); color: var(--ink-muted); }

/* --- 18. Footer ---------------------------------------------------------- */
.footer { background: var(--brand-brown-deep); color: var(--brand-cream-dim); padding-block: var(--s-6) var(--s-4); margin-top: var(--s-6); }
.footer__grid { display: grid; gap: var(--s-5);
  grid-template-columns: minmax(min(100%, 260px), 1.4fr) repeat(auto-fit, minmax(150px, 1fr)); }
.footer .logo__text { color: #fff; }
.footer .logo__text span { color: var(--brand-blush); }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: var(--t-xs);
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--s-3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.footer a { color: var(--brand-cream-dim); text-decoration: none; font-size: var(--t-sm); transition: color 0.2s; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__about { font-size: var(--t-sm); max-width: 42ch; margin-top: var(--s-3); }
.footer__contact { display: grid; gap: var(--s-2); margin-top: var(--s-3); font-size: var(--t-sm); }
.footer__bottom {
  margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); justify-content: space-between;
  font-size: var(--t-xs); color: color-mix(in srgb, var(--brand-cream-dim) 75%, transparent);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.footer__disclaimer { max-width: 100%; margin-top: var(--s-3); font-size: var(--t-xs); line-height: 1.6;
  color: color-mix(in srgb, var(--brand-cream-dim) 60%, transparent); }

/* --- 19. Sticky mobile CTA ----------------------------------------------- */
.stickycta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: none; gap: var(--s-2); padding: var(--s-2) var(--s-3);
  padding-bottom: calc(var(--s-2) + env(safe-area-inset-bottom));
  background: var(--glass-light);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-top: 1px solid var(--glass-edge);
  transform: translateY(110%); transition: transform 0.45s var(--ease);
}
.stickycta.is-on { transform: none; }
.stickycta .btn { flex: 1; padding-inline: 0.8em; font-size: var(--t-xs); }
@media (max-width: 760px) { .stickycta { display: flex; } body { padding-bottom: 0; } }

/* --- 20. Scroll reveal --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* --- 21. Narrow-screen refinements --------------------------------------- */
@media (max-width: 560px) {
  :root { --glass-blur: 10px; }
  .gateway { padding: var(--s-3); border-radius: var(--r-lg); }
  .band-brand, .news, .installer { border-radius: var(--r-lg); }
  .audience { min-height: 400px; }
  .installer__body { padding: var(--s-5) var(--s-4); }
}

/* --- 22. Approved logo --------------------------------------------------- */
.logo { flex: none; }
.logo__img {
  width: clamp(168px, 17vw, 260px);
  height: auto; aspect-ratio: 2172 / 724;   /* never distort the approved artwork */
  border-radius: 8px;
  display: block;
}
.footer .logo__img { width: clamp(180px, 20vw, 240px); }

/* --- 23. Checkboxes ------------------------------------------------------ */
.checks { display: grid; gap: var(--s-1); grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.check { display: flex; align-items: flex-start; gap: 0.65em; cursor: pointer; font-size: var(--t-sm); line-height: 1.45; }
.check input {
  appearance: none; -webkit-appearance: none;
  width: 21px; height: 21px; flex: none; margin: 1px 0 0;
  border: 1.5px solid color-mix(in srgb, var(--brand-brown) 38%, transparent);
  border-radius: 6px; background: rgba(255,255,255,0.9); cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.check input:checked {
  background: var(--brand-red-deep); border-color: var(--brand-red-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 15px;
}
.gateway--b2b .check input:checked { background-color: var(--brand-brown); border-color: var(--brand-brown); }
.check input:focus-visible { outline: 3px solid var(--brand-brown); outline-offset: 2px; }
.check--consent { margin-bottom: var(--s-1); }

textarea.input { resize: vertical; min-height: 84px; line-height: 1.5; }
.field > label em { font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.7; font-weight: 400; }

/* --- 24. Liquid circular motifs (echoing the logo artwork) --------------- */
.hero__bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--brand-blush) 70%, transparent) 0 9%, transparent 9.3%),
    radial-gradient(circle at 80% 4%, color-mix(in srgb, var(--brand-beige) 85%, transparent) 0 6%, transparent 6.3%),
    radial-gradient(circle at 3% 72%, color-mix(in srgb, var(--brand-blush) 45%, transparent) 0 5%, transparent 5.3%);
  opacity: 0.6;
}
.band-brand::after {
  content: ""; position: absolute; right: -6%; top: -18%; width: 46%; aspect-ratio: 1;
  border-radius: 50%; background: rgba(255,255,255,0.07); pointer-events: none;
}

/* --- 25. Brand surface corrections -------------------------------------- */
.band-brand { background: var(--brand-red); color: var(--brand-cream); }
.band-brand::before { background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,0.1), transparent 70%); }
.band-brand .eyebrow, .band-brand .stepcard__n { color: var(--brand-cream); }
.band-brand .lede, .band-brand .stepcard p { color: var(--brand-cream); }
.band-brand .stepcard { border-top-color: rgba(255,255,255,0.3); }

.installer { background: linear-gradient(135deg, var(--brand-brown-deep), var(--brand-brown) 60%, #6B332F); }
.installer .eyebrow, .installer__stat b { color: var(--brand-blush); }
.installer .lede, .installer__stat span { color: var(--brand-cream); }

.footer { background: var(--brand-brown-deep); color: var(--brand-cream); }
.footer a { color: var(--brand-cream); }
.footer h4 { color: var(--brand-blush); }

.news { background: linear-gradient(140deg, var(--brand-beige), var(--brand-blush)); }
.card--feature { background: linear-gradient(150deg, var(--brand-beige), var(--brand-blush)); }
.card__icon { background: color-mix(in srgb, var(--brand-blush) 70%, transparent); color: var(--brand-red-deep); }
.proof { background: color-mix(in srgb, var(--brand-beige) 70%, transparent); }
.marquee__item { color: var(--brand-brown); }
.marquee__item::before { background: var(--brand-red); }
.quote__stars { color: var(--brand-red); }
.reason__k { color: var(--brand-red); }
.hero h1 .accent { color: var(--brand-red); font-style: normal; }

/* --- 26. Contrast corrections (measured, WCAG AA) ------------------------
   #EF403B is the brand's display red: cream on it measures only 3.33:1, which
   is fine for large type but fails AA for body copy. Surfaces that carry small
   text therefore use --brand-red-deep, which measures ~5:1 with cream.
   The vibrant red is retained for the logo, large headings and accents.      */

/* Small red text on cream/white needs the deeper red. */
.eyebrow { color: var(--brand-red-deep); }
.card__meta { color: var(--brand-red-deep); }
.card__meta b { color: var(--brand-brown); }
.card__icon { color: var(--brand-red-deep); }

/* B2B card — deeper red so its labels and legal text pass AA. */
.gateway--b2b {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.08), rgba(255,255,255,0)),
    linear-gradient(140deg, var(--brand-red-deep), #A82522);
}
.gateway--b2b .gateway__sub,
.gateway--b2b .gateway__foot,
.gateway--b2b .form__legal,
.gateway--b2b .field > label,
.gateway--b2b .form__progress { color: var(--brand-white); opacity: 1; }
.gateway--b2b .form__legal { opacity: 0.92; }
.gateway--b2b .form__legal a { color: var(--brand-white); }
.gateway--b2b .form__back { color: var(--brand-white); opacity: 0.9; }

/* How It Works band — same treatment. */
.band-brand { background: var(--brand-red-deep); }
.band-brand .stepcard p,
.band-brand .lede { color: var(--brand-white); opacity: 0.95; }
.band-brand .eyebrow { color: var(--brand-blush); }
.band-brand .stepcard__n { color: var(--brand-blush); }

/* Hero display accent keeps the vibrant red — it is 48px+, so 3:1 applies. */
.hero h1 .accent { color: var(--brand-red); }

/* 12px eyebrow on the red band: blush measured 4.3:1, white measures 5.65:1. */
.band-brand .eyebrow { color: var(--brand-white); }

/* --- 27. Floating enquiry button ----------------------------------------
   Desktop only — below 760px the .stickycta bar already covers this job.   */
.fab {
  position: fixed; right: clamp(16px, 2.5vw, 34px); bottom: clamp(16px, 2.5vw, 34px);
  z-index: 46;
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 1.35rem 0.55rem 0.55rem;
  background: var(--brand-red-deep); color: var(--brand-white);
  border: 1px solid rgba(255,255,255,0.22); border-radius: 999px;
  text-decoration: none; font-size: var(--t-sm); font-weight: 600;
  box-shadow: 0 14px 38px -12px rgba(59,26,23,0.55);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.96);
  transition: opacity .45s var(--ease), transform .45s var(--ease),
              visibility .45s, background .25s;
}
.fab.is-on { opacity: 1; visibility: visible; transform: none; }
.fab:hover { background: var(--brand-red-dark); transform: translateY(-3px); }
.fab:active { transform: translateY(0); }

.fab__chip {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--brand-cream);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(84,37,34,0.12);
}
.fab__chip img { width: 24px; height: auto; display: block; }
.fab__label { white-space: nowrap; }

.btn__ico { width: 16px; height: auto; flex: none; }

@media (max-width: 760px) { .fab { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .fab { transition: opacity .2s, visibility .2s; transform: none; }
  .fab.is-on { transform: none; }
  .fab:hover { transform: none; }
}

/* --- 28. Offset-layer buttons -------------------------------------------
   Stacked "hard shadow" pills: a solid face with a brighter brand layer
   sitting behind it, which the button presses into on hover.
   Face colours are unchanged, so the AA contrast measured in §26 still holds. */

.btn {
  --btn-shadow: var(--brand-red);
  --btn-offset: 5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  font-size: var(--t-xs);
  padding: 1.05em 1.9em;
  box-shadow: var(--btn-offset) var(--btn-offset) 0 var(--btn-shadow);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .25s;
}
.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--btn-shadow);
}
.btn:active {
  transform: translate(var(--btn-offset), var(--btn-offset));
  box-shadow: 0 0 0 var(--btn-shadow);
}
.btn--lg { padding: 1.2em 2.3em; font-size: var(--t-sm); --btn-offset: 6px; }

/* Primary: deep red face, vibrant brand red behind — this is where #EF403B earns its keep. */
.btn--red   { --btn-bg: var(--brand-red-deep); --btn-fg: var(--brand-white); --btn-shadow: var(--brand-red); }
.btn--red:hover { background: var(--brand-red-deep); }

/* On red surfaces: cream face, dark brown behind. */
.btn--cream { --btn-bg: var(--brand-cream); --btn-fg: var(--brand-brown); --btn-shadow: var(--brand-brown); }
.btn--cream:hover { background: var(--brand-cream); }

/* Sits on dark brown/photographic panels, so the layer must be red — a brown
   layer on a brown ground is invisible. */
.btn--light { --btn-bg: var(--brand-white); --btn-fg: var(--brand-brown); --btn-shadow: var(--brand-red); }

/* Outline variant keeps the stack so it reads as the same family. */
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--brand-brown); --btn-shadow: var(--brand-brown);
  border-color: var(--brand-brown);
  box-shadow: var(--btn-offset) var(--btn-offset) 0 var(--btn-shadow);
}
.btn--ghost:hover { background: transparent; }
.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: var(--brand-cream); --btn-shadow: var(--brand-cream);
  border-color: var(--brand-cream);
}

/* The arrow sat oddly against wide-tracked caps. */
.btn .arr { margin-left: -0.15em; }

/* Floating button joins the same family. */
.fab {
  text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700;
  font-size: var(--t-xs);
  box-shadow: 5px 5px 0 var(--brand-red), 0 18px 40px -18px rgba(59,26,23,.5);
  transition: opacity .45s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease), visibility .45s, background .25s;
}
.fab:hover {
  background: var(--brand-red-deep);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--brand-red), 0 12px 30px -18px rgba(59,26,23,.5);
}
.fab:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--brand-red); }

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active, .fab:hover, .fab:active { transform: none; }
}

/* Tracked caps need more room on small screens. */
@media (max-width: 560px) {
  .btn { letter-spacing: 0.06em; padding-inline: 1.5em; }
  .stickycta .btn { letter-spacing: 0.04em; padding-inline: 0.7em; }
}

/* --- 29. Gateway colour swap --------------------------------------------
   B2C ("For your property") now carries the brand red; B2B ("For installers")
   uses dark brown. Both are dark surfaces, so both take the light-on-dark
   text treatment. Contrast checked: cream on #C22E2A and on #542522 both
   exceed AA comfortably.                                                    */

/* B2C — brand red */
.gateway--b2c {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.10), rgba(255,255,255,0)),
    linear-gradient(140deg, var(--brand-red-deep), #A82522);
  border-color: rgba(255,255,255,0.22);
  color: var(--brand-cream);
}
/* B2B — dark brown */
.gateway--b2b {
  background:
    linear-gradient(155deg, rgba(255,255,255,0.08), rgba(255,255,255,0)),
    linear-gradient(140deg, var(--brand-brown), var(--brand-brown-deep));
  border-color: rgba(255,255,255,0.18);
  color: var(--brand-cream);
}

/* Shared light-on-dark treatment */
.gateway--b2c h2, .gateway--b2c h3,
.gateway--b2b h2, .gateway--b2b h3,
.gateway--b2c .step__q, .gateway--b2b .step__q { color: var(--brand-white); }

.gateway--b2c .gateway__sub,  .gateway--b2b .gateway__sub,
.gateway--b2c .gateway__foot, .gateway--b2b .gateway__foot,
.gateway--b2c .field > label, .gateway--b2b .field > label,
.gateway--b2c .form__progress, .gateway--b2b .form__progress,
.gateway--b2c .eyebrow, .gateway--b2b .eyebrow { color: var(--brand-white); opacity: 1; }

.gateway--b2c .form__legal, .gateway--b2b .form__legal { color: var(--brand-white); opacity: .92; }
.gateway--b2c .form__legal a, .gateway--b2b .form__legal a { color: var(--brand-white); }
.gateway--b2c .form__back, .gateway--b2b .form__back { color: var(--brand-white); opacity: .9; }
.gateway--b2c .form__done svg, .gateway--b2b .form__done svg { color: var(--brand-cream); }

/* Tags */
.gateway--b2c .gateway__tag { background: var(--brand-cream); color: var(--brand-red-deep); }
.gateway--b2b .gateway__tag { background: var(--brand-cream); color: var(--brand-brown); }

/* Progress bars */
.gateway--b2c .form__bar i { background: var(--brand-cream); }
.gateway--b2b .form__bar i { background: var(--brand-blush); }

/* Selected choice chips */
.gateway--b2c .choice input:checked + span {
  background: var(--brand-brown); color: var(--brand-white); border-color: var(--brand-brown);
}
.gateway--b2b .choice input:checked + span {
  background: var(--brand-red-deep); color: var(--brand-white); border-color: var(--brand-red-deep);
}

/* Consent checkboxes */
.gateway--b2c .check input:checked { background-color: var(--brand-brown); border-color: var(--brand-brown); }
.gateway--b2b .check input:checked { background-color: var(--brand-red-deep); border-color: var(--brand-red-deep); }

/* Inline errors need to read on a dark ground */
.gateway--b2c .field__err, .gateway--b2b .field__err { color: #FFD9CF; }

/* --- 30. QA fix: B2B button visibility on the brown card -----------------
   Measured 13 Nov: the red button face (#C22E2A) against the brown card
   (#542522) gave only 2.23:1, below the 3:1 WCAG 1.4.11 threshold for
   identifying a UI component. A cream face measures 10.93:1 against the card
   and 12.61:1 for its text, while the red offset layer keeps the brand accent. */
.gateway--b2b .btn--red {
  --btn-bg: var(--brand-cream);
  --btn-fg: var(--brand-brown);
  --btn-shadow: var(--brand-red);
}
.gateway--b2b .btn--red:hover { background: var(--brand-white); }

/* --- 31. QA fix: focus visibility inside the enquiry cards ---------------
   The global focus ring is dark brown (#3B1A17). Because outline-offset puts
   it OUTSIDE the element, it lands on the card background, not on the control.
   Measured 13 Nov after the colour swap: 2.76:1 on the red card and 1.24:1 on
   the brown card — both below the 3:1 required by WCAG 2.4.11, leaving keyboard
   users with no visible position. Both cards are now dark, so a white ring is
   the correct indicator throughout.                                          */
.gateway :focus-visible {
  outline: 3px solid var(--brand-white);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Text inputs keep their own inner ring as a second cue. */
.gateway .input:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-brown) 45%, transparent);
}

/* --- 32. Footer ----------------------------------------------------------
   Red ground with the wordmark set oversized across the full width. The
   wordmark is the approved logo with its red plate removed, so it sits on the
   footer directly rather than as a visible rectangle.
   Ground is #C22E2A, not #EF403B: cream on the vibrant red measures 3.33:1 and
   fails AA for the small print that lives down here.                        */

.footer {
  background: var(--brand-red-deep);
  color: var(--brand-cream);
  padding: 0 0 var(--s-4);
  margin-top: var(--s-6);
  position: relative;
  overflow: hidden;
}
/* Soft concentric shapes, echoing the logo artwork. */
.footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,.055) 0 26%, transparent 26.4%),
    radial-gradient(circle at 74% 0%,  rgba(255,255,255,.045) 0 30%, transparent 30.4%),
    radial-gradient(circle at 96% 58%, rgba(255,255,255,.05)  0 22%, transparent 22.4%);
}
.footer > * { position: relative; }

.footer__top {
  display: grid; gap: var(--s-5) var(--s-6);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  padding-top: var(--s-6);
  align-items: start;
}
@media (max-width: 900px) { .footer__top { grid-template-columns: minmax(0,1fr); } }

/* Newsletter block */
.footer__news h2 {
  color: var(--brand-white);
  font-size: var(--t-xl);
  max-width: 18ch;
  margin-bottom: var(--s-3);
}
.footer .news__form { display: flex; flex-wrap: wrap; gap: var(--s-2); max-width: 26rem; }
.footer .news__form .input {
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
  color: var(--brand-white);
  border-radius: 4px;
}
.footer .news__form .input::placeholder { color: rgba(255,255,255,.75); }
.footer .news__form .input:focus {
  border-color: var(--brand-white);
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}
.footer .news__form .btn { width: 100%; }
.footer .news__note { flex-basis: 100%; font-size: var(--t-xs); color: rgba(255,255,255,.92); }

.footer__contact {
  display: grid; gap: .45rem; margin-top: var(--s-4);
  font-size: var(--t-sm); color: var(--brand-cream);
}
.footer__contact a { color: var(--brand-white); text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; }

/* Link columns */
.footer__cols {
  display: grid; gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.footer__cols h3 {
  color: var(--brand-white);
  font-family: var(--font-body);
  font-size: var(--t-xs);
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer__cols a {
  color: var(--brand-cream); text-decoration: none;
  font-size: var(--t-sm); font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
  transition: color .2s;
}
.footer__cols a:hover { color: var(--brand-white); text-decoration: underline; }

/* Oversized wordmark */
.footer__wordmark {
  margin: var(--s-6) 0 var(--s-5);
  padding-inline: clamp(12px, 2vw, 28px);
}
.footer__wordmark img {
  width: 100%; height: auto; display: block;
  opacity: .96;
}

/* Legal */
.footer__disclaimer {
  font-size: var(--t-xs); line-height: 1.6;
  color: rgba(255,255,255,.92);
  max-width: 90ch;
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,.22);
}
.footer__bottom {
  margin-top: var(--s-4);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4);
  justify-content: space-between; align-items: center;
  font-size: var(--t-xs); color: rgba(255,255,255,.92);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.footer__legal a { color: rgba(255,255,255,.92); text-decoration: none; }
.footer__legal a:hover { color: var(--brand-white); text-decoration: underline; }

/* Focus ring must read on the red ground. */
.footer :focus-visible { outline: 3px solid var(--brand-white); outline-offset: 3px; }

@media (max-width: 560px) {
  .footer__wordmark { margin: var(--s-5) 0 var(--s-4); }
  .footer .news__form .btn { width: 100%; }
}

/* --- 33. Knowledge Centre signpost --------------------------------------
   Homepage entry point to the two Knowledge Centres. Built from the existing
   tokens and card conventions; no new colours or typefaces introduced.      */
.kc {
  display: flex; flex-direction: column;
  background: var(--brand-white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.kc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--brand-red); }

/* Installer side takes the brown ground, matching its enquiry card. */
.kc--b2b {
  background: linear-gradient(140deg, var(--brand-brown), var(--brand-brown-deep));
  border-color: rgba(255,255,255,.18);
}
.kc--b2b h3 { color: var(--brand-white); }
.kc--b2b p  { color: var(--brand-cream); }
.kc--b2b:hover { border-color: var(--brand-blush); }

.kc__tag {
  align-self: flex-start; margin-bottom: var(--s-3);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: .45em .9em; border-radius: 999px;
  background: var(--brand-red-deep); color: var(--brand-white);
}
.kc--b2b .kc__tag { background: var(--brand-cream); color: var(--brand-brown); }

.kc h3 { font-size: var(--t-2xl); margin-bottom: var(--s-2); }
.kc p  { font-size: var(--t-sm); color: var(--ink-muted); max-width: 42ch; }

.kc__stats {
  list-style: none; margin: var(--s-3) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s-4);
}
.kc__stats li {
  font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted);
}
.kc--b2b .kc__stats li { color: var(--brand-cream); }
.kc__stats b {
  display: block; font-family: var(--font-display);
  font-size: var(--t-2xl); line-height: 1; letter-spacing: -.02em;
  color: var(--brand-red-deep); text-transform: none;
}
.kc--b2b .kc__stats b { color: var(--brand-blush); }

.kc__cta { margin-top: auto; padding-top: var(--s-4); }

/* Focus ring must read on the brown card. */
.kc--b2b :focus-visible { outline: 3px solid var(--brand-white); outline-offset: 3px; }

/* Source-order fix: `.kc p` is declared after `.kc--b2b p` and has equal
   specificity, so it was overriding it and leaving the installer card's body
   text at 1.7:1 on the brown ground. Restated here to win on order. */
.kc--b2b p { color: var(--brand-cream); }

/* --- 34. QA fix: horizontal overflow in the header on small screens -------
   At 375px the header forced the document to 422px, giving every phone a
   47px horizontal scroll.

   Cause: `.nav__inner` is `display:flex; flex-wrap:nowrap` with two children
   that both refuse to shrink. `.logo` is `flex:none` and `.logo__img` is
   `clamp(168px, 17vw, 260px)`, which at 375px resolves to the 168px floor
   rather than 17vw. `.nav__cta` is also `flex:none` and measures 200px. With
   the 14.4px gap that needs 382px, against the 327px the wrap allows.

   Fix: below 760px, drop the header's "Start enquiry" button. It is redundant
   there, because `.stickycta` is already `display:flex` from exactly that
   breakpoint and carries the same action plus WhatsApp. The header then needs
   only logo (168) + gap (14.4) + toggle (44) = 226px, which fits inside the
   272px available even at 320px.

   The approved logo artwork, its proportions, and the layout above 760px are
   all untouched. */
@media (max-width: 760px) {
  .nav__cta > .btn { display: none; }
}

/* Belt and braces: nothing should ever scroll the page sideways. This cannot
   mask a layout bug, because the rule above removes the cause; it only stops a
   future regression from reaching a customer's phone. */
html { overflow-x: clip; }
@supports not (overflow-x: clip) {
  html { overflow-x: hidden; }
}

/* --- 35. B2C-led hero gateways ------------------------------------------
   The business goal is qualified consumer enquiries, so the customer form is
   the primary element and the installer route is a secondary signpost rather
   than a competing form. The two-column editorial rhythm of the approved
   design is kept, but the weighting now reflects the priority: roughly 2:1 in
   favour of the customer card.

   `align-items: start` replaces the inherited `stretch` so the short signpost
   is not stretched to the full height of the seven-step customer form. */
.gateways--b2c-led {
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 900px) {
  .gateways--b2c-led { grid-template-columns: minmax(0, 1fr); }
}

/* The signpost reuses the approved brown installer treatment, at a smaller
   weight. No form, so no competing call to action. */
.gateway--signpost {
  display: flex; flex-direction: column;
  padding-block: var(--s-4);
}
.gateway--signpost .gateway__title { font-size: var(--t-xl); }
.signpost__list {
  list-style: none; margin: 0 0 var(--s-3); padding: 0;
  display: grid; gap: 0.55rem;
}
.signpost__list li {
  position: relative; padding-left: 1.4rem;
  font-size: var(--t-sm); color: var(--brand-cream);
}
.signpost__list li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-blush);
}
.signpost__cta { margin-top: auto; margin-bottom: 0; }

/* On mobile the customer card already leads via source order; the explicit
   order rule from the two-up layout would fight that, so neutralise it here. */
@media (max-width: 900px) {
  .gateways--b2c-led .gateway--b2c { order: 0; }
}

/* --- 36. Secondary navigation item and legal pages -----------------------
   The installer route stays in the primary navigation on the one domain, but
   is visually subordinate to the customer items, so the consumer journey
   reads first. */
.nav__links-aside { margin-left: auto; padding-left: clamp(0.7rem, 1.4vw, 1.5rem);
  border-left: 1px solid var(--rule); }
.nav__links-aside a { color: var(--ink-muted); }
.nav__links-aside a:hover { color: var(--brand-brown); }

/* Readable measure for policy pages. */
.legal-doc { max-width: 44rem; }
.legal-doc h2 { margin-block: var(--s-4) var(--s-2); }
.legal-doc p, .legal-doc li { color: var(--ink-muted); }
.legal-doc ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; margin-bottom: var(--s-3); }
.legal-doc code { background: var(--brand-cream-dim); padding: 0.1em 0.4em;
  border-radius: 4px; font-size: 0.9em; color: var(--brand-brown-deep); }
.legal-doc .article__meta { font-size: var(--t-xs); color: var(--ink-muted);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule); margin-bottom: var(--s-4); }

/* `.gateway` sets `height: 100%` so the two equal cards filled a stretched row.
   In the B2C-led layout the signpost must size to its own content instead, or
   the short installer card is inflated to the height of the seven-step customer
   form and competes with it visually. */
.gateways--b2c-led .gateway--signpost { height: auto; }
