/* =============================================================================
   Meridian -- the GetMatchedPro hub and its eleven category landers.
   One stylesheet for all twelve pages. No images: every graphic is inline SVG
   or a CSS gradient.

   Deliberately unlike the root lander at ../../index.html, which owns the dark
   photographic hero, Cormorant Garamond, the red #c62828, and the floating
   cream panel. None of that is reused here.
   ============================================================================= */

/* ---------------------------------------------------------------- 1. tokens */

html {
  /* Light only. Every background is painted explicitly so a dark-mode browser
     cannot invert a control and leave text unreadable. */
  color-scheme: light;
}

:root {
  /* Warm sand ground, near-black slate ink, one deep forest accent. The whole
     site uses this single accent -- there are no per-category hues, because
     eleven of them read as a rainbow rather than as one brand. Category
     identity comes from the photograph. */
  --bg: #f5f2ed;
  --surface: #ffffff;
  --surface-sunken: #efeae2;

  --ink: #1c1e21;
  --ink-2: #3d4247;
  --muted: #5f6469;
  --placeholder: #5f6469;

  /* --line is decorative only. Anything that bounds a control (inputs, ghost
     buttons) uses --line-strong, which clears 3:1 against white. */
  --line: #dcd5ca;
  --line-strong: #9c8f79;
  --line-hover: #7a6f5d;

  --accent: #1f4d3d;
  --accent-dark: #143528;
  --accent-wash: #e8ede9;
  --accent-ring: rgba(31, 77, 61, 0.2);

  /* Success reuses the brand green rather than introducing a second one. */
  --success: #1f4d3d;
  --success-wash: #e8ede9;
  --success-line: #c2d0c8;
  --danger: #9c2a1f;
  --danger-wash: #f7ecea;
  --danger-ring: rgba(156, 42, 31, 0.16);

  /* Grounded work leans on hairlines, not float. Three restrained steps. */
  --shadow-1: 0 1px 2px rgba(28, 30, 33, 0.04);
  --shadow-2: 0 1px 3px rgba(28, 30, 33, 0.06);
  --shadow-panel: 0 1px 2px rgba(28, 30, 33, 0.05), 0 18px 36px -24px rgba(28, 30, 33, 0.22);

  /* Tight radii read as built rather than styled. */
  --r-sm: 3px;
  --r-md: 5px;
  --r-lg: 6px;
  --r-xl: 8px;
  --r-2xl: 10px;
  --r-pill: 999px;

  --sec-y: clamp(56px, 7vw, 104px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* One lightness band, one moderate chroma, spaced around the wheel -- eleven
   hues that read as a family rather than a rainbow. Every one clears 5.7:1 on
   white, so each carries text and takes white text as a background. */
/* ------------------------------------------------------------- 2. base */

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

html {
  scroll-padding-top: 88px;
}

@supports not (overflow: clip) {
  html {
    overflow-x: hidden;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 1rem/1.65 var(--font-ui);
  /* clip, not hidden: overflow-x:hidden turns the body into a scroll container,
     which breaks position:sticky for the header and the desktop form panel. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  /* Archivo is a variable font with a width axis. Semi-condensed at heavy
     weight is what gives the headlines their sturdiness -- without this they
     render at normal width and the whole page loosens. */
  font-stretch: 87.5%;
  font-weight: 700;
  text-wrap: balance;
}

.button,
.wordmark,
.step-kicker,
.cat-cue,
.support-title,
.panel-title,
.question-label,
.faq summary,
.related-card,
.hiw-num {
  font-stretch: 87.5%;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
}

/* Presentation attributes on the sprite's root <svg> do not reach a <use>
   shadow tree -- only inherited CSS does. Without this every glyph renders as a
   filled black shape. */
svg {
  display: block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

img {
  max-width: 100%;
}

/* lander.js hides the Back button with the hidden attribute on step 1, and
   .button sets display:inline-flex -- which wins without this. Same guard the
   root lander carries. */
[hidden] {
  display: none !important;
}

::selection {
  background: rgba(15, 98, 214, 0.16);
  color: var(--ink);
}

::placeholder {
  color: var(--placeholder);
  opacity: 1;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: inherit;
}

.wrap {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

/* The FAQ and the trust statement sit on the same column as everything else;
   line length is held by a measure on the text itself, not by a narrower
   container, so nothing looks accidentally inset. */
.faq-answer,
.reassurance p {
  max-width: 68ch;
}

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

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--muted);
  font: 600 0.75rem var(--font-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.lead {
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  max-width: 46ch;
}

.prose {
  max-width: 68ch;
  color: var(--muted);
}

/* Every grid child gets min-width:0 so a long word cannot force the page wide. */
.cat-grid > *,
.hiw > *,
.support-list > *,
.include-grid > *,
.signal-grid > *,
.related-grid > * {
  min-width: 0;
}

/* -------------------------------------------------------- 3. shared chrome */

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--ink);
  font: 600 0.875rem var(--font-display);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: var(--surface);
  }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

/* Mark plus a two-line wordmark. Stacking keeps the lockup compact enough to
   sit opposite the phone button without crowding it at 360px. */
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-label {
  display: grid;
  gap: 1px;
  font: 700 0.8125rem/1 var(--font-display);
  font-stretch: 87.5%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wordmark-label span:last-child {
  color: var(--muted);
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark-mark {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}

.footer-logo > span {
  display: grid;
  gap: 2px;
  color: var(--ink);
  font: 700 1rem/1 var(--font-display);
  font-stretch: 87.5%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-logo > span span:last-child {
  color: var(--muted);
}

.tel-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  color: var(--ink);
  font: 600 0.875rem var(--font-display);
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) {
  .tel-button:hover {
    border-color: var(--line-hover);
    color: var(--ink);
  }
}

@media (max-width: 560px) {
  .wordmark {
    font-size: 0.8125rem;
  }
  .tel-button {
    padding: 0 12px;
    font-size: 0.8125rem;
  }
}

/* The brand name stays put at every phone width -- it fits at 360px next to the
   phone pill, and a lone mark reads as a broken image on a lead-gen page. */
@media (max-width: 330px) {
  .wordmark-label {
    display: none;
  }
}

/* buttons ------------------------------------------------------------------ */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: 600 1rem var(--font-display);
  line-height: 1.2;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease),
    transform 160ms var(--ease);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-1);
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink-2);
}

@media (hover: hover) {
  .button-primary:hover {
    background: var(--accent-dark);
    color: #ffffff;
  }
  .button-secondary:hover {
    border-color: var(--line-hover);
    color: var(--ink);
  }
  .button:hover .button-arrow {
    transform: translateX(2px);
  }
}

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

.button-arrow {
  transition: transform 160ms var(--ease);
}

@media (max-width: 400px) {
  .button {
    font-size: 0.9375rem;
  }
}

/* disclosure line ---------------------------------------------------------- */

.disclosure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.disclosure svg {
  margin-top: 2px;
}

/* footer ------------------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 64px);
}

.footer-cols {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
}

@media (min-width: 900px) {
  .footer-cols {
    grid-template-columns: 1.4fr 1.6fr 1fr;
    gap: 48px;
  }
}

.footer-title {
  margin-bottom: 14px;
  color: var(--ink);
  font: 600 0.75rem var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-blurb {
  margin-top: 12px;
  max-width: 40ch;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.footer-links {
  display: grid;
  gap: 8px;
}

@media (min-width: 768px) {
  .footer-links--split {
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
  }
}

.footer-links a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.footer-call {
  display: inline-block;
  margin-bottom: 12px;
  font: 600 1.0625rem var(--font-display);
}

/* The rule spans the column; only the sentence inside it is measured. Capping
   the element itself made the hairline stop halfway across the footer. */
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px 24px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.footer-bottom span {
  display: block;
  max-width: 88ch;
}

/* ------------------------------------------------------------- 4. hub page */

.hub-hero {
  text-align: left;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 88px) clamp(44px, 6vw, 76px);
}

