/* ============================================================
   RIIMS — Spacing, Radius, Shadow, Layout Tokens
   ============================================================ */

:root {
  /* ---- Spacing scale (4px base) ---- */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.25rem;   /* 20 */
  --space-6: 1.5rem;    /* 24 */
  --space-8: 2rem;      /* 32 */
  --space-10: 2.5rem;   /* 40 */
  --space-12: 3rem;     /* 48 */
  --space-16: 4rem;     /* 64 */
  --space-20: 5rem;     /* 80 */
  --space-24: 6rem;     /* 96 */
  --space-32: 8rem;     /* 128 */

  /* ---- Section rhythm ---- */
  --section-pad-y: clamp(3rem, 2rem + 5vw, 6rem);
  --section-gap: clamp(2rem, 1.4rem + 3vw, 4rem);

  /* ---- Radii — generously rounded, premium-soft ---- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* ---- Shadows — soft, low-contrast, medical-clean ---- */
  --shadow-xs: 0 1px 2px rgba(10, 47, 89, 0.06);
  --shadow-sm: 0 2px 6px rgba(10, 47, 89, 0.07);
  --shadow-md: 0 6px 18px rgba(10, 47, 89, 0.08);
  --shadow-lg: 0 14px 36px rgba(10, 47, 89, 0.10);
  --shadow-xl: 0 26px 60px rgba(8, 37, 69, 0.14);
  --shadow-brand: 0 10px 26px rgba(10, 97, 104, 0.26);
  --shadow-green: 0 10px 26px rgba(20, 144, 91, 0.22);
  --shadow-focus: 0 0 0 4px rgba(15, 117, 125, 0.20);

  /* ---- Layout ---- */
  --container-max: 1200px;
  --container-narrow: 760px;
  --container-pad: clamp(1rem, 0.5rem + 3vw, 2.5rem);
  --header-h: 84px;
  --mobile-cta-h: 64px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);  /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);  /* @kind other */
  --dur-fast: 140ms;  /* @kind other */
  --dur-base: 220ms;  /* @kind other */
  --dur-slow: 380ms;  /* @kind other */

  /* ---- z-index ---- */
  --z-header: 100;  /* @kind other */
  --z-mobile-cta: 110;  /* @kind other */
  --z-dropdown: 200;  /* @kind other */
  --z-overlay: 300;  /* @kind other */
  --z-dialog: 310;  /* @kind other */
  --z-toast: 400;  /* @kind other */
}
