/* ==========================================================================
   T-Patch — Design Tokens
   Visual language matched to a clinical DTC health aesthetic:
   warm-white canvas, medical blue, warm-amber CTA, serif display.
   ========================================================================== */

:root {
  /* ---- Color: surfaces ---- */
  --color-bg: #fcfcf8;
  --color-surface: #ffffff;
  --color-surface-soft: #eff5fa;
  --color-surface-tint: #e7f1fb;
  --color-ink: #221e1b;
  --color-ink-soft: #374151;
  --color-muted: #5f6368;
  --color-line: #d7e0e7;
  --color-line-strong: #c2d2de;

  /* ---- Color: brand (medical blue) ---- */
  --color-brand: #0166ac;
  --color-brand-dark: #084c7b;
  --color-brand-deep: #0b3a63;
  --color-brand-soft: #cee8ff;
  --color-brand-tint: #eff5fa;

  /* ---- Color: accent (warm amber CTA / urgency) ---- */
  --color-accent: #e89239;
  --color-accent-dark: #cf7822;
  --color-accent-deep: #b8650f;
  --color-accent-soft: #fdeed8;

  /* ---- Color: semantic ---- */
  --color-success: #00a33d;
  --color-success-soft: #e3f7ea;
  --color-star: #fa9731;
  --color-danger: #d23a2f;

  /* ---- Typography ---- */
  --font-display: "Lora", "Iowan Old Style", Georgia, serif;
  --font-head: "Red Hat Display", system-ui, sans-serif;
  --font-body: "Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-xs: 0.78rem;
  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.7vw, 1.625rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --text-hero: clamp(2.5rem, 1.7rem + 3.6vw, 4.5rem);

  --leading-tight: 1.08;
  --leading-snug: 1.22;
  --leading-normal: 1.6;

  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ---- Spacing ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-section: clamp(3.5rem, 2.5rem + 4vw, 7rem);

  /* ---- Layout ---- */
  --container: 1180px;
  --container-narrow: 760px;

  /* ---- Radius ---- */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* ---- Shadow ---- */
  --shadow-xs: 0 1px 2px rgba(10, 48, 87, 0.06);
  --shadow-sm: 0 4px 14px rgba(10, 48, 87, 0.08);
  --shadow-md: 0 16px 34px rgba(6, 47, 88, 0.14);
  --shadow-lg: 0 20px 60px rgba(10, 48, 87, 0.14);
  --shadow-accent: 0 10px 24px rgba(232, 146, 57, 0.32);

  /* ---- Motion ---- */
  --duration-fast: 150ms;
  --duration-normal: 280ms;
  --duration-slow: 520ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.4, 0.64, 1);

  /* ---- Z ---- */
  --z-header: 100;
  --z-sticky-cta: 90;
  --z-modal: 200;
}