.hub-hero .wrap {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 900px) {
  .hub-hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  }
}

.hub-hero-copy {
  display: grid;
  justify-items: start;
  gap: 20px;
}

/* Photography is knocked back so it sits under the sand ground rather than
   glaring out of it, and squared off -- rounded corners read as an app, not as
   a trade. */
.hero-photo,
.lander-photo,
.cat-photo {
  filter: saturate(0.88) contrast(1.04) brightness(0.95);
}

.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font: 600 0.75rem var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.notfound-title {
  margin-bottom: 16px;
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hub-hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 16ch;
}

.hub-hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hub-hero .lead {
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

@media (max-width: 480px) {
  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}

.hiw-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 8px;
}

.hiw-strip li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 20px;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.hiw-strip li:first-child {
  padding-left: 0;
}

.hiw-strip li + li {
  border-left: 1px solid var(--line);
}

.hiw-strip span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font: 600 0.6875rem var(--font-display);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .hiw-strip {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .hiw-strip li {
    padding: 6px 0;
  }
  .hiw-strip li + li {
    border-left: 0;
  }
}

/* category grid ------------------------------------------------------------ */

/* Hairline gutters: the 1px gap over a --line background makes the cards share
   rules like an index instead of floating as loose tiles. */
.cat-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1180px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: box-shadow 160ms var(--ease), transform 160ms var(--ease),
    border-color 160ms var(--ease);
}

