/* ============================================================
   Calvert Septic — "Dispatch"
   Design tokens, base, layout, components.
   Zero network dependencies: self-hosted variable fonts, no CDN.
   ============================================================ */

/* ---------- Self-hosted variable fonts ---------- */
/* Both faces are licensed under the SIL Open Font License 1.1:
   Archivo — Omnibus-Type; Public Sans — the U.S. Web Design System.
   The __FONT_* tokens are build-time placeholders replaced with the
   content-hashed /assets/ URLs by src/build.js; a leftover placeholder
   is a hard validation failure. No serif anywhere in the type system. */
@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo-var.a75c792f980d.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("/assets/public-sans-var.1c8a26c0ed43.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Color — cool stone neutrals (structural, not paper). Every text token
     below carries its WCAG AA ratio against its intended background. The
     amber accent fails as text on white (0.5:1), so the darker amber-900
     variant exists and is the only amber used for text/borders on light. */
  --ink: #14241d;            /* body text — 14.9:1 on stone-50, 16.2:1 on white */
  --muted: #5c6b63;          /* secondary text — 5.1:1 on stone-50, 5.5:1 on white */
  --evergreen-950: #0f241b;  /* darkest section bg */
  --evergreen-900: #163528;  /* dark section bg / hover */
  --evergreen-800: #1e4533;  /* primary button — white text on it: 10.7:1 */
  --evergreen-700: #2a5c44;  /* links — 7.7:1 on white */
  --evergreen-600: #37785a;  /* icons / success — 5.2:1 on white */
  --evergreen-500: #46936c;  /* focus border / hover green */
  --evergreen-100: #dce9e1;  /* green tint on dark surfaces */
  --evergreen-50: #edf4ef;   /* faint green tint on light */
  --bay-900: #173c50;
  --bay-700: #2a5f7c;        /* informational/diagram accents — 6.9:1 on white */
  --bay-600: #367697;
  --bay-200: #cfe3ec;        /* footer headings on dark — 12.3:1 on evergreen-950 */
  --stone-50: #f4f6f5;       /* page background (cool, not cream) */
  --stone-100: #eef1f0;      /* alt-section / table-stripe background */
  --stone-200: #e0e5e3;      /* hairline borders (decorative) */
  --stone-300: #c9d0cd;      /* stronger hairlines (decorative) */
  --stone-400: #a6b0ab;      /* side-note accents (decorative) */
  --stone-500: #87938c;      /* input/control borders — 3.2:1 on white */
  --amber-100: #fdf1d6;      /* safety tint backgrounds */
  --amber-500: #f5b62e;      /* focus ring on dark — 9.0:1 on evergreen-950 */
  --amber-600: #f2a413;      /* urgent CTA fill — dark ink on it: 7.8:1 */
  --amber-700: #d18f05;      /* urgent CTA hover fill — ink on it: 5.9:1 */
  --amber-900: #9a5b00;      /* amber text on light — 5.4:1 on white, 4.95:1 on stone-50 */
  --white: #ffffff;
  --text-on-dark: #f4f6f5;   /* on evergreen-950 — 15.0:1 */
  --muted-on-dark: #b9c6be;  /* on evergreen-950 — 9.1:1 */
  --focus-ring: #9a5b00;     /* focus outline on light — 5.4:1 on white */
  --focus-ring-dark: #f5b62e; /* focus outline on dark — 9.0:1 on evergreen-950 */

  /* Typography — Archivo for display (variable width axis: display type is
     stretched to 112% for a wide, engineered, structural feel), Public Sans
     for body/UI, system mono kept for labels. No serifs anywhere. */
  --font-display: "Archivo", "Avenir Next", Avenir, "Century Gothic", Futura,
    "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  --font-sans: "Public Sans", "Avenir Next", Avenir, "Century Gothic", Futura,
    "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas,
    monospace;

  --fs-hero: clamp(2rem, 4.4vw, 2.8rem);
  --fs-h2: clamp(1.7rem, 3.4vw, 2.3rem);
  --fs-h3: clamp(1.25rem, 2.2vw, 1.45rem); /* real separation from 1.0625rem body */
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.1rem, 1.6vw, 1.2rem);
  --fs-small: 0.92rem;
  --fs-micro: 0.78rem;

  --lh-tight: 1.08;
  --lh-body: 1.62;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --section-pad: clamp(3.25rem, 7vw, 6rem);

  /* Radius — one crisp system: 2/4/6px. Pill is reserved for genuinely
     pill-shaped elements (tags). The old 12/18px SaaS radii are gone. */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
  --r-pill: 999px;

  /* Borders are the primary structural device; shadows are the exception. */
  --border: 1px solid var(--stone-200);          /* hairline, decorative */
  --border-strong: 1.5px solid var(--stone-500); /* control boundaries, 3.2:1 on white */
  --dash: 1.5px dashed var(--amber-900);         /* urgency panels, 4.95:1 on stone-50 */

  /* Shadows — one subtle green-tinted (never pure black) shadow for
     genuinely floating elements only. --shadow-md/--shadow-lg are deleted;
     cards are separated by hairlines instead. */
  --shadow-sm: 0 1px 2px rgba(15, 36, 27, 0.1);

  /* Motion — transform/opacity only, 150-200ms, one easing curve. */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur-fast: 150ms;

  /* Containers */
  --container: 72rem;
  --container-narrow: 46rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Defensive: layout itself must fit, but never allow a horizontal scroll. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--stone-50);
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em; /* tight tracking — engineered, not elegant */
  color: var(--ink);
  margin: 0 0 var(--sp-3);
}

