/* ==========================================================================
   Flettons v2 design system — dark
   Charcoal canvas, layered surfaces, off-white type, restrained borders,
   natural-colour photography, periodic-element brand tiles. One stylesheet
   feeds every public route; page files add only what they lack.
   Loaded by layouts/frontend.blade.php ($v2). Keeps the chrome.js hooks:
   .fs-nav__trigger, [data-fs-mega], .fs-mega, [data-fs-mobile], .fs-footer.
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --canvas: #171a1c;
  --canvas-deep: #121416;
  --surface: #212528;
  --surface-2: #292e32;
  --surface-3: #31373c;
  --text: #f7f7f5;
  --text-2: #bec3c7;
  --text-3: #8f979c;
  --line: #3a4044;
  --line-strong: #7f898f;
  --action-bg: #f7f7f5;
  --action-fg: #171a1c;
  --action-hover: #e4e5e2;
  --focus: #f7f7f5;
  --ok: #3ccf7a;
  --ok-ink: #0f3d24;
  --warn: #e8c15a;
  --warn-ink: #3d2f05;
  --danger: #ff7b7b;
  --danger-ink: #4a1212;
  --scrim: rgba(23, 26, 28, 0.78);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 64px);
  --r: 8px;
  --r-card: 12px;
  --header-h: 68px;
  --tile: 1px solid var(--line-strong);

  /* Legacy aliases: older page sheets still read these names. */
  --ink: var(--canvas-deep);
  --ink-2: var(--canvas);
  --ink-3: var(--surface);
  --bone: var(--canvas);
  --bone-2: var(--surface);
  --bone-3: var(--line);
  --line-dark: var(--line);
  --muted: var(--text-2);
  --on-dark: var(--text);
  --on-dark-muted: var(--text-2);
  --accent: var(--text);
  --accent-hover: var(--action-hover);
  --accent-ink: var(--text-2);
  --accent-bright: var(--text);
  --serif: var(--sans);
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--text); color: var(--canvas); }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 14px; border-radius: var(--r); background: var(--action-bg); color: var(--action-fg); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* 3. Type --------------------------------------------------------------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow--dark { color: var(--text-2); }
.eyebrow::after { content: ""; display: block; width: 28px; height: 1px; margin-top: 8px; background: var(--line-strong); }
h1, .h1 { font-size: clamp(1.9rem, 1.35rem + 1.5vw, 2.75rem); line-height: 1.08; }
h2, .h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.1; }
h2 em, h1 em { font-style: normal; font-weight: 400; color: var(--text-2); }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; }
.lead { color: var(--text-2); font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); line-height: 1.55; }
.link { color: var(--text); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.link:hover { text-decoration-color: var(--text); }
.sec--ink .link { color: var(--text); }
.stars { color: var(--text); letter-spacing: 0.12em; font-size: 0.95rem; }
small, .small { font-size: 0.88rem; color: var(--text-2); }

/* 4. Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--r);
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em; white-space: nowrap; line-height: 1.2;
  cursor: pointer; text-align: center;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
a[href^="tel:"] { white-space: nowrap; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 1.02rem; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 0.9rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--action-bg); color: var(--action-fg); border-color: var(--action-bg); }
.btn--primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn__arrow { transition: transform .18s ease; }
.btn--primary:hover .btn__arrow { transform: translateX(3px); }
.btn--ghost, .btn--outline { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover, .btn--outline:hover { border-color: var(--text); background: var(--surface); }
.btn--soft { background: var(--surface-2); color: var(--text); border-color: var(--surface-2); }
.btn--soft:hover { background: var(--surface-3); border-color: var(--surface-3); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: fs-spin .8s linear infinite; }
@keyframes fs-spin { to { transform: rotate(360deg); } }

/* 5. Sections ----------------------------------------------------------- */
.sec { padding: clamp(48px, 5vw, 72px) 0; }
.sec--bone { background: var(--canvas); }
.sec--bone2 { background: var(--surface); }
.sec--ink { background: var(--canvas-deep); color: var(--text); }
.sec--ink + .sec--ink, .sec--bone + .sec--bone { padding-top: 0; }
.sec__head { margin-bottom: clamp(24px, 3vw, 40px); }
.sec__head--split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; }
.sec__intro { color: var(--text-2); font-size: 1.02rem; max-width: 34rem; }
.sec--ink .sec__intro { color: var(--text-2); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* 6. Header (keeps chrome.js hooks: .fs-nav__trigger, [data-fs-mega], .fs-mega…) */
.fs-header {
  position: sticky; top: 0; z-index: 260;
  background: var(--canvas); color: var(--text);
  border-bottom: 1px solid var(--line);
}
.fs-header__inner {
  width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.fs-brand { display: inline-flex; align-items: center; min-height: 44px; }
.fs-brand img { height: 26px; width: auto; }
.fs-nav { display: flex; justify-content: center; gap: 2px; }
.fs-nav__item { position: static; }
.fs-nav__link, .fs-nav__trigger {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 42px; padding: 8px 12px; border-radius: var(--r);
  color: var(--text-2); font-weight: 500; font-size: 0.94rem; line-height: 1.2;
  transition: color .15s ease, background-color .15s ease;
}
.fs-nav__link:hover, .fs-nav__trigger:hover, .fs-nav__item.is-open > .fs-nav__trigger { color: var(--text); background: var(--surface); }
.fs-nav__link.is-active, .fs-nav__trigger.is-active { color: var(--text); box-shadow: inset 0 -2px 0 var(--text); border-radius: var(--r) var(--r) 0 0; }
.fs-caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .8; transition: transform .2s ease; }
.fs-nav__item.is-open > .fs-nav__trigger .fs-caret { transform: rotate(-135deg) translateY(-2px); }

.fs-header__actions { display: flex; align-items: center; gap: 10px; }
.fs-header__actions .fs-button--phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--r); color: var(--text-2); font-weight: 600; font-size: 0.94rem; }
.fs-header__actions .fs-button--phone:hover { color: var(--text); background: var(--surface); }
.fs-header__actions .fs-button--phone .fs-button__icon { width: 16px; height: 16px; filter: brightness(0) invert(1); opacity: .8; }
.fs-member-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: var(--r); color: var(--text); font-weight: 600; font-size: 0.94rem; transition: border-color .15s ease, background-color .15s ease; }
.fs-member-link:hover { border-color: var(--text); background: var(--surface); }
.fs-member-link svg { width: 16px; height: 16px; }
.fs-header .fs-button--quote { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--r); background: var(--action-bg); color: var(--action-fg); font-weight: 600; font-size: 0.94rem; transition: background-color .18s ease; }
.fs-header .fs-button--quote:hover { background: var(--action-hover); }
.fs-menu-toggle { display: none; }