.cat-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--line);
}

.cat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  padding: 18px 20px 20px;
}

/* Eleven cards leave a ragged row at two and four columns, so the catch-all
   spans the gap rather than leaving a hole. */
.cat-card--wide {
  grid-column: span 1;
}

@media (min-width: 768px) {
  .cat-card--wide {
    grid-column: span 2;
  }

  /* The catch-all is twice as wide, so its photo becomes a banner. Left at
     16/10 it would be twice as tall as its neighbours and stretch the whole
     row, leaving the cards beside it half empty. */
  .cat-card--wide .cat-photo {
    aspect-ratio: 32 / 10;
  }
}

/* A hairline in the category hue along the top of the card, so each category
   still has an identity now that the drawn glyphs are gone. */
.cat-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.cat-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.cat-cue {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
  color: var(--accent);
  font: 600 0.875rem var(--font-display);
}

.cat-cue svg {
  transition: transform 160ms var(--ease);
}

@media (hover: hover) {
  .cat-card:hover {
    border-color: var(--line-hover);
    box-shadow: var(--shadow-2);
    transform: translateY(-2px);
  }
  .cat-card:hover .cat-cue svg {
    transform: translateX(3px);
  }
}

.cat-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-lg);
}

/* how it works ------------------------------------------------------------- */

.hiw {
  display: grid;
  gap: 0;
}

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

.hiw li {
  padding: 24px 0;
}

.hiw li + li {
  border-top: 1px solid var(--line);
}

