/* ============================================================
   ScopePilot — Design Tokens
   Signature: the "scope sheet" — a printed-estimate document
   motif (dotted line-items, tabular mono numbers, stamps) that
   ties the visual language directly to the product: turning a
   messy jobsite into a clean, stamped, professional document.
   ============================================================ */

:root {
  /* Color */
  --ink: #171B21;          /* near-black charcoal-navy, dark sections */
  --ink-soft: #232933;      /* card surface on dark */
  --ink-border: rgba(244, 240, 230, 0.12);
  --paper: #F7F4EC;         /* warm blueprint-paper background */
  --paper-alt: #EEE8D9;     /* secondary paper tone for alternating sections */
  --paper-line: #DCD3BC;    /* hairline rule on paper */
  --cream: #F4F0E6;         /* text on dark surfaces */
  --steel: #4B5768;         /* secondary text on paper */
  --steel-2: #6B7686;
  --text-ink: #1B1F26;      /* primary text on paper */
  --safety: #C2410C;        /* accessible CTA orange (white text AA) */
  --safety-bright: #E8590C; /* brighter orange for accents/icons/borders */
  --safety-tint: #FBE7DA;
  --focus: #C2410C;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  /* Spacing (8px rhythm) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(23, 27, 33, 0.06), 0 8px 24px rgba(23, 27, 33, 0.06);
  --shadow-card-dark: 0 8px 30px rgba(0, 0, 0, 0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset & base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-3);
}
.wrap-narrow { max-width: 820px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--safety);
  margin-bottom: var(--space-2);
}
.eyebrow-dark { color: var(--safety-bright); }

h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); max-width: 20ch; }
.section-lead {
  font-size: 1.125rem;
  color: var(--steel);
  max-width: 56ch;
  margin-top: var(--space-2);
}
.section-dark .section-lead { color: rgba(244, 240, 230, 0.72); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
  min-height: 44px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--safety); color: #fff; }
.btn-primary:hover { background: #A3380A; }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(244, 240, 230, 0.35); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(244, 240, 230, 0.08); }
.btn-outline { background: transparent; color: var(--text-ink); border-color: var(--paper-line); }
.btn-outline:hover { border-color: var(--safety); color: var(--safety); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Solid, no backdrop-filter: on iOS Safari a blurred sticky header is
     repainted with a lag while scrolling, leaving a band over the content;
     backdrop-filter on the header itself also collapsed the fixed mobile
     drawer. */
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--text-ink);
}
.main-nav { display: none; align-items: center; gap: var(--space-4); }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--steel);
  cursor: pointer;
  transition: color 150ms var(--ease-out);
}
.main-nav a:hover { color: var(--safety); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); }
.header-actions .btn-primary { display: none; }

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--text-ink);
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: rgba(23, 27, 33, 0.06); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-drawer-extra, .nav-backdrop { display: none; }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-actions .btn-primary { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav drawer */
@media (max-width: 899px) {
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: var(--space-2) var(--space-3);
    transform: translateX(100%);
    transition: transform 260ms var(--ease-out);
    overflow-y: auto;
  }
  .main-nav { display: flex; visibility: hidden; z-index: 101; width: min(420px, 100%); left: auto; border-left: 1px solid var(--paper-line); padding-bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .main-nav > a {
    width: 100%;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--paper-line);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-ink);
  }
  .nav-drawer-extra { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; margin-top: var(--space-4); }
  .nav-drawer-extra .btn { color: #fff; }
  .nav-drawer-note { font-size: 0.85rem; color: var(--steel); text-align: center; }
  .nav-drawer-label { margin-top: var(--space-2); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
  .nav-drawer-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .nav-drawer-channels a {
    display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
    padding: 0.8rem 0.4rem; border: 1.5px solid var(--paper-line); border-radius: var(--radius-sm);
    background: #fff; font-size: 0.82rem; font-weight: 600; color: var(--text-ink);
  }
  .nav-drawer-channels a:hover { border-color: var(--safety); color: var(--safety); }
  .nav-drawer-channels svg { width: 22px; height: 22px; color: var(--safety); }
  .nav-backdrop { display: block; position: fixed; inset: 72px 0 0 0; z-index: 100; background: rgba(23, 27, 33, 0.35); }
  .nav-backdrop[hidden] { display: none; }
  body.nav-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav { transition: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero { background: var(--ink); color: var(--cream); padding-top: var(--space-6); overflow: hidden; }
.hero-grid {
  display: grid;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: #fff;
  margin-bottom: var(--space-3);
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(244, 240, 230, 0.75);
  max-width: 52ch;
  margin-bottom: var(--space-4);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero-trust {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  color: rgba(244, 240, 230, 0.5);
  max-width: 48ch;
}

.hero-visual { display: flex; justify-content: center; }

/* Signature element: the scope sheet document mockup */
.scope-sheet {
  width: min(360px, 100%);
  background: var(--paper);
  color: var(--text-ink);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-card-dark);
  transform: rotate(-2deg);
  animation: settle 700ms var(--ease-out) both;
}
@keyframes settle {
  from { opacity: 0; transform: rotate(-6deg) translateY(24px) scale(0.97); }
  to { opacity: 1; transform: rotate(-2deg) translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .scope-sheet { animation: none; }
}
.scope-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--steel);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.scope-stamp {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--safety);
  border: 2px solid var(--safety);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  transform: rotate(-4deg);
  font-size: 0.68rem;
}
.scope-stamp-lg { font-size: 1rem; padding: 0.35rem 0.9rem; display: inline-block; margin-bottom: var(--space-2); }
.scope-photo {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-2);
  line-height: 0;
}
.scope-photo-fill { width: 100%; height: auto; display: block; }
.pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--safety);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px rgba(247, 244, 236, 0.7);
}
.pin-1 { top: 62%; left: 18%; }
.pin-2 { top: 40%; left: 52%; }
.pin-3 { top: 20%; left: 78%; }