/* Mega menu (content is rendered by Blade; chrome.js only opens and closes it) */
.fs-mega-overlay { position: fixed; inset: 0; z-index: 250; background: var(--scrim); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.fs-mega-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.fs-mega {
  position: absolute; left: 50%; top: 100%; z-index: 261;
  width: min(1120px, 100vw - 32px); max-height: calc(100vh - var(--header-h) - 24px); overflow: auto;
  transform: translate(-50%, 8px);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-card) var(--r-card);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.fs-nav__item.is-open > .fs-mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.fs-mega__inner { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2fr) minmax(240px, 0.8fr); gap: 32px; padding: 32px; }
.fs-mega__inner:has(.fs-mega__aside[hidden]) { grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2.4fr); }
.fs-mega__intro, .fs-mega__aside { display: flex; flex-direction: column; min-width: 0; }
.fs-eyebrow { display: block; margin-bottom: 14px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.fs-mega__intro h3, .fs-mega__aside h4 { font-size: 1.45rem; line-height: 1.15; letter-spacing: -0.015em; }
.fs-mega__intro p, .fs-mega__aside p { margin-top: 12px; color: var(--text-2); font-size: 0.94rem; line-height: 1.55; }
.fs-mega__intro-foot { margin-top: auto; padding-top: 24px; }
.fs-mega__rics-mark { width: 110px; height: auto; opacity: .9; }
.fs-mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.fs-mega__card { display: grid; align-content: start; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--canvas); transition: border-color .15s ease, background-color .15s ease; }
.fs-mega__card:hover, .fs-mega__card:focus-visible { border-color: var(--line-strong); background: var(--surface-2); }
.fs-mega__card--featured { border-color: var(--line-strong); }
.fs-mega__card-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 2px; }
.fs-mega__card-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.fs-mega__badge { padding: 3px 8px; border-radius: 999px; background: var(--action-bg); color: var(--action-fg); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.fs-mega__card-title { font-weight: 600; font-size: 0.98rem; color: var(--text); line-height: 1.3; }
.fs-mega__card-copy { color: var(--text-2); font-size: 0.88rem; line-height: 1.45; }
.fs-mega__aside { padding: 22px; border-radius: var(--r); background: var(--canvas); border: 1px solid var(--line); }
.fs-mega__quicklinks { display: grid; gap: 8px; margin: 16px 0 4px; }
.fs-mega__quicklink { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); font-size: 0.9rem; font-weight: 500; }
.fs-mega__quicklink:hover { border-color: var(--line-strong); }
.fs-panel-button { display: inline-flex; align-items: center; justify-content: center; margin-top: 18px; min-height: 46px; padding: 0 14px; border-radius: var(--r); background: var(--action-bg); color: var(--action-fg); font-weight: 600; font-size: 0.94rem; width: 100%; white-space: nowrap; transition: background-color .18s ease; }
.fs-panel-button:hover { background: var(--action-hover); }

