/* ---------- Design tokens ---------- */
:root {
  --black: #0d0d0f;
  --green: #0a7a3d;
  --green-dark: #06592b;
  --red: #c8102e;
  --white: #ffffff;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --border: #e8e4dd;
  --text: #1c1b1a;
  --text-muted: #5f5c57;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13,13,15,.06);
  --shadow-md: 0 8px 24px rgba(13,13,15,.08);
  --shadow-lg: 0 24px 60px rgba(13,13,15,.14);
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-head: 'Sora', system-ui, sans-serif;
  --container: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f10;
    --surface: #17171a;
    --border: #2a2a2d;
    --text: #f3f2ef;
    --text-muted: #a8a5a0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,.4);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f10;
  --surface: #17171a;
  --border: #2a2a2d;
  --text: #f3f2ef;
  --text-muted: #a8a5a0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--black), var(--red), var(--green));
  z-index: 200;
  transition: width .1s linear;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--black); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px) scale(.85); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { background: var(--green); transform: translateY(-3px) scale(1.05); }
.back-to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--black); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(.96); }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 10px 24px rgba(10,122,61,.32); }
.btn-outline {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}
.btn-outline:hover { border-color: var(--black); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-light { background: #fff; color: var(--black); }
.btn-light:hover { background: #f0efe9; }
.btn-light-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-light-outline:hover { border-color: #fff; }

/* button ripple */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255,255,255,.5);
  pointer-events: none;
  animation: rippleAnim .6s ease-out;
  z-index: -1;
}
.btn-outline .ripple, .btn-light .ripple { background: rgba(13,13,15,.12); }
@keyframes rippleAnim {
  to { transform: scale(2.6); opacity: 0; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: height .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header.is-scrolled .header-inner { height: 64px; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  gap: 24px;
  transition: height .25s ease;
}
.logo { display: flex; align-items: center; }
.logo-img {
  display: block; height: 46px; width: auto;
  transition: height .25s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.site-header.is-scrolled .logo-img { height: 40px; }
.logo:hover .logo-img { transform: scale(1.04); }
/* the logo has black lettering, so on dark themes it sits on a white chip */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-img { background: #fff; padding: 4px 9px; border-radius: 10px; }
}
:root[data-theme="dark"] .logo-img { background: #fff; padding: 4px 9px; border-radius: 10px; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  position: relative;
  font-weight: 600; font-size: 15px; color: var(--text-muted);
  transition: color .15s;
  padding-bottom: 2px;
}
.main-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: right .25s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after,
.main-nav a.is-active-link::after { right: 0; }
.main-nav a.is-active-link { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color .2s ease, transform .15s ease;
}
.lang-toggle:hover { border-color: var(--green); transform: translateY(-1px); }
.lang-toggle span { display: inline-block; transition: color .2s ease, transform .2s ease; }
.lang-toggle .is-active { color: var(--text); transform: scale(1.05); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav-toggle:hover { transform: scale(1.08); }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 90px; overflow-x: clip; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; margin-bottom: 20px; }
.text-accent { color: var(--red); }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 52ch; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-meta { font-size: 13px; color: var(--text-muted); }

.hero-visual { position: relative; }
.flow-card {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  margin-inline: auto;
  animation: floatCard 5s ease-in-out infinite;
  transition: box-shadow .3s ease;
}
.flow-card:hover { box-shadow: 0 32px 70px rgba(13,13,15,.2); animation-play-state: paused; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.flow-card-header { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-black { background: var(--black); }
.dot-red { background: var(--red); }
.dot-green { background: var(--green); }
.flow-card-title { margin-left: 8px; font-size: 13px; font-weight: 700; color: var(--text-muted); }

.flow-step label { font-size: 12px; font-weight: 700; color: var(--text-muted); display: block; margin-bottom: 6px; }
.flow-select {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; font-weight: 700; font-size: 15px;
  background: var(--bg);
  cursor: pointer;
  transition: border-color .2s ease, transform .12s ease, background .2s ease;
}
.flow-select:hover { border-color: var(--green); background: color-mix(in srgb, var(--green) 6%, var(--bg)); }
.flow-select:active { transform: scale(.98); }
.flow-select.is-swapping span:first-child,
.flow-select.is-swapping { animation: selectSwap .35s ease; }
@keyframes selectSwap {
  0% { opacity: 1; transform: translateY(0); }
  40% { opacity: 0; transform: translateY(-6px); }
  41% { transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.flow-select svg { width: 16px; height: 16px; fill: none; stroke: var(--text-muted); stroke-width: 2; transition: transform .2s ease; }
.flow-select:hover svg { transform: translateY(2px); }
.flow-arrow { text-align: center; color: var(--border); font-size: 18px; padding: 6px 0; }

.flow-result { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.candidate-chip {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px;
  animation: fadeUp .6s ease both;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.candidate-chip:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); border-color: var(--green); }
.candidate-chip:nth-child(2) { animation-delay: .15s; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--c, var(--green)); flex-shrink: 0; transition: transform .2s ease; }
.candidate-chip:hover .avatar { transform: scale(1.12); }
.candidate-chip strong { display: block; font-size: 14px; }
.candidate-chip small { color: var(--text-muted); font-size: 12px; }
.candidate-chip .match { margin-left: auto; font-weight: 800; font-size: 13px; color: var(--green); }

.blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .35; z-index: 1; animation: drift 9s ease-in-out infinite; }
.blob-1 { width: 260px; height: 260px; background: var(--green); top: -40px; left: -40px; }
.blob-2 { width: 220px; height: 220px; background: var(--red); bottom: -50px; right: -30px; opacity: .25; animation-delay: -3s; animation-direction: reverse; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14px, -14px) scale(1.08); }
}

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

/* ---------- Coverage strip ---------- */
.coverage {
  background: var(--black);
  color: #fff;
  padding: 36px 0;
}
.coverage-label { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.coverage-badges {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 24px;
}
.coverage-badges li {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.coverage-badges li:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.08);
  border-color: var(--green);
}
.coverage-access { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.coverage-access span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.75); }
.coverage-access svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 2; }

/* ---------- Section head ---------- */
.section-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }

/* ---------- Features ---------- */
.features { padding: 110px 0 80px; }
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.features .feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-visual { order: 2; }
.feature-num { font-family: var(--font-head); font-weight: 800; color: var(--border); font-size: 14px; letter-spacing: .08em; }
.feature-copy h3 { font-size: clamp(22px, 2.6vw, 30px); margin: 10px 0 14px; }
.feature-copy p { color: var(--text-muted); font-size: 16px; margin-bottom: 18px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  position: relative; padding-left: 26px; font-size: 14.5px; color: var(--text);
  transition: transform .15s ease;
}
.check-list li:hover { transform: translateX(4px); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff;
  border-radius: 50%; font-size: 11px; font-weight: 800;
  transition: transform .15s ease;
}
.check-list li:hover::before { transform: scale(1.15); }

.feature-visual { display: flex; justify-content: center; }

/* profile mock */
.mock-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; width: 100%; max-width: 340px; box-shadow: var(--shadow-md); position: relative;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.mock-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.mock-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--black)); margin-bottom: 16px; }
.mock-lines .line { display: block; height: 10px; border-radius: 6px; background: var(--border); margin-bottom: 8px; }
.w60 { width: 60%; } .w40 { width: 40%; }
.badge-verified {
  position: absolute; top: 24px; right: 24px;
  background: rgba(10,122,61,.12); color: var(--green);
  font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px;
}
.mock-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.mock-tags span { font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); color: var(--text-muted); }

