/* ==========================================================================
   VitalVein — site styles
   Single stylesheet, no build step. Organised as:
   tokens → base → layout → components → pages → responsive

   Warm, light, calm palette — a wellness feel rather than a technical one.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* surfaces (light, warm) */
  --ink-900: #faf6f1;   /* page background — warm cream */
  --ink-800: #ffffff;   /* raised surfaces */
  --ink-700: #ffffff;   /* panels */
  --ink-600: #f3ece4;   /* subtle fills */
  --ink-500: #ece2d8;
  --line: rgba(46, 34, 24, 0.11);
  --line-strong: rgba(46, 34, 24, 0.18);

  /* text (warm, dark) */
  --text: #2c2119;
  --text-dim: #605447;
  --text-faint: #907f70;

  /* accents — muted and warm, not neon */
  --pulse: #e23b57;
  --pulse-soft: rgba(226, 59, 87, 0.10);
  --signal: #2f9e86;
  --signal-soft: rgba(47, 158, 134, 0.12);
  --violet: #7a6cd0;

  /* type — sans throughout; no monospace, for a softer feel */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: var(--font-sans);

  /* geometry — generous rounding reads friendlier */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shell: 1140px;
  --gutter: 24px;

  /* shadows — warm and soft, never hard black */
  --shadow-sm: 0 1px 3px rgba(46, 34, 24, 0.05);
  --shadow-md: 0 14px 34px rgba(46, 34, 24, 0.09);
  --shadow-lg: 0 26px 60px rgba(46, 34, 24, 0.12);

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient field — barely-there warm colour washes over the cream. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 480px at 82% -8%, rgba(226, 59, 87, 0.07), transparent 62%),
    radial-gradient(640px 440px at 2% 10%, rgba(47, 158, 134, 0.06), transparent 60%),
    radial-gradient(900px 720px at 50% 110%, rgba(122, 108, 208, 0.05), transparent 65%);
  pointer-events: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 660;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.025em; }
h3 { font-size: 1.24rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--signal);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}
a:hover { color: #23806c; }

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

ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: 0.45em; }

code {
  font-size: 0.9em;
  background: var(--ink-600);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.12em 0.42em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--pulse);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: 820px; }

section { position: relative; }

.band { padding: clamp(64px, 9vw, 116px) 0; }
.band--tight { padding: clamp(48px, 6vw, 76px) 0; }
.band--rule { border-top: 1px solid var(--line); }
.band--panel {
  background: var(--ink-800);
  border-block: 1px solid var(--line);
}

.stack-lg > * + * { margin-top: 30px; }

.grid {
  display: grid;
  gap: 22px;
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head p {
  color: var(--text-dim);
  font-size: 1.06rem;
  margin-bottom: 0;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 640;
  letter-spacing: 0.05em;
  color: var(--signal);
  margin-bottom: 15px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}
.section-head--center .eyebrow::before { display: none; }

.lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.74;
}

