/* ============ DESIGN TOKENS — Gulf Coast Soil & Seawall Doctors brand ============ */
:root, [data-theme="light"] {
  /* SoilDocs brand palette: navy + sky + taupe + coral */
  --color-bg: #f5f1ea;
  --color-surface: #ffffff;
  --color-surface-2: #fcfaf6;
  --color-surface-offset: #ece5d8;
  --color-surface-dynamic: #e2d9c8;
  --color-divider: #ddd5c4;
  --color-border: #cfc5b0;

  --color-text: #1a2733;
  --color-text-muted: #54636f;
  --color-text-faint: #909aa1;
  --color-text-inverse: #f5f1ea;

  /* SoilDocs primary navy #273e55 */
  --color-primary: #273e55;
  --color-primary-hover: #1c2e40;
  --color-primary-active: #15212e;
  --color-primary-soft: #d8e2ec;

  /* SoilDocs sky blue #a9c9d2 — secondary brand accent */
  --color-sky: #a9c9d2;
  --color-sky-deep: #6fa3b0;
  --color-sky-soft: #e3eef1;

  /* Warm taupe #9a867e — earth tone from logo */
  --color-taupe: #9a867e;
  --color-taupe-soft: #e6dfd9;

  /* Sand secondary — keeps coastal warmth */
  --color-sand: #e8d5b7;
  --color-sand-deep: #c9a978;

  /* Coral accent #ea9374 — SoilDocs warm CTA color */
  --color-coral: #ea9374;
  --color-coral-hover: #d97c5b;
  --color-coral-soft: #fbe6dd;
  --color-coral-deep: #b35d44;

  --color-success: #437a22;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 1rem; --radius-xl: 1.5rem; --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(13, 42, 54, 0.06);
  --shadow-md: 0 6px 20px rgba(13, 42, 54, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 42, 54, 0.15);

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography matches soildocs.com exactly:
     - Body / paragraph: Poppins
     - Headings (h1–h6): Open Sans
     - Display accent: Open Sans italic (no Gambarino — not part of real brand) */
  --font-body: 'Poppins', -apple-system, system-ui, sans-serif;
  --font-display: 'Open Sans', -apple-system, system-ui, sans-serif;
  --font-editorial: 'Open Sans', 'Poppins', Georgia, serif;

  --content-narrow: 720px;
  --content-default: 1100px;
  --content-wide: 1280px;
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-text-size-adjust: none;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-weight: 800; }
p { text-wrap: pretty; max-width: 65ch; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-hover); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

.container { width: 100%; max-width: var(--content-wide); margin: 0 auto; padding: 0 var(--space-6); }
@media (min-width: 768px) { .container { padding: 0 var(--space-8); } }

.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sand-deep);
  margin-bottom: var(--space-4);
}
.eyebrow-dark { color: var(--color-primary); }
.eyebrow-coral { color: var(--color-coral); }
.eyebrow-light { color: var(--color-sand); }

.section-head { max-width: 720px; margin: 0 auto var(--space-12); text-align: center; }
.section-head h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.section-head p { font-size: var(--text-lg); color: var(--color-text-muted); margin: 0 auto; }
.section-head-light h2, .section-head-light p { color: #f5f1ea; }
.section-head-light p { color: rgba(245, 241, 234, 0.85); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: var(--color-text-inverse); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-text-inverse); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--color-text-inverse); border-color: rgba(245, 241, 234, 0.4); }
.btn-ghost:hover { background: rgba(245, 241, 234, 0.1); color: var(--color-text-inverse); border-color: var(--color-sand); }
.btn-coral { background: var(--color-coral); color: #fff; }
.btn-coral:hover { background: var(--color-coral-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-full { width: 100%; }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--color-divider);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-6); gap: var(--space-6); }
.logo { display: flex; align-items: center; gap: var(--space-3); color: var(--color-primary); font-weight: 900; font-size: var(--text-base); }
.logo:hover { color: var(--color-primary); }
.logo-text { letter-spacing: -0.02em; }
.site-nav { display: none; gap: var(--space-6); }
@media (min-width: 768px) { .site-nav { display: flex; } }
.site-nav a { color: var(--color-text); font-size: var(--text-sm); font-weight: 500; }
.site-nav a:hover { color: var(--color-primary); }
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: var(--radius-full);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover { background: var(--color-surface-offset); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--color-text-inverse);
  overflow: hidden;
  padding: var(--space-24) 0 0;
}
.hero .hero-inner { flex: 1; display: flex; align-items: center; padding-bottom: var(--space-12); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
}
.hero-bg svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-copy { max-width: 760px; }
.hero .eyebrow {
  color: var(--color-sand);
  background: rgba(232, 213, 183, 0.15);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(232, 213, 183, 0.3);
}
.hero h1 {
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-6);
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--color-sand); font-family: var(--font-display); }
.hero .lede {
  font-size: var(--text-lg);
  color: rgba(245, 241, 234, 0.88);
  max-width: 620px;
  margin-bottom: var(--space-8);
}
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-12); }
.hero-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(232, 213, 183, 0.2);
  max-width: 720px;
}
.hero-trust > div { display: flex; flex-direction: column; gap: var(--space-1); }
.hero-trust strong { font-size: var(--text-xl); font-family: var(--font-display); color: var(--color-sand); font-weight: 800; letter-spacing: -0.02em; }
.hero-trust span { font-size: var(--text-xs); color: rgba(245, 241, 234, 0.7); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============ CALCULATOR ============ */
.calc-section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
  background: var(--color-bg);
}
.calc-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
  max-width: var(--content-default);
  margin: 0 auto;
}
@media (min-width: 960px) {
  .calc-grid { grid-template-columns: 1.05fr 1fr; gap: var(--space-10); align-items: start; }
}

.calc-form {
  background: var(--color-surface);
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: var(--space-5);
  min-width: 0;
}
@media (min-width: 640px) { .calc-form { padding: var(--space-8); gap: var(--space-6); } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}
.field label span { font-weight: 400; color: var(--color-text-muted); font-size: var(--text-xs); }
.field-hint { font-size: var(--text-xs); color: var(--color-text-muted); }
.field-hint.error { color: var(--color-coral); }

