:root {
  --ink: oklch(29% .045 235);
  --ink-2: oklch(34% .048 235);
  --stone: oklch(95.5% .012 95);
  --paper: oklch(99% .006 95);
  --line: oklch(89% .01 150);
  --eucalyptus: oklch(52% .04 165);
  --orange: oklch(68% .15 45);
  --orange-dark: oklch(58% .14 50);
  --soft-blue: oklch(94.5% .012 210);
  --white: oklch(99.5% .004 95);
  --shadow: 0 24px 60px rgba(18, 42, 58, .13);
  --radius: 22px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 78px;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--white);
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(820px, calc(100% - 2rem)); margin-inline: auto; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .8rem;
  color: var(--orange);
  font-size: .84rem;
  font-weight: 750;
  letter-spacing: .01em;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; flex: 0 0 auto; background: currentColor; border-radius: 999px; }
.muted { color: #58707d; }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: var(--white);
  background: rgba(18, 42, 58, .97);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
}
.nav-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 9px;
  background: var(--orange);
  border-radius: 12px 12px 4px 12px;
}
.brand-mark span { display: block; height: 5px; background: var(--ink); border-radius: 2px; }
.brand-mark span:nth-child(2) { width: 82%; margin-left: auto; }
.brand-mark span:nth-child(3) { width: 62%; margin-left: auto; }
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font-size: 1.02rem; font-weight: 820; letter-spacing: -.025em; }
.brand-copy span { margin-top: .3rem; color: #b7c8d0; font-size: .68rem; letter-spacing: .01em; }
.main-nav { display: flex; align-items: center; gap: 1.25rem; font-size: .9rem; font-weight: 700; }
.main-nav a { color: #e5eef1; text-decoration: none; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--white); text-decoration: underline; text-underline-offset: .3rem; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { min-height: 44px; display: grid; place-items: center; padding: .45rem .7rem; color: var(--white); border: 1px solid rgba(255,255,255,.25); border-radius: 9px; cursor: pointer; font-weight: 800; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; right: 0; top: calc(100% + .55rem); width: min(290px, calc(100vw - 1.2rem)); display: grid; gap: .3rem; padding: .75rem; background: var(--ink-2); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; box-shadow: var(--shadow); }
.mobile-nav nav > a:not(.button) { min-height: 44px; display: flex; align-items: center; padding: .55rem .65rem; color: var(--white); text-decoration: none; border-radius: 8px; }
.mobile-nav nav > a[aria-current="page"] { background: rgba(255,255,255,.1); }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .75rem 1.05rem;
  color: var(--white);
  background: var(--orange-dark);
  border: 2px solid var(--orange-dark);
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); background: #a84a1a; }
.button-light { color: var(--ink); background: var(--white); border-color: var(--white); }
.button-outline { color: var(--ink); background: transparent; border-color: #9fb0b7; }
.button-small { min-height: 40px; padding: .55rem .85rem; font-size: .85rem; }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,28,40,.98) 0%, rgba(10,28,40,.92) 38%, rgba(10,28,40,.30) 72%, rgba(10,28,40,.18) 100%),
    url('/assets/retaining-wall-hero.webp') center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(transparent, rgba(10,28,40,.56));
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .78fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: center; padding-block: 5.5rem 8.5rem; }
.hero-copy { max-width: 680px; }
.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 5.4vw, 5.35rem);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.045em;
}
.page-hero h1 { margin: 0; max-width: 1000px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6.4rem); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.hero .lead { max-width: 590px; margin: 1.5rem 0 2rem; color: #d8e4e8; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-text-link { min-height: 46px; display: inline-flex; align-items: center; padding: .6rem .4rem; color: var(--white); font-weight: 800; text-underline-offset: .3rem; }
.hero-note { margin-top: 1.15rem; color: #b9cbd2; font-size: .82rem; }
.hero-quote { color: var(--ink); }
.trust-strip {
  position: relative;
  z-index: 2;
  margin-top: -72px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.trust-item { padding: 1.4rem 1.5rem; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-family: Georgia, serif; font-size: 1.65rem; }
.trust-item span { color: #617681; font-size: .8rem; font-weight: 700; }

.section { padding-block: clamp(4.5rem, 8vw, 8rem); }
.section-soft { background: var(--stone); }
.section-dark { color: var(--white); background: var(--ink); }
.section-heading { max-width: 780px; margin-bottom: 2.5rem; }
.section-heading h2, .content-block h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 4.4vw, 4.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.section-heading p { max-width: 670px; margin: 1rem 0 0; color: #657984; }
.section-dark .section-heading p { color: #c4d2d8; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  min-height: 230px;
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 14px;
}
.card-number {
  color: var(--orange-dark);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.card h3 { margin: 1rem 0 .7rem; font-size: 1.28rem; line-height: 1.25; letter-spacing: -.015em; }
.card p { margin: 0 0 1.25rem; color: #657984; }
.text-link { color: var(--orange-dark); font-weight: 800; text-underline-offset: .25rem; }

.estimate-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 1.25rem;
  align-items: stretch;
}
.panel {
  padding: clamp(1.35rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section-dark .panel { color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { display: grid; gap: .42rem; }
.field-full { grid-column: 1 / -1; }
label, .label { font-size: .82rem; font-weight: 800; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: .7rem .8rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #aab9bf;
  border-radius: 9px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(226,120,50,.28); border-color: var(--orange-dark); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.25rem; }
.help { color: #667a85; font-size: .76rem; }

.quick-quote { display: grid; gap: 1rem; padding: clamp(1.25rem, 2.6vw, 2rem); background: var(--white); border: 1px solid rgba(255,255,255,.6); border-radius: 18px; box-shadow: 0 24px 70px rgba(4,19,29,.3); }
.quick-quote-heading h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.035em; }
.quick-quote-heading p:last-child { margin: .45rem 0 0; color: #58707d; font-size: .88rem; }
.quick-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.quick-quote input, .quick-quote select { min-height: 44px; padding: .6rem .7rem; }
.quick-upload { padding: .75rem; background: var(--stone); border: 1px dashed #91a3aa; border-radius: 10px; }
.quick-upload label span { color: #667a85; font-weight: 500; }
.quick-upload input { min-height: 0; padding: .5rem 0; border: 0; background: transparent; }
.quick-consent { min-height: 0; margin: 0; font-size: .72rem; line-height: 1.35; }
.quick-consent input { width: 1.15rem; min-height: 1.15rem; }
.quick-privacy { margin: -.35rem 0 0; color: #667a85; font-size: .7rem; text-align: center; }

.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.resource-link { position: relative; min-height: 132px; display: grid; align-content: center; gap: .25rem; padding: 1.25rem 3.1rem 1.25rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.resource-link:hover, .resource-link:focus-visible { border-color: var(--orange-dark); box-shadow: 0 10px 24px rgba(18,42,58,.08); }
.resource-link strong { font-size: 1.05rem; }
.resource-link > span:not(.resource-arrow) { color: #58707d; font-size: .82rem; }
.resource-arrow { position: absolute; right: 1.2rem; top: 50%; translate: 0 -50%; color: var(--orange-dark); font-size: 1.35rem; }
.section-action { margin: 1.35rem 0 0; }
.location-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.location-panel h2, .quote-band h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 4.4vw, 4.25rem); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; }
.location-panel p:not(.eyebrow), .quote-band p:not(.eyebrow) { color: #58707d; }
.location-links { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.location-links a { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; background: var(--stone); border: 1px solid var(--line); border-radius: 10px; font-weight: 750; text-decoration: none; }
.location-links a:hover, .location-links a:focus-visible { border-color: var(--orange-dark); }
.location-links span { color: var(--orange-dark); }
.location-link-groups { display: grid; gap: 1.25rem; }
.quote-band { color: var(--ink); background: #f7e7da; }
.quote-band .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.quote-band .container > div { max-width: 760px; }

.sticky-quote { position: fixed; right: 18px; bottom: 16px; z-index: 28; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.1rem; color: var(--white); background: var(--orange-dark); border: 2px solid var(--white); border-radius: 999px; box-shadow: 0 12px 36px rgba(4,19,29,.3); font-weight: 850; text-decoration: none; }
.sticky-quote:hover, .sticky-quote:focus-visible { background: #a84a1a; }
.quote-dialog { width: min(560px, calc(100% - 1rem)); max-height: calc(100vh - 1rem); padding: 0; overflow: auto; border: 0; border-radius: 18px; background: transparent; }
.quote-dialog::backdrop { background: rgba(4,19,29,.76); backdrop-filter: blur(4px); }
.quote-dialog-inner { position: relative; }
.quote-dialog .quick-quote { box-shadow: none; }
.quote-dialog-close { position: absolute; right: .65rem; top: .55rem; z-index: 2; width: 44px; height: 44px; color: var(--ink); background: var(--stone); border: 0; border-radius: 50%; font-size: 1.7rem; line-height: 1; }

.result-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background: var(--ink-2);
  border: 0;
}
.section-dark .result-panel { color: var(--white); }
.result-panel h2 { margin: 0; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.result-band { margin-block: 1.5rem; }
.result-band strong { display: block; color: #ffd1b2; font-family: Georgia, serif; font-size: clamp(2.25rem, 4vw, 3.7rem); line-height: 1; }
.result-band span { color: #c6d5da; font-size: .82rem; }
.result-list { margin: 0; padding: 0; list-style: none; }
.result-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .72rem 0; border-top: 1px solid rgba(255,255,255,.13); }
.result-list span { color: #bcd0d8; }
.result-caveat { margin-top: 1.25rem; color: #bcd0d8; font-size: .74rem; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.sticky-copy { position: sticky; top: 112px; }
.checklist { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 1rem 1rem 1rem 3.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
.checklist li::before { content: "✓"; position: absolute; left: 1rem; top: .9rem; color: var(--white); background: var(--eucalyptus); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.article-section + .notice { margin-top: 1.25rem; }

.source-box { padding: 1rem 1.1rem; background: var(--soft-blue); border: 1px solid color-mix(in oklch, var(--eucalyptus) 35%, var(--line)); border-radius: 12px; }
.source-box strong, .source-label { display: block; margin-bottom: .25rem; color: var(--eucalyptus); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.source-box p { margin: 0; font-size: .84rem; }
.source-box a { text-underline-offset: .2rem; }

.brief-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.brief-panel h2 { margin-top: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; font-weight: 500; }
.upload-box { padding: 1rem; background: var(--stone); border: 1px dashed #91a3aa; border-radius: 12px; }
.status-message { min-height: 1.4rem; margin: .8rem 0 0; color: var(--eucalyptus); font-weight: 800; }
.check-control { min-height: 48px; display: flex; align-items: center; gap: .55rem; }
.check-control input { width: 1.2rem; min-height: 1.2rem; margin: 0; }

.page-hero { padding: 6rem 0 5rem; color: var(--white); background: var(--ink); }
.page-hero h1 { max-width: 1000px; font-size: clamp(3.1rem, 7vw, 6.4rem); }
.page-hero .lead { max-width: 760px; color: #c6d5da; font-size: 1.15rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2rem; color: #b7c9d1; font-size: .8rem; }
.breadcrumbs a { color: inherit; }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.25rem; }
.fact { padding: 1rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; }
.fact strong { display: block; color: #ffd1b2; }
.fact span { color: #c4d3d9; font-size: .8rem; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 3rem; align-items: start; }
.content-block h2 { margin-top: 3rem; font-size: clamp(2rem, 3.7vw, 3.2rem); }
.content-block h3 { margin-top: 2rem; font-size: 1.35rem; }
.content-block p, .content-block li { color: #435d6a; }
.content-block table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.content-block th, .content-block td { padding: .85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.content-block th { color: var(--ink); background: var(--soft-blue); }
.sidebar { position: sticky; top: 105px; display: grid; gap: 1rem; }
.sidebar-card { padding: 1.2rem; background: var(--stone); border-radius: 14px; }
.sidebar-card h3 { margin-top: 0; }
.sidebar-card ul { margin: 0; padding-left: 1.1rem; }
.notice { padding: 1.2rem; background: #fff2e8; border: 1px solid #f2c4a4; border-radius: 13px; }
.notice p { margin-bottom: 0; }
.article-section { scroll-margin-top: 100px; }
.content-block { min-width: 0; }
.table-scroll { position: relative; max-width: 100%; min-width: 0; overflow-x: auto; }
.table-scroll:focus-visible { outline: 3px solid rgba(226,120,50,.28); outline-offset: 3px; }
.faq-list { display: grid; gap: .75rem; }
.faq-list details { padding: 1rem 1.1rem; background: var(--stone); border: 1px solid var(--line); border-radius: 12px; }
.faq-list summary { cursor: pointer; color: var(--ink); font-weight: 800; }
.faq-list p { margin-bottom: 0; }
.related-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.related-links a { display: grid; gap: .2rem; padding: 1rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.related-links a:hover { border-color: var(--orange-dark); }
.related-links span { color: #58707d; font-size: .86rem; }
.reviewed-card h2, .sidebar-card h2 { margin: 0 0 .75rem; font: 700 1.1rem/1.25 ui-sans-serif, system-ui, sans-serif; }
.source-list { display: grid; gap: .9rem; }
.source-list li { color: #58707d; }
.source-list a { display: block; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.source-list span { display: block; margin-top: .2rem; font-size: .74rem; }

.lead-layout { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.lead-guide { position: sticky; top: 110px; }
.lead-guide h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 500; line-height: 1.04; }
.lead-form { display: grid; gap: 2rem; box-shadow: var(--shadow); }
.lead-form fieldset { min-width: 0; margin: 0; padding: 0 0 2rem; border: 0; border-bottom: 1px solid var(--line); }
.lead-form legend { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; color: var(--ink); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.lead-form legend span { width: 34px; height: 34px; display: grid; place-items: center; color: var(--white); background: var(--ink); border-radius: 50%; font: 900 .82rem/1 Inter, sans-serif; }
.lead-form label strong { color: var(--orange-dark); font-size: .7rem; text-transform: uppercase; }
.lead-form textarea { resize: vertical; }
.consent { min-height: 48px; display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.25rem; cursor: pointer; }
.consent input { width: 1.3rem; min-height: 1.3rem; margin-top: .15rem; flex: 0 0 auto; }
.lead-submit { width: 100%; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.estimate-carry { display: grid; gap: .2rem; margin-top: 1rem; padding: 1rem; background: var(--soft-blue); border: 1px solid var(--line); border-radius: 12px; }
.estimate-carry span { color: #58707d; font-size: .84rem; }
.checker-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: clamp(1rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.checker-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.checker-toolbar h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 500; }
.mobile-scroll-hint { display: none; color: #58707d; font-size: .86rem; }
.checker-table { min-width: 900px; width: 100%; border-collapse: collapse; }
.checker-table th, .checker-table td { padding: .75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.checker-table thead th { background: var(--soft-blue); }
.checker-table tbody th { width: 28%; }
.checker-table select, .checker-table input { min-width: 170px; }
.checker-table tr[data-different="true"] { background: #fff2e8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-footer { padding: 4rem 0 2rem; color: #c8d5da; background: #0c202d; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2.25rem; }
.footer-grid h2 { color: var(--white); margin-top: 0; font: 800 .9rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.footer-grid a { color: #dbe5e9; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); color: #9db0b8; font-size: .78rem; }

.diagram { margin: 0 0 1.5rem; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { margin-top: .6rem; font-size: .85rem; color: var(--ink-soft, #4a5a64); }
.result-action { display: grid; gap: .4rem; margin: 1rem 0 0; }
.result-action .help { font-size: .8rem; }
.section-dark .result-action .help { color: #b9cbd2; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero { min-height: 640px; }
  .hero-inner { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card-grid, .estimate-shell, .split, .brief-panel, .article-grid, .lead-layout, .location-panel { grid-template-columns: minmax(0, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-copy, .sidebar, .lead-guide { position: static; }
  .facts-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container, .narrow { width: min(100% - 1.2rem, 1180px); }
  .mobile-scroll-hint { display: block; }
  .related-links { grid-template-columns: 1fr; }
  .nav-row { min-height: 68px; }
  .brand-copy span { display: none; }
  .mobile-nav .button { padding: .55rem .7rem; font-size: .78rem; }
  .hero h1, .page-hero h1 { font-size: 2.85rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero .lead { margin: 1rem 0 1.25rem; font-size: 1rem; }
  .hero-text-link, .hero-note { display: none; }
  .hero-inner { padding-block: 2.5rem 6rem; gap: 1.5rem; }
  .hero::before { background-position: 62% center; }
  .trust-strip { margin-top: -52px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 1rem; }
  .trust-item strong { font-size: 1.25rem; }
  .section { padding-block: 4rem; }
  .form-grid { grid-template-columns: 1fr; }
  .quick-form-grid, .resource-grid, .location-links { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .quote-band .container { align-items: flex-start; flex-direction: column; }
  .quote-band .button { width: 100%; }
  .sticky-quote { left: .6rem; right: .6rem; bottom: .55rem; border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .page-hero, .checker-toolbar .button, .notice, .sticky-quote, .quote-dialog { display: none !important; }
  .section { padding: 0; }
  .checker-shell { box-shadow: none; border: 0; }
  .checker-table { min-width: 0; font-size: 9pt; }
}
