/* ==================================================================
   VeriSure Compliance Services — Design System & Site Styles
   Palette: navy / green / white (light & bright)
   Fonts:   Sora (headings) + Inter (body)
   Mobile-first. WCAG 2.1 AA contrast throughout.
   ================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette */
  --navy-950: #071A31;
  --navy-900: #0B2545;   /* primary navy */
  --navy-800: #123262;
  --navy-700: #1A4380;
  --green-700: #10613A;
  --green-600: #157A45;  /* primary CTA green — 5.0:1 on white */
  --green-500: #1B9558;
  --green-bright: #4ECE86; /* accents on navy only */
  --green-050: #E4F5EC;

  /* Neutrals */
  --white: #FFFFFF;
  --bg-alt: #F4F8FB;
  --bg-tint: #EDF4F0;
  --border: #D9E2EC;
  --ink: #17273B;        /* body text — 13.9:1 on white */
  --muted: #46586E;      /* secondary text — 7.3:1 on white */

  /* Type */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Sora", var(--font-body);
  --fs-h1: clamp(2.1rem, 1.35rem + 3.1vw, 3.35rem);
  --fs-h2: clamp(1.55rem, 1.2rem + 1.5vw, 2.15rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  --fs-small: 0.9rem;

  /* Space / shape / elevation */
  --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: 4.5rem;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.08);
  --shadow-md: 0 6px 20px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 16px 40px rgba(11, 37, 69, 0.14);

  --container: 71rem;
  --header-h: 4.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--navy-900);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); font-weight: 600; }

p, ul, ol { margin: 0 0 var(--sp-4); }
ul, ol { padding-left: 1.25rem; }

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

a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--navy-900); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--green-050); color: var(--navy-900); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* ---------- 3. Layout utilities ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section { padding-block: clamp(3.25rem, 2.5rem + 3vw, 5.5rem); }
.section--alt { background: var(--bg-alt); }
.section--tint { background: linear-gradient(180deg, var(--bg-tint), var(--white)); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: var(--sp-3);
}

.lead { font-size: var(--fs-lead); color: var(--muted); }

.grid { display: grid; gap: var(--sp-5); }

/* Grid/flex items refuse to shrink below their content's intrinsic width by
   default — without this, wide images blow out the layout on small screens. */
.grid > *, .hero-grid > *, .split > *, .footer-grid > * { min-width: 0; }
@media (min-width: 42em) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62em) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.9em 1.6em;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .btn-icon { flex: none; width: 1.15em; height: 1.15em; }

.btn--primary {
  background: var(--green-600);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--green-700);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn--outline:hover {
  background: var(--navy-900);
  color: var(--white);
}

/* For use on navy backgrounds */
.btn--light {
  background: var(--white);
  color: var(--navy-900);
}
.btn--light:hover { background: var(--green-050); color: var(--navy-900); }

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); border-color: var(--white); }

.btn--sm { font-size: 0.92rem; padding: 0.62em 1.15em; }
.btn--lg { font-size: 1.08rem; padding: 1em 1.9em; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.btn-note {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: var(--sp-3);
}

/* ---------- 5. Top bar + header + nav ---------- */
.topbar {
  background: var(--navy-950);
  color: #D7E3F1;
  font-size: 0.88rem;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 1.25rem;
  padding-block: 0.45rem;
  text-align: center;
}
.topbar p { margin: 0; }
.topbar strong { color: var(--white); font-weight: 600; }
.topbar a {
  color: var(--green-bright);
  font-weight: 600;
  white-space: nowrap;
}
.topbar a:hover { color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 196px; height: 46px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.8rem;
  font: 600 0.9rem var(--font-body);
  color: var(--navy-900);
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  transition: background-color 0.15s ease;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-4) 0 var(--sp-5);
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0 var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.nav-list a:not(.btn) {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--navy-900);
  text-decoration: none;
}
.nav-list a:not(.btn):hover { background: var(--bg-alt); color: var(--green-700); }
.nav-list a[aria-current] {
  color: var(--green-700);
  font-weight: 600;
  background: var(--green-050);
}
.nav-cta-item { margin-top: var(--sp-2); }
.nav-cta-item .btn { width: 100%; }

