/* ============================================================
   Probuddy — Spacing, radius, shadow, layout tokens
   4px base grid. Soft, friendly radii. Layered cool-tinted shadows.
   ============================================================ */
: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 */

  /* Radii — friendly, rounded */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;
  --radius-card: var(--radius-lg);

  /* Shadows — cool slate tint, soft + layered (never harsh black) */
  --shadow-xs:  0 1px 2px rgba(15, 27, 45, 0.06);
  --shadow-sm:  0 1px 3px rgba(15, 27, 45, 0.08), 0 1px 2px rgba(15, 27, 45, 0.04);
  --shadow-md:  0 4px 12px rgba(15, 27, 45, 0.08), 0 2px 4px rgba(15, 27, 45, 0.04);
  --shadow-lg:  0 12px 28px rgba(15, 27, 45, 0.10), 0 4px 8px rgba(15, 27, 45, 0.05);
  --shadow-xl:  0 24px 48px rgba(15, 27, 45, 0.14), 0 8px 16px rgba(15, 27, 45, 0.06);
  --shadow-brand: 0 10px 24px rgba(42, 109, 244, 0.30);
  --shadow-energy: 0 10px 24px rgba(33, 197, 120, 0.28);
  --shadow-focus: 0 0 0 4px var(--ring-focus);

  /* Layout */
  --container-sm:  640px;
  --container-md:  860px;
  --container-lg:  1100px;
  --container-xl:  1280px;
  --container-2xl: 1440px;
  --gutter:        var(--space-6);

  /* Controls — consistent heights */
  --control-h-sm: 36px;
  --control-h-md: 44px;
  --control-h-lg: 54px;

  /* 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 */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */
  --dur-fast:   120ms; /* @kind other */
  --dur-base:   200ms; /* @kind other */
  --dur-slow:   360ms; /* @kind other */

  /* Z-index */
  --z-base: 1; /* @kind other */
  --z-sticky: 100; /* @kind other */
  --z-overlay: 1000; /* @kind other */
  --z-modal: 1100; /* @kind other */
  --z-toast: 1200; /* @kind other */
}