/* Mobile menu */
.fs-mobile { display: none; }
.fs-mobile__panel { width: min(var(--wrap), 100% - var(--gutter) * 2); margin: 0 auto 20px; padding: 6px 0 18px; border-top: 1px solid var(--line); max-height: calc(100dvh - var(--header-h)); overflow: auto; }
.fs-mobile__list { display: grid; }
.fs-mobile__item { border-bottom: 1px solid var(--line); }
.fs-mobile__trigger, .fs-mobile__link {
  appearance: none; border: 0; background: transparent; width: 100%; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 14px 0; color: var(--text); font-size: 1.2rem; font-weight: 600; text-align: left; letter-spacing: -0.01em;
}
.fs-mobile__link { border-bottom: 1px solid var(--line); }
.fs-mobile__link:last-of-type { border-bottom: 0; }
.fs-mobile__trigger .fs-caret { width: 9px; height: 9px; margin-right: 4px; }
.fs-mobile__item.is-open > .fs-mobile__trigger .fs-caret { transform: rotate(-135deg) translateY(-2px); }
.fs-mobile__submenu { display: none; padding: 0 0 16px; }
.fs-mobile__item.is-open > .fs-mobile__submenu { display: grid; gap: 2px; }
.fs-mobile__submenu a { display: block; min-height: 44px; padding: 10px 0 10px 14px; border-left: 1px solid var(--line); color: var(--text-2); font-size: 1rem; }
.fs-mobile__submenu a:hover { color: var(--text); border-left-color: var(--text); }
.fs-mobile__footer { display: grid; gap: 10px; margin-top: 20px; }
.fs-mobile__rics-foot { margin-bottom: 8px; }
.fs-mobile__rics-mark { width: 110px; height: auto; opacity: .9; }
.fs-mobile__footer .fs-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: var(--r); font-weight: 600; }
.fs-mobile__footer .fs-button--quote { background: var(--action-bg); color: var(--action-fg); }
.fs-mobile__footer .fs-button--phone { border: 1.5px solid var(--line-strong); color: var(--text); }
.fs-mobile__footer .fs-button--phone .fs-button__icon { width: 16px; height: 16px; filter: brightness(0) invert(1); }
body.fs-menu-is-open { overflow: hidden; }

/* 7. Footer (keeps .fs-footer__col > h3 "Support" + .fs-footer__links for chrome.js) */
.fs-footer { background: var(--canvas-deep); color: var(--text); border-top: 1px solid var(--line); }
.fs-footer__inner { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.fs-footer__top { display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: clamp(28px, 4vw, 56px); padding: 48px 0 36px; }
.fs-footer__brand { display: grid; gap: 18px; align-content: start; }
.fs-footer__wordmark img { height: 28px; width: auto; }
.fs-footer__brand p { color: var(--text-2); font-size: 0.95rem; max-width: 28rem; }
.fs-footer__rics-lockup { display: grid; gap: 10px; }
.fs-footer__rics { width: 110px; height: auto; opacity: .9; }
.fs-footer__rics-lockup span { color: var(--text-2); font-size: 0.85rem; }
.fs-footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.fs-footer__col h3, .fs-footer__contact h3 { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; font-weight: 600; }
.fs-footer__links { display: grid; gap: 10px; }
.fs-footer__links a { display: inline-block; min-height: 24px; color: var(--text); opacity: .86; font-size: 0.95rem; }
.fs-footer__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.fs-footer__contact { display: grid; gap: 0; align-content: start; }
.fs-footer__contact-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.fs-footer__contact-icon { width: 22px; height: 22px; margin-top: 4px; }
.fs-footer__contact-icon img, .fs-footer__contact-icon svg { width: 22px; height: 22px; }
.fs-footer__contact-icon img { filter: brightness(0) invert(1); opacity: .8; }
.fs-footer__contact-row strong { display: block; font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.01em; }
.fs-footer__contact-row[href^="tel:"] strong { font-size: 1.5rem; }
.fs-footer__contact-row span span { display: block; margin-top: 6px; color: var(--text-2); font-size: 0.9rem; }
.fs-footer__contact-divider { height: 1px; margin: 22px 0; background: var(--line); }
.fs-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.82rem; }
.fs-footer__bottom p { margin: 0; }
.fs-footer__bottom-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.fs-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.fs-footer__legal a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.fs-footer__socials { display: flex; gap: 8px; }
.fs-footer__socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--text); transition: border-color .15s ease; }
.fs-footer__socials a:hover { border-color: var(--text); }
.fs-footer__socials svg { width: 16px; height: 16px; }
.registered-mark { font-size: 0.6em; vertical-align: super; }