@media (min-width: 62em) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav.is-open { position: static; box-shadow: none; border: 0; padding: 0; }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
  }
  .nav-list a:not(.btn) { padding: 0.5rem 0.85rem; }
  .nav-list a[aria-current] { background: none; }
  .nav-list a[aria-current]::after {
    content: "";
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--green-600);
    margin-top: 2px;
  }
  .nav-cta-item { margin: 0 0 0 var(--sp-3); }
  .nav-cta-item .btn { width: auto; }
}

/* ---------- 6. Hero ---------- */
.hero {
  background:
    radial-gradient(46rem 26rem at 88% -10%, rgba(78, 206, 134, 0.14), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, rgba(26, 67, 128, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-tint), var(--white));
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
}
.hero-grid {
  display: grid;
  gap: var(--sp-7);
  align-items: center;
}
@media (min-width: 62em) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.hero h1 { margin-bottom: var(--sp-4); }
.hero .lead { max-width: 34rem; margin-bottom: var(--sp-5); }
.hero-art { margin-inline: auto; max-width: 26rem; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  margin: var(--sp-6) 0 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.42em 0.95em;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 1em; height: 1em; color: var(--green-600); flex: none; }

/* ---------- 7. Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card > :last-child { margin-bottom: 0; }
.card p { color: var(--muted); }

.card--link { position: relative; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-500);
}
.card-cta {
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.card-cta::after { content: "\2192"; transition: transform 0.18s ease; }
.card--link:hover .card-cta::after { transform: translateX(4px); }
/* Stretch the card's primary link over the whole card */
.card--link .card-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.icon-tile {
  width: 3rem;
  height: 3rem;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-050);
  color: var(--green-700);
  margin-bottom: var(--sp-4);
}
.icon-tile svg { width: 1.5rem; height: 1.5rem; }

/* Feature list rows (why us) */
.feature {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.feature .icon-tile { margin-bottom: 0; }
.feature h3 { margin-bottom: var(--sp-1); }
.feature p { color: var(--muted); margin: 0; }

/* ---------- 8. Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 62em) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-700);
  background: var(--green-050);
  border-radius: 999px;
  padding: 0.3em 0.85em;
  margin-bottom: var(--sp-4);
}
.step h3 { margin-bottom: var(--sp-2); }
.step p { color: var(--muted); margin: 0; }

/* ---------- 9. Checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}
@media (min-width: 42em) { .checklist--2col { grid-template-columns: repeat(2, 1fr); } }
.checklist li {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
}
.checklist svg {
  flex: none;
  width: 1.35em;
  height: 1.35em;
  color: var(--green-600);
  margin-top: 0.15em;
}

/* ---------- 10. Service area map ---------- */
.area-map {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
  box-shadow: var(--shadow-sm);
}
.area-map svg { width: 100%; height: auto; }
.area-map figcaption {
  font-size: var(--fs-small);
  color: var(--muted);
  text-align: center;
  padding-top: var(--sp-3);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-small);
  color: var(--muted);
}
.legend li { display: inline-flex; align-items: center; gap: 0.5em; }
.legend .dot {
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  flex: none;
}
.dot--primary { background: var(--green-600); }
.dot--extended { background: var(--navy-900); }

.city-group h3 {
  font-size: 1rem;
  margin-bottom: var(--sp-3);
}
.city-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.city-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3em 0.9em;
  font-size: 0.88rem;
  color: var(--ink);
}
.city-list--primary li {
  background: var(--green-050);
  border-color: #BFE5CF;
  font-weight: 500;
}