/* Archivo's width axis: display headings are stretched wide and heavy. */
h1,
h2 {
  font-stretch: 112%;
  line-height: var(--lh-tight);
}

h3 {
  font-stretch: 112%;
  line-height: 1.2;
}

h1 {
  font-size: var(--fs-hero);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  margin: 0 0 var(--sp-4);
  max-width: 68ch; /* body copy measure cap */
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--evergreen-700);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

a:hover {
  color: var(--evergreen-900);
}

/* Focus is never removed: a 2px amber ring at 2px offset (5.4:1 on light). */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Dark evergreen surfaces need the high-visibility amber ring (9:1). */
.hero :focus-visible,
.site-footer :focus-visible,
.skip-link:focus-visible {
  outline-color: var(--focus-ring-dark);
}

/* Amber CTA fills are bright — the dark ink ring keeps 7.8:1. */
.btn-cta:focus-visible,
.sticky-cta:focus-visible {
  outline-color: var(--ink);
}

::selection {
  background: var(--amber-600);
  color: var(--ink);
}

/* Accessible skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--evergreen-900);
  color: var(--text-on-dark);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
  color: var(--text-on-dark);
}

/* Visually hidden (kept for label/screen-reader text) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-pad);
}

.section-alt {
  background: var(--stone-100);
  border-block: 1px solid var(--stone-200);
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--sp-7);
}

.section-head h2 {
  margin-bottom: var(--sp-4);
}

.section-intro {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 44rem;
}

.section-note {
  margin-top: var(--sp-5);
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: 44rem;
}

/* Kicker — mono structural label */
.kicker {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-900);
  margin-bottom: var(--sp-3);
}

.kicker::before {
  content: none;
}

.kicker-dark {
  color: var(--amber-500);
}

.kicker-dark::before {
  color: var(--amber-500);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0.75rem 1.6rem; /* generous horizontal padding */
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-small);
  text-decoration: none;
  cursor: pointer;
  /* Motion budget: transform only, 150ms. Color changes are instant —
     this is a utility, not a boutique. */
  transition: transform var(--dur-fast) var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--evergreen-800);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--evergreen-900);
  color: var(--white);
}

.btn-lg {
  min-height: 54px;
  padding-inline: 1.75rem;
  font-size: 1rem;
}

.btn-ghost {
  border-color: rgba(244, 246, 245, 0.6);
  color: var(--text-on-dark);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--text-on-dark);
  background: rgba(244, 246, 245, 0.08);
  color: var(--text-on-dark);
}

