/* ============================================================
   Prevenii — Landing redesign tokens
   Extends the existing Prevenii clinical palette.
   ============================================================ */

:root {
  /* Core brand (from existing system) */
  --brand: #7C9A92;
  --brand-lighter: #EDF4F2;
  --brand-dark: #5A7D75;
  --brand-ink: #3D5851;

  /* Secondary accents */
  --accent: #C4A882;
  --accent-soft: #EDE5D8;
  --rose: #C9918A;
  --rose-soft: #F3E1DE;

  /* Text */
  --text: #2D2A26;
  --text-2: #4A4641;
  --text-secondary: #78716C;
  --text-muted: #A8A29E;
  --text-faint: #D6D3D1;

  /* Surfaces */
  --bg: #F5F3F0;
  --bg-2: #EDEAE5;
  --white: #FFFFFF;
  --ink: #1C1A17;   /* deep, warm near-black for dark sections */
  --border: #E7E5E4;
  --border-light: #F0EEEC;

  /* Clinical status palette (for biomarker data viz) */
  --status-optimal: #7C9A92;
  --status-good: #A9C1B8;
  --status-watch: #C4A882;
  --status-risk: #C9918A;

  /* Geometry */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(44,40,36,0.04);
  --shadow-sm: 0 1px 3px rgba(44,40,36,0.05);
  --shadow: 0 4px 16px rgba(44,40,36,0.06);
  --shadow-lg: 0 12px 40px rgba(44,40,36,0.10);

  /* Type */
  --font: 'Inter', 'SF Pro Display', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

  /* Density modes */
  --density-section: 120px;
  --density-card: 28px;
  --max-w: 1200px;
}

/* Density modes */
[data-density="compact"] {
  --density-section: 80px;
  --density-card: 22px;
}
[data-density="airy"] {
  --density-section: 140px;
  --density-card: 32px;
}

/* Accent themes (Tweak-able) */
[data-accent="sage"] {
  --brand: #7C9A92;
  --brand-lighter: #EDF4F2;
  --brand-dark: #5A7D75;
  --brand-ink: #3D5851;
  --status-optimal: #7C9A92;
  --status-good: #A9C1B8;
}
[data-accent="indigo"] {
  --brand: #525F7F;
  --brand-lighter: #EEF0F6;
  --brand-dark: #3B4660;
  --brand-ink: #2A3247;
  --status-optimal: #525F7F;
  --status-good: #8B95AE;
}
[data-accent="ochre"] {
  --brand: #A8855A;
  --brand-lighter: #F4EEE1;
  --brand-dark: #7C6238;
  --brand-ink: #5A472A;
  --status-optimal: #A8855A;
  --status-good: #C9B188;
}
[data-accent="clinical"] {
  --brand: #2D6E7E;
  --brand-lighter: #E4F0F3;
  --brand-dark: #1F5260;
  --brand-ink: #153B44;
  --status-optimal: #2D6E7E;
  --status-good: #7FB3BF;
}

/* =========== Base =========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
  text-wrap: balance;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum', 'zero';
}

.tnum { font-variant-numeric: tabular-nums; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