.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-base);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.range-row { display: flex; align-items: center; gap: var(--space-4); }
.range-row input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  outline: none;
}
.range-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.range-row input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range-row input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--color-surface);
}
.range-row output {
  min-width: 70px;
  text-align: right;
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.radio-group { display: grid; gap: var(--space-2); grid-template-columns: 1fr; }
.radio-group-tight { grid-template-columns: 1fr; }
@media (min-width: 560px) { .radio-group { grid-template-columns: repeat(3, 1fr); } }
.radio-card {
  cursor: pointer;
  position: relative;
}
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card span {
  display: block;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  transition: all var(--transition);
}
.radio-card strong { display: block; font-size: var(--text-sm); font-weight: 700; }
.radio-card em { display: block; font-style: normal; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.radio-card input:checked + span {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  box-shadow: 0 0 0 1px var(--color-primary);
}
.radio-card:hover span { border-color: var(--color-primary); }

.advanced summary {
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  padding: var(--space-3) 0;
  list-style: none;
  display: flex; align-items: center; gap: var(--space-2);
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before {
  content: "+";
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  font-size: var(--text-base);
  font-weight: 700;
  transition: transform var(--transition);
}
.advanced[open] summary::before { content: "−"; }
.adv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding-top: var(--space-3);
}
@media (min-width: 640px) { .adv-grid { grid-template-columns: 1fr 1fr; } }
.check {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.check:hover { background: var(--color-surface-offset); }
.check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--color-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

/* RESULT PANEL */
.calc-result {
  position: sticky; top: 90px;
  background: #273e55;
  color: #f5f1ea;
  padding: var(--space-5);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: var(--space-5);
  min-width: 0;
}
@media (min-width: 640px) { .calc-result { padding: var(--space-8); } }
@media (max-width: 959px) { .calc-result { position: static; } }

.result-region {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8d5b7;
  background: rgba(232, 213, 183, 0.12);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid rgba(232, 213, 183, 0.25);
}
.result-headline { display: flex; flex-direction: column; gap: var(--space-1); }
.result-label { font-size: var(--text-xs); color: rgba(245, 241, 234, 0.7); text-transform: uppercase; letter-spacing: 0.08em; }
.result-price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #f5f1ea;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.result-perft { font-size: var(--text-sm); color: #e8d5b7; }

.result-bars { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4) 0; border-top: 1px solid rgba(232, 213, 183, 0.18); border-bottom: 1px solid rgba(232, 213, 183, 0.18); }
.bar-row { display: grid; grid-template-columns: 1.2fr 2fr auto; gap: var(--space-3); align-items: center; font-size: var(--text-xs); }
.bar-label { color: rgba(245, 241, 234, 0.85); }
.bar { height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: var(--radius-full); overflow: hidden; }
.bar-fill { height: 100%; background: #e8d5b7; border-radius: var(--radius-full); transition: width 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.bar-val { font-weight: 700; color: #e8d5b7; font-variant-numeric: tabular-nums; text-align: right; min-width: 44px; }

.result-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); text-align: center; }
.result-meta > div { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3); background: rgba(245, 241, 234, 0.06); border-radius: var(--radius-md); }
.result-meta span { font-size: 0.7rem; color: rgba(245, 241, 234, 0.7); text-transform: uppercase; letter-spacing: 0.08em; }
.result-meta strong { font-size: var(--text-sm); color: #e8d5b7; }

/* Exposed-wall readout (sum of water depth + freeboard) */
.exposed-readout {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: var(--space-3);
  background: rgba(169, 201, 210, 0.18);
  border: 1px solid rgba(39, 62, 85, 0.18);
  border-left: 4px solid var(--color-coral);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
}
.exposed-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  grid-column: 1; grid-row: 1;
}
.exposed-readout strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  grid-column: 2; grid-row: 1 / span 2;
  align-self: center;
}
.exposed-note {
  font-size: var(--text-xs);
  line-height: 1.45;
  color: rgba(39, 62, 85, 0.78);
  margin-top: 4px;
  grid-column: 1; grid-row: 2;
}

/* Full-width injection alternative card — secondary but persuasive */
.injection-pitch {
  background: #fbe4dc;
  color: var(--color-primary);
  border: 2px dashed var(--color-coral);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.pitch-head { display: flex; flex-direction: column; gap: var(--space-2); }
.badge {
  display: inline-block; align-self: flex-start;
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--color-coral); color: #fff;
  padding: 5px 11px;
  border-radius: var(--radius-full);
}
.badge-coral { background: var(--color-coral); }
.pitch-head h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.2;
}
.pitch-head h3 #inject-savings { color: var(--color-coral); }
.pitch-body {
  font-size: var(--text-sm);
  line-height: 1.55;
  margin: 0;
  color: rgba(39, 62, 85, 0.88);
}
.pitch-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.pitch-side { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.pitch-side span {
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(39, 62, 85, 0.7); font-weight: 700;
}
.pitch-side strong {
  font-size: 1.05rem; font-weight: 800; color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.pitch-side em {
  font-style: normal; font-size: 0.75rem; color: rgba(39, 62, 85, 0.7);
}
.pitch-winner strong { color: var(--color-coral); font-size: 1.2rem; }
.pitch-vs {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(39, 62, 85, 0.55);
}

.result-sublabel {
  display: block;
  font-size: var(--text-xs);
  color: rgba(245, 241, 234, 0.6);
  margin-top: var(--space-2);
  letter-spacing: 0.01em;
}

.result-disclaimer { font-size: var(--text-xs); color: rgba(245, 241, 234, 0.6); text-align: center; }

/* Primary CTA inside dark result panel needs a contrasting color */
.calc-result .btn.btn-primary {
  background: var(--color-coral);
  color: #fff;
  border-color: var(--color-coral);
  font-weight: 700;
}
.calc-result .btn.btn-primary:hover {
  background: #d8553f;
  border-color: #d8553f;
}

/* ============ PROCESS / TIMELINE ============ */
.process {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
  background: var(--color-surface-offset);
}
.timeline {
  list-style: none;
  max-width: var(--content-narrow);
  margin: 0 auto;
  display: flex; flex-direction: column;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 28px; bottom: 28px;
  width: 2px;
  background: var(--color-border);
}
.timeline li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-8);
  position: relative;
}
.timeline li:last-child { padding-bottom: 0; }
.t-marker {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: var(--text-base);
  font-family: var(--font-display);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--color-surface-offset);
}
.t-time { font-size: var(--text-xs); color: var(--color-sand-deep); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-2); }
.t-body h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.t-body p { color: var(--color-text-muted); font-size: var(--text-base); }

/* ============ ALTERNATIVE / SOFT PITCH ============ */
.alt {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
  background: var(--color-bg);
}
.alt-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: start;
}
@media (min-width: 960px) { .alt-inner { grid-template-columns: 1.1fr 1fr; gap: var(--space-16); } }

.alt-copy h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.alt-copy h2 em { color: var(--color-coral); font-style: italic; }
.alt-copy .lede { font-size: var(--text-lg); color: var(--color-text-muted); margin-bottom: var(--space-8); }
.alt-copy .lede em { color: var(--color-text); font-style: italic; }

.signs-grid {
  margin-bottom: var(--space-6);
  padding: var(--space-6);
  background: var(--color-coral-soft);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-coral);
}
.signs-grid h3 { font-size: var(--text-base); margin-bottom: var(--space-3); font-family: var(--font-body); font-weight: 700; }
.signs-grid ul { padding-left: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.signs-grid li { font-size: var(--text-sm); color: var(--color-text); }
.signs-grid li::marker { color: var(--color-coral); }
.signs-replace {
  background: var(--color-surface-offset);
  border-left-color: var(--color-text-muted);
}
.signs-replace li::marker { color: var(--color-text-muted); }

.alt-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
}
@media (max-width: 959px) { .alt-card { position: static; } }
.alt-card-head { margin-bottom: var(--space-5); }
.alt-card-head h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-5);
}
.compare-table th, .compare-table td {
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--color-divider);
  text-align: left;
  font-size: var(--text-sm);
}
.compare-table th { color: var(--color-text-muted); font-weight: 500; width: 40%; }
.compare-table td { font-weight: 700; }
.compare-table td.strike { color: var(--color-text-muted); text-decoration: line-through; text-decoration-color: var(--color-text-faint); }
.compare-table td.win { color: var(--color-coral); }
.case-note { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-5); padding: var(--space-3); background: var(--color-surface-offset); border-radius: var(--radius-md); }