/* 7b. Slim footer for focused flows (quote journey, sign in, activation).
   The form is the end of the page: no site navigation to scroll past, only the legal line and help. */
body.flow-focused { min-height: 100dvh; display: flex; flex-direction: column; }
body.flow-focused > main { flex: 1 0 auto; }
.fs-footer--slim { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--canvas) 0%, var(--canvas-deep) 100%); }
.fs-footer__slim { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(18px, 3vw, 40px); padding: 18px 0 22px; }
.fs-footer__slim-brand { display: flex; align-items: center; gap: 18px; }
.fs-footer__slim-brand .fs-footer__wordmark img { height: 22px; width: auto; opacity: .92; }
.fs-footer__slim-brand .fs-footer__rics { width: 84px; opacity: .72; padding-left: 18px; border-left: 1px solid var(--line); }
.fs-footer__slim-legal { margin: 0; text-align: center; color: var(--text-2); font-size: 0.78rem; letter-spacing: 0.01em; line-height: 1.4; }
.fs-footer__slim-links { display: flex; align-items: center; gap: 4px; }
.fs-footer__slim-links a { padding: 6px 10px; border-radius: 999px; color: var(--text-2); font-size: 0.82rem; font-weight: 500; transition: color .15s ease, background-color .15s ease; }
.fs-footer__slim-links a:hover, .fs-footer__slim-links a:focus-visible { color: var(--text); background: var(--surface-2); }
.fs-footer__slim-links a:first-child { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .fs-footer__slim { grid-template-columns: 1fr auto; }
  .fs-footer__slim-legal { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}
@media (max-width: 560px) {
  .fs-footer__slim { grid-template-columns: 1fr; gap: 12px; padding: 16px 0 20px; }
  .fs-footer__slim-links { margin-left: -10px; }
  .fs-footer__slim-legal { grid-row: auto; }
}
body.flow-focused .ms-mobile-cta { display: none; }

/* 8. Mobile quick-action bar + voice assistant ------------------------ */
.ms-mobile-cta { display: none; }
body #voice-assistant-root { font-family: var(--sans); }
body.v2 #voice-assistant-root .flettons-va-launcher { width: 52px; height: 52px; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.6); }
body.v2 #voice-assistant-root .flettons-va-launcher:hover, body.v2 #voice-assistant-root .flettons-va-launcher:focus-visible { background: var(--surface-2); border-color: var(--text); transform: none; }
body.v2 #voice-assistant-root .flettons-va-launcher svg { width: 22px; height: 22px; }

/* 9. Video cards + modal (markup rendered by site-video-cards.js) ------- */
.inspection-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.inspection-card--offset { margin: 0; }
.inspection-card__media { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-card); overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; }
.inspection-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.inspection-card__media:hover img { transform: scale(1.03); }
.inspection-card__media img[src*="Flettons Flettons Logo"], .inspection-card__media img[src*="Flettons%20Flettons%20Logo"] { object-fit: contain; padding: 22%; opacity: .3; }
.inspection-card__tag { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px; background: var(--scrim); color: var(--text); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.inspection-card__tag:empty { display: none; }
.inspection-card__play { position: absolute; left: 50%; top: 0; z-index: 3; width: 56px; height: 56px; padding: 0 0 0 4px; border: 0; border-radius: 50%; background: var(--action-bg); color: var(--action-fg); font-size: 1.05rem; cursor: pointer; transform: translate(-50%, -50%); transition: background-color .15s ease; }
.inspection-card__play:hover { background: var(--action-hover); }
.inspection-card__body { padding-top: 14px; display: grid; gap: 6px; }
.inspection-card__body h3 { font-weight: 600; font-size: 1rem; line-height: 1.35; color: inherit; }
.inspection-card__body p { color: var(--text-2); font-size: 0.9rem; line-height: 1.45; }
.inspection-card__body a { margin-top: 4px; color: var(--text); font-weight: 600; font-size: 0.9rem; display: inline-flex; gap: 6px; }
.inspection-card__body a:hover { text-decoration: underline; text-underline-offset: 4px; }

.inspection-video-modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.inspection-video-modal[hidden] { display: none; }
.inspection-video-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.inspection-video-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); }
.inspection-video-modal__dialog { position: relative; z-index: 1; width: min(980px, 100%); background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6); }
.inspection-video-modal__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 24px 26px 18px; }
.inspection-video-modal__eyebrow { display: block; margin-bottom: 8px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.inspection-video-modal__header h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); }
.inspection-video-modal__header p { margin-top: 8px; color: var(--text-2); font-size: 0.95rem; max-width: 40rem; }
.inspection-video-modal__close { flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.inspection-video-modal__close:hover { border-color: var(--text); }
.inspection-video-modal__frame { margin: 0 18px 18px; border-radius: var(--r); overflow: hidden; background: #000; }
.inspection-video-modal__frame video, .inspection-video-modal__frame iframe.inspection-video-modal__embed { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
body.inspection-video-is-open { overflow: hidden; }

/* 10. Brand tiles (periodic-element motif) ------------------------------ */
.el-tile {
  display: inline-grid; grid-template-rows: auto 1fr auto; justify-items: start; gap: 2px;
  width: 92px; min-height: 92px; padding: 8px 10px 9px;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--text);
}
.el-tile__n { font-size: 0.64rem; font-weight: 500; letter-spacing: 0.08em; color: var(--text-2); font-variant-numeric: tabular-nums; }
.el-tile__sym { font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -0.03em; align-self: center; }
.el-tile__name { font-size: 0.7rem; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.el-tile--sm { width: 64px; min-height: 64px; padding: 6px 8px 7px; }
.el-tile--sm .el-tile__sym { font-size: 1.4rem; }
.el-tile--sm .el-tile__name { display: none; }
.el-tile--light { background: var(--action-bg); color: var(--action-fg); border-color: var(--action-bg); }
.el-tile--light .el-tile__n, .el-tile--light .el-tile__name { color: #4a5156; }
.el-row { display: flex; flex-wrap: wrap; gap: 12px; }
.el-feature { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.el-feature p { color: var(--text-2); font-size: 0.98rem; }

/* 11. Shared blocks ---------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 30px 28px 8px 0; border-right: 1px solid var(--line); margin-right: 28px; }
.step:last-child { border-right: 0; margin-right: 0; }
.step__n { display: block; font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--text-2); margin-bottom: 22px; letter-spacing: -0.02em; }
.step h3 { font-size: 1.2rem; margin-bottom: 12px; }
.step p { color: var(--text-2); font-size: 0.98rem; }
.step__note { display: inline-block; margin-top: 16px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }

.quote { margin: 0 auto; max-width: 60rem; text-align: center; }
.quote p { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.quote footer { margin-top: 24px; color: var(--text-2); font-size: 0.95rem; }
.quote footer strong { color: var(--text); margin-right: 10px; }
.reviews { display: grid; grid-template-columns: 1fr 1fr 0.8fr; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.review { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); display: grid; gap: 14px; align-content: start; }
.review p { font-size: 1rem; color: var(--text); }
.review footer { color: var(--text-2); font-size: 0.9rem; }
.review footer strong { color: var(--text); margin-right: 8px; }
.review--score { background: var(--canvas-deep); border-color: var(--line-strong); }
.review--score p { color: var(--text-2); }
.review .review__big { font-size: 3.6rem; font-weight: 700; line-height: 1; color: var(--text); letter-spacing: -0.03em; }

.cta { position: relative; isolation: isolate; padding: clamp(56px, 7vw, 88px) 0; color: var(--text); background: var(--canvas-deep); overflow: hidden; border-top: 1px solid var(--line); }
.cta__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 20, 22, 0.96) 0%, rgba(18, 20, 22, 0.78) 55%, rgba(18, 20, 22, 0.45) 100%); }
.cta__in { max-width: 44rem; }
.cta h2 { margin-bottom: 18px; }
.cta p { font-size: 1.05rem; color: var(--text-2); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Icons (bespoke sprite via <x-site.icon>) */
.icon { display: inline-block; flex: none; vertical-align: middle; width: 24px; height: 24px; --icon-accent: var(--text); }
.icon-tile { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text); }
.icon-tile .icon { width: 24px; height: 24px; }

/* Inner-page hero */
.page-hero { position: relative; isolation: isolate; background: var(--canvas-deep); color: var(--text); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 20, 22, 0.95) 0%, rgba(18, 20, 22, 0.86) 40%, rgba(18, 20, 22, 0.4) 68%, rgba(18, 20, 22, 0.12) 100%), linear-gradient(0deg, rgba(18, 20, 22, 0.9) 0%, rgba(18, 20, 22, 0) 30%); }
.page-hero__in { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; padding: clamp(32px, 4.5vw, 56px) 0 clamp(32px, 4.5vw, 52px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr); gap: 28px 56px; align-items: end; }
.page-hero__in--single { grid-template-columns: 1fr; }
.page-hero__copy { max-width: 46rem; }
.page-hero__lead { margin-top: 16px; max-width: 36rem; font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); line-height: 1.55; color: var(--text-2); }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 0.9rem; color: var(--text-2); }
.page-hero__meta li { display: inline-flex; align-items: center; gap: 10px; }
.page-hero__meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--text-2); }
.page-hero__aside { display: grid; gap: 12px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: rgba(33, 37, 40, 0.82); backdrop-filter: blur(14px); }
.page-hero__aside .eyebrow { margin-bottom: 2px; }
.page-hero__aside dl { margin: 0; display: grid; gap: 12px; }
.page-hero__aside dt { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.page-hero__aside dd { margin: 2px 0 0; font-weight: 500; }
.page-hero__aside .price { font-size: 1.9rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.page-hero__aside .price-label { font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); font-weight: 600; margin-right: 8px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 0.85rem; color: var(--text-2); }
.crumbs a { position: relative; display: inline-block; }
.crumbs a::before { content: ""; position: absolute; inset: -12px -6px; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* One compact reassurance strip (replaces repeated stat bars) */
.trust { background: var(--canvas); border-bottom: 1px solid var(--line); }
.trust__in { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; padding: 8px 0; }
.trust__item { display: inline-flex; gap: 10px; align-items: center; min-height: 40px; font-size: 0.86rem; color: var(--text-2); }
.trust__item strong { font-weight: 600; color: var(--text); }
.trust__item span span { display: none; }
.trust__item img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.trust__item .icon { width: 18px; height: 18px; color: var(--text-2); }

.prose { max-width: 42rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px; border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(-45deg) translateY(-2px); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 40px; counter-increment: n; }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0.1em; font-size: 1rem; font-weight: 600; color: var(--text); }
.prose a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split--sticky > :first-child { position: sticky; top: calc(var(--header-h) + 24px); }
.split__img { width: 100%; border-radius: var(--r-card); object-fit: cover; border: 1px solid var(--line); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features--4 { grid-template-columns: repeat(4, 1fr); }
.features--2 { grid-template-columns: repeat(2, 1fr); }
.feature { display: grid; gap: 14px; align-content: start; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--text-2); font-size: 0.96rem; }
.sec--bone2 .feature { background: var(--canvas); }

.spec { display: grid; border-top: 1px solid var(--line-strong); }
.spec__row { display: grid; grid-template-columns: minmax(180px, 0.6fr) 1fr; gap: 12px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec__row dt { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.spec__row dd { margin: 0; color: var(--text-2); }
.spec--2col { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }

.checks { display: grid; gap: 12px; }
.checks--2 { grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.checks li { position: relative; padding-left: 30px; }
/* An 18px circle whose centre is at (9px, 0.2em + 9px); the tick is an 8x4 box placed on that centre, then rotated. */
.checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); }
.checks li::after { content: ""; position: absolute; left: 9px; top: calc(0.2em + 9px); width: 8px; height: 4px; border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: translate(-50%, -50%) translateY(-1px) rotate(-45deg); transform-origin: center; }

.aside-card { display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.aside-card h3 { font-size: 1.4rem; line-height: 1.15; }
.aside-card p { color: var(--text-2); font-size: 0.98rem; }
.aside-card .btn { margin-top: 8px; }

.faq { display: grid; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 56px; padding: 18px 0; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > :not(summary) { padding: 0 0 22px; color: var(--text-2); max-width: 44rem; }
.faq details > p + p { margin-top: 10px; }

.compare { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { position: sticky; top: var(--header-h); z-index: 2; background: var(--canvas); border-bottom: 1px solid var(--line-strong); font-weight: 700; font-size: 1.1rem; }
.compare thead th:first-child { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); font-weight: 600; vertical-align: bottom; }
.compare tbody th { font-weight: 500; color: var(--text); }
.compare td { text-align: center; color: var(--text-2); }
.compare .is-featured { background: var(--surface); }
.compare thead .is-featured { background: var(--surface); color: var(--text); }
.compare .yes, .compare .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.compare .yes { background: var(--action-bg); color: var(--action-fg); }
.compare .no { background: var(--surface-3); color: var(--text-2); }
.compare .yes::before { content: ""; width: 11px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-1px); }
.compare .no::before { content: "–"; font-weight: 600; line-height: 1; }
.compare-wrap { position: relative; overflow-x: auto; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat-row > div { padding: 24px 28px 28px 0; }
.stat-row > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-row dt { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.stat-row dd { margin: 8px 0 0; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); transition: border-color .15s ease; }
.card:hover { border-color: var(--line-strong); }
.card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { display: grid; gap: 10px; align-content: start; padding: 22px; }
.card__body h3 { font-size: 1.12rem; }
.card__body p { color: var(--text-2); font-size: 0.95rem; }
.card__figure { font-size: 1.8rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--text); }

/* Forms */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .field__label { font-size: 0.92rem; font-weight: 600; }
.field label span, .field__optional { margin-left: 4px; font-weight: 400; color: var(--text-2); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r);
  background: var(--canvas); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(247, 247, 245, 0.18); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: 0.88rem; color: var(--danger); font-weight: 500; }
.field__hint { font-size: 0.88rem; color: var(--text-2); }
.form__note { font-size: 0.88rem; color: var(--text-2); }
.notice { padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 500; }
.notice--error { border-color: var(--danger); }
.notice--ok { border-color: var(--ok); }
.error-summary { padding: 16px 18px; border: 1.5px solid var(--danger); border-radius: var(--r); background: var(--surface); }
.error-summary h2 { font-size: 1.05rem; margin-bottom: 8px; }
.error-summary ul { display: grid; gap: 4px; }
.error-summary a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* Choice cards and chips (radio / checkbox as whole-row controls) */
.choice { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; min-height: 56px; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.choice:hover { border-color: var(--text); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__mark { width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--canvas); }
.choice--check .choice__mark { border-radius: 5px; }
.choice__mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--action-bg); transform: scale(0); transition: transform .12s ease; }
.choice--check .choice__mark::after { width: 10px; height: 5px; border-radius: 0; border-left: 2px solid var(--action-fg); border-bottom: 2px solid var(--action-fg); background: transparent; transform: rotate(-45deg) scale(0); margin-top: -3px; }
.choice input:checked ~ .choice__mark::after { transform: scale(1); }
.choice--check input:checked ~ .choice__mark { background: var(--action-bg); border-color: var(--action-bg); }
.choice--check input:checked ~ .choice__mark::after { transform: rotate(-45deg) scale(1); }
.choice input:checked ~ * { }
.choice:has(input:checked) { border-color: var(--text); background: var(--surface-2); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.choice__body { display: grid; gap: 2px; min-width: 0; }
.choice__title { font-weight: 600; line-height: 1.3; }
.choice__hint { font-size: 0.9rem; color: var(--text-2); line-height: 1.4; }
.choice__price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.choice--disabled { opacity: .6; cursor: not-allowed; }
.choice--disabled:hover { border-color: var(--line-strong); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.chip-row--grid .chip { justify-content: center; text-align: center; padding-inline: 12px; }
@media (max-width: 560px) { .chip-row--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .chip-row--grid .chip:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r); background: var(--surface); font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:hover { border-color: var(--text); }
.chip:has(input:checked) { background: var(--action-bg); color: var(--action-fg); border-color: var(--action-bg); }
.chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); background: var(--surface); }
.pill--solid { background: var(--action-bg); color: var(--action-fg); border-color: var(--action-bg); }
.pill--ok { color: var(--ok); border-color: rgba(60, 207, 122, 0.5); }
.pill--warn { color: var(--warn); border-color: rgba(232, 193, 90, 0.5); }
.pill--danger { color: var(--danger); border-color: rgba(255, 123, 123, 0.5); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-2); flex: none; }
.status-dot--ok { background: var(--ok); }
.status-dot--warn { background: var(--warn); }
.status-dot--danger { background: var(--danger); }