/* Urgent CTA — amber fill with dark ink text. White on amber fails AA
   (0.5:1); ink is the only readable pairing on the safety yellow. */
.btn-cta {
  background: var(--amber-600);
  color: var(--ink);
}

.btn-cta:hover {
  background: var(--amber-700);
  color: var(--ink);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 246, 245, 0.94); /* stone-50 */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone-200);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: 72px;
  padding-block: var(--sp-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--evergreen-900);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.desktop-nav {
  display: none;
}

.desktop-nav ul,
.mobile-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a:hover {
  background: var(--stone-100);
  color: var(--evergreen-900);
}

.desktop-nav a[aria-current="page"] {
  color: var(--evergreen-800);
  box-shadow: inset 0 -2px 0 var(--evergreen-800);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.header-cta {
  white-space: nowrap;
}

/* Mobile menu — native <details>, keyboard-accessible without JS */
.mobile-menu {
  position: relative;
}

.mobile-menu summary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0.5rem 0.9rem;
  border: var(--border-strong);
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: var(--fs-small);
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  background: var(--white);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.menu-glyph {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  position: relative;
}

.menu-glyph::before,
.menu-glyph::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  top: 5px;
  transition: transform var(--dur-fast) var(--ease);
}

.menu-glyph::after {
  top: 11px;
}

.mobile-menu[open] .menu-glyph::before {
  top: 8px;
  transform: rotate(45deg);
}

.mobile-menu[open] .menu-glyph::after {
  top: 8px;
  transform: rotate(-45deg);
}

.mobile-menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm); /* floating dropdown — shadow justified */
  padding: var(--sp-2);
}

.mobile-menu ul {
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-1);
}

.mobile-menu a {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu a:hover {
  background: var(--stone-100);
}

.mobile-menu a[aria-current="page"] {
  color: var(--evergreen-800);
  background: var(--stone-100);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--evergreen-950);
  color: var(--text-on-dark);
  overflow: hidden;
}

/* Decorative contour pattern: keep it behind the diagram plate and outer
   margins, never behind the text column. A solid/gradient scrim on
   .hero-copy guarantees words sit on an even field at every width. */
.hero .contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--text-on-dark);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * var(--gutter));
  background: var(--evergreen-950);
  z-index: -1;
}

@media (min-width: 56rem) {
  .hero-copy::before {
    background: linear-gradient(
      90deg,
      var(--evergreen-950) 0%,
      var(--evergreen-950) 80%,
      rgba(15, 36, 27, 0) 100%
    );
  }
}

/* The hero eyebrow is a sentence, not a code comment. */
.hero .kicker::before {
  content: none;
}

.hero h1 {
  color: var(--text-on-dark);
  margin-bottom: var(--sp-4);
}

.hero-lead {
  font-size: var(--fs-lead);
  color: var(--muted-on-dark);
  max-width: 38rem;
  margin-bottom: var(--sp-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.hero-note {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  color: var(--muted-on-dark);
  margin: 0;
}

/* Hero diagram plate */
.plate {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm); /* floats over the dark hero */
  overflow: hidden;
}

.plate-svg {
  width: 100%;
  height: auto;
}

.plate figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  padding: var(--sp-4);
  border-top: 1px solid var(--stone-200);
  background: var(--stone-100);
}

/* ---------- Lead form ---------- */
.lead-section {
  padding-block: var(--section-pad);
  background: var(--white);
  border-bottom: 1px solid var(--stone-200);
  scroll-margin-top: 6rem;
}

.lead-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
}

.lead-intro {
  max-width: 34rem;
}

.lead-intro-text {
  color: var(--muted);
  font-size: 1.05rem;
}

.lead-points {
  list-style: none;
  margin: var(--sp-6) 0;
  display: grid;
  gap: var(--sp-4);
}

.lead-points li {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.lead-point-mark {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--amber-900);
  border: 1.5px dashed var(--amber-900);
  border-radius: var(--r-sm);
  padding: 0.25rem 0.4rem;
  flex: none;
  margin-top: 0.15rem;
}

