/* ==========================================================================
   DPP Implementation Guide — Global stylesheet
   Modern, responsive design system
   ========================================================================== */

/* Self-hosted variable font (no external requests) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  /* Color system */
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-surface-alt: #eef2f8;
  --color-ink: #0f1b2d;
  --color-ink-soft: #40506a;
  --color-muted: #6b7a90;
  --color-line: #e2e8f2;

  --brand-900: #052e2b;
  --brand-700: #0b6b5f;
  --brand-600: #0e8a78;
  --brand-500: #14a08a;
  --brand-300: #7ad3c3;
  --brand-100: #d8f0ea;

  --accent-600: #1b6ef3;
  --accent-500: #3b82f6;
  --accent-100: #dbe9ff;

  --amber-500: #f0a020;
  --amber-100: #fdeccb;

  --violet-500: #7c5cf0;
  --violet-100: #e7e0ff;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 27, 45, 0.14);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  /* Layout */
  --maxw: 1180px;
  --nav-h: 68px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-700);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover {
  color: var(--brand-500);
}

h1,
h2,
h3,
h4 {
  line-height: 1.18;
  color: var(--color-ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 4vw + 1rem, 3.4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.3rem);
  font-weight: 750;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
  color: var(--color-ink-soft);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.section {
  padding-block: clamp(48px, 7vw, 92px);
}

.section--tight {
  padding-block: clamp(32px, 4vw, 52px);
}

.section--alt {
  background: var(--color-surface-alt);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
}

.muted {
  color: var(--color-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 138, 120, 0.32);
}
.btn--primary:hover {
  color: #fff;
  box-shadow: 0 16px 30px rgba(14, 138, 120, 0.4);
}
.btn--ghost {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  color: var(--color-ink);
  border-color: var(--brand-300);
}
.btn--light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--light:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.24);
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-line);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.06rem;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}
.brand:hover {
  color: var(--color-ink);
}
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 20px; height: 20px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 550;
  color: var(--color-ink-soft);
}
.nav__links a:hover {
  background: var(--color-surface-alt);
  color: var(--color-ink);
}
.nav__links a.active {
  background: var(--brand-100);
  color: var(--brand-700);
  font-weight: 650;
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
}
.lang-switch a {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--color-ink-soft);
  line-height: 1;
}
.lang-switch a:hover { color: var(--color-ink); }
.lang-switch a.active {
  background: var(--brand-600);
  color: #fff;
}
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-ink);
  position: relative;
  transition: transform 0.2s ease;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 500px at 82% -10%, rgba(20, 160, 138, 0.16), transparent 60%),
    radial-gradient(900px 500px at 5% 10%, rgba(27, 110, 243, 0.1), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--color-bg));
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px);
}
.hero h1 span.grad {
  background: linear-gradient(120deg, var(--brand-600), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--color-line);
}
.hero__meta div strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-ink);
  letter-spacing: -0.03em;
}
.hero__meta div span {
  font-size: 0.86rem;
  color: var(--color-muted);
}