/* ============ LEAD FORM ============ */
.lead-section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
  background: #273e55;
  color: #f5f1ea;
}
.lead-form { max-width: var(--content-narrow); margin: 0 auto; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-bottom: var(--space-6); }
@media (max-width: 600px) { .lead-grid { grid-template-columns: 1fr; } }
.lead-form .field label { color: var(--color-sand); font-weight: 700; }
.lead-form .field input, .lead-form .field textarea {
  background: rgba(245, 241, 234, 0.08);
  border-color: rgba(232, 213, 183, 0.3);
  color: var(--color-text-inverse);
}
.lead-form .field input::placeholder, .lead-form .field textarea::placeholder { color: rgba(245, 241, 234, 0.4); }
.lead-form .field input:focus, .lead-form .field textarea:focus {
  border-color: var(--color-sand);
  background: rgba(245, 241, 234, 0.12);
  box-shadow: 0 0 0 3px rgba(232, 213, 183, 0.15);
}
.field-full { grid-column: 1 / -1; }

.upload-label {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-5);
  border: 2px dashed rgba(232, 213, 183, 0.4);
  border-radius: var(--radius-lg);
  background: rgba(245, 241, 234, 0.04);
  cursor: pointer;
  transition: all var(--transition);
}
.upload-label:hover { border-color: var(--color-sand); background: rgba(245, 241, 234, 0.08); }
.upload-label svg { color: var(--color-sand); flex-shrink: 0; }
.upload-label strong { display: block; color: var(--color-text-inverse); font-weight: 700; }
.upload-label em { display: block; font-style: normal; font-size: var(--text-xs); color: rgba(245, 241, 234, 0.7); margin-top: 2px; }
.upload-label input[type="file"] { display: none; }

.consent .check { background: rgba(245, 241, 234, 0.06); border-color: rgba(232, 213, 183, 0.2); color: rgba(245, 241, 234, 0.85); font-size: var(--text-sm); }
.consent .check:hover { background: rgba(245, 241, 234, 0.1); }

.lead-status { text-align: center; margin-top: var(--space-4); font-size: var(--text-sm); }
.lead-status.success { color: var(--color-sand); }
.lead-status.error { color: var(--color-coral); }

/* ============ FAQ ============ */
.faq { padding: clamp(var(--space-16), 8vw, var(--space-32)) 0; background: var(--color-bg); }
.faq-list { max-width: var(--content-narrow); margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-2); }
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  transition: border-color var(--transition);
}
.faq details[open] { border-color: var(--color-primary); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: var(--text-base);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-primary);
  transition: transform var(--transition);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: var(--space-3); color: var(--color-text-muted); }

/* ============ FOOTER ============ */
.site-footer {
  background: #052c3c;
  color: rgba(245, 241, 234, 0.85);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: var(--space-12); } }
.foot-brand .logo { color: var(--color-sand); margin-bottom: var(--space-4); }
.foot-brand p { font-size: var(--text-sm); max-width: 480px; color: rgba(245, 241, 234, 0.75); }
.foot-brand a { color: var(--color-sand); }
.foot-cols { display: contents; }
@media (min-width: 768px) { .foot-cols { display: flex; gap: var(--space-12); } }
.foot-cols > div { display: flex; flex-direction: column; gap: var(--space-3); }
.foot-cols h4 { color: var(--color-sand); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-body); font-weight: 700; margin-bottom: var(--space-2); }
.foot-cols a { color: rgba(245, 241, 234, 0.85); font-size: var(--text-sm); }
.foot-cols a:hover { color: var(--color-sand); }
.foot-bottom { padding-top: var(--space-6); border-top: 1px solid rgba(232, 213, 183, 0.15); }
.foot-bottom small { color: rgba(245, 241, 234, 0.55); font-size: var(--text-xs); }

/* ============ TOPBAR (announcement) ============ */
.topbar {
  background: #15212e;
  color: #f5f1ea;
  font-size: var(--text-xs);
  border-bottom: 1px solid rgba(169, 201, 210, 0.15);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-4) var(--space-6);
  text-align: center;
}
.topbar-pill {
  background: var(--color-coral);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.topbar-text { color: rgba(245, 241, 234, 0.85); }
.topbar-phone {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--color-sand);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.topbar-phone:hover { color: #fff; }
.topbar-phone svg { color: var(--color-coral); flex-shrink: 0; }
.topbar-phones {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}
.topbar-phone-divider { color: rgba(245, 241, 234, 0.35); }
@media (max-width: 720px) {
  .topbar-text { display: none; }
  .topbar-phones { flex-direction: column; gap: var(--space-1); }
  .topbar-phone-divider { display: none; }
  .topbar-phone { font-size: 0.8125rem; }
}

/* ============ LOGO (official SoilDocs mark) ============ */
/* Official logo is color-on-dark — ~3.3:1 aspect ratio, white wordmark + colored
   wavy-line monogram + teal DOCTORS bar. Always presented on a dark navy ground. */
.logo { display: inline-flex; align-items: center; }
.logo-img {
  display: block;
  height: 70px;
  width: auto;
  padding: 10px 16px 8px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.logo-img-footer {
  height: 84px;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
@media (max-width: 720px) {
  .logo-img { height: 56px; padding: 8px 12px 6px; }
}
@media (max-width: 480px) {
  .logo-img { height: 48px; padding: 6px 10px 4px; }
}

/* ============ HERO PHOTO + OVERLAY ============ */
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 30, 46, 0.78) 0%, rgba(15, 30, 46, 0.62) 38%, rgba(39, 62, 85, 0.42) 65%, rgba(39, 62, 85, 0.22) 100%),
    linear-gradient(180deg, rgba(15, 30, 46, 0.18) 0%, transparent 28%, transparent 70%, rgba(15, 30, 46, 0.45) 100%);
}
.hero h1, .hero .lede, .hero .eyebrow {
  text-shadow: 0 2px 14px rgba(15, 30, 46, 0.85), 0 1px 4px rgba(15, 30, 46, 0.7);
}
.hero .lede strong { color: #fff; }
.hero-accent {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--color-sand);
  font-size: 0.82em;
  margin-top: 0.15em;
}
.eyebrow-on-dark {
  color: var(--color-sand) !important;
  background: rgba(232, 213, 183, 0.15);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(232, 213, 183, 0.3);
}

/* ============ PRESS STRIP ============ */
.press-strip {
  position: relative; z-index: 2;
  background: rgba(15, 30, 46, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(232, 213, 183, 0.15);
  margin-top: var(--space-16);
  color: rgba(245, 241, 234, 0.85);
}
.press-inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-xs);
}
.press-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--color-sand);
  font-size: 0.7rem;
}
.press-name strong { color: #f5f1ea; font-weight: 700; font-size: var(--text-sm); }
.press-name { color: rgba(245, 241, 234, 0.85); }
.press-divider { color: rgba(232, 213, 183, 0.4); }
.press-detail { color: rgba(245, 241, 234, 0.65); font-style: italic; }

/* ============ SERVICES ============ */
.services {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
  background: var(--color-surface);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-16);
}
.service-card {
  position: relative;
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-coral);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}
.service-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
  max-width: none;
}