.lead-privacy {
  font-size: var(--fs-small);
  color: var(--muted);
  border-left: 3px solid var(--stone-400);
  padding-left: var(--sp-4);
}

.lead-form {
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-top: 4px solid var(--evergreen-800);
  border-radius: var(--r-sm);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.field label {
  font-weight: 700;
  font-size: var(--fs-small);
}

.req {
  color: var(--amber-900);
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--white);
  border: var(--border-strong); /* 1.5px stone-500 — 3.2:1 on white */
  border-radius: var(--r-sm);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted); /* 5.5:1 on white — passes 4.5:1 */
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--evergreen-500);
}

/* The ring is never removed — keyboard focus always shows 2px amber at
   2px offset (5.4:1 on white). */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.field-hint {
  font-size: var(--fs-small);
  color: var(--muted);
}

.field-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-block: var(--sp-5);
}

.field-consent input {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  margin-top: 0.2rem;
  accent-color: var(--evergreen-800);
}

.field-consent label {
  font-weight: 400;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
}

.form-microcopy {
  font-size: var(--fs-small);
  color: var(--muted);
  margin: 0;
}

.form-status {
  margin: var(--sp-4) 0 0;
  font-weight: 700;
  font-size: var(--fs-small);
  min-height: 1.4em;
}

.form-status.is-error {
  color: var(--amber-900);
}

.form-status.is-success {
  color: var(--evergreen-700);
}

/* Honeypot — offscreen, hidden from AT */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Signs grid ---------- */
.sign-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.sign-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-5);
  border-top: 3px solid var(--stone-300);
  transition: transform var(--dur-fast) var(--ease);
}

.sign-card h3 {
  font-family: var(--font-sans);
  font-stretch: 100%;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.sign-card p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.sign-card::before {
  content: "SIGN";
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--amber-900); /* 4.8:1 on amber-100 */
  background: var(--amber-100);
  border-radius: var(--r-pill); /* genuine pill tag */
  padding: 0.15rem 0.5rem;
  margin-bottom: var(--sp-3);
}

/* ---------- Repair vs replace ---------- */
.rv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.rv-card {
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-6);
}

.rv-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--stone-200);
}

.rv-card-warn h3 {
  color: var(--amber-900);
}

.rv-card ul {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
}

.rv-card li {
  padding-left: var(--sp-5);
  position: relative;
  font-size: var(--fs-small);
}

.rv-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6em;
  height: 0.6em;
  border-radius: 2px;
  background: var(--evergreen-600);
}

.rv-card-warn li::before {
  background: var(--amber-900);
  border-radius: 50%;
}

.rv-note {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: var(--white);
  border: var(--dash); /* urgency = the one accent */
  border-radius: var(--r-sm);
  padding: var(--sp-5);
  margin: 0;
  font-size: var(--fs-small);
}

.rv-note .icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  color: var(--amber-900);
  margin-top: 0.1rem;
}

/* ---------- Service grid ---------- */
.service-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-5);
  text-decoration: none;
  color: var(--ink);
  min-height: 132px;
  transition: transform var(--dur-fast) var(--ease);
}

.service-card:hover {
  border-color: var(--evergreen-600);
  color: var(--ink);
}

.service-label {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--evergreen-900);
}

.service-card:hover .service-label {
  color: var(--evergreen-800);
}

.service-text {
  font-size: var(--fs-small);
  color: var(--muted);
}

.service-arrow {
  margin-top: auto;
  color: var(--evergreen-600);
  align-self: flex-end;
}

.service-arrow .icon {
  width: 1.3rem;
  height: 1.3rem;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  display: grid;
  gap: var(--sp-4);
  counter-reset: step;
}

.step {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-5);
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--white); /* 10.7:1 on evergreen-800 */
  background: var(--evergreen-800);
  border-radius: var(--r-sm);
  padding: 0.35rem 0.5rem;
  flex: none;
  margin-top: 0.15rem;
}

.step-body h3 {
  font-family: var(--font-sans);
  font-stretch: 100%;
  font-size: 1.05rem;
  margin-bottom: var(--sp-2);
}

