/* ============================================================
   AutoCheck Pros — Design System
   Tokens → Base → Layout → Components → Pages → Utilities
   Fonts: Archivo (display) + IBM Plex Sans (body)
   ============================================================ */

:root {
  /* Color tokens */
  --ink:        #101826;   /* primary text / near-navy */
  --slate:      #3d4a5e;   /* secondary text */
  --muted:      #5f6b7d;   /* tertiary text */
  --paper:      #f4f6f9;   /* page background (cool off-white) */
  --card:       #ffffff;
  --line:       #dbe1ea;
  --line-soft:  #e8ecf2;
  --navy:       #13203a;   /* dark sections */
  --navy-deep:  #0c1526;
  --navy-text:  #c6d0e0;   /* body text on navy */
  --accent:     #b91c1c;   /* signal red (derived from logo #ff3131, tuned for AA) */
  --accent-strong: #991b1b;
  --accent-soft:#fdeceb;
  --ok:         #157a3c;
  --ok-soft:    #e6f4ea;
  --warn:       #a05a06;
  --warn-soft:  #fdf3e3;
  --bad:        #b91c1c;
  --bad-soft:   #fdeceb;
  --focus:      #1d4ed8;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* Scale */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.55rem, 3vw, 2rem);
  --fs-2xl: clamp(1.9rem, 4vw, 2.6rem);
  --fs-hero: clamp(2.25rem, 5.2vw, 3.55rem);

  /* Space */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* Shape / elevation */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 38, 0.06), 0 1px 3px rgba(16, 24, 38, 0.08);
  --shadow-md: 0 4px 14px rgba(16, 24, 38, 0.09);
  --shadow-lg: 0 16px 40px rgba(12, 21, 38, 0.16);

  --container: 1140px;
  --container-narrow: 820px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
svg[aria-hidden="true"] { width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -0.15em; flex: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); font-weight: 800; }
h2 { font-size: var(--fs-2xl); font-weight: 700; }
h3 { font-size: var(--fs-lg); font-weight: 700; }
h4 { font-size: var(--fs-md); font-weight: 600; }
p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
ul, ol { padding-left: 1.25rem; margin: 0 0 var(--sp-4); }
li { margin-bottom: var(--sp-2); }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }
.lede { font-size: var(--fs-md); color: var(--slate); max-width: 62ch; }
.small, small { font-size: var(--fs-sm); color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.9em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-deep); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) 0; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-5); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--sp-5); }
.section { padding: var(--sp-9) 0; }
.section-tight { padding: var(--sp-8) 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-dark { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--navy-text); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: #f3b8b6; }
.section-head { max-width: 760px; margin-bottom: var(--sp-7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--sp-8) 0; }
}

