/* =========================================================
   KPMG Ghana · Hybrid SME Financial Readiness Review
   Direction: precise, authoritative, accessible, trustworthy
   Theme: KPMG Cobalt Blue (#00338D) + Cool Ink Neutral Ramp
   ========================================================= */

:root {
  /* Cool Ink neutral ramp (from unslop tokens) */
  --bg: #f5f7fa;
  --card: #ffffff;
  --raised: #eceff4;
  --line: rgba(17, 24, 39, 0.08);
  --line-strong: rgba(17, 24, 39, 0.14);
  --text: #111827;
  --text-2: #4b5565;
  --muted: #6b7487;

  /* Dark KPMG Midnight Navy ramp */
  --d-bg: #070d19;
  --d-card: #111827;
  --d-raised: #1a2336;
  --d-line: rgba(238, 240, 245, 0.08);
  --d-line-strong: rgba(238, 240, 245, 0.16);
  --d-text: #eef0f5;
  --d-text-2: #a3a9b8;

  /* Single accent: KPMG Cobalt Blue (#00338D, contrast 11.1:1 with #fff) */
  --accent: #00338d;
  --accent-hover: #00266b;
  --accent-soft: #e6ecf7;
  --accent-on-dark: #6ba4ff;

  --r-sm: 6px;
  --r-ctl: 10px;
  --r-card: 14px;

  --shadow-sm: 0 1px 2px rgba(11, 19, 36, 0.05);
  --shadow: 0 8px 24px rgba(11, 19, 36, 0.06);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1200px;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

b, strong { font-weight: 600; }

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

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 16px;
}
h1 { font-size: 48px; line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: 34px; line-height: 1.12; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
h4 { font-size: 15px; line-height: 1.25; margin-bottom: 8px; }

p { margin: 0 0 16px; }
.lead { font-size: 19px; line-height: 30px; color: var(--text-2); max-width: 38rem; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

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

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--raised); }
.section--dark { background: var(--d-bg); color: var(--d-text-2); }
.section--dark h2,
.section--dark h3 { color: var(--d-text); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--text-2); margin: 0; }
.section--dark .section-head p { color: var(--d-text-2); }

/* Signature: Working-paper reference tag */
.geo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.geo::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  flex: none;
}

/* ---------- Icons (Lucide, 18px / 1.5) ---------- */
.i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--r-ctl);
  border: 1px solid transparent;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease),
    border-color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: var(--card); color: var(--text); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--raised); }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
}
.text-link .i { width: 16px; height: 16px; transition: transform 160ms var(--ease); }
.text-link:hover .i { transform: translateX(2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 247, 250, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo svg { width: 26px; height: 22px; flex: none; }
.logo-sub {
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
}

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  font-size: 15px;
  text-decoration: none;
  color: var(--text-2);
  transition: color 160ms var(--ease);
}
.nav-links a:not(.btn):hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: var(--card);
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

/* ---------- Home hero (scene + working-paper preview) ---------- */
.hero {
  position: relative;
  min-height: clamp(640px, calc(100svh - 64px), 860px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(245, 247, 250, 0.97) 0%, rgba(245, 247, 250, 0.86) 44%, rgba(245, 247, 250, 0.12) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(245, 247, 250, 0) 22%),
    url("../assets/images/kpmg-hero.jpg");
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}
.hero-content { padding: 80px 0 40px; animation: rise 500ms var(--ease) both; }
.hero h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; max-width: 15ch; margin-bottom: 20px; }
.hero .lead { color: var(--text-2); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

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

/* Working-paper ledger rising from the bottom edge of the hero */
.ledger {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-card) var(--r-card) 0 0;
  border-bottom: 0;
  box-shadow: var(--shadow);
  padding: 24px 32px 28px;
}
.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-2);
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat strong {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.stat:first-child strong { color: var(--accent); }
.stat span { font-size: 14px; color: var(--text-2); }

.stats-band {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px;
}

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 52px; line-height: 1.06; letter-spacing: -0.03em; max-width: 18ch; }
.page-head .lead { margin: 0; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split-wide { grid-template-columns: 5fr 7fr; }

/* ---------- Photos ---------- */
.photo { margin: 0; }
.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-card);
  background: var(--raised);
}
.photo figcaption { margin-top: 12px; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 160ms var(--ease);
}
.card:hover { border-color: var(--line-strong); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--text-2); flex: 1; }