.step-body p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ---------- Towns ---------- */
.town-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.town {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-pill); /* genuine pill tag */
  padding: 0.5rem 1rem;
  font-size: var(--fs-small);
  font-weight: 600;
}

.town .icon {
  width: 1rem;
  height: 1rem;
  color: var(--evergreen-600);
  flex: none;
}

/* ---------- Context notes ---------- */
.note-list {
  list-style: none;
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.note-item {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-left: 4px solid var(--bay-700); /* informational only */
  border-radius: var(--r-sm);
  padding: var(--sp-5);
}

.note-item h3 {
  font-size: 1.05rem;
  margin-bottom: var(--sp-2);
}

.note-item p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.reg-panel {
  background: var(--white);
  border: 1.5px dashed var(--bay-700);
  border-radius: var(--r-sm);
  padding: var(--sp-6);
}

.reg-panel h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bay-700);
  margin-bottom: var(--sp-4);
}

.reg-list {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.reg-list a {
  display: inline-block;
  padding: 0.4rem 0;
  font-weight: 600;
  font-size: var(--fs-small);
}

.reg-panel p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: var(--sp-3);
}

.faq {
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  list-style: none;
  min-height: 48px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--evergreen-600);
  flex: none;
  transition: transform var(--dur-fast) var(--ease);
}

.faq[open] summary::after {
  transform: rotate(45deg);
}

.faq summary h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-stretch: 100%;
  font-size: 1.05rem;
  font-weight: 700;
}

.faq p {
  margin: 0;
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: var(--fs-small);
  color: var(--muted);
  max-width: 42rem;
}

/* ---------- Disclosure ---------- */
.disclosure-body p {
  color: var(--muted);
}

.disclosure-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--evergreen-950);
  color: var(--muted-on-dark);
  padding-top: var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
}

.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
  margin-bottom: var(--sp-3);
}

.footer-brand-name {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: var(--sp-1);
}

.footer-brand-sub {
  font-size: var(--fs-small);
  color: var(--muted-on-dark);
}

.footer-disclosure {
  font-size: var(--fs-small);
  color: var(--muted-on-dark);
  max-width: 30rem;
  margin-top: var(--sp-3);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bay-200);
  margin-bottom: var(--sp-4);
}

.footer-nav ul {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}

.footer-nav a {
  color: var(--muted-on-dark);
  text-decoration: none;
  display: inline-block;
  padding: 0.3rem 0;
}

.footer-nav a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-note {
  font-size: var(--fs-small);
  color: var(--muted-on-dark);
  margin-top: var(--sp-4);
  max-width: 24rem;
}

.footer-legal {
  border-top: 1px solid rgba(244, 246, 245, 0.14);
  padding-block: var(--sp-5);
}

.footer-legal-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-legal p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted-on-dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  margin-top: var(--sp-2);
}

.footer-links a {
  color: var(--muted-on-dark);
  text-decoration: none;
  font-size: var(--fs-small);
}

.footer-links a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Service pages ---------- */
/* Compact hero — same structural direction, tighter vertical rhythm. */
.service-hero .hero-grid {
  padding-block: clamp(2rem, 4.5vw, 3.25rem) clamp(2.5rem, 5.5vw, 4rem);
}

.service-hero h1 {
  font-size: clamp(1.75rem, 4.4vw, 2.55rem);
  max-width: 22ch;
}

.service-hero .hero-lead {
  font-size: 1.05rem;
  margin-bottom: var(--sp-5);
}

.service-hero .hero-actions {
  margin-bottom: var(--sp-5);
}

.service-hero .hero-note {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Breadcrumbs — light text over the dark hero. */
.breadcrumbs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-4);
  padding: 0;
  font-size: var(--fs-small);
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--muted-on-dark);
  opacity: 0.7;
}