/* compare mock */
.mock-compare {
  width: 100%; max-width: 360px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-md); gap: 10px 8px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.mock-compare:hover { transform: translateY(-6px) rotate(.6deg); box-shadow: var(--shadow-lg); }
.mock-compare-col { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 2px solid var(--border); transition: border-color .2s ease; }
.mock-compare-col.highlight { border-bottom-color: var(--red); }
.mock-compare-col:hover { border-bottom-color: var(--green); }
.mock-compare-col:hover .avatar { transform: scale(1.12); }
.mock-compare-col small { font-size: 11px; font-weight: 700; color: var(--text-muted); }
.mock-compare-row {
  grid-column: 1 / -1;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  border-top: 1px dashed var(--border); padding-top: 10px; margin-top: 2px;
}

/* issues mock */
.mock-map { position: relative; width: 100%; max-width: 320px; }
.mock-map-svg { width: 100%; height: auto; }
.pulse-dot { fill: var(--red); opacity: .55; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .3; r: attr(r); } 50% { opacity: .65; } }
.mock-issue-card {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 18px; box-shadow: var(--shadow-md); text-align: center;
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}
.mock-issue-card strong { display: block; font-size: 13px; }
.mock-issue-card small { color: var(--text-muted); font-size: 11px; }

/* education mock */
.mock-education {
  width: 100%; max-width: 340px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-md);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.mock-education:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.edu-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--border); transition: transform .15s ease; }
.edu-item:hover { transform: translateX(4px); }
.edu-item:last-of-type { border-bottom: none; }
.edu-check { width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }
.edu-progress { height: 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); margin-top: 18px; overflow: hidden; }
.edu-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--red)); border-radius: 999px; }