.scope-lines { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: var(--space-2); }
.scope-lines li {
  display: flex;
  align-items: baseline;
  font-size: 0.82rem;
  gap: 0.4rem;
}
.scope-lines li span { color: var(--steel); white-space: nowrap; }
.scope-lines li i {
  flex: 1;
  border-bottom: 1.5px dotted var(--paper-line);
  margin-bottom: 3px;
}
.scope-lines li b { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
/* The sheet shows the tail end of a longer estimate: a "more above" marker
   and the first rows fading in, so the total reads as the sum of the
   whole document, not of the four visible lines. */
.scope-lines-continued {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35) 0, #000 3.2rem);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35) 0, #000 3.2rem);
}
.scope-lines li.scope-lines-more {
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-top: 1.5px dashed var(--paper-line);
  padding-top: 0.45rem;
}
.scope-lines li.scope-lines-more span { color: var(--steel-2); }
.scope-sheet-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1.5px solid var(--text-ink);
  padding-top: var(--space-2);
  font-family: var(--font-mono);
}
.scope-sheet-foot span { font-size: 0.78rem; color: var(--steel); text-transform: uppercase; letter-spacing: 0.06em; }
.scope-sheet-foot b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.trade-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  border-top: 1px solid var(--ink-border);
  padding-block: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: rgba(244, 240, 230, 0.55);
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: center; }
}

/* ============================================================
   Sections (generic)
   ============================================================ */

.section { padding-block: var(--space-7); }
.section-dark { background: var(--ink); color: var(--cream); }
.section-dark h2 { color: #fff; }
.section-paper-alt { background: var(--paper-alt); }

/* ============================================================
   Problem
   ============================================================ */

.problem-grid { display: grid; gap: var(--space-4); }
.pain-list { display: flex; flex-direction: column; gap: var(--space-2); }
.pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: var(--space-2);
  background: var(--ink-soft);
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
}
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon-x { color: var(--safety-bright); }
.icon-check { color: var(--safety); }

@media (min-width: 900px) {
  .problem-grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-6); }
}

/* ============================================================
   Two-stage model
   ============================================================ */