.service-hero .breadcrumbs a {
  color: var(--muted-on-dark);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.service-hero .breadcrumbs a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-hero .breadcrumbs [aria-current="page"] {
  color: var(--text-on-dark);
}

/* Page-specific spec panel (light card inside the dark hero). */
.field-note {
  align-self: start;
  background: var(--white);
  border: 1px solid var(--stone-300);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm); /* floats over the dark hero */
  padding: var(--sp-5);
}

.field-note-label {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-900);
  margin-bottom: var(--sp-2);
}

.field-note-label::before {
  content: none;
}

.field-note h2 {
  font-size: 1.2rem;
  margin-bottom: var(--sp-2);
}

.field-note p:last-child {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Safety callout — alert panel. */
.callout {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: var(--white);
  border: var(--dash); /* safety panel = urgency accent */
  border-radius: var(--r-sm);
  padding: var(--sp-5);
}

.callout > .icon {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
  color: var(--amber-900);
  margin-top: 0.1rem;
}

.callout h3 {
  font-family: var(--font-sans);
  font-stretch: 100%;
  font-size: 1.05rem;
  margin-bottom: var(--sp-2);
}

.callout p {
  font-size: var(--fs-small);
  color: var(--muted);
}

.safe-list {
  list-style: none;
  display: grid;
  gap: var(--sp-2);
}

.safe-list li {
  padding-left: var(--sp-5);
  position: relative;
  font-size: var(--fs-small);
  color: var(--muted);
}

.safe-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--amber-900);
}

/* Diagnostic table — structural ledger. */
.table-wrap {
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.diag-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.diag-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--evergreen-800); /* 9.4:1 on stone-100 */
  background: var(--stone-100);
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--stone-200);
}

.diag-table td {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--stone-200);
  vertical-align: top;
  color: var(--ink);
}

.diag-table tbody tr:nth-child(even) {
  background: var(--stone-50);
}

.diag-table tbody tr:hover {
  background: var(--evergreen-50);
}

.diag-note {
  margin-top: var(--sp-4);
  font-size: var(--fs-small);
  color: var(--muted);
  border-left: 3px solid var(--stone-400);
  padding-left: var(--sp-4);
}

/* Evaluation checklist. */
.check-list {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
}

.check-list li {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-4) var(--sp-5);
}

.check-list .icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  color: var(--evergreen-600);
  margin-top: 0.15rem;
}

.check-list h3 {
  font-family: var(--font-sans);
  font-stretch: 100%;
  font-size: 1.05rem;
  margin-bottom: var(--sp-1);
}

.check-list p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Cost-factor panel. */
.cost-grid {
  list-style: none;
  display: grid;
  gap: var(--sp-4);
}

.cost-item {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-left: 4px solid var(--amber-900); /* cost factors = attention */
  border-radius: var(--r-sm);
  padding: var(--sp-5);
}

.cost-item h3 {
  font-size: 1.05rem;
  margin-bottom: var(--sp-2);
}

.cost-item p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

.cost-note {
  margin-top: var(--sp-5);
  font-size: var(--fs-small);
  color: var(--muted);
  border-left: 3px solid var(--stone-400);
  padding-left: var(--sp-4);
}

/* Permit / official-guidance points. */
.reg-points {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.reg-points li {
  padding-left: var(--sp-5);
  position: relative;
  font-size: var(--fs-small);
  color: var(--muted);
}

.reg-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.55em;
  height: 0.55em;
  border-radius: 2px;
  background: var(--bay-700); /* informational only */
}

/* Related-service cards. */
.related-grid {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-height: 88px;
  background: var(--white);
  border: var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-4) var(--sp-5);
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--dur-fast) var(--ease);
}

.related-card:hover {
  border-color: var(--evergreen-600);
  color: var(--ink);
}

.related-label {
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--evergreen-900);
}

.related-card:hover .related-label {
  color: var(--evergreen-800);
}