/* Plain feature list: title + text, hairline above */
.features { display: grid; gap: 32px 24px; }
.feature { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.feature p { color: var(--text-2); margin: 0; }
.feature .step { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.section--dark .feature { border-color: var(--d-line-strong); }
.section--dark .feature p { color: var(--d-text-2); }

.check-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: var(--text-2); }
.check-list li .i { color: var(--accent); margin-top: 3px; }
.section--dark .check-list li { color: var(--d-text-2); }
.section--dark .check-list li .i { color: var(--accent-on-dark); }

/* ---------- Programs / Service Stages ---------- */
.program { padding: 80px 0; border-bottom: 1px solid var(--line); }
.program:last-of-type { border-bottom: 0; }
.program.flip .grid-2 > :first-child { order: 2; }
.program-num { font-family: var(--mono); font-size: 13px; color: var(--muted); display: block; margin-bottom: 16px; }

/* ---------- Comparison table ---------- */
.comp-table-wrap {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  overflow-x: auto;
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  text-align: left;
}
.comp-table th,
.comp-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.comp-table tr:last-child td { border-bottom: 0; }
.comp-table thead th {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--raised);
}
.comp-table td:first-child { font-weight: 500; color: var(--text); width: 24%; }
.comp-table td.highlight {
  background: rgba(0, 51, 141, 0.04);
  color: var(--text);
  font-weight: 500;
}
.comp-table thead th.highlight {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Interactive Sample Case Switcher ---------- */
.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.case-tab {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line-strong);
  background: var(--card);
  font: 500 14px var(--sans);
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}
.case-tab:hover { color: var(--text); background: var(--raised); }
.case-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.dossier-pair {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 24px;
  align-items: stretch;
}
.raw-box,
.wp-box {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  padding: 24px;
}
.wp-box {
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow);
}
.box-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.raw-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
}
.raw-list li {
  padding: 12px;
  border-radius: var(--r-ctl);
  background: var(--raised);
  color: var(--text-2);
}
.raw-list b { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }

.stmt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 16px;
}
.stmt-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.stmt-table td:last-child {
  font-family: var(--mono);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.stmt-table tr.total td {
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--text);
  border-bottom: 2px double var(--text);
}
.gap-notes {
  padding: 12px 16px;
  border-radius: var(--r-ctl);
  background: var(--accent-soft);
  font-size: 14px;
  color: var(--text);
}
.gap-notes b { display: block; font-size: 13px; font-family: var(--mono); color: var(--accent); margin-bottom: 4px; }

/* ---------- Charts (SVG Line, Histogram, Bar Graph, Donut, Stacked) ---------- */
.chart-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.chart-head h3 { margin: 0; font-size: 18px; }
.chart-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }

/* Donut / Pie layout */
.donut-wrap {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 12px;
}
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.donut-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: baseline; font-size: 14px; }
.donut-legend i { width: 10px; height: 10px; border-radius: 2px; display: block; transform: translateY(-1px); }
.donut-legend strong { font-weight: 500; color: var(--text); display: block; }
.donut-legend small { display: block; color: var(--muted); font-size: 13px; }
.donut-legend b { font-family: var(--mono); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }

/* 100% Proportional Stacked Bar */
.stacked-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  gap: 2px;
  margin: 0 0 28px;
}
.stacked-bar span { display: block; height: 100%; }