.stage-flow {
  display: grid;
  gap: var(--space-3);
  align-items: stretch;
  margin-top: var(--space-5);
}
.stage-card {
  background: #fff;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}
.stage-card-accent { border-color: var(--safety); }
.stage-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--safety);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.stage-card h3 { font-size: 1.5rem; margin-block: var(--space-1) 0.25rem; }
.stage-price { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; margin-bottom: var(--space-2); }
.stage-card p:not(.stage-price) { color: var(--steel); }

.stage-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--safety);
  padding-block: var(--space-2);
}
.stage-arrow-h { display: none; }
.stage-arrow-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel);
  text-align: center;
}

.pull-quote {
  margin: var(--space-5) 0 0;
  padding: var(--space-4);
  border-left: 4px solid var(--safety);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-ink);
  max-width: 60ch;
}

@media (min-width: 700px) {
  .stage-flow { grid-template-columns: 1fr auto 1fr; }
  .stage-arrow-h { display: block; }
  .stage-arrow-v { display: none; }
}

/* ============================================================
   Services
   ============================================================ */

.service-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-5);
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: border-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.service-card:hover { border-color: var(--safety); transform: translateY(-2px); }
.service-card .icon { width: 28px; height: 28px; color: var(--safety); margin-bottom: var(--space-2); }
.service-card h3 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 600; }
.service-note { margin-top: var(--space-4); color: var(--steel); }
.service-note a { color: var(--safety); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 700px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   How it works
   ============================================================ */

.steps-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.step-card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.step-card h3 { font-size: 1.3rem; font-family: var(--font-body); font-weight: 700; margin-block: var(--space-2) 0.5rem; }
.step-card p { color: var(--steel); }

@media (min-width: 900px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   Upload / intake form
   ============================================================ */

.upload-grid { display: grid; gap: var(--space-5); }
.upload-facts { display: flex; flex-direction: column; gap: 0.6rem; margin-top: var(--space-3); color: rgba(244, 240, 230, 0.8); }
.upload-facts strong { color: #fff; }
.upload-alt-heading { margin-top: var(--space-4); font-weight: 600; color: #fff; }

.channel-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.channel-row-center { justify-content: center; }
.channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border: 1.5px solid rgba(244, 240, 230, 0.25);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
  min-height: 44px;
}
.channel-btn svg { width: 20px; height: 20px; }
.channel-btn:hover { border-color: var(--safety-bright); background: rgba(232, 89, 12, 0.08); }

.intake-form {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-card-dark);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  /* The form is a light card inside .section-dark — reset the inherited
     cream text colour, otherwise titles, choices and typed text render
     near-white on the paper background. */
  color: var(--text-ink);
}
.form-row { display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--text-ink); }
.field .optional { font-weight: 400; color: var(--steel); }
.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  background: #fff;
  font-size: 1rem;
  min-height: 44px;
  transition: border-color 150ms var(--ease-out);
}
.field input, .field select, .field textarea { color: var(--text-ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--steel-2); opacity: 1; }
/* Browser autofill paints its own yellow background — keep text dark on it. */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-ink);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  caret-color: var(--text-ink);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--safety); }
.char-count { text-align: right; font-family: var(--font-mono); font-size: 0.75rem; color: var(--steel); }

.dropzone {
  border: 2px dashed var(--paper-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
  cursor: pointer;
  color: var(--steel);
  transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--safety); background: var(--safety-tint); }
.dropzone .icon { width: 30px; height: 30px; margin-inline: auto; margin-bottom: var(--space-1); color: var(--safety); }
.dropzone-link { color: var(--safety); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dropzone-hint { font-size: 0.8rem; margin-top: 0.25rem; }

.file-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: var(--space-2); }
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}
.file-list .file-remove {
  cursor: pointer;
  color: var(--steel);
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.2rem 0.5rem;
}
.file-list .file-remove:hover { color: var(--safety); }

.form-success {
  text-align: center;
  padding: var(--space-4);
}
.form-success h3 { font-size: 1.4rem; margin-bottom: var(--space-2); }
.form-success p { color: var(--steel); max-width: 48ch; margin-inline: auto; }