.related-text {
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Service-area town links. */
.town-link {
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.town-link:hover {
  border-color: var(--evergreen-600);
  color: var(--evergreen-900);
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
}

/* ---------- Motion ---------- */
/* Purposeful entrance only: opacity + transform, 200ms, slight stagger.
   Everything collapses under prefers-reduced-motion below. */
.hero-copy > * {
  animation: rise 200ms var(--ease) both;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 30ms;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 60ms;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 90ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover transforms apply only to devices that can actually hover — a touch
   tap must never leave a card stuck mid-lift. */
@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .related-card:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (min-width: 40rem) {
  .sign-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-submit-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
  }

  .form-microcopy {
    max-width: 22rem;
    text-align: right;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cost-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 52rem) {
  .desktop-nav {
    display: block;
  }

  .mobile-menu {
    display: none;
  }

  .lead-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .rv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .note-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--sp-6);
  }
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: var(--sp-7);
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 64rem) {
  .sign-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hide the secondary brand microcopy below 900px so the header stays one
   line and within the 64-72px target on tablets/small laptops. */
@media (max-width: 56.24rem) {
  .brand-sub {
    display: none;
  }

  /* Diagnostic table stacks into labeled rows — no horizontal scroll. */
  .diag-table,
  .diag-table tbody,
  .diag-table tr,
  .diag-table td {
    display: block;
    width: 100%;
  }

  .diag-table thead {
    display: none;
  }

  .diag-table tr {
    padding: var(--sp-3) var(--sp-4);
  }

  .diag-table tr + tr {
    border-top: 1px solid var(--stone-200);
  }

  .diag-table td {
    border-top: none;
    padding: var(--sp-2) 0;
  }

  .diag-table td::before {
    content: attr(data-label) ": ";
    display: inline;
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--evergreen-800);
    font-weight: 700;
    margin-right: var(--sp-2);
  }
}

/* Sticky bottom CTA — mobile only, thumb-friendly, never covers the form */
@media (max-width: 51.99rem) {
  /* Hide the redundant header CTA (kept in the HTML; the sticky CTA and
     the form cover the same call-to-action on phones). Brand + Menu fit
     on one row and the header stays around 65px tall. */
  .header-cta {
    display: none;
  }

  .header-inner {
    min-height: 64px; /* + 1px header border = ~65px total */
  }

  /* Mobile menu links and footer links stay comfortable tap targets. */
  .footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-cta {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    min-height: 56px;
    padding: 0.75rem 1.25rem;
    background: var(--amber-600); /* urgency CTA — ink text, 7.8:1 */
    color: var(--ink);
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-sm); /* floating — the one justified shadow */
    font-weight: 700;
    text-decoration: none;
    animation: rise 200ms var(--ease) 250ms both;
  }

  .sticky-cta:hover {
    background: var(--amber-700);
    color: var(--ink);
  }

  .sticky-cta-arrow .icon {
    width: 1.3rem;
    height: 1.3rem;
  }

  /* Hide while the lead form itself is on screen (added by JS). */
  .sticky-cta.is-hidden {
    display: none;
  }

  /* Covering the form is worse than covering the footer. */
  .lead-section {
    scroll-margin-bottom: 80px;
  }
}

/* ---------- Services: grouped (home) ----------
   Group 1 (urgent) renders as prominent full-width rows with an amber
   accent; groups 2-4 render as compact multi-column link lists. Reuses
   existing tokens only. */
.service-groups {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
}

.service-group-heading {
  font-size: var(--fs-h3);
  margin-bottom: var(--sp-4);
}

/* Group 1 — urgent, dominant, full-width rows with an amber marker. */
.service-group-urgent .service-group-heading {
  color: var(--amber-900);
}

.service-urgent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.service-urgent {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  background: var(--white);
  border: var(--border);
  border-left: 3px solid var(--amber-700);
  border-radius: var(--r-sm);
  padding: var(--sp-5);
  text-decoration: none;
  color: var(--ink);
  transition: transform var(--dur-fast) var(--ease);
}

.service-urgent:hover {
  border-color: var(--evergreen-600);
  color: var(--ink);
}

.service-urgent:hover .service-urgent-label {
  color: var(--evergreen-800);
}

.service-urgent-label {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--evergreen-900);
}

.service-urgent .service-arrow {
  margin-top: var(--sp-1);
}

/* Groups 2-4 — compact multi-column link lists, not cards. */
.service-group + .service-group {
  margin-top: var(--sp-6);
}