/* Eyebrow — the report-field label motif */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate); margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; flex: none;
  background: var(--accent);
  clip-path: polygon(14% 44%, 0 58%, 40% 100%, 100% 16%, 84% 3%, 40% 68%);
  transform: scale(1.4);
}
.section-dark .eyebrow { color: #93a3bd; }
.eyebrow-lg { display: block; width: 100%; white-space: nowrap; overflow: hidden;
  font-size: clamp(0.85rem, calc((100vw - 3rem) / 44.5), 24.6px);
  letter-spacing: 0.12em; color: var(--ink); margin-bottom: var(--sp-5); }
.eyebrow-lg::before { display: none; }
@media (max-width: 720px) { .eyebrow-lg { white-space: normal; overflow: visible; font-size: 0.95rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
  min-height: 48px; line-height: 1.2; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-deep); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: 9px 16px; min-height: 40px; font-size: var(--fs-sm); }
.btn-lg { padding: 16px 32px; font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-deep); color: #cfd8e6;
  font-size: var(--fs-sm); padding: 7px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-links { display: flex; gap: var(--sp-5); flex: none; }
@media (max-width: 720px) { .topbar-area { display: none; } .topbar .container { justify-content: center; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 52px; width: auto; display: block; }
@media (max-width: 480px) { .brand-logo { height: 44px; } }
.brand-mark {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  background: var(--navy-deep); display: grid; place-items: center;
}
.brand-mark svg { width: 26px; height: 26px; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.16rem;
  letter-spacing: 0.01em; line-height: 1.05;
}
.brand-name .accent { color: var(--accent); }
.brand-sub {
  display: block; font-family: var(--font-body); font-weight: 500;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}

.nav-desktop { display: flex; align-items: center; gap: var(--sp-2); }
.nav-desktop > a, .nav-group > button {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav-desktop > a:hover, .nav-group > button:hover { background: var(--paper); color: var(--ink); }
.nav-desktop > a[aria-current="page"] { color: var(--accent); }
.nav-group { position: relative; }
.nav-group > button svg { width: 14px; height: 14px; transition: transform .15s ease; }
.nav-group > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 8px; display: none; z-index: 110;
}
.nav-menu.open { display: block; }
.nav-menu a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.nav-menu a:hover { background: var(--paper); color: var(--ink); }
.nav-menu a span { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 400; }
.header-cta { display: flex; align-items: center; gap: var(--sp-3); }
.header-phone { font-family: var(--font-display); font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
  border-radius: 8px; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

.nav-mobile {
  display: none; background: #fff; border-bottom: 1px solid var(--line);
  padding: var(--sp-4) var(--sp-5) var(--sp-6);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; padding: 12px 8px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-family: var(--font-display); border-bottom: 1px solid var(--line-soft);
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .nav-mobile-sub { padding-left: 20px; font-weight: 500; font-family: var(--font-body); font-size: 0.95rem; }
.nav-mobile .nav-mobile-label {
  padding: 14px 8px 4px; font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted); font-weight: 700;
}
.nav-mobile .btn { margin-top: var(--sp-4); }

@media (max-width: 1020px) {
  .nav-desktop, .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.hero { background:
    radial-gradient(1200px 500px at 85% -10%, rgba(185, 28, 28, 0.05), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line-soft);
  padding: var(--sp-8) 0 var(--sp-8);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-7); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: var(--sp-4); }
.hero .lede { margin-bottom: var(--sp-5); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); padding: 0; margin: 0; list-style: none; }
.hero-points li {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: var(--fs-sm); font-weight: 600; color: var(--slate);
}
.hero-points svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Signature: inspection diagram card */
.diagram-card {
  background: var(--navy-deep); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: var(--sp-5);
  color: var(--navy-text); position: relative; overflow: hidden;
}
.diagram-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 34px 34px;
}
.diagram-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); position: relative; }
.diagram-head .mono { color: #8fa0ba; font-size: var(--fs-xs); letter-spacing: .08em; }
.diagram-title { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: var(--fs-sm); letter-spacing: .06em; text-transform: uppercase; }
.diagram-svg { position: relative; margin: var(--sp-3) 0 var(--sp-2); }
.diagram-legend { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; padding: var(--sp-3) 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.12); }
.diagram-legend li { display: flex; gap: 10px; align-items: baseline; margin: 0; font-size: var(--fs-xs); }
.diagram-legend .idx {
  font-family: var(--font-mono); color: #ffb1ad; font-weight: 600; flex: none;
}
@media (max-width: 480px) { .diagram-legend { grid-template-columns: 1fr; } }