@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .form-row.cols-3 { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 900px) { .upload-grid { grid-template-columns: 0.9fr 1.1fr; } }

/* ---- Step wizard (intake form) ---- */
.stepper { display: flex; gap: 0.25rem; margin-bottom: var(--space-3); overflow-x: auto; }
.step-pill { display: flex; align-items: center; gap: 0.5rem; flex: 1 1 0; min-width: 40px; }
.step-pill .dot {
  width: 24px; height: 24px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600; border: 1.5px solid var(--paper-line);
  color: var(--steel); background: #fff;
  transition: background 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.step-pill .label { font-size: 0.72rem; color: var(--steel); white-space: nowrap; display: none; }
.step-pill.is-current .dot { background: var(--safety); border-color: var(--safety); color: #fff; }
.step-pill.is-done .dot { background: var(--text-ink); border-color: var(--text-ink); color: #fff; }
.step-pill.is-current .label { color: var(--text-ink); font-weight: 600; }
.step-pill .bar { height: 1.5px; background: var(--paper-line); flex: 1 1 auto; margin-top: 12px; min-width: 8px; }
.step-pill.is-done .bar { background: var(--text-ink); }
.step-pill:last-child .bar { display: none; }
@media (min-width: 560px) { .step-pill .label { display: inline; } }

.step-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--safety); font-weight: 600; }
.step-title { font-size: 1.25rem; margin-top: 0.2rem; }
.step-hint { color: var(--steel); font-size: 0.88rem; max-width: 52ch; }
.req-note { font-size: 0.75rem; color: var(--steel); font-family: var(--font-mono); }
.req-note .star, .field .star { color: var(--safety); margin-left: 2px; }

.field.has-error input, .field.has-error select, .field.has-error textarea,
.conditional-block.has-error { border-color: #C23B3B; }
.field-error { font-size: 0.75rem; color: #C23B3B; display: none; }
.field.has-error .field-error, .conditional-block.has-error > .field-error { display: block; }

.choice-grid { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 560px) { .choice-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.choice-card {
  position: relative; border: 1.5px solid var(--paper-line); border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem; cursor: pointer; background: #fff;
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.choice-card:hover { border-color: var(--safety); }
.choice-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice-card .ct { font-weight: 600; font-size: 0.9rem; display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.choice-card .cp { font-family: var(--font-mono); font-size: 0.75rem; color: var(--safety); white-space: nowrap; }
.choice-card .cd { font-size: 0.78rem; color: var(--steel); margin-top: 0.2rem; }
.choice-card:has(input:checked) { border-color: var(--safety); background: var(--safety-tint); }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.9rem;
  background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-sm); padding: 0.8rem 1rem;
}
.toggle-row .tt { font-size: 0.88rem; font-weight: 600; }
.toggle-row .td { font-size: 0.78rem; color: var(--steel); margin-top: 0.15rem; }
.switch { position: relative; width: 40px; height: 22px; flex: 0 0 auto; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; background: var(--paper-line); border-radius: 99px; transition: background 150ms var(--ease-out); }
.switch .thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform 150ms var(--ease-out); }
.switch input:checked ~ .track { background: var(--safety); }
.switch input:checked ~ .thumb { transform: translateX(18px); }

.conditional-block { border-left: 2px solid var(--safety); padding-left: 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; }
.conditional-block[hidden] { display: none; }
.insurance-empty { text-align: center; padding: 1rem 0.5rem; color: var(--steel); font-size: 0.85rem; }

.review-summary { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-md); padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.review-summary .rs-row { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.85rem; border-bottom: 1px dashed var(--paper-line); padding-bottom: 0.45rem; }
.review-summary .rs-row:last-child { border-bottom: none; padding-bottom: 0; }
.review-summary dt { color: var(--steel); }
.review-summary dd { margin: 0; font-weight: 600; text-align: right; max-width: 60%; overflow-wrap: break-word; }

.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.submit-error { font-size: 0.85rem; color: #C23B3B; text-align: center; display: none; }
.submit-error.is-visible { display: block; }

/* Honeypot: off-screen, not display:none — bots that check computed
   visibility before filling fields are less likely to skip this one. */
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   Pricing
   ============================================================ */

.pricing-grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.price-card {
  background: #fff;
  border: 1.5px solid var(--paper-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.price-card-featured { border-color: var(--safety); box-shadow: var(--shadow-card); position: relative; }
.price-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--safety);
  font-weight: 600;
}
.price-card h3 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 700; }
.price-amount { font-family: var(--font-mono); font-size: 1.9rem; font-weight: 600; }
.price-amount span { font-size: 0.95rem; font-weight: 400; color: var(--steel); }
.price-for { color: var(--steel); font-size: 0.9rem; }
.price-features { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.price-features li {
  font-size: 0.9rem;
  padding-left: 1.4rem;
  position: relative;
  color: var(--text-ink);
}
.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--safety);
  border-radius: 2px;
}

@media (min-width: 700px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   Why / benefits
   ============================================================ */

.why-grid { display: grid; gap: var(--space-4); align-items: start; }
.benefit-list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
.benefit-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 1.05rem; font-weight: 500; }
.pull-quote-block {
  background: var(--paper-alt);
  border-left: 4px solid var(--safety);
  align-self: center;
}

@media (min-width: 900px) { .why-grid { grid-template-columns: 1.1fr 0.9fr; } }

/* ============================================================
   FAQ / accordion
   ============================================================ */

.accordion { margin-top: var(--space-5); border-top: 1px solid var(--paper-line); }
.accordion-item { border-bottom: 1px solid var(--paper-line); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) 0;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}
.accordion-trigger::after {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") center / contain no-repeat;
  color: var(--safety);
  transition: transform 220ms var(--ease-out);
}
.accordion-trigger[aria-expanded="true"]::after { transform: rotate(180deg); }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms var(--ease-out);
}
.accordion-panel > p { overflow: hidden; color: var(--steel); padding-bottom: 0; }
.accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.accordion-item.is-open .accordion-panel > p { padding-bottom: var(--space-3); }
.accordion-panel { overflow: hidden; }