/* Hero visual card */
.hero__card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  position: relative;
}
.hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(20, 160, 138, 0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.passport-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--color-line);
}
.passport-row:last-child { border-bottom: none; }
.passport-row .pico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--brand-100);
  color: var(--brand-700);
}
.passport-row .pico svg { width: 19px; height: 19px; }
.passport-row b { color: var(--color-ink); font-size: 0.95rem; }
.passport-row p { margin: 0; font-size: 0.82rem; }
.hero__qr {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--brand-900);
  color: #d8f0ea;
  border-radius: var(--radius-md);
  padding: 14px 18px;
}
.hero__qr svg { width: 44px; height: 44px; flex: none; }
.hero__qr span { font-size: 0.84rem; line-height: 1.4; }
.hero__qr b { color: #fff; display: block; font-size: 0.95rem; }

/* ---------- Cards & grids ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-300);
}
.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--brand-100);
  color: var(--brand-700);
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

.card__icon.blue { background: var(--accent-100); color: var(--accent-600); }
.card__icon.amber { background: var(--amber-100); color: #b9770a; }
.card__icon.violet { background: var(--violet-100); color: var(--violet-500); }

/* Persona cards on home */
.persona {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.persona__tag {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.persona.small .persona__tag { background: var(--brand-100); color: var(--brand-700); }
.persona.medium .persona__tag { background: var(--accent-100); color: var(--accent-600); }
.persona.large .persona__tag { background: var(--violet-100); color: var(--violet-500); }
.persona ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 22px;
  display: grid;
  gap: 9px;
}
.persona li {
  display: flex;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--color-ink-soft);
}
.persona li svg { width: 18px; height: 18px; flex: none; color: var(--brand-600); margin-top: 3px; }
.persona .btn { margin-top: auto; align-self: flex-start; }
.persona__cost {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 18px;
}
.persona__cost b { color: var(--color-ink); font-size: 1.05rem; }

/* ---------- Stat band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-band div {
  background: var(--color-surface);
  padding: 26px 22px;
  text-align: center;
}
.stat-band strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--brand-600), var(--accent-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-band span {
  font-size: 0.86rem;
  color: var(--color-muted);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  margin-top: 20px;
  padding-left: 4px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--brand-300), var(--accent-500));
}
.tl-item {
  position: relative;
  padding: 0 0 30px 58px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: 8px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--brand-500);
  z-index: 1;
}
.tl-item.is-key .tl-dot { border-color: var(--accent-500); background: var(--accent-500); box-shadow: 0 0 0 5px var(--accent-100); }
.tl-date {
  font-weight: 700;
  color: var(--brand-700);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.tl-item.is-key .tl-date { color: var(--accent-600); }
.tl-item h3 { margin: 4px 0 6px; font-size: 1.12rem; }
.tl-item p { margin: 0; font-size: 0.95rem; }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--color-surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
thead th {
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  background: var(--color-surface-alt);
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-line);
}
tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.94rem;
  color: var(--color-ink-soft);
  vertical-align: top;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafcff; }
td strong, th strong { color: var(--color-ink); }

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 18px;
}
.step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 24px 26px 24px 78px;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-bottom: 6px; }
.step p:last-child { margin-bottom: 0; }
.step__meta {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-100);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- Callouts ---------- */
.callout {
  display: flex;
  gap: 16px;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  border: 1px solid var(--brand-300);
  background: var(--brand-100);
}
.callout svg { width: 24px; height: 24px; flex: none; color: var(--brand-700); margin-top: 2px; }
.callout p { margin: 0; color: var(--brand-900); font-size: 0.95rem; }
.callout b { color: var(--brand-900); }
.callout.info { border-color: var(--accent-500); background: var(--accent-100); }
.callout.info svg, .callout.info p, .callout.info b { color: #123a86; }
.callout.warn { border-color: var(--amber-500); background: var(--amber-100); }
.callout.warn svg, .callout.warn p, .callout.warn b { color: #7a4d05; }

/* ---------- Feature list ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--color-ink-soft);
}
.checklist li svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--brand-600);
  margin-top: 3px;
}

/* ---------- Solution providers ---------- */
.providers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 1.25rem;
}
@media (max-width: 720px) {
  .providers { grid-template-columns: 1fr; }
}
.provider {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-surface);
  align-items: flex-start;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.provider:hover {
  border-color: var(--brand-300);
  box-shadow: 0 14px 32px -20px rgba(15, 27, 45, 0.4);
  transform: translateY(-2px);
}
.provider__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.provider__name {
  font-weight: 700;
  color: var(--color-ink);
  font-size: 1.02rem;
}
.provider__desc {
  color: var(--color-ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}
.provider__link {
  color: var(--brand-600);
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  margin-top: 2px;
}
.provider:hover .provider__link {
  text-decoration: underline;
}

/* ---------- Pills / chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  color: var(--color-ink-soft);
}

/* ---------- Accordion (FAQ) ---------- */
.accordion { display: grid; gap: 12px; }
.acc {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.acc__head {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 1.03rem;
  font-weight: 650;
  color: var(--color-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.acc__head .ico {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, background 0.2s ease;
  color: var(--brand-700);
}
.acc.open .acc__head .ico { transform: rotate(45deg); background: var(--brand-100); }
.acc__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.acc__body p {
  padding: 0 24px 20px;
  margin: 0;
  font-size: 0.96rem;
}

/* ---------- CTA banner ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: radial-gradient(700px 300px at 85% -20%, rgba(59, 130, 246, 0.4), transparent 60%),
    linear-gradient(130deg, var(--brand-900), var(--brand-700));
  color: #eafff9;
  padding: clamp(36px, 5vw, 60px);
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #c8ede4; max-width: 620px; margin-inline: auto; }
.cta .hero__actions { justify-content: center; }

/* ---------- Page header (interior) ---------- */
.page-hero {
  background: radial-gradient(900px 380px at 90% -30%, rgba(20, 160, 138, 0.14), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--color-bg));
  padding-block: clamp(46px, 6vw, 76px);
  border-bottom: 1px solid var(--color-line);
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--brand-700); }
.page-hero h1 { max-width: 860px; }
.page-hero p { max-width: 720px; font-size: 1.12rem; }

/* Persona banner accent */
.page-hero.small-accent { border-top: 4px solid var(--brand-500); }
.page-hero.medium-accent { border-top: 4px solid var(--accent-500); }
.page-hero.large-accent { border-top: 4px solid var(--violet-500); }

/* ---------- TOC ---------- */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.toc h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 12px;
}
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  border-left: 2px solid transparent;
}
.toc a:hover { background: var(--color-surface-alt); }
.toc a.active {
  color: var(--brand-700);
  background: var(--brand-100);
  font-weight: 600;
}
.prose h2 { margin-top: 8px; }
.prose h2:not(:first-child) { margin-top: 46px; }
.prose > p { font-size: 1.02rem; }
.prose ul { padding-left: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--brand-900);
  color: #bfe4da;
  padding-block: 54px 30px;
}
.footer a { color: #bfe4da; }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 34px;
}
.footer .brand { color: #fff; }
.footer .brand:hover { color: #fff; }
.footer h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer li a { font-size: 0.92rem; }
.footer__about p { color: #98cfc2; font-size: 0.92rem; max-width: 320px; }
.footer__bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: #8dc3b6;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__card { order: -1; max-width: 460px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
}

@media (max-width: 720px) {
  .nav__links,
  .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.open .nav__links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-line);
    padding: 12px 16px 18px;
    box-shadow: var(--shadow-md);
  }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__meta { gap: 18px; }
}

/* Utility spacing */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
