/* ==========================================================================
   Gas4Ola — "Boiler-room schematic"
   Cool enamel base, cast-iron ink, UK pipe colours for drawings,
   flame red reserved for emergencies only.
   ========================================================================== */
:root {
  --base: #F2F3F0;
  --surface: #FFFFFF;
  --ink: #172026;
  --ink-2: #3B464D;
  --muted: #5F6B72;
  --rule: #D3D8DA;
  --rule-2: #9AA5AB;
  --gas: #E0A526;
  --flow: #C8321A;
  --return: #2E5C8A;
  --flame: #C8321A;
  --flame-dark: #A82814;
  --steel: #E6E9E7;
  --ok: #2F7D4F;

  --f-head: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 36px);
  --sec: clamp(64px, 9vw, 120px);
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.cols2 > *, .quiz-grid > *, .hero-grid > *, .phero-grid > *, .dial-sec > *, .triage > * { min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--base); color: var(--ink); font: 400 18px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--f-head); font-stretch: 112%; font-weight: 800; margin: 0; line-height: 1.02; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); font-stretch: 100%; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--return); outline-offset: 3px; }
::selection { background: #F6DFA6; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec) 0; position: relative; }
.sec--white { background: var(--surface); }
.sec--ink { background: var(--ink); color: #E8ECEE; }
.sec--ink h2, .sec--ink h3 { color: #fff; }
.rule-t { border-top: 1px solid var(--rule); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pipe tag labels (eyebrows) */
.tag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 700 .78rem/1 var(--f-head); font-stretch: 85%; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.tag::before { content: ""; width: 26px; height: 8px; border-radius: 2px; background: var(--c, var(--gas)); box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.tag--flow { --c: var(--flow); } .tag--return { --c: var(--return); } .tag--gas { --c: var(--gas); }
.sec--ink .tag { color: #B9C3C8; }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.sec--ink .lede { color: #C7D0D4; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 56px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.head .lede { margin: 0; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border: 0; border-radius: var(--r); background: var(--ink); color: #fff; font: 700 1rem/1.1 var(--f-head); font-stretch: 100%; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s; }
.btn:hover { background: #2A3740; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--flame { background: var(--flame); }
.btn--flame:hover { background: var(--flame-dark); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.sec--ink .btn--line { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.sec--ink .btn--line:hover { background: #fff; color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--steel); }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 1.06rem; }
.btn--full { width: 100%; }
.tlink { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--gas); }
.tlink:hover { text-decoration-color: var(--ink); }

/* ---------- Emergency strip + header ---------- */
.strip { background: var(--ink); color: #DDE3E6; font-size: .88rem; }
.strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.strip a { color: #fff; font-weight: 700; text-decoration: none; }
.strip .live { display: inline-flex; align-items: center; gap: 8px; }
.strip .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 0 rgba(200,50,26,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(200,50,26,0); } 100% { box-shadow: 0 0 0 0 rgba(200,50,26,0); } }
.strip .gs { color: #B9C3C8; }
@media (max-width: 720px) { .strip .gs { display: none; } .strip .wrap { justify-content: center; } }

.hdr { position: sticky; top: 0; z-index: 100; background: rgba(242,243,240,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hdr.is-stuck { border-bottom-color: var(--rule); }
.hdr .wrap { display: flex; align-items: center; gap: 24px; height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; }
.logo svg { width: 34px; height: 34px; }
.logo span { font: 800 1.45rem/1 var(--f-head); font-stretch: 118%; letter-spacing: -0.02em; }
.logo span b { color: var(--flame); }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--ink-2); border-radius: var(--r); }
.nav a:hover { color: var(--ink); background: var(--steel); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--gas); border-radius: 0; }
.hdr-call { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.hdr-call small { font-size: .74rem; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hdr-call b { font: 800 1.15rem/1.2 var(--f-head); font-stretch: 100%; }
.hdr .btn { min-height: 46px; padding: 0 18px; font-size: .95rem; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 22px; } .burger span:nth-child(3) { top: 29px; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mmenu { position: fixed; inset: 0; z-index: 90; background: var(--base); padding: 130px var(--gutter) 40px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; overflow-y: auto; }
.menu-open .mmenu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.mmenu a.ml { font: 800 1.9rem/1.2 var(--f-head); font-stretch: 110%; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.mmenu .btn { margin-top: 22px; }
@media (max-width: 1080px) { .hdr-call { display: none; } }
@media (max-width: 940px) { .nav, .hdr .btn { display: none; } .burger { display: block; } .hdr .wrap { height: 64px; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; }
.split a { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; border-radius: 6px; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.split a:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(23,32,38,.6); }
.split small { font-size: .9rem; font-weight: 700; opacity: .85; }
.split b { font: 800 1.25rem/1.15 var(--f-head); font-stretch: 105%; display: flex; align-items: center; gap: 8px; }
.split b svg { width: 20px; height: 20px; }
.split .urgent { background: var(--flame); color: #fff; }
.split .plan { background: var(--ink); color: #fff; }
@media (max-width: 520px) { .split { grid-template-columns: 1fr; } }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; font-weight: 700; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.trust a { color: inherit; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 480px; margin: 0 auto; } }

/* Boiler schematic illustration */
.hero-art { position: relative; }
.schem { width: 100%; height: auto; overflow: visible; }
.schem .pipe { fill: none; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.schem .pipe.draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: drawp 1.8s .3s var(--ease) forwards; }
@keyframes drawp { to { stroke-dashoffset: 0; } }
.schem .flame { transform-origin: 50% 100%; animation: flick 2.6s ease-in-out infinite; }
@keyframes flick { 50% { transform: scaleY(.88) translateY(1px); } }
.schem text { font: 700 11px var(--f-head); font-stretch: 85%; letter-spacing: .1em; fill: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .schem .pipe.draw { animation: none; stroke-dashoffset: 0; } .schem .flame { animation: none; } }

/* ---------- Triage gauge (emergency) ---------- */
.triage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.tq { border: 0; padding: 0; margin: 0 0 18px; }
.tq legend { font: 700 1.12rem/1.3 var(--f-head); font-stretch: 100%; margin-bottom: 10px; padding: 0; }
.yn { display: inline-flex; gap: 8px; }
.yn button { min-width: 84px; min-height: 46px; padding: 0 18px; border-radius: var(--r); border: 2px solid rgba(255,255,255,.35); background: transparent; color: #fff; font: 700 1rem var(--f-head); cursor: pointer; transition: background .2s, border-color .2s; }
.yn button:hover { border-color: #fff; }
.yn button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.gauge-wrap { text-align: center; }
.gauge { width: min(340px, 100%); margin: 0 auto 14px; }
.gauge .needle { transform-origin: 150px 150px; transition: transform .45s var(--ease); }
.verdict { min-height: 6.5em; }
.verdict h3 { margin-bottom: 8px; }
.verdict p { color: #C7D0D4; margin-bottom: 14px; }
.verdict[data-level="gas"] h3 { color: var(--gas); }
.gasbox { display: flex; gap: 14px; align-items: flex-start; margin-top: 26px; padding: 16px 18px; border: 2px solid var(--gas); border-radius: 6px; color: #fff; }
.gasbox svg { width: 26px; height: 26px; color: var(--gas); flex: none; margin-top: 2px; }
.gasbox a { color: var(--gas); font-weight: 700; }
.sec:not(.sec--ink) .gasbox { color: var(--ink); background: #FFF8E6; }
.sec:not(.sec--ink) .gasbox a { color: var(--ink); }
@media (max-width: 860px) { .triage { grid-template-columns: 1fr; } }

/* ---------- Data-plate cards ---------- */
.plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plate { position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.plate::before, .plate::after { content: ""; position: absolute; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #A9B3B8 70%); box-shadow: 0 0 0 1px #C4CBCE; }
.plate::before { left: 12px; } .plate::after { right: 12px; }
a.plate:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(23,32,38,.55); }
.plate .pipe-chip { width: 34px; height: 6px; border-radius: 2px; background: var(--c, var(--gas)); margin: 6px 0 18px; }
.plate h3 { margin-bottom: 8px; }
.plate p { color: var(--ink-2); font-size: 1rem; margin-bottom: 18px; }
.plate .spec { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--rule-2); display: flex; justify-content: space-between; gap: 10px; font: 700 .82rem/1.3 var(--f-head); font-stretch: 85%; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plate .spec b { color: var(--ink); }
.plate--urgent { border-color: var(--flame); }
.plate--urgent .spec b { color: var(--flame); }
@media (max-width: 960px) { .plates { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plates { grid-template-columns: 1fr; } }

/* ---------- Thermostat dial ---------- */
.dial-sec { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.dial-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px -44px rgba(23,32,38,.6); }
.dial { position: relative; width: min(300px, 100%); aspect-ratio: 1; margin: 0 auto 18px; }
.dial svg { width: 100%; height: 100%; }
.dial .knob { transform-origin: 150px 150px; transition: transform .25s var(--ease); }
.dial-read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.dial-read b { font: 800 3.1rem/1 var(--f-head); font-stretch: 85%; }
.dial-read span { font: 700 .74rem/1.3 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dial-ctl { display: grid; gap: 16px; }
.ctl label { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 8px; }
.ctl label output { font: 800 1rem var(--f-head); }
.ctl input[type=range] { width: 100%; accent-color: var(--ink); height: 32px; }
.dial-result { margin-top: 18px; padding: 16px 18px; border-radius: 6px; background: var(--base); display: grid; gap: 4px; }
.dial-result .rec { font: 800 1.2rem/1.2 var(--f-head); }
.dial-result .band { font-size: .98rem; color: var(--ink-2); }
.dial-result .fine { font-size: .82rem; color: var(--muted); }
@media (max-width: 900px) { .dial-sec { grid-template-columns: 1fr; } }

/* ---------- Steps (how it works) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--return), var(--flow)); opacity: .9; }
.steps li { position: relative; padding: 0 22px 0 0; counter-increment: s; }
.steps li::before { content: counter(s); position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); font: 800 1.2rem var(--f-head); margin-bottom: 18px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 1rem; margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { left: 23px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; background: linear-gradient(180deg, var(--return), var(--flow)); }
  .steps li { padding: 0 0 0 76px; }
  .steps li::before { position: absolute; left: 0; top: -4px; margin: 0; }
}

/* ---------- Checks / promise list ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 2px; }
.sec--ink .checks svg { color: var(--gas); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .cols2 { grid-template-columns: 1fr; } }

/* Credential plate */
.cred { display: grid; gap: 0; border: 2px solid var(--ink); border-radius: 8px; background: var(--surface); overflow: hidden; }
.cred div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.cred div:last-child { border-bottom: 0; }
.cred dt { font: 700 .8rem/1.3 var(--f-head); font-stretch: 85%; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cred dd { margin: 0; font-weight: 700; text-align: right; }
.cred .cred-head { background: var(--gas); color: var(--ink); font: 800 1rem var(--f-head); font-stretch: 110%; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Price guide ---------- */
.prices { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.prices th, .prices td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--rule); }
.prices th { font: 700 .8rem/1.2 var(--f-head); font-stretch: 85%; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--base); }
.prices td:last-child { font: 800 1.08rem var(--f-head); font-stretch: 90%; white-space: nowrap; text-align: right; }
.prices tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font: 700 1.14rem/1.3 var(--f-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .ans { padding: 0 40px 22px 0; color: var(--ink-2); }
.faq .ans p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: -5%; right: -5%; bottom: 28px; height: 8px; background: linear-gradient(90deg, var(--return) 0 33%, var(--gas) 33% 66%, var(--flow) 66%); opacity: .9; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px 64px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #C7D0D4; margin: 14px 0 0; }
.cta-act { display: grid; gap: 12px; }
.cta-act .call { color: #fff; font: 800 1.3rem var(--f-head); text-decoration: none; display: flex; align-items: center; gap: 10px; justify-content: center; }
.cta-act .call svg { width: 22px; height: 22px; color: var(--gas); }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.ftr { background: #0F171C; color: #AEB8BD; padding: 64px 0 0; font-size: .95rem; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; }
.ftr .logo span { color: #fff; }
.ftr h4 { font: 700 .8rem/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 6px 0 16px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr-legal { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; color: #7F8B91; }
@media (max-width: 900px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ftr-grid { grid-template-columns: 1fr; } }

/* Finance (shown only once FCA details are filled in) */
.rep-ex { margin-top: 18px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; font-size: 1rem; line-height: 1.55; color: #fff; }
.fca { font-size: .84rem; line-height: 1.5; color: #8E9AA0; padding-bottom: 20px; margin: 0; }

/* ---------- Mobile action bar ---------- */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(242,243,240,.97); border-top: 1px solid var(--rule); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mbar .btn { flex: 1; min-height: 52px; padding: 0 10px; font-size: .98rem; }
@media (max-width: 760px) { .mbar { display: flex; } body { padding-bottom: 72px; } }

/* ---------- Page hero (inner) ---------- */
.phero { padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.phero h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 15em; margin-bottom: 18px; }
.phero .lede { margin-bottom: 26px; }
.crumb { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.crumb a { text-decoration: none; }
.phero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 900px) { .phero-grid { grid-template-columns: 1fr; } }

/* Self-help checks (emergency page) */
.fixes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; counter-reset: f; }
.fixes li { padding: 22px; background: var(--surface); border: 1px solid var(--rule); border-left: 6px solid var(--return); border-radius: 6px; }
.fixes h3 { margin-bottom: 6px; }
.fixes p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 760px) { .fixes { grid-template-columns: 1fr; } }

/* CP12 reminder */
.cp12 { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(22px, 3vw, 32px); }
.cp12 .field { margin-bottom: 14px; }
.cp12-out { margin-top: 12px; padding: 16px; border-radius: 6px; background: var(--base); }
.cp12-out b { font: 800 1.6rem var(--f-head); font-stretch: 90%; display: block; }
.cp12-out.due { background: #FDECE8; }
.cp12-out.due b { color: var(--flame); }
.cp12-bar { height: 10px; border-radius: 5px; background: var(--steel); overflow: hidden; margin: 10px 0 4px; }
.cp12-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), var(--gas) 70%, var(--flame)); width: 0; transition: width .4s var(--ease); }

/* ---------- Forms ---------- */
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(22px, 3.4vw, 40px); box-shadow: 0 30px 70px -50px rgba(23,32,38,.6); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 7px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 13px 15px; border: 2px solid var(--rule); border-radius: var(--r); background: #fff; font: 400 1.02rem/1.4 var(--f-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(46,92,138,.18); }
.field.has-error input, .field.has-error select { border-color: var(--flame); }
.field .err { display: none; color: var(--flame); font-size: .88rem; margin-top: 5px; font-weight: 700; }
.field.has-error .err { display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin: 6px 0 16px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.fine { font-size: .84rem; color: var(--muted); margin: 14px 0 0; }

/* Quote quiz */
.quiz-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 940px) { .quiz-grid { grid-template-columns: 1fr; } }
.qbar { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; font: 700 .82rem var(--f-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.qbar div { flex: 1; height: 8px; border-radius: 4px; background: var(--steel); overflow: hidden; }
.qbar i { display: block; height: 100%; width: 10%; background: linear-gradient(90deg, var(--return), var(--flow)); transition: width .35s var(--ease); }
.qstep { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.qstep.is-on { display: block; animation: qin .35s var(--ease); }
@keyframes qin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qstep legend { font: 800 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--f-head); font-stretch: 105%; padding: 0; margin-bottom: 6px; }
.qstep .hint { color: var(--muted); margin-bottom: 22px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .tiles, .tiles--3 { grid-template-columns: 1fr 1fr; } .tiles--4 { grid-template-columns: 1fr 1fr; } }
.tiles > * { min-width: 0; }
@media (max-width: 380px) { .tiles, .tiles--3, .tiles--4 { grid-template-columns: 1fr; } .tile label { min-height: 60px; } }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile label { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 76px; padding: 14px 16px; border: 2px solid var(--rule); border-radius: 6px; background: #fff; cursor: pointer; font-weight: 700; line-height: 1.25; transition: border-color .15s, background .15s; }
.tile label svg { width: 26px; height: 26px; color: var(--ink-2); }
.tile label small { font-weight: 400; color: var(--muted); font-size: .86rem; }
.tile label:hover { border-color: var(--ink); }
.tile input:checked + label { border-color: var(--ink); background: #EEF2F4; box-shadow: inset 0 0 0 1px var(--ink); }
.tile input:focus-visible + label { outline: 3px solid var(--return); outline-offset: 2px; }
.tile--urgent input:checked + label { border-color: var(--flame); background: #FDECE8; box-shadow: inset 0 0 0 1px var(--flame); }
.tiles-err { display: none; color: var(--flame); font-weight: 700; font-size: .9rem; margin-top: 10px; }
.qstep.has-error .tiles-err { display: block; }
.qnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.qnav .back { background: none; border: 0; font: 700 1rem var(--f-body); color: var(--ink-2); cursor: pointer; padding: 12px 2px; }
.qnav .back[hidden] { display: block; visibility: hidden; }
.urgent-note { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 6px; background: #FDECE8; border-left: 5px solid var(--flame); font-weight: 700; }
.urgent-note.show { display: block; }
.urgent-note a { color: var(--flame-dark); }
.done h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
.next { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; counter-reset: n; }
.next li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; counter-increment: n; }
.next li::before { content: counter(n); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font: 800 .95rem var(--f-head); }
.aside-box { padding: 22px; border-radius: 8px; background: var(--surface); border: 1px solid var(--rule); }
.aside-box + .aside-box { margin-top: 16px; }
.aside-box h3 { margin-bottom: 10px; }

/* Survey booking */
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 8px; }
.bk-day { flex: none; display: grid; justify-items: center; gap: 2px; min-width: 76px; padding: 10px 8px; border: 2px solid var(--rule); border-radius: 6px; background: #fff; font: inherit; color: var(--ink); cursor: pointer; }
.bk-day span { font-size: .8rem; color: var(--muted); }
.bk-day b { font: 800 1rem var(--f-head); }
.bk-day small { font-size: .74rem; color: var(--ok); font-weight: 700; }
.bk-day[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bk-day[aria-checked="true"] span, .bk-day[aria-checked="true"] small { color: #C7D0D4; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.bk-slot { min-height: 48px; border: 2px solid var(--rule); border-radius: 6px; background: #fff; font: 700 1rem var(--f-head); color: var(--ink); cursor: pointer; }
.bk-slot:hover, .bk-slot:focus-visible { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Reveal (headings only, restrained) */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .qstep.is-on { animation: none; } }

.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }

/* ElevenLabs chat widget: sit above the mobile Call / Fixed price bar */
@media (max-width: 760px) { elevenlabs-convai { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 70px; z-index: 110; pointer-events: none; } }
.chat-x { position: fixed; z-index: 111; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; font: 700 18px/26px system-ui, sans-serif; text-align: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.chat-x[hidden] { display: none; }