/* ============================================================
   Contact
   ============================================================ */

.contact-wrap { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-wrap .section-lead { margin-inline: auto; }
.contact-ctas { justify-content: center; margin-top: var(--space-4); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer { background: var(--ink); color: rgba(244, 240, 230, 0.7); padding-block: var(--space-6) var(--space-5); }
.footer-grid { display: grid; gap: var(--space-4); }
.footer-tagline { margin-top: var(--space-2); max-width: 34ch; }
.footer-area { margin-top: var(--space-2); font-size: 0.9rem; color: rgba(244, 240, 230, 0.5); }
.footer-nav { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a:hover { color: var(--safety-bright); }
.footer-legal { font-size: 0.8rem; line-height: 1.6; border-top: 1px solid var(--ink-border); padding-top: var(--space-3); }
.footer-legal p + p { margin-top: var(--space-2); }

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.3fr 0.7fr 1fr; }
  .footer-legal { border-top: none; padding-top: 0; grid-column: 3; }
}

/* ============================================================
   Floating chat launcher
   ============================================================ */

.chat-launcher {
  position: fixed;
  right: var(--space-3);
  bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2);
}
.chat-launcher-menu {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.chat-launcher.is-open .chat-launcher-menu { opacity: 1; transform: none; pointer-events: auto; }
.chat-launcher-menu a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--paper-line);
  transition: transform 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.chat-launcher-menu a:hover { transform: translateY(-2px); border-color: var(--safety); color: var(--safety); }
.chat-launcher-menu svg { width: 22px; height: 22px; }