/* Four-stage customer stepper (shared by every quote screen) */
.stepper { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; }
.stepper__item { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px 10px 0; color: var(--text-2); font-size: 0.92rem; font-weight: 500; line-height: 1.25; }
.stepper__item + .stepper__item::before { content: ""; flex: none; width: 28px; height: 1px; background: var(--line); margin-right: 10px; }
.stepper__dot { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid var(--line-strong); border-radius: 50%; font-size: 0.82rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); background: var(--canvas); }
.stepper__item.is-active { color: var(--text); font-weight: 600; }
.stepper__item.is-active .stepper__dot { border-color: var(--text); background: var(--action-bg); color: var(--action-fg); }
.stepper__item.is-complete { color: var(--text); }
.stepper__item.is-complete .stepper__dot { border-color: var(--ok); background: var(--ok); color: var(--ok-ink); text-indent: -999px; overflow: hidden; position: relative; }
.stepper__item.is-complete .stepper__dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 5px; border-left: 2px solid var(--ok-ink); border-bottom: 2px solid var(--ok-ink); transform: translate(-50%, -65%) rotate(-45deg); text-indent: 0; }
.stepper__item a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.stepper__item a:hover { text-decoration-color: currentColor; }
.stepper__compact { display: none; }

/* 12. Responsive ------------------------------------------------------- */
@media (max-width: 1279px) {
  .fs-nav, .fs-header__actions { display: none; }
  .fs-header__inner { grid-template-columns: auto 1fr; }
  .fs-menu-toggle { display: inline-grid; place-items: center; justify-self: end; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r); background: transparent; color: var(--text); cursor: pointer; }
  .fs-menu-toggle > span:not(.fs-menu-toggle__bars) { display: none; }
  .fs-menu-toggle__bars { position: relative; display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; transition: background-color .15s ease; }
  .fs-menu-toggle__bars span { display: none; }
  .fs-menu-toggle[aria-expanded="true"] .fs-menu-toggle__bars { background: transparent; box-shadow: none; }
  .fs-menu-toggle[aria-expanded="true"] .fs-menu-toggle__bars::before, .fs-menu-toggle[aria-expanded="true"] .fs-menu-toggle__bars::after { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 2px; background: var(--text); }
  .fs-menu-toggle[aria-expanded="true"] .fs-menu-toggle__bars::before { transform: rotate(45deg); }
  .fs-menu-toggle[aria-expanded="true"] .fs-menu-toggle__bars::after { transform: rotate(-45deg); }
  .fs-mobile { display: block; }
  .fs-footer__top { grid-template-columns: 1fr 1fr; }
  .fs-footer__nav { grid-column: 1 / -1; }
  .sec__head--split { grid-template-columns: 1fr; align-items: start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: 0; margin-right: 0; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .page-hero__in { grid-template-columns: 1fr; align-items: start; }
  .features, .features--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--sticky > :first-child { position: static; }
  .spec--2col { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-row > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat-row > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  :root { --header-h: 60px; }
  body { font-size: 1rem; }
  .trust__in { gap: 8px 20px; }
  .features, .features--4, .features--2, .checks--2, .cards, .choice-grid { grid-template-columns: 1fr; }
  .spec__row { grid-template-columns: 1fr; gap: 6px; }
  .form__row { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 12px 10px; font-size: 0.9rem; }
  .compare thead th { font-size: 1rem; top: 0; }
  .page-hero__cta .btn, .cta__actions .btn { width: 100%; }
  .fs-brand img { height: 24px; }
  .fs-footer__top { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 36px; }
  .fs-footer__nav { grid-template-columns: 1fr; gap: 22px; }
  .fs-footer__bottom { flex-direction: column; align-items: flex-start; }
  .sec { padding: clamp(32px, 8vw, 44px) 0; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .step:last-child { border-bottom: 0; }
  .reviews { grid-template-columns: 1fr; }
  .cta { padding: 48px 0; }
  body:not(.quote-page) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .ms-mobile-cta { position: fixed; inset: auto 0 0; z-index: 240; display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(23, 26, 28, 0.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .ms-mobile-cta a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: var(--r); font-weight: 600; font-size: 0.96rem; }
  .ms-mobile-cta__call { border: 1.5px solid var(--line-strong); color: var(--text); }
  .ms-mobile-cta__call svg { width: 18px; height: 18px; }
  .ms-mobile-cta__quote { background: var(--action-bg); color: var(--action-fg); }
  body:has(.fs-menu-toggle[aria-expanded="true"]) .ms-mobile-cta { display: none; }
  body:has(.fs-menu-toggle[aria-expanded="true"]) #voice-assistant-root { display: none; }
  body:has(.ms-mobile-cta) #voice-assistant-root { bottom: 82px !important; }
  .inspection-video-modal { padding: 12px; }
  /* Five steps on a phone: small dots, short connectors, only the active label and never a wrap. */
  .stepper { display: flex; gap: 4px; align-items: center; }
  .stepper__item { padding: 6px 0; gap: 8px; font-size: 0.86rem; white-space: nowrap; }
  .stepper__item + .stepper__item::before { width: 10px; margin-right: 4px; }
  .stepper__dot { width: 26px; height: 26px; font-size: 0.78rem; }
  .stepper__item:not(.is-active) > span:last-child, .stepper__item:not(.is-active) > a { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .stepper__compact { display: none; }
}

@media (max-width: 400px) {
  .fs-header__inner { gap: 12px; }
  .btn, .btn--lg { padding-inline: 16px; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn__arrow, .inspection-card__media img, .fs-mega, .fs-caret, .choice, .chip, .choice__mark::after { transition: none; }
  .btn[aria-busy="true"]::after { animation: none; }
}

@media print {
  .fs-header, .fs-footer, .ms-mobile-cta, #voice-assistant-root, .cta { display: none !important; }
  body { background: #fff; color: #000; }
}

/* 13. Account and status screens ------------------------------------- */
.account { padding: clamp(32px, 5vw, 64px) 0; }
.account__in { display: grid; justify-content: center; }
.account-card { width: min(520px, 100%); display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.account-card__title { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.account-card .lead { font-size: 1.02rem; }
.account-card__foot { font-size: 0.92rem; color: var(--text-2); }
.account-card__foot a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.status { display: grid; align-items: center; padding: clamp(48px, 6vw, 88px) 0; }
.status__in { max-width: 44rem; }
.status__in h1 { margin-top: 0; }
.status__in .lead { margin-top: 18px; }
.status__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 820px) { .status__actions .btn { width: 100%; } }