/* ---------- Stats ---------- */
.stats { background: var(--black); color: #fff; padding: 64px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { transition: transform .2s ease; }
.stat:hover { transform: translateY(-4px); }
.stat-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 4vw, 48px); }
.stat:hover .stat-num { color: var(--green); }
.stat-label { font-size: 13px; color: rgba(255,255,255,.65); font-weight: 600; }

/* ---------- Proven in 2017 strip ---------- */
.proof { background: var(--surface); border-bottom: 1px solid var(--border); padding: 18px 0; }
.proof-inner { display: flex; align-items: center; justify-content: center; gap: 14px 28px; flex-wrap: wrap; text-align: center; }
.proof-tag { background: var(--black); color: #fff; font: 800 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
:root[data-theme="dark"] .proof-tag { background: var(--red); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .proof-tag { background: var(--red); } }
.proof-list { list-style: none; display: flex; gap: 8px 28px; flex-wrap: wrap; justify-content: center; font-size: 14px; color: var(--text-muted); }
.proof-list strong { font: 800 20px var(--font-head); color: var(--green); margin-right: 4px; }
.proof-link { font-size: 14px; font-weight: 800; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.proof-link:hover { color: var(--red); }
.donate-contact { margin-top: 12px; font-size: 13px; color: #4a4742; }
.donate-contact a { white-space: nowrap; color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact { font-size: 13px; color: rgba(255,255,255,.7); margin: -4px 0 16px; line-height: 1.5; }
.footer-contact a { color: #fff; font-weight: 700; }
.footer-contact a:hover { text-decoration: underline; }

/* ---------- Donate ---------- */
.btn-donate { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(200,16,46,.35); animation: donatePulse 2.6s ease-in-out infinite; }
.btn-donate:hover { background: #a50d26; box-shadow: 0 12px 26px rgba(200,16,46,.5); }
@keyframes donatePulse {
  0%, 100% { box-shadow: 0 8px 20px rgba(200,16,46,.35), 0 0 0 0 rgba(200,16,46,.45); }
  60% { box-shadow: 0 8px 20px rgba(200,16,46,.35), 0 0 0 10px rgba(200,16,46,0); }
}
.donate {
  position: relative; overflow: hidden; color: #fff; padding: 64px 0;
  background: linear-gradient(135deg, #043f1f, #0a7a3d 55%, #0d0d0f);
  border-top: 6px solid var(--red);
}
.donate::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -120px; top: -200px;
  background: radial-gradient(circle, rgba(200,16,46,.45), transparent 65%); pointer-events: none;
}
.donate-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.donate-eyebrow { display: inline-block; background: var(--red); color: #fff; font: 800 12px var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.donate h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; margin: 16px 0 14px; }
.donate-copy p:last-child { color: rgba(255,255,255,.88); font-size: 17px; max-width: 46ch; }
.donate-card { background: #fff; color: #1c1b1a; border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.donate-card-title { font: 800 13px var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-bottom: 4px; }
.paybill-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px dashed #d8d4cc; }
.paybill-row dt { font-size: 13px; font-weight: 700; color: #5f5c57; }
.paybill-row dd { display: flex; align-items: center; gap: 12px; }
.paybill-value { font: 800 clamp(32px, 5vw, 44px) var(--font-head); letter-spacing: .04em; color: #0d0d0f; }
.copy-btn { border: 2px solid var(--green); background: #fff; color: var(--green); border-radius: 999px; padding: 6px 14px; font: 800 12px var(--font-body); cursor: pointer; transition: background .2s ease, color .2s ease, transform .15s ease; }
.copy-btn:hover, .copy-btn:focus-visible { background: var(--green); color: #fff; transform: translateY(-1px); }
.copy-btn.is-copied { background: var(--green); color: #fff; }
.donate-steps { margin: 16px 0 0; padding-left: 20px; font-size: 13.5px; color: #4a4742; display: flex; flex-direction: column; gap: 6px; }
.donate-status { min-height: 18px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--green); }

/* ---------- Our 2017 story ---------- */
.story { padding: 100px 0 90px; }
.story-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
.story-stat { text-align: center; padding: 30px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; }
.story-stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.count-num { display: block; font: 800 clamp(34px, 5vw, 56px) var(--font-head); color: var(--green); line-height: 1.1; }
.story-label { display: block; margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--text-muted); }
.story-note { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.story-subhead { text-align: center; font-size: 22px; margin: 64px 0 26px; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; gap: 28px; }
.article-card { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .2s ease; }
.article-card:hover, .article-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green); }
.article-shot { display: block; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--border); }
.article-shot img { display: block; width: 100%; height: auto; }
.article-meta { padding: 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--green); }
.article-title { padding: 0 6px; font: 700 16px/1.35 var(--font-head); }
.article-link { padding: 0 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--green); }
.article-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s ease; }
.article-card:hover .article-link svg { transform: translateX(4px); }

/* ---------- Certificates (footer chips + viewer) ---------- */
.cert-chip {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; text-align: left; cursor: zoom-in;
  color: #fff; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, background .2s ease;
}
.cert-chip:hover, .cert-chip:focus-visible { transform: translateY(-3px); border-color: var(--green); background: rgba(255,255,255,.08); }
.cert-chip img { display: block; width: 52px; height: auto; border-radius: 4px; background: #fff; flex-shrink: 0; }
.cert-chip strong { display: block; font: 700 13px var(--font-body); }
.cert-chip small { display: block; font-size: 11px; color: rgba(255,255,255,.6); margin-top: 2px; }
.text-link { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.cert-dialog { width: min(92vw, 880px); max-height: 92vh; padding: 0; border: none; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: hidden; }
.cert-dialog[open] { display: flex; flex-direction: column; animation: certIn .3s cubic-bezier(.16,1,.3,1); }
.cert-dialog::backdrop { background: rgba(13,13,15,.72); backdrop-filter: blur(4px); }
@keyframes certIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.cert-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.cert-dialog-bar h3 { font-size: 16px; }
.cert-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.cert-close:hover, .cert-close:focus-visible { background: var(--green); color: #fff; border-color: var(--green); }
.cert-dialog-body { overflow: auto; padding: 16px; background: #f3f2ef; min-height: 0; }
.cert-dialog-body img { display: block; margin: 0 auto; max-width: 100%; max-height: calc(92vh - 160px); width: auto; height: auto; background: #fff; box-shadow: var(--shadow-md); cursor: zoom-in; }
.cert-dialog-body img.is-zoomed { max-width: none; max-height: none; width: 1400px; cursor: zoom-out; }
.cert-dialog-hint { font-size: 12px; color: var(--text-muted); text-align: center; padding: 8px 12px 12px; }

/* ---------- Principles ---------- */
.principles { padding: 100px 0; }
.principles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.principle-icon-wrap { display: contents; }
.principle-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px 22px; transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s, border-color .25s;
}
.principle-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green); }
.principle-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(10,122,61,.12); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .25s ease;
}
.principle-card:hover .principle-icon { transform: scale(1.1) rotate(-6deg); background: rgba(10,122,61,.2); }
.principle-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--green); stroke-width: 1.8; }
.principle-card h3 { font-size: 17px; margin-bottom: 8px; }
.principle-card p { font-size: 14px; color: var(--text-muted); }

/* ---------- Shared ---------- */
.section-sub { margin-top: 14px; color: var(--text-muted); font-size: 16px; }

/* ---------- Community bubbles ---------- */
.community { padding: 100px 0 30px; }
.bubble-cloud {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  max-width: 1040px; margin: 0 auto; padding: 14px 0;
}
.bubble-av {
  position: relative; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  background: var(--bg);
  border: 3px solid var(--surface);
  box-shadow: 0 8px 20px rgba(13,13,15,.12);
  margin: -5px;
  animation: bubbleFloat 7s ease-in-out infinite;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease;
}
.bubble-av:hover { transform: scale(1.1); z-index: 3; box-shadow: 0 14px 30px rgba(13,13,15,.22); animation-play-state: paused; }
.bubble-av svg { position: absolute; left: 0; bottom: -4%; width: 100%; height: 100%; }
.b-l { width: 150px; height: 150px; }
.b-m { width: 120px; height: 120px; }
.b-s { width: 92px; height: 92px; }
.bubble-county {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  background: rgba(13,13,15,.8); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.b-s .bubble-county { font-size: 10px; padding: 3px 7px; }
.dot-bubble { flex-shrink: 0; border-radius: 50%; margin: 12px; animation: bubbleFloat 8s ease-in-out infinite; }
.d-s { width: 26px; height: 26px; }
.d-m { width: 50px; height: 50px; }
.d-l { width: 84px; height: 84px; }
.db-teal { background: rgba(10,122,61,.38); }
.db-grey { background: color-mix(in srgb, var(--border) 85%, #999); opacity: .85; }
.bubble-cloud > :nth-child(3n) { animation-delay: -2.2s; }
.bubble-cloud > :nth-child(3n+1) { animation-delay: -4.6s; }
.bubble-cloud > :nth-child(2n) { animation-duration: 9s; }
@keyframes bubbleFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
.community-note {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 640px; margin: 34px auto 0; text-align: center;
  font-size: 14px; color: var(--text-muted);
}
.community-note svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; }

/* ---------- Channels ---------- */
.channels { padding: 80px 0 60px; }
.channel-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
  padding: 56px 0; border-bottom: 1px solid var(--border);
}
.channels .channel-row:last-child { border-bottom: none; }
.channel-row.reverse .channel-visual { order: -1; }
.eyebrow-muted { color: var(--text-muted); }
.channel-copy h3 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; margin: 4px 0 16px; }
.channel-copy > p { color: var(--text-muted); font-size: 17px; margin-bottom: 22px; max-width: 52ch; }
.dot-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.dot-list li { position: relative; padding-left: 26px; font-size: 16px; transition: transform .15s ease; }
.dot-list li:hover { transform: translateX(4px); }
.dot-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--red);
}

.channel-visual { position: relative; display: flex; justify-content: center; }
.channel-visual::before {
  content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(10,122,61,.22), rgba(200,16,46,.10) 60%, transparent 70%);
  filter: blur(20px); z-index: 0;
}

/* phone illustration */
.phone {
  position: relative; z-index: 1; width: 290px; padding: 11px;
  border-radius: 44px; background: #17181b;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2c2e33;
  transition: transform .25s ease-out, box-shadow .3s ease;
  will-change: transform;
}
.phone-notch {
  position: absolute; top: 19px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 20px; border-radius: 12px; background: #0b0b0c; z-index: 3;
}
.phone-screen { position: relative; border-radius: 34px; overflow: hidden; background: #f4f5f7; aspect-ratio: 364 / 800; }
.phone-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #111; }
.video-controls {
  position: absolute; right: 10px; bottom: 16px; z-index: 4;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transition: opacity .2s ease;
}
.phone-live:hover .video-controls, .video-controls:focus-within { opacity: 1; }
@media (hover: none) { .video-controls { opacity: 1; } }
.vc-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(13,13,15,.72); backdrop-filter: blur(6px); color: #fff;
  display: grid; place-items: center;
  transition: transform .15s ease, background .15s ease;
}
.vc-btn:hover { transform: scale(1.1); background: var(--green); }
.vc-btn svg { width: 18px; height: 18px; fill: currentColor; }
.vc-btn .icon-wave, .vc-btn .icon-slash { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.vc-btn.is-paused .icon-pause, .vc-btn:not(.is-paused) .icon-play { display: none; }
.vc-btn.is-muted .icon-wave, .vc-btn:not(.is-muted) .icon-slash { display: none; }

.soon-tag {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2;
  background: rgba(13,13,15,.8); color: #fff; font-size: 11px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}

/* mobile-app mock */
.app-mock { position: relative; height: 100%; padding: 46px 14px 14px; display: flex; flex-direction: column; gap: 6px; background: #f4f5f7; color: #1c1b1a; }
.app-mock-bar { position: absolute; top: 18px; left: 22px; right: 22px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; color: #444; }
.app-mock-title { font: 800 15px var(--font-head); margin: 4px 0 0; }
.app-mock-label { font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8a8c92; margin-top: 6px; }
.app-mock-card { display: grid; grid-template-columns: 1fr auto; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.app-mock-card strong { font-size: 12px; }
.app-mock-card em { font-style: normal; font-size: 9px; background: #fdf0d5; color: #9a6a12; padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.app-mock-card small { grid-column: 1; color: #8a8c92; font-size: 10px; }
.app-mock-card b { grid-row: 1 / 3; grid-column: 2; align-self: end; font-size: 13px; }

/* WhatsApp chatbot simulation (colours are fixed so the phone always looks like WhatsApp) */
.channel-visual.has-dev { flex-direction: column; align-items: center; gap: 22px; }
.wa { position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; background: #efeae2; color: #111b21; font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.wa-head { display: flex; align-items: center; gap: 7px; padding: 38px 10px 8px 6px; background: #008069; color: #fff; z-index: 2; }
.wa-back svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.wa-avatar { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: #fff url("assets/logo-icon.png") center / 100% 100% no-repeat; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.wa-title strong { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; line-height: 1.2; }
.wa-title small { display: block; font-size: 10px; opacity: .85; line-height: 1.2; min-height: 12px; }
.wa-verified { width: 13px; height: 13px; fill: #25d366; stroke: none; flex-shrink: 0; }
.wa-verified-tick { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#waStatus.is-typing::after { content: ""; animation: waDots 1.2s steps(1) infinite; }
@keyframes waDots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

.wa-body {
  flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column; gap: 5px; padding: 10px 8px 8px;
  background-image: radial-gradient(rgba(11,20,26,.045) 1px, transparent 1.2px); background-size: 14px 14px;
}
.wa-body::-webkit-scrollbar { display: none; }
.wa-chip { align-self: center; max-width: 92%; text-align: center; font-size: 9.5px; line-height: 1.35; color: #54656f; background: #fff; padding: 4px 9px; border-radius: 7px; box-shadow: 0 1px .5px rgba(11,20,26,.1); margin-bottom: 2px; }
.wa-chip-warn { background: #fff5c4; }

.wa-msg { display: flex; flex-direction: column; max-width: 86%; animation: waPop .3s cubic-bezier(.2,.9,.3,1.2) both; }
.wa-in { align-self: flex-start; }
.wa-out { align-self: flex-end; align-items: flex-end; }
@keyframes waPop { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
.wa-bubble { position: relative; padding: 5px 7px 3px; border-radius: 8px; font-size: 11.5px; line-height: 1.35; white-space: pre-line; word-wrap: break-word; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.wa-in .wa-bubble { background: #fff; border-top-left-radius: 0; }
.wa-out .wa-bubble { background: #d9fdd3; border-top-right-radius: 0; }
.wa-in .wa-bubble::before { content: ""; position: absolute; top: 0; left: -6px; border-right: 7px solid #fff; border-bottom: 7px solid transparent; }
.wa-out .wa-bubble::before { content: ""; position: absolute; top: 0; right: -6px; border-left: 7px solid #d9fdd3; border-bottom: 7px solid transparent; }
.wa-h { font-weight: 700; margin-bottom: 2px; }
.wa-foot { font-size: 9.5px; color: #667781; margin-top: 3px; }
.wa-sub { font-size: 10px; color: #667781; }
.wa-img { position: relative; height: 92px; margin: -2px -3px 5px; border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, #0a7a3d, #0d0d0f 70%); }
.wa-img svg { position: absolute; left: 0; bottom: -6%; width: 100%; height: 100%; }
.wa-meta { display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin-top: 1px; font-size: 9px; color: #667781; }
.wa-ticks { width: 16px; height: 10px; }
.wa-ticks path { fill: none; stroke: #8696a0; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s ease; }
.wa-ticks[data-s="sent"] .t1 { display: none; }
.wa-ticks[data-s="read"] path { stroke: #53bdeb; }

.wa-actions { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; width: 100%; }
.wa-action {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #fff; color: #027eb5; font-size: 11.5px; font-weight: 600;
  padding: 8px 10px; border-radius: 8px; box-shadow: 0 1px .5px rgba(11,20,26,.13);
  transition: background .15s ease, transform .15s ease;
}
.wa-action.is-pressed { background: #e1e8eb; transform: scale(.97); }
.wa-action svg { width: 13px; height: 13px; flex-shrink: 0; fill: currentColor; stroke: none; }
.wa-action svg.is-stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.wa-input { display: flex; align-items: center; gap: 6px; padding: 5px 6px 8px; background: #efeae2; z-index: 2; }
.wa-input-field { flex: 1; background: #fff; border-radius: 18px; padding: 7px 12px; font-size: 11px; color: #8696a0; }
.wa-mic { width: 30px; height: 30px; border-radius: 50%; background: #00a884; display: grid; place-items: center; }
.wa-mic svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }

.wa-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 5; }
.wa-scrim.is-open { opacity: 1; }
.wa-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 78%; z-index: 6;
  display: flex; flex-direction: column; padding-top: 8px;
  background: #fff; border-radius: 14px 14px 0 0;
  transform: translateY(105%); transition: transform .38s cubic-bezier(.2,.9,.3,1);
}
.wa-sheet.is-open { transform: translateY(0); }
.wa-grip { width: 34px; height: 4px; border-radius: 2px; background: #d1d7db; margin: 0 auto 8px; flex-shrink: 0; }
.wa-sheet-title { font-size: 12px; font-weight: 700; padding: 0 14px 4px; flex-shrink: 0; }
.wa-rows { overflow-y: auto; scrollbar-width: none; padding: 0 6px; }
.wa-rows::-webkit-scrollbar { display: none; }
.wa-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; transition: background .2s ease; }
.wa-row strong { display: block; font-size: 11.5px; font-weight: 600; }
.wa-row small { display: block; font-size: 9.5px; color: #667781; }
.wa-radio { margin-left: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #8696a0; flex-shrink: 0; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.wa-row.is-selected { background: #e7f8f2; }
.wa-row.is-selected .wa-radio { border-color: #00a884; background: #00a884; box-shadow: inset 0 0 0 2.5px #fff; }
.wa-send { margin: 8px 14px 12px; padding: 9px; border-radius: 20px; text-align: center; font-size: 12px; font-weight: 700; color: #fff; background: #00a884; flex-shrink: 0; transition: transform .15s ease, background .15s ease; }
.wa-send.is-pressed { transform: scale(.96); background: #008069; }
.wa-controls { top: 86px; bottom: auto; right: 8px; }

/* "how this bot is built" drawer */
.wa-dev { position: relative; z-index: 1; width: min(100%, 340px); }
.wa-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-bottom: 12px; }
.wa-dev-toggle {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); color: var(--text); font: 700 13px var(--font-body); cursor: pointer;
  transition: border-color .2s ease, transform .15s ease;
}
.wa-dev-toggle:hover { border-color: var(--green); transform: translateY(-1px); }
.wa-dev-panel { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--black); color: #e6e6e6; }
.wa-dev-label { font: 700 11px var(--font-body); color: #7ee2a8; margin-bottom: 6px; }
.wa-dev-code { font: 11px/1.45 ui-monospace, Consolas, "Courier New", monospace; white-space: pre-wrap; word-break: break-word; max-height: 210px; overflow: auto; }
.wa-dev-note { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 8px; }

/* ---------- Dashboards ---------- */
.dashboards { padding: 90px 0 100px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--green) 5%, var(--bg)) 40%, transparent); }
.dash-shell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md); }
.dash-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dash-toolbar-title { display: flex; align-items: center; gap: 10px; font: 800 17px var(--font-head); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: livePing 1.8s infinite; }
@keyframes livePing {
  0% { box-shadow: 0 0 0 0 rgba(200,16,46,.5); }
  70% { box-shadow: 0 0 0 10px rgba(200,16,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); }
}
.sample-chip { font: 800 11px var(--font-body); padding: 3px 9px; border-radius: 999px; background: #fdf0d5; color: #9a6a12; }
.seg { display: inline-flex; gap: 2px; padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; }
.seg-btn { border: none; background: none; padding: 8px 16px; border-radius: 999px; font: 700 13px var(--font-body); color: var(--text-muted); cursor: pointer; transition: background .2s, color .2s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.is-active { background: var(--green); color: #fff; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; transition: transform .2s ease; }
.kpi:hover { transform: translateY(-3px); }
.kpi-num { display: block; font: 800 28px var(--font-head); }
.kpi-label { font-size: 12px; color: var(--text-muted); font-weight: 700; }
.dash-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.dash-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; background: var(--surface); }
.dash-card h3 { font-size: 16px; margin-bottom: 18px; }
.dash-wide { grid-column: 1 / -1; }
.county-name { color: var(--green); }

.bar-row { display: grid; grid-template-columns: 96px 1fr 44px; align-items: center; gap: 12px; padding: 6px 0; }
.bar-label { font-size: 13px; font-weight: 700; }
.bar-track { height: 14px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--green); transition: width .9s cubic-bezier(.16,1,.3,1), filter .2s ease; }
.bar-row:nth-child(1) .bar-fill { background: var(--red); }
.bar-row.is-other .bar-fill { background: #9a9a9f; }
.bar-row:hover .bar-fill { filter: brightness(1.15); }
.bar-row:hover .bar-label { color: var(--green); }
.bar-value { font-weight: 800; font-size: 13px; text-align: right; }

.donut-wrap { display: flex; align-items: center; gap: 26px; }
.donut { position: relative; width: 170px; height: 170px; flex-shrink: 0; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 16; }
.donut-track { stroke: var(--border); }
.donut-seg { stroke-dasharray: 0 289; transition: stroke-dasharray .9s cubic-bezier(.16,1,.3,1), stroke-dashoffset .9s cubic-bezier(.16,1,.3,1), opacity .2s ease; cursor: pointer; }
.donut-viewed { stroke: var(--green); }
.donut-notviewed { stroke: var(--red); }
.donut.hl-viewed .donut-notviewed, .donut.hl-not .donut-viewed { opacity: .22; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-center strong { font: 800 28px var(--font-head); }
.donut-center small { font-size: 12px; color: var(--text-muted); font-weight: 700; }
.legend { list-style: none; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.legend li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s ease; }
.legend li:hover { background: var(--bg); }
.legend b { margin-left: auto; }
.swatch { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.swatch-green { background: var(--green); }
.swatch-red { background: var(--red); }

.line-wrap { position: relative; }
#lineChart { width: 100%; height: auto; display: block; overflow: visible; }
.line-grid-line { stroke: var(--border); stroke-width: 1; }
.line-label { fill: var(--text-muted); font: 600 11px var(--font-body); }
.line-area { fill: rgba(10,122,61,.12); opacity: 0; transition: opacity .8s ease .6s; }
.line-path { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s ease; }
.is-drawn .line-path { stroke-dashoffset: 0; }
.is-drawn .line-area { opacity: 1; }
.line-cursor { stroke: var(--text-muted); stroke-dasharray: 4 4; opacity: 0; }
.line-dot { fill: var(--red); stroke: #fff; stroke-width: 2; opacity: 0; }
.line-wrap:hover .line-cursor, .line-wrap:hover .line-dot { opacity: 1; }
.line-tip { position: absolute; pointer-events: none; background: var(--black); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; transform: translate(-50%, -130%); white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 110px; }
.faq-inner { max-width: 760px; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; text-align: left;
  padding: 22px 4px; font-family: var(--font-head); font-size: 17px; font-weight: 700;
  color: var(--text); cursor: pointer;
  transition: color .2s ease, padding-left .2s ease;
}
.accordion-trigger:hover { color: var(--green); padding-left: 8px; }
.accordion-icon {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 16px; color: var(--green); background: rgba(10,122,61,.1);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .2s ease;
  flex-shrink: 0; margin-left: 16px;
}
.accordion-trigger:hover .accordion-icon { background: rgba(10,122,61,.18); }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(135deg); background: var(--green); color: #fff; }
.accordion-panel {
  max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .3s ease;
  opacity: 0;
}
.accordion-trigger[aria-expanded="true"] + .accordion-panel { opacity: 1; }
.accordion-panel p { padding: 0 4px 22px; color: var(--text-muted); font-size: 15px; max-width: 62ch; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark), var(--black) 70%);
  color: #fff;
  padding: 90px 0;
}
.cta-band-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 30px; font-size: 16px; }
.cta-band .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.75); padding: 70px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { display: inline-flex; background: #fff; padding: 10px 14px; border-radius: 14px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.footer-logo:hover { transform: translateY(-3px) rotate(-1deg); }
.footer-logo img { display: block; height: 58px; width: auto; }
.footer-brand p { margin: 14px 0 18px; font-size: 14px; max-width: 32ch; color: rgba(255,255,255,.55); }
.footer-donate { display: inline-block; margin-bottom: 16px; font-size: 13px; font-weight: 700; color: #fff; padding: 8px 14px; border-radius: 999px; background: var(--red); transition: background .2s ease, transform .2s ease; }
.footer-donate:hover { background: #a50d26; transform: translateY(-2px); }
.footer-bottom { padding-right: 84px; }
.footer-compliance { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .footer-compliance { padding-top: 28px; padding-bottom: 28px; }
.footer-compliance h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.footer-compliance p { font-size: 13px; max-width: 52ch; color: rgba(255,255,255,.6); }
.footer-certs { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-channels { display: flex; gap: 6px; }
.footer-channels .dot { width: 8px; height: 8px; }
.footer-col h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 12px; transition: color .15s, transform .15s; }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 13px; color: rgba(255,255,255,.45);
  flex-wrap: wrap; gap: 8px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* stagger children of a revealed grid/list once visible */
.reveal.is-visible.stagger > *,
.reveal.is-visible .stagger > * {
  animation: staggerIn .6s cubic-bezier(.16,1,.3,1) both;
}
.stagger > *:nth-child(1) { animation-delay: .02s; }
.stagger > *:nth-child(2) { animation-delay: .08s; }
.stagger > *:nth-child(3) { animation-delay: .14s; }
.stagger > *:nth-child(4) { animation-delay: .2s; }
.stagger > *:nth-child(5) { animation-delay: .26s; }
.stagger > *:nth-child(6) { animation-delay: .32s; }
@keyframes staggerIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.logo, .main-nav a { white-space: nowrap; }
@media (max-width: 1180px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 14px; }
  .lang-toggle { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.reverse .feature-visual { order: 0; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .channel-row { grid-template-columns: 1fr; gap: 40px; text-align: left; }
  .channel-row.reverse .channel-visual { order: 0; }
  .dash-grid { grid-template-columns: 1fr; }
  .donate-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 12px 24px 20px; gap: 4px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; }
}

@media (max-width: 760px) {
  .lang-toggle { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .dash-kpis { grid-template-columns: 1fr; }
  .dash-toolbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero { padding: 56px 0 60px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .coverage-badges li { font-size: 12px; padding: 7px 12px; }
  .story-stats { grid-template-columns: 1fr; }
  .donate { padding: 48px 0; }
  .donate-card { padding: 22px 18px; }
  .principles-grid { grid-template-columns: 1fr; }
  .bubble-av.b-l { width: 120px; height: 120px; }
  .bubble-av.b-m { width: 96px; height: 96px; }
  .bubble-av.b-s { width: 76px; height: 76px; }
  .phone { width: 252px; }
  .donut-wrap { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