/* ============ PROJECT SHOWCASE ============ */
.project-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  background: var(--color-surface-offset);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--color-divider);
}
@media (min-width: 768px) {
  .project-showcase {
    grid-template-columns: 1.1fr 1fr;
    padding: var(--space-8);
    gap: var(--space-10);
  }
}
.project-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0a1922;
  box-shadow: var(--shadow-md);
}
.project-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.project-tag {
  position: absolute;
  bottom: var(--space-3); left: var(--space-3);
  background: rgba(15, 30, 46, 0.85);
  color: var(--color-sand);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}
.project-copy h3 {
  font-size: var(--text-xl);
  margin: var(--space-3) 0 var(--space-4);
}
.project-copy p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

/* ============ PROCESS CALLOUT ============ */
.process-callout {
  margin-top: var(--space-12);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  background: var(--color-primary);
  color: #f5f1ea;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .process-callout {
    grid-template-columns: 0.9fr 1.1fr;
    padding: var(--space-8);
    gap: var(--space-10);
  }
}
.process-callout-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0a1922;
  box-shadow: var(--shadow-md);
}
.process-callout-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.process-callout-copy h3 {
  font-size: var(--text-xl);
  color: #f5f1ea;
  margin: var(--space-3) 0 var(--space-4);
}
.process-callout-copy p {
  color: rgba(245, 241, 234, 0.88);
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
  max-width: none;
}
.process-callout-copy .eyebrow-coral { color: var(--color-coral); }

/* ============ NCFI SYSTEMS ============ */
.systems {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
  background: var(--color-surface-offset);
}
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.system-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column;
  transition: all var(--transition);
}
.system-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.system-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--color-surface-offset);
  margin-bottom: var(--space-4);
  display: flex; align-items: center; justify-content: center;
}
.system-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.system-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.system-tag {
  display: inline-block; align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.system-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  max-width: none;
}
.system-uses {
  list-style: none;
  padding: 0;
  display: flex; flex-direction: column; gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.system-uses li {
  font-size: var(--text-xs);
  color: var(--color-text);
  padding-left: var(--space-5);
  position: relative;
}
.system-uses li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 12px; height: 2px;
  background: var(--color-coral);
  border-radius: var(--radius-full);
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) 0;
  background: var(--color-bg);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-12);
}
.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  margin: 0;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -8px; left: var(--space-5);
  font-family: var(--font-editorial), Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--color-coral);
  font-style: italic;
}
.testimonial blockquote {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 var(--space-5);
  font-style: italic;
  padding-top: var(--space-4);
  max-width: none;
}
.testimonial figcaption {
  display: flex; align-items: center; gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.testimonial figcaption strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 700;
}
.testimonial figcaption em {
  display: block;
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============ FINANCING CARD ============ */
.financing-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
  background: linear-gradient(135deg, var(--color-coral-soft) 0%, var(--color-sand) 100%);
  border: 1px solid var(--color-coral);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: var(--content-default);
  margin: 0 auto;
}
@media (min-width: 640px) {
  .financing-card {
    grid-template-columns: auto 1fr;
    gap: var(--space-8);
    padding: var(--space-8) var(--space-10);
  }
}
.fin-badge {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--color-coral);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  margin: 0 auto;
}
.fin-rate {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.fin-badge span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}
.fin-copy h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  color: var(--color-primary);
}
.fin-copy p {
  color: var(--color-text);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
  max-width: 56ch;
}

/* ============ LEAD DIRECT CONTACT ============ */
.lead-direct {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(232, 213, 183, 0.2);
  font-size: var(--text-sm);
  color: rgba(245, 241, 234, 0.7);
}
.lead-direct a {
  color: var(--color-sand);
  font-weight: 700;
  text-decoration: none;
}
.lead-direct a:hover { color: #f5f1ea; }
.lead-direct-divider { color: rgba(232, 213, 183, 0.4); }

/* ============ FOOTER ADDITIONS ============ */
.foot-social {
  display: flex; gap: var(--space-3);
  margin-top: var(--space-5);
}
.foot-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(245, 241, 234, 0.08);
  color: var(--color-sand);
  border: 1px solid rgba(232, 213, 183, 0.18);
  transition: all var(--transition);
}
.foot-social a:hover {
  background: var(--color-coral);
  color: #fff;
  border-color: var(--color-coral);
  transform: translateY(-2px);
}
.foot-address {
  font-size: var(--text-xs);
  color: rgba(245, 241, 234, 0.6);
  margin-top: var(--space-2);
  display: inline-block;
  line-height: 1.5;
}
.foot-office {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  color: var(--color-sand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-2);
}
.foot-office:first-of-type { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   DAMAGE-SEVERITY TRIAGE FIELD (top of calculator)
   ============================================================ */
.field-triage { margin-bottom: 1.5rem; }
.damage-group { display: flex; flex-direction: column; gap: 0.5rem; }
.damage-card { position: relative; transition: border-color 0.18s, background 0.18s; }
.damage-card.damage-minor    input:checked + span { color: var(--color-coral-deep); }
.damage-card.damage-moderate input:checked + span { color: var(--color-primary); }
.damage-card.damage-severe   input:checked + span { color: var(--color-primary-active); }
.damage-card input:checked + span::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
}
.damage-card.damage-minor    input:checked ~ span,
.damage-card.damage-minor:has(input:checked) {
  border-color: var(--color-coral); background: var(--color-coral-soft);
}
.damage-card.damage-moderate:has(input:checked) {
  border-color: var(--color-sky-deep); background: var(--color-sky-soft);
}
.damage-card.damage-severe:has(input:checked) {
  border-color: var(--color-primary); background: var(--color-primary-soft);
}

/* ============================================================
   RESULT PANEL MODE SWITCHING
   ============================================================ */
.result-mode-badge {
  display: none;
  background: var(--color-coral);
  color: #fff;
  font-family: var(--font-heading, "Open Sans"), sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
  margin-bottom: 0.6rem;
}
.calc-result[data-mode="injection"] .result-mode-badge { display: inline-block; }
.calc-result[data-mode="injection"] .result-label { color: var(--color-coral); }

/* Injection-mode bars (hidden by default) */
.result-bars-injection { display: none; }
.calc-result[data-mode="injection"] .result-bars { display: none; }
.calc-result[data-mode="injection"] .result-bars-injection { display: block; }
.calc-result[data-mode="injection"] .result-bars-injection .bar-fill { background: var(--color-coral); }
.calc-result[data-mode="injection"] .injection-pitch { display: none !important; }

/* ============================================================
   FINAL INJECTION CTA (full coral "red window")
   ============================================================ */