.chat-launcher-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--safety);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(194, 65, 12, 0.4);
  cursor: pointer;
  transition: transform 180ms var(--ease-out), background-color 180ms var(--ease-out);
}
.chat-launcher-btn:hover { background: #A3380A; }
.chat-launcher-btn svg { width: 24px; height: 24px; }
.chat-launcher-btn .icon-close { display: none; }
.chat-launcher.is-open .chat-launcher-btn .icon-open { display: none; }
.chat-launcher.is-open .chat-launcher-btn .icon-close { display: block; }

/* ============================================================
   Scroll reveal
   ============================================================ */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Small screens fine-tuning
   ============================================================ */

@media (max-width: 480px) {
  .wrap { padding-inline: var(--space-2); }
  .section { padding-block: var(--space-6); }
  .btn-lg { width: 100%; }
  .hero-ctas .btn, .contact-ctas .btn { width: 100%; }
  .chat-launcher { right: var(--space-2); bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   Intake form additions: file errors, consent, partial-upload notice
   ============================================================ */

.file-error { display: none; margin-top: 0.5rem; font-size: 0.82rem; color: #C23B3B; }
.file-error.is-visible { display: block; }

.consent-field { border: 1.5px solid var(--paper-line); border-radius: var(--radius-sm); background: #fff; padding: 0.8rem 0.9rem; }
.consent-label { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; line-height: 1.5; cursor: pointer; }
.consent-label input { width: 18px; height: 18px; margin-top: 0.15rem; flex: 0 0 auto; accent-color: var(--safety); }
.consent-label a { color: var(--safety); text-decoration: underline; text-underline-offset: 2px; }
.consent-field.has-error { border-color: #C23B3B; }
.consent-field.has-error .field-error { display: block; margin-top: 0.4rem; }

.success-warning { margin-top: var(--space-2); font-size: 0.85rem; color: #8A3A0A; background: var(--safety-tint); border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; }

.footer-legal-links a { text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-links a:hover { color: var(--safety-bright); }

/* ============================================================
   Legal pages (privacy.html, terms.html) and 404
   ============================================================ */

.legal-header { background: var(--ink); padding-block: var(--space-3); }
.legal-header .brand { color: var(--cream); }
.legal-main { padding-block: var(--space-6); }
.legal-doc { max-width: 760px; margin-inline: auto; }
.legal-doc h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; margin-bottom: var(--space-1); }
.legal-doc .legal-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--steel); margin-bottom: var(--space-4); }
.legal-doc h2 { font-family: var(--font-display); font-size: 1.5rem; margin-top: var(--space-5); margin-bottom: var(--space-2); scroll-margin-top: var(--space-4); }
.legal-doc h3 { font-size: 1.05rem; margin-top: var(--space-3); margin-bottom: var(--space-1); }
.legal-doc p, .legal-doc li { color: var(--text-ink); line-height: 1.7; }
.legal-doc p + p { margin-top: var(--space-2); }
.legal-doc ul { list-style: disc; padding-left: 1.4rem; margin-block: var(--space-2); display: flex; flex-direction: column; gap: 0.4rem; }
.legal-doc a { color: var(--safety); text-decoration: underline; text-underline-offset: 2px; }
.legal-doc .legal-toc { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-md); padding: var(--space-3); }
.legal-doc .legal-toc ol { list-style: decimal; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.3rem; }
.legal-doc .callout { background: #fff; border-left: 3px solid var(--safety); padding: var(--space-2) var(--space-3); margin-block: var(--space-3); }
.legal-table-wrap { overflow-x: auto; margin-block: var(--space-3); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: #fff; }
.legal-table th, .legal-table td { border: 1px solid var(--paper-line); padding: 0.6rem 0.7rem; text-align: left; vertical-align: top; line-height: 1.5; }
.legal-table th { background: var(--paper-alt); font-weight: 600; }
.legal-footer { background: var(--ink); color: rgba(244, 240, 230, 0.7); padding-block: var(--space-4); font-size: 0.85rem; }
.legal-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); justify-content: space-between; }
.legal-footer a { text-decoration: underline; text-underline-offset: 2px; }

.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound .scope-stamp-lg { margin-bottom: var(--space-3); }
.notfound h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; margin-bottom: var(--space-2); }
.notfound p { color: var(--steel); max-width: 46ch; margin-bottom: var(--space-4); }
.notfound .hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Keep the floating chat button from covering the open mobile menu. */
body.nav-open .chat-launcher { display: none; }