/* Animated inspection sequence */
.mk { cursor: pointer; outline: none; }
.mk .halo { opacity: 0; transition: opacity .35s ease; }
.mk .core { transition: stroke .3s ease, r .2s ease; }
.mk text { fill: #7f93b3; transition: fill .3s ease; }
.mk.checked .halo { opacity: .22; }
.mk.checked .core { stroke: #ff3131; }
.mk.checked text { fill: #ffb1ad; }
.has-hover .mk { opacity: .35; transition: opacity .2s ease; }
.has-hover .mk.hovered { opacity: 1; }
.mk.hovered .halo { opacity: .38; }
.mk.hovered .core { stroke: #ff3131; }
.mk.hovered text { fill: #fff; }

.scan-readout { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; position: relative; font-size: 11px; letter-spacing: .08em; color: #9db0cc; min-height: 16px; }
.scan-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff3131; flex: none; animation: scanBlink 1.1s steps(2, start) infinite; }
#scan-count { margin-left: auto; color: #ffb1ad; font-weight: 600; letter-spacing: .12em; }
@keyframes scanBlink { 50% { opacity: .25; } }

.diagram-legend li { cursor: default; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; transition: background-color .2s ease, color .2s ease, opacity .2s ease; }
.diagram-legend li .idx { transition: color .3s ease; color: #7f93b3; }
.diagram-legend li.checked .idx { color: #ffb1ad; }
.diagram-legend li.checked { color: #e6ecf5; }
.has-hover .diagram-legend [data-mk] { opacity: .45; }
.has-hover .diagram-legend [data-mk].hovered { opacity: 1; background: rgba(255,255,255,.07); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  #scanline { display: none; }
  .scan-dot { animation: none; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: var(--sp-2); font-size: var(--fs-md); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: var(--sp-4);
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.card-icon svg { width: 22px; height: 22px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-top: var(--sp-3); }
.card-link svg { width: 15px; height: 15px; }
.card-lift { transition: transform .18s ease, box-shadow .18s ease; }
.card-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* Trust bar */
.trust-bar { border-top: 1px solid var(--line-soft); background: #fff; }
.trust-bar .container {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3) var(--sp-7);
  padding-top: var(--sp-4); padding-bottom: var(--sp-4);
}
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--slate); }
.trust-item svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step-num {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 600;
  color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: var(--sp-2);
}
.step h3 { font-size: var(--fs-md); }

/* Chips / status badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.chip svg { width: 12px; height: 12px; }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-bad { background: var(--bad-soft); color: var(--bad); }
.chip-neutral { background: var(--paper); color: var(--slate); border: 1px solid var(--line); }

/* ---------- Packages ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); align-items: stretch; }
@media (max-width: 960px) { .pkg-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
.pkg {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5); position: relative;
}
.pkg-featured { border: 2px solid var(--navy); box-shadow: var(--shadow-md); }
.pkg-flag {
  position: absolute; top: -13px; left: var(--sp-5);
  background: var(--navy); color: #fff; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.pkg { color: var(--ink); }
.pkg h3, .section-dark .pkg h3 { color: var(--ink); font-size: var(--fs-lg); margin-bottom: 2px; }
.pkg-price { color: var(--ink); font-weight: 800; }
.pkg-ideal { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.pkg-price { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; letter-spacing: -0.02em; margin-bottom: var(--sp-4); }
.pkg-price small { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0; }
.pkg ul { list-style: none; padding: 0; margin: 0 0 var(--sp-5); flex: 1; }
.pkg ul li { display: flex; gap: 10px; align-items: baseline; font-size: var(--fs-sm); color: var(--slate); }
.pkg ul li::before {
  content: ""; width: 9px; height: 9px; flex: none; position: relative; top: 1px;
  background: var(--accent);
  clip-path: polygon(14% 44%, 0 58%, 40% 100%, 100% 16%, 84% 3%, 40% 68%);
}

.pkg-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); align-items: stretch; }
@media (max-width: 820px) { .pkg-grid2 { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

/* Comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: var(--fs-sm); }
.compare caption { text-align: left; padding: var(--sp-4) var(--sp-5); font-weight: 600; color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-top: 1px solid var(--line-soft); vertical-align: top; }
.compare thead th { font-family: var(--font-display); border-top: 0; background: var(--paper); }
.compare tbody th { font-weight: 600; color: var(--slate); width: 220px; }
.compare .yes { color: var(--ok); font-weight: 700; }
.compare .no { color: var(--muted); }

/* ---------- Report preview ---------- */
.report-frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.report-topbar {
  background: var(--navy-deep); color: #fff; padding: var(--sp-4) var(--sp-5);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-3);
}
.report-topbar .mono { color: #9db0cc; font-size: var(--fs-xs); }
.report-title { font-family: var(--font-display); font-weight: 700; }
.report-body { padding: var(--sp-5); }
.report-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-5); }
@media (max-width: 720px) { .report-meta { grid-template-columns: repeat(2, 1fr); } }
.report-meta dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.report-meta dd { margin: 2px 0 0; font-weight: 600; font-family: var(--font-mono); font-size: var(--fs-sm); }
.report-row {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
  padding: 12px 0; border-top: 1px solid var(--line-soft);
}
.report-row:first-of-type { border-top: 1px solid var(--line); }
.report-row .label { font-weight: 600; font-size: var(--fs-sm); }
.report-note {
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-xs); color: var(--muted); margin-top: var(--sp-4);
}
.finding {
  border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius-sm);
  padding: var(--sp-4); margin-bottom: var(--sp-3); background: #fff;
}
.finding-bad { border-left-color: var(--bad); }
.finding-warn { border-left-color: var(--warn); }
.finding-ok { border-left-color: var(--ok); }
.finding h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; font-size: var(--fs-base); }
.finding p { font-size: var(--fs-sm); color: var(--slate); margin-bottom: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
@media (max-width: 720px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
.photo-ph {
  aspect-ratio: 4 / 3; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, #eef1f6, #eef1f6 10px, #f6f8fb 10px, #f6f8fb 20px);
  display: grid; place-items: center; color: var(--muted); font-size: var(--fs-xs);
  font-weight: 600; text-align: center; padding: var(--sp-2);
}

/* ---------- Accordion ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.acc-item + .acc-item { border-top: 1px solid var(--line-soft); }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
  padding: 18px var(--sp-5); min-height: 48px;
}
.acc-btn:hover { background: var(--paper); }
.acc-btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; color: var(--accent); }
.acc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc-panel { padding: 0 var(--sp-5) 20px; color: var(--slate); }
.acc-panel[hidden] { display: none; }
.acc-panel p, .acc-panel li { font-size: 0.97rem; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); box-shadow: var(--shadow-md); }
label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); margin-top: 3px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="date"], input[type="number"], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  min-height: 48px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
.field { margin-bottom: var(--sp-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field-row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 640px) { .field-row, .field-row-3 { grid-template-columns: 1fr; gap: 0; } }
.field-error { color: var(--bad); font-size: var(--fs-xs); font-weight: 600; margin-top: 5px; display: none; }
.field.has-error .field-error { display: block; }
.check {
  display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: var(--fs-sm); color: var(--slate);
}
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-4); }
legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; padding: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.radio-pill span {
  display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line);
  border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; color: var(--slate); background: #fff;
}
.radio-pill input:checked + span { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.radio-pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-alert {
  border-radius: var(--radius-sm); padding: var(--sp-4); font-size: var(--fs-sm);
  margin-bottom: var(--sp-4); border: 1px solid;
}
.form-alert-error { background: var(--bad-soft); border-color: #f2c4c2; color: var(--bad); }
.form-alert-ok { background: var(--ok-soft); border-color: #bfe3cb; color: var(--ok); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Multi-step progress */
.progress { display: flex; gap: 6px; margin-bottom: var(--sp-6); }
.progress li {
  flex: 1; height: 6px; border-radius: 999px; background: var(--line);
  list-style: none; margin: 0; position: relative;
}
.progress li.done { background: var(--accent); }
.progress li.current { background: var(--navy); }
.step-label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.wizard-step[hidden] { display: none; }
.wizard-nav { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-6); }
.summary-list { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: var(--sp-5); }
.summary-group { padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line-soft); }
.summary-group:first-child { border-top: 0; }
.summary-group h4 { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: var(--sp-2); }
.summary-group h4 button { background: none; border: 0; color: var(--accent); font-weight: 700; font-size: var(--fs-xs); cursor: pointer; text-transform: none; letter-spacing: 0; padding: 4px; }
.summary-group dl { display: grid; grid-template-columns: 160px 1fr; gap: 4px 16px; margin: 0; font-size: var(--fs-sm); }
.summary-group dt { color: var(--muted); }
.summary-group dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 560px) { .summary-group dl { grid-template-columns: 1fr; gap: 0 } .summary-group dd { margin-bottom: 8px; } }
.reco-box {
  border: 2px solid var(--navy); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5);
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  margin-bottom: var(--sp-5); flex-wrap: wrap; background: #fff;
}
.reco-box .price { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }

/* Success state */
.success-panel { text-align: center; padding: var(--sp-7) var(--sp-5); }
.success-icon {
  width: 74px; height: 74px; margin: 0 auto var(--sp-5); border-radius: 50%;
  background: var(--ok-soft); color: var(--ok); display: grid; place-items: center;
  animation: popIn .4s ease both;
}
.success-icon svg { width: 36px; height: 36px; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ref-code {
  display: inline-block; font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-md);
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius-sm);
  padding: 8px 18px; margin: var(--sp-3) 0 var(--sp-5); letter-spacing: .06em;
}

/* ---------- Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; height: 100%; }
.quote-card blockquote { margin: 0 0 var(--sp-4); font-size: 0.97rem; color: var(--slate); flex: 1; }
.quote-card blockquote::before { content: "“"; display:block; font-family: var(--font-display); font-size: 2.6rem; line-height: .6; color: var(--accent); margin-bottom: 10px; }
.quote-who { font-weight: 700; font-family: var(--font-display); }
.quote-who span { display: block; font-family: var(--font-body); font-weight: 500; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-band p { max-width: 560px; margin: 0 auto var(--sp-5); color: var(--navy-text); }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--navy-text); font-size: var(--fs-sm); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); padding: var(--sp-8) 0 var(--sp-6); }
@media (max-width: 960px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.site-footer .footer-h { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; margin: 0 0 var(--sp-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--navy-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #8fa0ba; }
.footer-contact { margin-top: var(--sp-4); }
.footer-contact div { display: flex; gap: 10px; margin-bottom: 8px; align-items: baseline; }
.footer-contact svg { width: 15px; height: 15px; flex: none; position: relative; top: 2px; color: #8fa0ba; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12); padding: var(--sp-4) 0 calc(var(--sp-4) + 64px);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3);
  color: #8fa0ba; font-size: var(--fs-xs);
}
@media (min-width: 761px) { .footer-legal { padding-bottom: var(--sp-4); } }
.footer-disclaimer { color: #8fa0ba; font-size: var(--fs-xs); padding-bottom: var(--sp-5); max-width: 900px; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  display: none; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(12, 21, 38, .97); backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255,255,255,.12);
}
.sticky-cta a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: var(--radius-sm); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
}
.sticky-cta svg { width: 18px; height: 18px; }
.sticky-cta .cta-call, .sticky-cta .cta-text { background: rgba(255,255,255,.1); color: #fff; flex: 0 0 auto; padding: 0 16px; }
.sticky-cta .cta-req { background: var(--accent); color: #fff; }
@media (max-width: 760px) { .sticky-cta { display: flex; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: var(--sp-4) 0 0; font-size: var(--fs-xs); color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li { margin: 0; display: flex; gap: 6px; align-items: center; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }

/* Page hero (interior pages) */
.page-hero { position: relative; overflow: hidden; padding: var(--sp-7) 0 var(--sp-7); background: linear-gradient(180deg, #fff, var(--paper)); border-bottom: 1px solid var(--line-soft); }
.page-hero > .container, .page-hero > .container-narrow { position: relative; z-index: 1; }
.page-hero.has-bg { padding: var(--sp-8) 0; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; opacity: 0.60; filter: saturate(0.85); }
.page-hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.35) 40%, rgba(244,246,249,0.85) 78%, var(--paper) 100%),
              linear-gradient(90deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 55%); }