.final-injection-cta {
  background: linear-gradient(135deg, var(--color-coral-deep) 0%, var(--color-coral) 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 5rem) 0;
  position: relative;
  overflow: hidden;
}
.final-injection-cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,0.08) 0, transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(0,0,0,0.10) 0, transparent 40%);
  pointer-events: none;
}
.fic-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.fic-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-family: var(--font-heading, "Open Sans"), sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.fic-headline {
  font-family: var(--font-heading, "Open Sans"), sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 1rem;
}
.fic-sub {
  font-family: var(--font-body, "Poppins"), sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.94);
  margin: 0 auto 2rem;
  max-width: 680px;
}
.fic-sub strong { color: #fff; font-weight: 700; }

.fic-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}
.fic-side {
  display: flex; flex-direction: column; gap: 0.35rem;
  text-align: center;
}
.fic-side-label {
  font-family: var(--font-heading, "Open Sans"), sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.fic-side strong {
  font-family: var(--font-heading, "Open Sans"), sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #fff;
  line-height: 1;
}
.fic-strike {
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.7);
  text-decoration-thickness: 3px;
  color: rgba(255,255,255,0.8) !important;
}
.fic-side em {
  font-style: normal;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.35;
}
.fic-arrow {
  font-size: 2rem;
  color: rgba(255,255,255,0.8);
  font-weight: 700;
}
@media (max-width: 640px) {
  .fic-compare { grid-template-columns: 1fr; }
  .fic-arrow { transform: rotate(90deg); }
}

.fic-cta {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
  margin-bottom: 1rem;
}
.btn-fic-primary {
  background: #fff;
  color: var(--color-coral-deep);
  font-weight: 700;
  padding: 0.95rem 1.6rem;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-heading, "Open Sans"), sans-serif;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.btn-fic-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.24); }
.btn-fic-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.55);
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-heading, "Open Sans"), sans-serif;
  transition: background 0.18s, border-color 0.18s;
}
.btn-fic-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.fic-fine {
  display: block;
  color: rgba(255,255,255,0.82);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Hero stats live-update flash */
.hero-trust strong { transition: color 0.3s; }
.hero-trust strong.hero-stat-flash { color: var(--color-coral); }

/* ============================================================
   EROSION FACTS SECTION
   ============================================================ */
.erosion-facts {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-sky-soft, #eaf2f5) 100%);
  padding: 88px 0 96px;
}
.erosion-facts .section-head { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.erosion-facts h2 { font-family: 'Open Sans', sans-serif; font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.15; color: var(--color-primary); margin: 0 0 18px; }
.erosion-facts h2 .hero-accent { color: var(--color-coral); font-style: italic; }
.erosion-facts > .container > .section-head > p { font-size: 1.05rem; line-height: 1.6; color: #4a5e75; }

.erosion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0 auto;
  max-width: 1200px;
}
.erosion-card {
  background: #fff;
  border: 1px solid rgba(39, 62, 85, 0.08);
  border-radius: 18px;
  padding: 32px 28px 30px;
  box-shadow: 0 12px 32px rgba(39, 62, 85, 0.06);
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.erosion-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(39, 62, 85, 0.1); }
.erosion-card-feature {
  background: linear-gradient(160deg, var(--color-primary) 0%, #1f3146 100%);
  color: #fff;
  border: none;
}
.erosion-card-feature h3 { color: #fff; }
.erosion-card-feature p { color: rgba(255, 255, 255, 0.88); }
.erosion-card-feature a { color: var(--color-coral); text-decoration: underline; text-decoration-color: rgba(234, 147, 116, 0.5); }
.erosion-card-feature a:hover { text-decoration-color: var(--color-coral); }

.erosion-num {
  font-family: 'Open Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 4.5vw, 3.6rem);
  line-height: 1;
  color: var(--color-coral);
  margin-bottom: 4px;
}
.erosion-card-feature .erosion-num { color: var(--color-coral); }
.erosion-unit {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: #8a99ad;
  margin-bottom: 18px;
}
.erosion-card-feature .erosion-unit { color: rgba(255, 255, 255, 0.65); }
.erosion-card h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 14px;
  line-height: 1.3;
}
.erosion-card.erosion-card-feature h3 { color: #fff; }
.erosion-card.erosion-card-feature p { color: rgba(255, 255, 255, 0.88); }
.erosion-card p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.96rem;
  line-height: 1.55;
  color: #4a5e75;
  margin: 0;
}
.erosion-card p a { color: var(--color-coral); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }

.erosion-insight {
  max-width: 1000px;
  margin: 48px auto 0;
  padding: 24px 32px;
  background: rgba(234, 147, 116, 0.08);
  border-left: 4px solid var(--color-coral);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--color-primary);
}
.erosion-insight strong { color: var(--color-coral-deep, #c66f50); }
.erosion-insight em { font-style: italic; color: var(--color-primary); font-weight: 600; }

@media (max-width: 900px) {
  .erosion-grid { grid-template-columns: 1fr; }
  .erosion-facts { padding: 64px 0 72px; }
}

/* ============================================================
   PAIN OF REPLACEMENT — ROTATING GALLERY
   ============================================================ */
.pain-section {
  background:
    linear-gradient(160deg, rgba(39, 62, 85, 0.86) 0%, rgba(29, 44, 63, 0.92) 100%),
    url('img/pain-section-bg.png') center / cover no-repeat;
  color: #fff;
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}
.pain-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(234, 147, 116, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 88% 82%, rgba(169, 201, 210, 0.10) 0%, transparent 45%);
  pointer-events: none;
}
.pain-section > .container { position: relative; z-index: 1; }
.pain-section .section-head h2 { color: #fff; font-family: 'Open Sans', sans-serif; font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.15; margin: 0 0 18px; }
.pain-section .section-head > p { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; line-height: 1.6; max-width: 760px; margin: 0 auto; }
.pain-section .eyebrow-light { color: var(--color-coral); }

.pain-gallery {
  max-width: 1080px;
  margin: 56px auto 0;
}
.pain-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  background: #0d1622;
}
.pain-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms ease;
}
.pain-img.is-active { opacity: 1; z-index: 2; }

.pain-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
}
.pain-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pain-arrow:hover { background: var(--color-coral); border-color: var(--color-coral); transform: scale(1.06); }
.pain-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pain-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.pain-dot.is-active { background: var(--color-coral); transform: scale(1.3); }

.pain-caption {
  margin-top: 18px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  font-style: italic;
}

.pain-cta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.pain-cta-or {
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.btn-ghost-on-dark {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}
.btn-ghost-on-dark:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }

@media (max-width: 700px) {
  .pain-section { padding: 64px 0 72px; }
  .pain-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
}

/* ============================================================
   MOBILE — hero + header refinements
   ============================================================ */
@media (max-width: 880px) {
  /* Header: stack logo + nav cleanly, allow nav to wrap */
  .site-header .header-inner {
    flex-wrap: wrap;
    gap: var(--space-3);
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }
  .site-nav {
    order: 3;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3) var(--space-4);
    border-top: 1px solid rgba(39, 62, 85, 0.12);
    padding-top: var(--space-3);
  }
  .site-nav a { font-size: 0.92rem; }

  /* Topbar: keep on one row, smaller text, allow horizontal scroll if absolutely needed */
  .topbar { font-size: 0.78rem; }
  .topbar .container { gap: var(--space-3); flex-wrap: wrap; justify-content: center; row-gap: 6px; }

  /* Hero — proper mobile composition */
  .hero { min-height: auto; padding-top: var(--space-8); }
  .hero .hero-inner { padding-bottom: var(--space-10); align-items: flex-start; }
  .hero-copy { max-width: 100%; }
  .hero h1 {
    font-size: clamp(2.05rem, 8.5vw, 2.85rem);
    line-height: 1.08;
    word-break: normal;
    overflow-wrap: break-word;
  }
  .hero .lede {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 100%;
  }
  .hero .eyebrow {
    font-size: 0.72rem;
    padding: 6px 12px;
    display: inline-block;
  }
  .hero-cta { gap: var(--space-2); margin-bottom: var(--space-8); width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-trust {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    padding-top: var(--space-6);
  }
  .hero-trust strong { font-size: 1.15rem; }
  .hero-trust span { font-size: 0.65rem; }

  /* Hero image: reframe so equipment shows behind copy, not pushed off-screen */
  .hero-photo { object-position: center center; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(15, 30, 46, 0.72) 0%, rgba(15, 30, 46, 0.60) 55%, rgba(39, 62, 85, 0.52) 100%);
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.4rem); }
  .hero .lede { font-size: 0.95rem; }
  .hero-trust { grid-template-columns: 1fr 1fr; }
  .site-nav { gap: var(--space-2) var(--space-3); }
  .site-nav a { font-size: 0.85rem; }
}