@media (min-width: 768px) {
  .hiw li {
    padding: 0 28px;
  }
  .hiw li:first-child {
    padding-left: 0;
  }
  .hiw li + li {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

.hiw-num {
  color: var(--accent);
  font: 700 2.25rem var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0.55;
}

.hiw h3 {
  margin: 12px 0 6px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.hiw p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* what we do / don't ------------------------------------------------------- */

.honesty {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
}

@media (min-width: 900px) {
  .honesty {
    grid-template-columns: 34% 1fr;
    gap: 40px;
  }
}

.honesty dl {
  margin: 0;
}

.honesty-row {
  display: grid;
  grid-template-columns: 22px 96px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
}

.honesty-row + .honesty-row {
  border-top: 1px solid var(--line);
}

.honesty-row:first-child {
  padding-top: 0;
}

.honesty-row dt {
  color: var(--ink-2);
  font: 600 0.6875rem var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 3px;
}

.honesty-row dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.honesty-row svg {
  margin-top: 2px;
}

.honesty-row--do svg {
  color: var(--success);
}

.honesty-row--dont svg {
  color: var(--muted);
}

.honesty-row--choice svg {
  color: var(--ink-2);
}

@media (max-width: 560px) {
  .honesty-row {
    grid-template-columns: 22px 1fr;
  }
  .honesty-row dt {
    padding-top: 2px;
  }
  .honesty-row dd {
    grid-column: 2;
  }
}

/* faq ---------------------------------------------------------------------- */

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  min-height: 44px;
  color: var(--ink);
  font: 600 1.0625rem var(--font-display);
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

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

.faq summary svg {
  margin-top: 3px;
  color: var(--muted);
  transition: transform 240ms var(--ease);
}

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

.faq-answer {
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* cta band ----------------------------------------------------------------- */

.cta-band {
  display: grid;
  gap: 20px;
  justify-items: start;
  padding: clamp(32px, 5vw, 56px);
  background: linear-gradient(135deg, #14261f 0%, #1f4d3d 100%);
  border-radius: var(--r-2xl);
  color: #ffffff;
}

.cta-band h2 {
  color: #ffffff;
}

.cta-band p {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.88);
}

.cta-band .hero-actions {
  justify-content: flex-start;
  margin-top: 4px;
}

.cta-band .button-primary {
  background: #ffffff;
  color: #0b2e6f;
}

.cta-band .button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

@media (hover: hover) {
  .cta-band .button-primary:hover {
    background: #e7eefb;
    color: #0b2e6f;
  }
  .cta-band .button-secondary:hover {
    border-color: #ffffff;
    color: #ffffff;
  }
}

.cta-band :focus-visible {
  outline-color: #ffffff;
}

@media (max-width: 480px) {
  .cta-band .hero-actions {
    width: 100%;
  }
}

/* --------------------------------------------------------------- 5. lander */

.breadcrumb {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.8125rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
  color: var(--ink-2);
}

.breadcrumb svg {
  color: var(--line-hover);
}

.lander-hero {
  background: var(--bg);
  padding-block: clamp(28px, 4vw, 56px) clamp(40px, 5vw, 64px);
}

.lander-hero .wrap {
  display: grid;
  gap: 32px;
}

/* DOM order is lede -> form -> support on purpose: the panel is the second
   thing on the page on mobile with no order hacks, and the tab order matches. */
@media (min-width: 1024px) {
  .lander-hero .wrap {
    grid-template-columns: minmax(0, 1fr) 460px;
    grid-template-areas:
      "lede form"
      "support form";
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
  }
  .lander-lede {
    grid-area: lede;
  }
  .panel-wrap {
    grid-area: form;
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .lander-support {
    grid-area: support;
  }
}

.lander-lede {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-ring);
  border-radius: var(--r-pill);
  color: var(--accent);
  font: 600 0.8125rem var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lander-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  margin-top: 8px;
}

.lander-lede h1 {
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.lander-support {
  display: grid;
  gap: 24px;
  margin-top: 8px;
}

.support-title {
  color: var(--ink);
  font: 600 1.0625rem var(--font-display);
  letter-spacing: -0.01em;
}

/* The concrete list of jobs is the trust signal. There are no badges, ratings,
   or counts anywhere on this site, because none of them would be true. */
.support-list {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

@media (min-width: 560px) {
  .support-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
}

.support-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 40px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.support-list svg {
  margin-top: 3px;
  color: var(--accent);
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.fact-row li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.fact-row svg {
  color: var(--accent);
}

.call-line {
  color: var(--muted);
  font-size: 0.9375rem;
}

.call-line a {
  font: 600 1.0625rem var(--font-display);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chips li {
  display: inline-flex;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font: 400 0.875rem var(--font-ui);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}

@media (hover: hover) {
  .chip:hover {
    border-color: var(--accent);
    color: var(--ink);
  }
}

/* Without JS the chips cannot fill anything, so they ship as static pills and
   ui.js swaps each one for a real button in place. A dead button is worse than
   a printed example, so the static state is styled as text, not as a control. */
.chip-static {
  background: var(--surface-sunken);
  color: var(--muted);
  cursor: default;
}

.safety {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.safety svg {
  margin-top: 2px;
  color: var(--accent);
}

.service-list {
  display: grid;
  gap: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .service-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
}

.service-row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.service-row dt {
  margin-bottom: 4px;
  color: var(--ink);
  font: 600 1rem var(--font-display);
  letter-spacing: -0.01em;
}

.service-row dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.reassurance {
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
}

.reassurance p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.include-card {
  padding: clamp(20px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
}

.include-grid {
  display: grid;
  gap: 12px 32px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .include-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.include-grid li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.include-grid svg {
  margin-top: 3px;
  color: var(--accent);
}

.signal-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.signal-grid li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.signal-grid svg {
  margin-top: 2px;
  color: var(--accent);
}

.related-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.related-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--ink);
  font: 600 0.9375rem var(--font-display);
  text-decoration: none;
}

.related-photo {
  width: 56px;
  height: 56px;
  flex: none;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--surface-sunken);
}

@media (hover: hover) {
  .related-card:hover {
    box-shadow: inset 0 0 0 1px var(--line-hover), inset 3px 0 0 var(--accent);
  }
}

.related-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.related-more {
  display: inline-block;
  margin-top: 16px;
  font: 600 0.9375rem var(--font-display);
}

/* ----------------------------------------------------------- 6. form panel */

.form-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

/* A bar rather than a border-top, so the corner radius stays clean. */
.form-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
}

.panel-head {
  padding: 20px 24px 16px;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--line);
}

.panel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.step-kicker {
  color: var(--ink-2);
  font: 600 0.75rem var(--font-ui);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* A count, never a duration. We cannot honestly promise how long anything takes. */
.panel-count {
  color: var(--muted);
  font-size: 0.75rem;
}

.progress-track {
  position: relative;
  height: 6px;
  background: #e7ecf3;
  border-radius: var(--r-pill);
  overflow: hidden;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--accent);
  border-radius: var(--r-pill);
  transition: width 260ms var(--ease);
}

/* Three notches turn the single JS-driven width into a four-step meter. Purely
   decorative -- the literal "Step 1 of 4" text is what gets announced. */
.progress-track::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 calc(25% - 2px),
    var(--surface) calc(25% - 2px) 25%
  );
}

.panel-title {
  margin-top: 14px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.panel-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.panel-body {
  padding: 20px 24px 24px;
}

.step {
  display: none;
}

.step.is-active {
  display: block;
  animation: stepIn 240ms var(--ease) both;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.question-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font: 600 1.125rem var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.hint {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.84375rem;
  line-height: 1.5;
}

.field {
  margin-bottom: 16px;
}

.field > label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-2);
  font: 600 0.75rem var(--font-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  /* Exactly 16px. Anything smaller makes iOS Safari zoom on focus. */
  font: 400 16px/1 var(--font-ui);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.field input {
  height: 48px;
  padding: 0 14px;
}

.field textarea {
  min-height: 132px;
  padding: 12px 14px;
  line-height: 1.55;
  resize: vertical;
}

#zipCode,
#phoneNumber {
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
  .field input:hover,
  .field textarea:hover {
    border-color: var(--line-hover);
  }
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
  outline: none;
}

.field [aria-invalid="true"],
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-ring);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 400px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.char-count {
  margin-top: 6px;
  color: var(--muted);
  font: 400 0.75rem var(--font-ui);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 44px;
  padding: 14px;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink-2);
  /* Never smaller: this is the TCPA disclosure, reused verbatim from the root. */
  font-size: 0.8125rem;
  line-height: 1.55;
  cursor: pointer;
}

.consent input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  background: var(--surface);
  border: 1.5px solid var(--line-hover);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}

.consent input:checked {
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    no-repeat center / 14px;
  border-color: var(--accent);
}

.consent input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-ring);
}