@media (max-width: 640px) { .page-hero-bg img { opacity: 0.60; } }
.page-hero .lede { margin-top: var(--sp-2); }

/* Scenario / checklist grids */
.icon-list { list-style: none; padding: 0; margin: 0; }
.icon-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: var(--sp-3); }
.icon-list svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 3px; }
.check-cols { columns: 2; column-gap: var(--sp-6); }
@media (max-width: 720px) { .check-cols { columns: 1; } }
.check-cols li { break-inside: avoid; }

/* Category grid on What We Inspect */
.cat-card h3 { display: flex; align-items: center; gap: 12px; }
.cat-card h3 svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.cat-card ul { list-style: none; padding: 0; margin: 0; }
.cat-card ul li { padding-left: 18px; position: relative; font-size: var(--fs-sm); color: var(--slate); margin-bottom: 6px; }
.cat-card ul li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
  background: var(--accent);
  clip-path: polygon(14% 44%, 0 58%, 40% 100%, 100% 16%, 84% 3%, 40% 68%);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Figure placeholders for future photography */
.figure-slot {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, #182740, var(--navy-deep));
  color: #a9b8cf; display: grid; place-items: center; text-align: center;
  padding: var(--sp-6); min-height: 260px; font-size: var(--fs-sm);
}
.figure-slot svg { width: 44px; height: 44px; margin: 0 auto var(--sp-3); color: #f3b8b6; opacity: .9; }

/* Photography */
.photo-fig { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--navy-deep); }
.photo-fig img { width: 100%; height: auto; display: block; }
.photo-fig figcaption { background: #fff; padding: 10px 16px; font-size: var(--fs-xs); color: var(--muted); }
.photo-fig.img-missing img { display: none; }
.photo-fig.img-missing::before { content: "Photo pending"; display: grid; place-items: center; min-height: 220px; color: #8fa0ba; font-size: var(--fs-sm); }
.photo-band { margin-top: var(--sp-6); }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }
.mb-0 { margin-bottom: 0 !important; } .mb-4 { margin-bottom: var(--sp-4); } .mb-6 { margin-bottom: var(--sp-6); }
.maxw { max-width: 62ch; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print (sample report) ---------- */
@media print {
  .topbar, .site-header, .nav-mobile, .sticky-cta, .site-footer, .no-print, .breadcrumbs { display: none !important; }
  body { background: #fff; }
  .section { padding: 16px 0; }
  .report-frame { box-shadow: none; border-color: #bbb; }
  a { color: inherit; text-decoration: none; }
}

/* ============================================================
   Mobile refinement pass
   ============================================================ */
@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 var(--sp-4); }
  .section-head { margin-bottom: var(--sp-6); }
  h1 { font-size: clamp(1.95rem, 8.5vw, 2.4rem); }
  .lede { font-size: 1.05rem; }
}
@media (max-width: 520px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .cta-band .hero-ctas { align-items: stretch; }
  .wizard-nav { flex-direction: column-reverse; align-items: stretch; }
  .wizard-nav .btn { width: 100%; }
  .wizard-nav > span:empty { display: none; }
  .form-card { padding: var(--sp-5) var(--sp-4); }
  .summary-group { padding: var(--sp-4); }
  .trust-bar .container { gap: var(--sp-2) var(--sp-4); }
  .trust-item { font-size: 0.8rem; }
  .report-body { padding: var(--sp-4); }
  .photo-grid { gap: var(--sp-2); }
}
@media (max-width: 720px) {
  .page-hero-bg::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.62) 45%, rgba(244,246,249,0.9) 80%, var(--paper) 100%);
  }
}
@media (max-width: 480px) {
  .diagram-card { padding: var(--sp-4); }
  .diagram-head { flex-wrap: wrap; }
  .pkg { padding: var(--sp-5) var(--sp-4); }
  .pkg-price { font-size: 2rem; }
}
.compare-wrap { position: relative; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  .compare-wrap::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 36px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.9));
    pointer-events: none; border-radius: 0 var(--radius) var(--radius) 0;
  }
  .compare-hint { display: block; }
}
.compare-hint { display: none; font-size: var(--fs-xs); color: var(--muted); margin: 8px 2px 0; }
@media (max-width: 560px) {
  .footer-main { gap: var(--sp-5); padding-top: var(--sp-7); }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 6px; }
}