/* ========== PUNCH LIST SECTION ========== */
.punch-list {
  background: linear-gradient(180deg, #f7f4f1 0%, #ffffff 100%);
  padding: var(--space-12) 0;
  border-top: 1px solid rgba(39, 62, 85, 0.08);
  border-bottom: 1px solid rgba(39, 62, 85, 0.08);
}
.punch-list .section-head { max-width: 820px; margin: 0 auto var(--space-9); text-align: center; }
.punch-list .section-head h2 { color: var(--color-primary); }

.punch-grid {
  list-style: none;
  counter-reset: punch;
  margin: 0 0 var(--space-10);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-5);
}
.punch-item {
  background: #ffffff;
  border: 1px solid rgba(39, 62, 85, 0.10);
  border-radius: 12px;
  padding: var(--space-6);
  position: relative;
  box-shadow: 0 1px 3px rgba(39, 62, 85, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.punch-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(39, 62, 85, 0.08);
  border-color: rgba(234, 147, 116, 0.45);
}
.punch-num {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--color-coral);
  margin-bottom: var(--space-2);
}
.punch-item h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 var(--space-3);
  line-height: 1.3;
}
.punch-item p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a5260;
  margin: 0;
}
.punch-item em { color: var(--color-primary); font-style: normal; font-weight: 600; }

.punch-share {
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 14px;
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  box-sizing: border-box;
}
.punch-share-copy { flex: 1 1 320px; min-width: 0; }
.punch-share-copy h3 { color: #ffffff; margin: 0 0 var(--space-2); font-size: 1.35rem; }
.punch-share-copy p { margin: 0; color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.punch-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.punch-share-actions .btn-ghost {
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
}
.punch-share-actions .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}
/* Email = primary action — coral, not navy-on-navy */
.punch-share .btn.btn-primary {
  background: var(--color-coral);
  border-color: var(--color-coral);
  color: #ffffff;
  font-weight: 700;
}
.punch-share .btn.btn-primary:hover {
  background: #d8553f;
  border-color: #d8553f;
}
/* Belt-and-suspenders: ensure inner spacing even if container padding gets clipped */
.punch-share { box-sizing: border-box; }
@media (max-width: 900px) {
  .punch-share { padding: var(--space-6) var(--space-5); }
}

/* Highlight when scrolled into focus from result-panel CTA */
.punch-list.punch-flash {
  animation: punchFlash 1.6s ease-out;
}
@keyframes punchFlash {
  0%   { box-shadow: inset 0 0 0 0 rgba(234, 147, 116, 0); }
  20%  { box-shadow: inset 0 0 0 4px rgba(234, 147, 116, 0.35); }
  100% { box-shadow: inset 0 0 0 0 rgba(234, 147, 116, 0); }
}

@media (max-width: 640px) {
  .punch-grid { grid-template-columns: 1fr; }
  .punch-share { padding: var(--space-5); flex-direction: column; align-items: stretch; }
  .punch-share-actions { width: 100%; }
  .punch-share-actions .btn { flex: 1 1 auto; text-align: center; }
}

/* Result-panel link to punch list — always sits on navy .calc-result */
.result-punch-cta {
  margin-top: var(--space-5);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: rgba(234, 147, 116, 0.16);
  border-left: 4px solid var(--color-coral);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #f5f1ea;
}
.result-punch-cta strong {
  display: block;
  margin-bottom: 0.625rem;
  color: #ffffff;
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.result-punch-cta a {
  color: #f4a888;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.result-punch-cta a:hover { color: #ffb89a; }

/* ============================================================
   LEAD-HELP LIST (intro to the lead form)
   ============================================================ */
.lead-help-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  gap: var(--space-2);
  text-align: left;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.lead-help-list li {
  padding: var(--space-2) var(--space-3);
  background: rgba(255,255,255,0.06);
  border-left: 3px solid var(--color-coral);
  border-radius: 6px;
  color: rgba(255,255,255,0.92);
  font-size: 0.98rem;
  line-height: 1.55;
}
.lead-help-list li strong { color: #fff; }

/* ============================================================
   CHECK-CARD GROUP (lead-form "what would you like from us")
   ============================================================ */
.check-group {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.check-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: #fff;
  border: 2px solid #e3e8ec;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.check-card:hover {
  border-color: var(--color-primary);
  background: #f8fbfd;
}
.check-card input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--color-coral);
  cursor: pointer;
}
.check-card span {
  display: block;
  line-height: 1.45;
}
.check-card span strong {
  display: block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
}
.check-card span em {
  display: block;
  font-style: normal;
  color: #5e6f7c;
  font-size: 0.88rem;
}
.check-card:has(input:checked) {
  border-color: var(--color-coral);
  background: #fff7f3;
  box-shadow: 0 2px 8px rgba(234, 147, 116, 0.18);
}

/* ============================================================
   FIELD-SUBLABEL helper
   ============================================================ */
.field-sublabel {
  font-weight: 400;
  font-size: 0.85rem;
  color: #6b7a85;
  margin-left: 4px;
}

/* ============================================================
   LEAD-FLASH highlight (when triggered from punch-list buttons)
   ============================================================ */
.lead-flash {
  animation: leadFlash 1.8s ease-out;
}
@keyframes leadFlash {
  0%   { box-shadow: 0 0 0 0 rgba(234, 147, 116, 0); }
  20%  { box-shadow: 0 0 0 6px rgba(234, 147, 116, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(234, 147, 116, 0); }
}

/* ============================================================
   DRIVERS SECTION — Other erosion drivers on your property
   ============================================================ */
.drivers-section {
  background: #f4f6f8;
  padding: var(--space-12) 0;
}
.driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.driver-card {
  background: #fff;
  border-radius: 12px;
  padding: var(--space-5);
  border: 1px solid #e3e8ec;
  box-shadow: 0 1px 3px rgba(39, 62, 85, 0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.driver-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  margin-bottom: var(--space-2);
}
.driver-card h3 {
  color: var(--color-primary);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}
.driver-card p {
  color: #3d4a55;
  font-size: 0.96rem;
  line-height: 1.6;
  margin: 0;
}
.driver-card p.driver-fix {
  background: #f0f6f9;
  border-left: 3px solid var(--color-primary);
  padding: var(--space-2) var(--space-3);
  border-radius: 4px;
  font-size: 0.92rem;
}
.driver-card p.driver-source {
  margin-top: auto;
  font-size: 0.82rem;
  color: #6b7a85;
}
.driver-card a {
  color: var(--color-primary);
  text-decoration: underline;
}
.drivers-cta {
  margin-top: var(--space-8);
  background: #fff;
  border-radius: 12px;
  padding: var(--space-6);
  border: 1px solid #e3e8ec;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(39, 62, 85, 0.06);
}
.drivers-cta p {
  flex: 1 1 360px;
  margin: 0;
  color: #3d4a55;
  font-size: 1rem;
  line-height: 1.55;
}
.drivers-cta p strong {
  display: block;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* Reassurance microcopy under CTA buttons */
.cta-reassurance {
  flex: 1 1 100%;
  margin: var(--space-3) auto 0;
  max-width: 620px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(39, 62, 85, 0.72);
  font-style: italic;
  font-weight: 400;
  text-align: center;
}
.cta-reassurance-center { text-align: center; }
.cta-reassurance-dark {
  color: rgba(245, 241, 234, 0.72);
}
/* Override drivers-cta flex sibling rule so reassurance occupies its own centered line */
.drivers-cta .cta-reassurance {
  flex: 1 1 100%;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(39, 62, 85, 0.72);
  font-size: 0.875rem;
}
@media (max-width: 640px) {
  .drivers-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .drivers-cta .btn {
    width: 100%;
  }
}

/* ============ TECHNICAL DEEP-DIVE ============ */
.technical {
  background: #f5f1ec;
  padding: 96px 0;
}
.technical .section-head {
  max-width: 760px;
  margin-bottom: 56px;
}
.technical .section-head p em {
  font-style: italic;
  color: var(--color-primary);
}

/* Layer 1: homeowner overview */
.tech-overview {
  margin-bottom: 80px;
}
.tech-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.tech-step {
  background: #fff;
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid rgba(39, 62, 85, 0.08);
  position: relative;
}
.tech-step-num {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--color-coral);
  margin-bottom: 12px;
}
.tech-step h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.25rem;
  color: var(--color-primary);
  margin: 0 0 12px;
  line-height: 1.3;
}
.tech-step p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #3d4a55;
  margin: 0;
}
.tech-step p a {
  color: var(--color-coral);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.tech-step p strong {
  color: var(--color-primary);
}

.tech-why {
  background: var(--color-primary);
  color: #fff;
  border-radius: 14px;
  padding: 40px 44px;
}
.tech-why h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.4rem;
  margin: 0 0 24px;
  color: #fff;
}
.tech-why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}
.tech-why-list li {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #d6dde4;
  padding-left: 22px;
  position: relative;
}
.tech-why-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-coral);
  font-weight: 700;
}
.tech-why-list li strong {
  color: #fff;
  font-weight: 600;
}
.tech-why-list li em {
  color: #fff;
  font-style: italic;
  opacity: 0.9;
}
.tech-why-list li a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 3px;
}