/* The reserved height means nothing below shifts when a message appears. */
.error-text {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-height: 20px;
  margin-top: 4px;
  color: var(--danger);
  font: 500 0.84375rem var(--font-ui);
  line-height: 1.4;
}

.error-text:not(:empty)::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

.panel-footer {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

#continueButton {
  flex: 1;
}

#continueButton:disabled {
  background: var(--line-strong);
  color: var(--bg);
  cursor: not-allowed;
  box-shadow: none;
}

#backButton {
  padding: 0 18px;
}

#backButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.back-label {
  display: inline;
}

/* Below 400px Back collapses to a square so Continue keeps room for the
   step-4 label "Call me for an Estimate". */
/* Below 400px the label collapses so Continue keeps room for "Call me for an
   Estimate", but the chevron stays -- an empty square is not a control. */
@media (max-width: 400px) {
  #backButton {
    padding: 0;
    width: 52px;
    flex: none;
  }
  .back-label {
    display: none;
  }
}

.panel-notes {
  margin-top: 16px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.panel-notes .note-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.panel-notes svg {
  margin-top: 2px;
}

/* status screens ----------------------------------------------------------- */

.status-screen {
  display: none;
  padding: 40px 24px;
  text-align: center;
}

.status-screen.is-visible {
  display: block;
}

.status-screen h3 {
  margin-bottom: 8px;
  font-size: 1.375rem;
  font-weight: 600;
}

.status-screen p {
  margin-inline: auto;
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.9375rem;
}

.status-screen p + p {
  margin-top: 10px;
}

.loader {
  width: 36px;
  height: 36px;
  margin: 0 auto 20px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--success-wash);
  border: 1px solid var(--success-line);
  border-radius: 50%;
  color: var(--success);
}

/* The wizard appends bare <li>s, so the receipt styling lives entirely here. */
.confirmation-summary {
  margin-top: 20px;
  text-align: left;
}

.confirmation-summary li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.84375rem;
  overflow-wrap: anywhere;
}

.status-link {
  display: inline-block;
  margin-top: 16px;
  font: 600 0.9375rem var(--font-display);
}

/* mobile sticky cta -------------------------------------------------------- */

/* Revealed only once the panel has scrolled away, so it never covers the form
   it points at. With no JS the class is never set and it simply never appears. */
.mobile-cta {
  display: none;
}

@media (max-width: 1023px) {
  body.show-mobile-cta .mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    gap: 10px;
    align-items: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  body.show-mobile-cta {
    padding-bottom: 84px;
  }
  .mobile-cta .button-primary {
    flex: 1;
  }
  .mobile-cta .tel-square {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    color: var(--ink);
  }
}

/* ---------------------------------------------------- 7. responsive + a11y */

@media (max-width: 640px) {
  .form-panel {
    border-radius: var(--r-lg);
  }
  .panel-head {
    padding: 16px 16px 12px;
  }
  .panel-body {
    padding: 16px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 32px, 1200px);
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: #cdd5e0;
    --muted: #344054;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .loader {
    animation: none;
  }
  .step.is-active {
    animation: none;
  }
}