/* --------------------------------------------------------------------------
   4. Header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(250, 246, 241, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  /* Keep the nav clear of the iOS status bar / notch (0 on other devices). */
  padding-top: env(safe-area-inset-top, 0px);
}
/* Respect side notches in landscape without shifting the layout elsewhere. */
.site-header .shell {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(250, 246, 241, 0.92);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 680;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand svg { display: block; }
.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex: none;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(226, 59, 87, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 0.94rem;
  font-weight: 540;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(46, 34, 24, 0.05);
}
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(46, 34, 24, 0.06);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  width: 17px;
  height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  transition: background 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.96rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(140deg, var(--pulse), #f2764f);
  color: #fff;
  box-shadow: 0 8px 22px rgba(226, 59, 87, 0.26);
}
.btn--primary:hover {
  color: #fff;
  box-shadow: 0 12px 30px rgba(226, 59, 87, 0.36);
}

.btn--ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover {
  color: var(--text);
  background: #fff;
  border-color: rgba(46, 34, 24, 0.3);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}
.text-link svg { transition: transform 0.18s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: clamp(56px, 8vw, 92px) 0 clamp(52px, 7vw, 84px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas: "lead media" "body media";
  column-gap: 56px;
  row-gap: 0;
  align-items: center;
}
.hero-lead { grid-area: lead; }
.hero-body { grid-area: body; }
.hero .split-media { grid-area: media; }
.hero h1 { margin-bottom: 0; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--pulse) 10%, #f2764f 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-body .lede { max-width: 54ch; margin: 22px 0 30px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 15px 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
  animation: blip 2s ease-in-out infinite;
}
@keyframes blip {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-faint);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-meta svg { color: var(--signal); flex: none; }

/* --- device / pulse card --- */
.monitor {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.monitor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.monitor-bar strong {
  font-size: 0.9rem;
  font-weight: 640;
  letter-spacing: -0.01em;
}
.monitor-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--signal);
  padding: 4px 11px 4px 9px;
  border-radius: 999px;
  background: var(--signal-soft);
  border: 1px solid rgba(47, 158, 134, 0.28);
}
.monitor-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  animation: blip 2s ease-in-out infinite;
}
.monitor-canvas-wrap {
  position: relative;
  background: #fdf8f4;
}
.monitor-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 190px;
}
.monitor-readouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.readout {
  padding: 16px 20px;
  border-right: 1px solid var(--line);
}
.readout:last-child { border-right: 0; }
.readout-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.readout-value {
  font-size: 1.6rem;
  font-weight: 680;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.readout-value .unit {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-faint);
  margin-left: 4px;
}
.readout--pulse .readout-value { color: var(--pulse); }
.readout--spo2 .readout-value { color: var(--signal); }
.readout--hrv .readout-value { color: var(--violet); }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: 8px; }
.card p {
  color: var(--text-dim);
  font-size: 0.97rem;
  margin-bottom: 0;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  margin-bottom: 18px;
  background: var(--pulse-soft);
  border: 1px solid rgba(226, 59, 87, 0.2);
  color: var(--pulse);
}
.card-icon--signal {
  background: var(--signal-soft);
  border-color: rgba(47, 158, 134, 0.22);
  color: var(--signal);
}
.card-icon--violet {
  background: rgba(122, 108, 208, 0.12);
  border-color: rgba(122, 108, 208, 0.24);
  color: var(--violet);
}

/* signal cards (three capture modes) */
.signal-card { display: flex; flex-direction: column; }
.signal-card .badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-faint);
  margin-bottom: 16px;
}
.signal-card .badge--opt {
  color: var(--violet);
  border-color: rgba(122, 108, 208, 0.32);
  background: rgba(122, 108, 208, 0.1);
}
.signal-card dl {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
  font-size: 0.88rem;
}
.signal-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.signal-card dt { color: var(--text-faint); }
.signal-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 580;
  text-align: right;
}

/* metric cards */
.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.metric-symbol {
  font-size: 0.76rem;
  font-weight: 640;
  letter-spacing: 0.02em;
  color: var(--signal);
}
.metric-name { font-size: 1.1rem; font-weight: 660; }
.metric-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin: 0;
}
.metric-source {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   8. Step timeline
   -------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.steps li {
  position: relative;
  margin: 0;
  padding: 0 0 34px 58px;
  border-left: 2px solid var(--line);
}
.steps li:last-child { padding-bottom: 0; border-left-color: transparent; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -19px;
  top: -4px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 680;
  color: var(--pulse);
}
.steps { counter-reset: step; }
.steps h3 { margin-bottom: 6px; font-size: 1.1rem; }
.steps p {
  color: var(--text-dim);
  font-size: 0.97rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   9. Split feature rows
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split--flip .split-media { order: -1; }

.panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-md);
}

/* on-device / privacy diagram */
.flow {
  display: grid;
  gap: 10px;
}
.flow-node {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--ink-900);
  font-size: 0.92rem;
}
.flow-node .n-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 9px;
  background: var(--signal-soft);
  color: var(--signal);
}
.flow-node strong { display: block; font-weight: 600; }
.flow-node small { color: var(--text-faint); font-size: 0.8rem; }
.flow-arrow {
  justify-self: center;
  color: var(--text-faint);
  line-height: 0;
}
.flow-node--blocked {
  border-style: dashed;
  border-color: rgba(226, 59, 87, 0.35);
  background: var(--pulse-soft);
  color: var(--text-dim);
}
.flow-node--blocked .n-icon {
  background: var(--pulse-soft);
  color: var(--pulse);
}