/* Layer 2: engineering appendix */
.tech-appendix-head {
  max-width: 760px;
  margin-bottom: 32px;
}
.tech-appendix-head h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.6rem;
  color: var(--color-primary);
  margin: 8px 0 12px;
  line-height: 1.25;
}
.tech-appendix-head p {
  font-size: 1rem;
  line-height: 1.6;
  color: #3d4a55;
  margin: 0;
}

.tech-spec {
  background: #fff;
  border: 1px solid rgba(39, 62, 85, 0.12);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.tech-spec summary {
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  position: relative;
  transition: background 0.2s;
}
.tech-spec summary::-webkit-details-marker { display: none; }
.tech-spec summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--color-coral);
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s;
}
.tech-spec[open] summary::after {
  content: "−";
}
.tech-spec summary:hover {
  background: #fafafa;
}
.tech-spec-name {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}
.tech-spec-tag {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7884;
  font-weight: 600;
  margin-left: auto;
  margin-right: 14px;
}
.tech-spec-body {
  padding: 4px 24px 28px;
  border-top: 1px solid rgba(39, 62, 85, 0.08);
}
.tech-spec-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #3d4a55;
  margin: 16px 0 24px;
}
.tech-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 24px 0 8px;
  letter-spacing: 0.02em;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 12px 0 16px;
}
.tech-table thead th {
  background: #f5f1ec;
  text-align: left;
  padding: 10px 12px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  border-bottom: 2px solid rgba(39, 62, 85, 0.12);
}
.tech-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(39, 62, 85, 0.06);
  color: #3d4a55;
  vertical-align: top;
}
.tech-table tbody tr:last-child td {
  border-bottom: none;
}
.tech-table tbody td:last-child {
  font-weight: 600;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.tech-table-tight tbody td,
.tech-table-tight thead th {
  padding: 7px 12px;
  font-size: 0.88rem;
}

.tech-source {
  font-size: 0.85rem;
  color: #6b7884;
  margin: 16px 0 0;
  font-style: italic;
}
.tech-source a {
  color: var(--color-coral);
  font-weight: 600;
  text-decoration: none;
  font-style: normal;
  border-bottom: 1px solid currentColor;
}

.tech-method,
.tech-not-list {
  margin: 14px 0 0;
  padding-left: 22px;
}
.tech-method li,
.tech-not-list li {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #3d4a55;
  margin-bottom: 12px;
}
.tech-method li strong,
.tech-not-list li strong {
  color: var(--color-primary);
}
.tech-not-list {
  list-style: none;
  padding-left: 0;
}
.tech-not-list li {
  padding-left: 22px;
  position: relative;
}
.tech-not-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--color-coral);
  font-weight: 700;
}
.tech-method li a,
.tech-spec-body p a {
  color: var(--color-coral);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* Responsive */
@media (max-width: 900px) {
  .tech-overview-grid {
    grid-template-columns: 1fr;
  }
  .tech-why-list {
    grid-template-columns: 1fr;
  }
  .tech-why {
    padding: 28px 24px;
  }
}
@media (max-width: 640px) {
  .technical {
    padding: 64px 0;
  }
  .tech-spec summary {
    flex-wrap: wrap;
    padding: 16px 18px;
  }
  .tech-spec-tag {
    margin-left: 0;
    width: 100%;
    order: 3;
  }
  .tech-spec-body {
    padding: 4px 18px 22px;
  }
  .tech-table {
    font-size: 0.85rem;
  }
  .tech-table thead th,
  .tech-table tbody td {
    padding: 8px 8px;
  }
}

/* ============================================================
   WARRANTY TRUTH SECTION (#warranty-truth)
   ============================================================ */
.warranty-truth {
  padding: var(--space-12) 0;
  background: linear-gradient(180deg, #f6efe7 0%, #efe6da 100%);
  border-top: 1px solid rgba(39,62,85,0.08);
  border-bottom: 1px solid rgba(39,62,85,0.08);
}
.warranty-truth .section-head { max-width: 820px; margin: 0 auto var(--space-8); text-align: center; }
.warranty-truth .section-head h2 { margin-top: var(--space-2); font-size: clamp(1.75rem, 3.4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.015em; color: var(--color-primary); }
.warranty-truth .section-head p { margin-top: var(--space-3); font-size: 1.0625rem; line-height: 1.6; color: rgba(39,62,85,0.78); }

.wt-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
  margin-bottom: var(--space-8);
}
.wt-card {
  background: #ffffff;
  border: 1px solid rgba(39,62,85,0.12);
  border-radius: 14px;
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  box-shadow: 0 2px 10px rgba(39,62,85,0.04);
}
.wt-card-feature {
  background: #273e55;
  border-color: #273e55;
  color: #f5f1ea;
}
.wt-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(39,62,85,0.6);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(39,62,85,0.12);
}
.wt-card-feature .wt-tag { color: rgba(245,241,234,0.7); border-bottom-color: rgba(245,241,234,0.18); }
.wt-tag-coral { color: var(--color-coral); }
.wt-card-feature .wt-tag-coral { color: #f4a888; border-bottom-color: rgba(244,168,136,0.35); }
.wt-card h3 {
  font-size: 1.875rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-primary);
  margin: 0;
}
.wt-card-feature h3 { color: #ffffff; }
.wt-lede {
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
}
.wt-card-feature .wt-lede { color: #ffd7c2; }
.wt-card p:not(.wt-lede) {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(39,62,85,0.82);
  margin: 0;
}
.wt-card-feature p:not(.wt-lede) { color: rgba(245,241,234,0.88); }
.wt-card em { font-style: italic; }
.wt-card strong { color: var(--color-primary); }
.wt-card-feature strong { color: #ffffff; }

.wt-feature-ours {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(234, 147, 116, 0.45);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.wt-card-feature .wt-feature-ours { color: rgba(245,241,234,0.92); }
.wt-card-feature .wt-feature-ours strong { color: #ffb89a; }

/* Engineer block */
.wt-engineer {
  background: #ffffff;
  border: 1px solid rgba(39,62,85,0.12);
  border-left: 4px solid var(--color-coral);
  border-radius: 14px;
  padding: var(--space-7);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-7);
  box-shadow: 0 2px 10px rgba(39,62,85,0.04);
}
.wt-engineer-head h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  margin-top: var(--space-2);
}
.wt-engineer-body p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(39,62,85,0.85);
  margin: 0 0 var(--space-4) 0;
}
.wt-engineer-quote {
  font-style: italic;
  font-size: 1.125rem !important;
  line-height: 1.5 !important;
  color: var(--color-primary) !important;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--color-coral);
  background: rgba(234,147,116,0.08);
  border-radius: 0 8px 8px 0;
  margin: 0 0 var(--space-4) 0;
}
.wt-engineer-list {
  list-style: none; padding: 0; margin: 0 0 var(--space-4) 0;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.wt-engineer-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(39,62,85,0.85);
}
.wt-engineer-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-coral);
  font-weight: 700;
}
.wt-engineer-list strong { color: var(--color-primary); }
.wt-engineer-tail {
  border-top: 1px solid rgba(39,62,85,0.12);
  padding-top: var(--space-4);
  margin-top: var(--space-4) !important;
  font-weight: 500;
  color: var(--color-primary) !important;
}
.wt-engineer a { color: var(--color-coral); text-decoration: underline; text-underline-offset: 2px; }