.service-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 var(--sp-6);
}

.service-link {
  display: flex;
  flex-direction: column;
  padding: var(--sp-2) 0;
  text-decoration: none;
  color: var(--ink);
}

.service-link-label {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--evergreen-900);
}

.service-link:hover .service-link-label {
  color: var(--evergreen-800);
}

.service-link-text {
  font-size: var(--fs-small);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Link lists stay multi-column ≥768px, collapsing to one column below. */
@media (min-width: 48rem) {
  .service-links {
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  }
}

/* Hover lift applies only to hover-capable devices. */
@media (hover: hover) and (pointer: fine) {
  .service-urgent:hover {
    transform: translateY(-2px);
  }
}

/* --------------------------------------------------------------------------
   Distinct layout families for the homepage's three adjacent content rows.
   Appended after the earlier responsive blocks so these override the shared
   card-grid defaults (signs / steps / note-list) they once shared.
   All colours and tokens come from :root; no new hues introduced.
-------------------------------------------------------------------------- */

/* ---------- Signs: dense two-column checklist ----------
   Homeowner self-check: scannable rows, hairlines, no card boxes. */
.sign-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 var(--sp-6);
}

.sign-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  padding: var(--sp-4) 0;
  border-top: var(--border);
}

.sign-item:first-child {
  border-top: none;
}

.sign-marker {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.42rem;
  border-radius: var(--r-pill);
  background: var(--evergreen-600);
}

.sign-body h3 {
  font-family: var(--font-sans);
  font-stretch: 100%;
  font-size: 1rem;
  font-weight: 500;
  line-height: var(--lh-tight);
  margin: 0 0 var(--sp-1);
}

.sign-body p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: var(--lh-body);
}

/* One column below 768px, two columns at/above it. */
@media (min-width: 48rem) {
  .sign-check {
    grid-template-columns: repeat(2, 1fr);
  }

  .sign-item:nth-child(-n + 2) {
    border-top: none;
  }
}

/* ---------- After: horizontal process strip (genuine sequence) ----------
   ol.steps is genuinely ordered; the connector is a hairline, markers are
   numbered. Stacked below 900px with the connector running down the left. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  left: 1.125rem; /* vertical centre of the left-hand marker column */
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--stone-300);
}

.step {
  position: relative;
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--white);
  background: var(--evergreen-800);
  border-radius: var(--r-pill);
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  z-index: 1; /* sit on top of the hairline connector */
}

.step-body h3 {
  font-family: var(--font-sans);
  font-stretch: 100%;
  font-size: 1.05rem;
  margin-bottom: var(--sp-2);
}

.step-body p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Keep the strip stacked until 900px (overrides the old 52rem 2-col rule). */
@media (max-width: 56.24rem) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Horizontal strip at/above 900px. */
@media (min-width: 56.25rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
  }

  .steps::before {
    left: 2rem;
    right: 2rem;
    top: 1.125rem; /* through the centre of each marker */
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-3);
  }
}

/* ---------- Context: full-width lead + two-column notes ----------
   First note is a larger lead block; the rest sit in two columns beneath.
   Hairlines and background tint in place of bordered cards. */
.note-list {
  list-style: none;
  margin: 0 0 var(--sp-6);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0; /* separators come from hairlines, not gaps */
}

.note-item {
  background: var(--stone-50); /* tint, not a card */
  border: 0;
  border-top: var(--border);
  border-radius: 0;
  padding: var(--sp-5) 0;
}

.note-item:first-child {
  border-top: none;
}

.note-item h3 {
  font-size: 1.05rem;
  margin-bottom: var(--sp-2);
}

.note-item p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
}

/* Full-width lead block with a larger heading. */
.note-lead {
  grid-column: 1 / -1;
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-6);
}

.note-lead h3 {
  font-size: 1.35rem;
  margin-bottom: var(--sp-3);
}

/* Two columns beneath the lead at/above 768px. */
@media (min-width: 48rem) {
  .note-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0 var(--sp-6);
  }
}

