/*
  Preview Health — Design tokens
  Layout concept: quiet, wide-margin grid; one ink, one violet accent,
  hairline structure and a mono "instrument" voice for labels.
*/

:root {
  /* Type */
  --font-sans: 'Poppins', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: var(--font-sans);

  --fs-display: clamp(2.6rem, 1.6rem + 4.4vw, 5.25rem);
  --fs-statement: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-h3: 1.375rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  --fs-body-lg: 1.0625rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  /* Color — light */
  --bg: #ffffff;
  --surface: #f7f8fa;
  --hero-bg: #fbfbfd;
  --vision-bg: #f6f5fa;
  --surface-2: #eef0f4;
  --line: #e3e5ec;
  --line-strong: #cfd2dd;
  --ink: #545454;
  --ink-2: #545454;
  --ink-3: #8c8c8c;
  --accent: #a85aff;
  --accent-hover: #9440f5;
  --accent-ink: #ffffff;
  --accent-soft: #f3eaff;
  --signature: #a85aff;
  --signature-hover: #9440f5;
  --signature-ink: #ffffff;
  --headline-muted: #545454;
  --success: #08794a;
  --error: #b42318;
  --header-bg: rgba(251, 251, 253, 0.78);
  --header-h: 4.6rem;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-scrolled: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.75);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(30, 30, 60, 0.06), 0 8px 28px -14px rgba(40, 20, 80, 0.22);
  --glass-shadow-scrolled: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(30, 30, 60, 0.08), 0 12px 36px -14px rgba(40, 20, 80, 0.3);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0b10;
    --surface: #12141c;
    --hero-bg: #0a0b10;
    --vision-bg: #12141c;
    --surface-2: #1a1d27;
    --line: #20232e;
    --line-strong: #2f3342;
    --ink: #eef0f7;
    --ink-2: #a5aac0;
    --ink-3: #6e7389;
    --accent: #b57bff;
    --accent-hover: #c596ff;
    --accent-ink: #0a0b10;
    --accent-soft: #261b3d;
    --signature: #b57bff;
    --signature-hover: #c596ff;
    --signature-ink: #0a0b10;
    --headline-muted: #a3a3a3;
    --success: #4fd39a;
    --error: #ff8a80;
    --header-bg: rgba(10, 11, 16, 0.75);
    --glass-bg: rgba(24, 26, 36, 0.55);
    --glass-bg-scrolled: rgba(24, 26, 36, 0.68);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 28px -14px rgba(0, 0, 0, 0.6);
    --glass-shadow-scrolled: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 36px -14px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0a0b10;
  --surface: #12141c;
  --hero-bg: #0a0b10;
  --vision-bg: #12141c;
  --surface-2: #1a1d27;
  --line: #20232e;
  --line-strong: #2f3342;
  --ink: #eef0f7;
  --ink-2: #a5aac0;
  --ink-3: #6e7389;
  --accent: #b57bff;
  --accent-hover: #c596ff;
  --accent-ink: #0a0b10;
  --accent-soft: #261b3d;
  --signature: #b57bff;
  --signature-hover: #c596ff;
  --signature-ink: #0a0b10;
  --headline-muted: #a3a3a3;
  --success: #4fd39a;
  --error: #ff8a80;
  --header-bg: rgba(10, 11, 16, 0.75);
  --glass-bg: rgba(24, 26, 36, 0.55);
  --glass-bg-scrolled: rgba(24, 26, 36, 0.68);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 28px -14px rgba(0, 0, 0, 0.6);
  --glass-shadow-scrolled: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 12px 36px -14px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