.wt-fineprint {
  margin-top: var(--space-6);
  font-size: 0.8125rem;
  color: rgba(39,62,85,0.6);
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .wt-grid { grid-template-columns: 1fr; }
  .wt-engineer { grid-template-columns: 1fr; padding: var(--space-6); gap: var(--space-5); }
}
@media (max-width: 640px) {
  .warranty-truth { padding: var(--space-9) 0; }
  .wt-card { padding: var(--space-5); }
  .wt-card h3 { font-size: 1.625rem; }
}

/* ============================================================
   LEAD-GEN MODAL (gates Email / SMS / PDF on punch list)
   ============================================================ */
.pdf-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem) 1rem;
  overflow-y: auto;
}
.pdf-gate.is-open {
  display: flex;
}
.pdf-gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 32, 45, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: pdfGateFade 0.22s ease-out;
  z-index: 0;
}
.pdf-gate-modal {
  position: relative;
  z-index: 1;
  background: #ffffff;
  color: var(--color-text);
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 24px 64px rgba(20, 32, 45, 0.35);
  animation: pdfGateRise 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}
@keyframes pdfGateFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pdfGateRise {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.pdf-gate-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(39, 62, 85, 0.06);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease;
}
.pdf-gate-close:hover {
  background: rgba(39, 62, 85, 0.14);
}
.pdf-gate-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: var(--space-2);
}
.pdf-gate-modal h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.7rem);
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0 0 var(--space-2);
}
.pdf-gate-sub {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 var(--space-5);
}
.pdf-gate-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.pdf-gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.pdf-gate-grid .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.pdf-gate-grid label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-primary);
}
.pdf-gate-grid .req {
  color: var(--color-coral);
}
.pdf-gate-grid input {
  border: 1.5px solid rgba(39, 62, 85, 0.18);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.95rem;
  background: #fafafa;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.pdf-gate-grid input:focus {
  outline: none;
  border-color: var(--color-coral);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(234, 147, 116, 0.18);
}
.pdf-gate-grid input.is-invalid {
  border-color: #c8392a;
  background: #fff5f3;
}
.pdf-gate-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  cursor: pointer;
}
.pdf-gate-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--color-coral);
  flex-shrink: 0;
}
.pdf-gate-submit {
  width: 100%;
  justify-content: center;
}
.pdf-gate-finetext {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* SUCCESS STEP */
.pdf-gate-step-success {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  text-align: center;
}
.pdf-gate-step[hidden] { display: none !important; }
.pdf-gate-success-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.pdf-gate-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(94, 168, 110, 0.14);
  color: #2f7a3f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.pdf-gate-step-success h2 {
  margin: 0;
  color: var(--color-primary);
}
.pdf-gate-step-success > p,
#pdf-gate-delivery-msg {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}
.pdf-gate-download {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.pdf-gate-matches {
  text-align: left;
  background: #faf7f2;
  border: 1px solid rgba(39, 62, 85, 0.1);
  border-radius: 14px;
  padding: var(--space-5);
  margin-top: var(--space-2);
}
.pdf-gate-matches h3 {
  color: var(--color-primary);
  font-size: 1.05rem;
  margin: 0 0 var(--space-3);
}
.pdf-gate-matches-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.pdf-gate-match-card {
  background: #ffffff;
  border: 1.5px solid rgba(39, 62, 85, 0.1);
  border-radius: 12px;
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pdf-gate-match-card.is-us {
  border-color: var(--color-coral);
  background: linear-gradient(180deg, #fff7f3 0%, #ffffff 100%);
}
.pdf-gate-match-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.pdf-gate-match-name {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
  margin: 0;
}
.pdf-gate-match-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(234, 147, 116, 0.16);
  color: #b35336;
}
.pdf-gate-match-meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
}
.pdf-gate-match-blurb {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}
.pdf-gate-match-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.pdf-gate-match-actions a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-coral);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.pdf-gate-match-empty {
  background: #ffffff;
  border: 1.5px dashed rgba(39, 62, 85, 0.2);
  border-radius: 12px;
  padding: var(--space-4);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  text-align: left;
}
.pdf-gate-matches-fineprint {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}
.pdf-gate-done {
  align-self: center;
  margin-top: 0;
}

/* Mobile */
@media (max-width: 560px) {
  .pdf-gate-grid { grid-template-columns: 1fr; }
  .pdf-gate-modal { padding: 1.25rem 1.1rem; border-radius: 14px; }
}