/* ---------- 11. CTA band ---------- */
.cta-band {
  background:
    radial-gradient(38rem 20rem at 100% 0%, rgba(78, 206, 134, 0.18), transparent 60%),
    var(--navy-900);
  color: #D7E3F1;
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 1.75rem + 2.5vw, 4rem);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p {
  color: #B9CBDF;
  max-width: 38rem;
  margin-inline: auto;
}
.cta-band .btn-row { justify-content: center; margin-top: var(--sp-5); }
.cta-band .btn-note { color: #9FB4CC; }
.cta-band a:not(.btn) { color: var(--green-bright); }

.section--navy {
  background: var(--navy-950);
  color: #D7E3F1;
}
.section--navy h2, .section--navy h3 { color: var(--white); }

/* ---------- 12. Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--bg-tint), var(--white));
  padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem);
}
.page-hero .lead { max-width: 44rem; }
.page-hero .btn-row { margin-top: var(--sp-5); }

.breadcrumbs {
  font-size: var(--fs-small);
  margin-bottom: var(--sp-5);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  padding: 0;
  margin: 0;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35em;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--navy-900); }
.breadcrumbs [aria-current] { color: var(--navy-900); font-weight: 500; }

/* Two-column body sections on service pages */
.split {
  display: grid;
  gap: var(--sp-6);
  align-items: start;
}
@media (min-width: 62em) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-8); }
}

.info-panel {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.info-panel h3 { margin-bottom: var(--sp-3); }
.info-panel :last-child { margin-bottom: 0; }

.note {
  border-left: 4px solid var(--green-600);
  background: var(--green-050);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.95rem;
}
.note :last-child { margin-bottom: 0; }

/* ---------- 13. FAQ ---------- */
.faq-list {
  display: grid;
  gap: var(--sp-3);
  max-width: 50rem;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.faq-item[open] { border-color: var(--green-500); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-050);
  color: var(--green-700);
  font-weight: 600;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "\2212"; transform: rotate(180deg); }
.faq-body { padding: 0 var(--sp-5) var(--sp-5); color: var(--muted); }
.faq-body :last-child { margin-bottom: 0; }

/* ---------- 14. Contact ---------- */
.contact-card {
  text-align: center;
  align-items: center;
}
.contact-card .icon-tile { margin-inline: auto; }
.contact-card .btn { margin-top: auto; }
.contact-card p { margin-bottom: var(--sp-4); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.hours-table th, .hours-table td {
  text-align: left;
  padding: var(--sp-3) var(--sp-2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.hours-table th { color: var(--navy-900); font-weight: 600; white-space: nowrap; }
.hours-table td { color: var(--muted); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: #B9CBDF;
  padding-top: var(--sp-8);
  margin-top: var(--sp-8);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: var(--sp-6);
  padding-bottom: var(--sp-7);
}
@media (min-width: 42em) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .footer-grid { grid-template-columns: 1.4fr 0.8fr 1fr 1fr; } }

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-1);
}
.footer-logo span { color: var(--green-bright); }
.footer-tagline {
  color: var(--green-bright);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: var(--sp-4);
}
.site-footer h2 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-2);
}
.site-footer a { color: #D7E3F1; text-decoration: none; }
.site-footer a:hover { color: var(--green-bright); text-decoration: underline; }
.site-footer a:focus-visible { outline-color: var(--green-bright); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  justify-content: space-between;
  border-top: 1px solid rgba(217, 226, 236, 0.18);
  padding-block: var(--sp-5);
  font-size: 0.88rem;
  color: #9FB4CC;
}
.footer-bottom p { margin: 0; }

/* ---------- 15b. Blog ---------- */
.post-meta {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-bottom: var(--sp-3);
}

.prose {
  max-width: 46rem;
}
.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose li { margin-bottom: var(--sp-2); }
.prose ol li { padding-left: 0.25rem; }

/* ---------- 16. 404 ---------- */
.error-page {
  min-height: 55vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--sp-8);
}
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  font-weight: 700;
  color: var(--green-600);
  line-height: 1;
  margin-bottom: var(--sp-3);
}
.error-page .btn-row { justify-content: center; margin-top: var(--sp-5); }

/* ---------- 17. Reveal-on-scroll (JS adds classes; no-JS = visible) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 18. Print ---------- */
@media print {
  .topbar, .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