/* --------------------------------------------------------------------------
   10. Stats
   -------------------------------------------------------------------------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stat {
  padding: 28px 24px;
  background: #fff;
}
.stat-value {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--pulse);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-top: 5px;
}

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.22s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.faq .faq-body {
  padding: 0 22px 20px;
  color: var(--text-dim);
  font-size: 0.97rem;
}
.faq .faq-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   12. Callouts / notices
   -------------------------------------------------------------------------- */
.notice {
  display: flex;
  gap: 15px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(226, 59, 87, 0.26);
  background: var(--pulse-soft);
}
.notice svg { flex: none; color: var(--pulse); margin-top: 2px; }
.notice p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-dim);
}
.notice strong { color: var(--text); }

.notice--neutral {
  border-color: var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.notice--neutral svg { color: var(--signal); }

/* --------------------------------------------------------------------------
   13. CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 7vw, 76px) clamp(26px, 5vw, 62px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(560px 300px at 82% 8%, rgba(226, 59, 87, 0.1), transparent 65%),
    radial-gradient(440px 300px at 6% 94%, rgba(47, 158, 134, 0.09), transparent 62%),
    linear-gradient(165deg, #ffffff, #fdf4ef);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.cta h2 { margin-bottom: 14px; }
.cta p {
  max-width: 56ch;
  margin-inline: auto;
  color: var(--text-dim);
}
.cta .btn-row { justify-content: center; margin-top: 26px; }

/* --------------------------------------------------------------------------
   14. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: clamp(52px, 7vw, 84px) 0 clamp(34px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}
.page-hero .lede { max-width: 62ch; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   15. Tables
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 560px;
}
th,
td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  background: var(--ink-600);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  font-weight: 640;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
td { color: var(--text-dim); }
td strong { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 34px;
  background: var(--ink-600);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 42px;
}
.footer-about p {
  color: var(--text-faint);
  font-size: 0.92rem;
  max-width: 34ch;
  margin: 14px 0 0;
}
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  font-weight: 640;
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: var(--text-dim);
  font-size: 0.93rem;
}
.footer-col a:hover { color: var(--text); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--text-faint);
}
.footer-base p { margin: 0; }

/* --------------------------------------------------------------------------
   17. Reveal on scroll
   -------------------------------------------------------------------------- */
/* Reveal is gated on the `js` class so that, if the script never runs
   (blocked, slow, errored), content stays fully visible rather than blank. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 940px) {
  /* On phones/tablets: headline first, then the pulse graph, then the copy —
     so the top of the page stays clean instead of a wall of text. */
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "lead" "media" "body";
    row-gap: 30px;
  }
  .hero-body .lede { margin-top: 0; }
  .split,
  .split--flip { grid-template-columns: 1fr; gap: 34px; }
  .split--flip .split-media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 780px) {
  body { font-size: 16px; }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: calc(70px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: rgba(250, 246, 241, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform-origin: top;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1rem; }
  .nav-links .btn { margin-top: 8px; }

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
  /* Keep the three readouts side by side — they stay legible and balanced. */
  .readout { padding: 14px 12px; }
  .readout-value { font-size: 1.4rem; }
}

@media (max-width: 520px) {
  .grid--4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps li { padding-left: 46px; }
  .card { padding: 22px; }
}

/* --------------------------------------------------------------------------
   19. Motion / print preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  body { background: #fff; color: #000; }
  body::before,
  .site-header,
  .cta,
  .site-footer { display: none; }
}

/* --------------------------------------------------------------------------
   20. Mission page components
   -------------------------------------------------------------------------- */

/* Manifesto — the mission in one large statement */
.manifesto {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}
.manifesto p {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.36;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}
.manifesto .accent {
  background: linear-gradient(100deg, var(--pulse) 10%, #f2764f 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.manifesto cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* Source / footnote line */
.source-note {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* Big-number stat inside a flow panel */
.flow-node .big {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pulse);
  font-variant-numeric: tabular-nums;
}

/* UN Sustainable Development Goal alignment */
.sdg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.sdg {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.sdg-num {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.sdg-num small {
  display: block;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 2px;
}
.sdg-num--3 { background: #4c9f38; }
.sdg-num--10 { background: #dd1367; }
.sdg h3 { margin-bottom: 5px; font-size: 1.05rem; }
.sdg p { margin: 0; font-size: 0.93rem; color: var(--text-dim); }

@media (max-width: 780px) {
  .sdg-grid { grid-template-columns: 1fr; }
}