/* Interactive Ghana 16-Region Choropleth + Hub Dot Map */
.gh-map-svg {
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  display: block;
  overflow: visible;
}
.gh-region {
  stroke: #ffffff;
  stroke-width: 1.25;
  cursor: pointer;
  transition: opacity 150ms var(--ease), stroke 150ms var(--ease);
}
.gh-region:hover,
.gh-region.active,
.gh-region:focus-visible {
  stroke: #070d19;
  stroke-width: 2;
  outline: none;
}
.gh-hub { pointer-events: none; }
.gh-hub-label {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  fill: #0b1324;
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.map-readout {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-ctl);
  padding: 16px 20px;
  margin-bottom: 16px;
}
.map-readout-kicker {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.map-readout h4 { margin: 0 0 6px; font-size: 18px; color: var(--text); }
.map-readout-stats {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.map-readout p { margin: 0; font-size: 14px; color: var(--text-2); }
.map-scale {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.map-scale span { display: inline-flex; align-items: center; gap: 5px; }
.map-scale i { width: 12px; height: 10px; border-radius: 2px; display: inline-block; }

/* Interactive highlight on Find-a-Kiosk rows */
.rows li[data-cluster] {
  grid-template-columns: 184px 1fr;
  cursor: pointer;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: var(--r-sm);
  transition: background-color 150ms var(--ease);
}
.rows li[data-cluster] h3 { margin-bottom: 4px; }
.rows li[data-cluster]:hover,
.rows li[data-cluster].active {
  background: var(--accent-soft);
}

@media (max-width: 600px) {
  .donut-wrap { grid-template-columns: 1fr; justify-items: center; }
  .donut-legend { width: 100%; }
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.timeline li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}
.timeline .year { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 2px; }
.timeline p { color: var(--text-2); margin: 0; }

/* ---------- Testimonials ---------- */
.quote {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.quote p { font-size: 17px; line-height: 1.55; color: var(--text); margin: 0; }
.quote cite { font-style: normal; font-weight: 500; font-size: 15px; }
.quote cite small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- Readiness Diagnostic Calculator & Working Paper Moment ---------- */
.calc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px;
  color: var(--text);
}
.section--dark .calc { border-color: transparent; }

/* Moment: KPMG Assurance Working-Paper Dossier Card */
.wp-sheet {
  position: relative;
  margin-top: 24px;
  padding: 24px;
  border-radius: 12px;
  background: #f0f4fa;
  color: #111827;
  border: 1px solid rgba(0, 51, 141, 0.16);
  border-left: 4px solid var(--accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 12px 24px rgba(7, 13, 25, 0.14);
}
.wp-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: #4b5565;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}
.wp-sheet-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.wp-sheet-figure {
  font-family: var(--mono);
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.wp-sheet-figure small {
  font-size: 15px;
  letter-spacing: 0;
  color: #4b5565;
  margin-left: 6px;
}
.wp-status {
  font-family: var(--mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: rgba(0, 51, 141, 0.1);
  color: var(--accent);
  font-weight: 500;
}
.compare { display: grid; gap: 8px; margin-top: 16px; }
.compare-row { display: grid; grid-template-columns: 112px 1fr 56px; gap: 12px; align-items: center; font-size: 13px; }
.compare-row span:last-child { font-family: var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.compare-bar { height: 6px; border-radius: 3px; background: rgba(17, 24, 39, 0.1); overflow: hidden; }
.compare-bar i { display: block; width: 100%; height: 100%; border-radius: 3px; background: #6b7487; transform-origin: left center; transition: transform 240ms var(--ease); }
.compare-row.you .compare-bar i { background: var(--accent); }
.wp-sheet-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px dashed rgba(17, 24, 39, 0.18);
  font-size: 14px;
}
.wp-sheet-row b { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.wp-gaps {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 24, 39, 0.1);
  font-size: 13px;
  color: #374151;
}
.wp-gaps strong { display: block; font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 4px; }
.wp-sheet-note { font-size: 13px; color: #4b5565; margin: 16px 0 0; }
.wp-sheet-note a { color: var(--accent); font-weight: 500; }

/* ---------- Forms ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
input,
select,
textarea {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  font: 15px var(--sans);
  color: var(--text);
  background: var(--card);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
textarea { height: auto; min-height: 128px; padding: 12px; resize: vertical; line-height: 1.5; }
input:focus,
select:focus,
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 51, 141, 0.16); }
.form-title { font-size: 20px; margin-bottom: 24px; font-family: var(--sans); }
.form-msg {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-ctl);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
}
.form-msg.show { display: block; }

/* ---------- Tier buttons & pricing ---------- */
.help-card { padding: 24px; }
.help-card h3 { margin-top: 0; }
.help-card .btn { align-self: flex-start; margin-top: 8px; }

.donate-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.donate-amounts button {
  height: 44px;
  border-radius: var(--r-ctl);
  border: 1px solid var(--line-strong);
  background: var(--card);
  font: 500 14px var(--mono);
  color: var(--text);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.donate-amounts button:hover { background: var(--raised); }
.donate-amounts button.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.donate-impact { font-size: 14px; color: var(--text-2); min-height: 22px; margin-bottom: 24px; }

.price-list { list-style: none; padding: 0; margin: 24px 0 0; }
.price-list li { display: flex; gap: 24px; padding: 12px 0; border-top: 1px solid var(--line-strong); color: var(--text-2); }
.price-list b { font-family: var(--mono); font-weight: 500; color: var(--text); min-width: 112px; font-variant-numeric: tabular-nums; }

/* Rows table */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid;
  grid-template-columns: 184px 1fr auto;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line-strong);
  align-items: baseline;
}
.rows li:last-child { border-bottom: 1px solid var(--line-strong); }
.rows .when { font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rows h3 { margin: 0; font-size: 18px; }
.rows .where { color: var(--text-2); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  padding: 20px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--muted); transition: transform 160ms var(--ease); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; margin: 0; color: var(--text-2); max-width: 640px; }

/* ---------- Closing call to action ---------- */
.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-card);
}
.cta h2 { font-size: 28px; margin-bottom: 8px; }
.cta p { color: var(--text-2); margin: 0; max-width: 560px; }
.cta .hero-actions { flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--d-bg); color: var(--d-text-2); padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.site-footer h4 { color: var(--d-text); font-weight: 500; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--d-text-2); text-decoration: none; transition: color 160ms var(--ease); }
.site-footer a:hover { color: var(--d-text); }
.site-footer .logo { color: var(--d-text); margin-bottom: 16px; }
.site-footer .logo-sub { color: var(--d-text-2); border-color: var(--d-line-strong); }
.site-footer p { max-width: 360px; }
.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input { background: var(--d-raised); border-color: var(--d-line-strong); color: var(--d-text); }
.newsletter input::placeholder { color: var(--d-text-2); }
.newsletter .btn { height: 44px; }
.site-footer .form-msg { background: var(--d-raised); color: var(--d-text); }
.footer-bottom {
  border-top: 1px solid var(--d-line);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .split-wide, .dossier-pair { grid-template-columns: 1fr; gap: 40px; }
  .program.flip .grid-2 > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 48px; }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .logo-sub { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav-links a:not(.btn) { display: block; padding: 10px 0; }
  .nav-links .btn { margin-top: 8px; width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .rows li { grid-template-columns: 1fr; gap: 4px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 40px, var(--max)); }
  .section { padding: 64px 0; }
  h2 { font-size: 28px; }
  .hero {
    background-position: 70% center;
    background-image:
      linear-gradient(180deg, rgba(245, 247, 250, 0.96) 0%, rgba(245, 247, 250, 0.82) 48%, rgba(245, 247, 250, 0.15) 78%),
      linear-gradient(0deg, var(--bg) 0%, rgba(245, 247, 250, 0) 22%),
      url("../assets/images/kpmg-hero.jpg");
  }
  .hero-content { padding: 48px 0 40px; }
  .hero h1 { font-size: 36px; line-height: 1.06; }
  .hero .lead { font-size: 17px; line-height: 26px; }
  .page-head { padding: 48px 0 40px; }
  .page-head h1 { font-size: 36px; }
  .ledger { padding: 20px; }
  .stat strong { font-size: 26px; }
  .grid-3, .grid-4, .form-row, .footer-grid, .donate-amounts { grid-template-columns: 1fr; }
  .calc, .cta { padding: 24px; }
}
