/* =====================================================================
   Dr. Basudeb Chandra Pal — Design tokens  v1.0
   One source of truth for colour, type, space, shape, depth and motion.
   Naming: --{category}-{role|scale}. Components only read tokens.
   ===================================================================== */

:root {
  /* ---------- Colour · core palette --------------------------------- */
  /* Midnight indigo — trust, calm, the mind at rest (primary surfaces) */
  --ink-950: #070b1e;
  --ink-900: #0b1028;
  --indigo-900: #111739;
  --indigo-850: #151c45;
  --indigo-800: #1a2254;
  --indigo-700: #232e6e;
  --indigo-600: #2f3c8f;
  --indigo-500: #4252b5;
  --indigo-400: #6676d6;
  --indigo-300: #96a2ec;

  /* Lavender — introspection and care; accent on dark, highlights */
  --lilac-400: #a99cf5;
  --lilac-300: #c6bdfa;
  --lilac-100: #ece9fd;
  --lilac-50:  #f6f4ff;

  /* Marigold gold — warmth, the one conversion colour (CTAs only) */
  --gold-700: #8f6224;
  --gold-600: #b5833a;
  --gold-500: #d5a256;
  --gold-400: #e5bd7d;
  --gold-300: #f0d6a6;
  --gold-100: #faf0dc;
  /* Relief green — soft sage-mint, used sparingly for "it's okay" moments:
     facts after myths, checks, success, open-now, reassurance chips */
  --mint-50:  #f1faf5;
  --mint-100: #def3e7;
  --mint-300: #a8e2c3;
  --mint-400: #7fd0a6;
  --mint-500: #4fb886;
  --mint-700: #23744f;
  --grad-mint: linear-gradient(135deg, #c9f0da 0%, #84d4ab 55%, #4fb886 100%);

  /* Mist — cool, quiet neutrals for light sections */
  --paper-0:   #ffffff;
  --paper-50:  #f7f7fb;
  --paper-100: #eff0f7;
  --paper-200: #e2e4f0;
  --paper-300: #c9cde0;

  /* Lotus blush — tertiary, illustrations only */
  --lotus-300: #efc3b9;
  --lotus-500: #d98b7c;

  /* Signal */
  --ok-500: #4fb886;
  --warn-500: #f0b54a;
  --alert-500: #e2574c;
  --alert-100: #fde8e5;

  /* ---------- Colour · semantic roles ------------------------------- */
  --bg: var(--paper-50);
  --bg-alt: var(--paper-100);
  --surface: var(--paper-0);
  --surface-dark: var(--indigo-900);
  --text: #121733;
  --text-2: #4a5070;
  --text-3: #7d82a0;
  --text-on-dark: #f4f3fb;
  --text-on-dark-2: rgba(244,243,251, .72);
  --text-on-dark-3: rgba(244,243,251, .5);
  --line: rgba(18,23,51, .1);
  --line-strong: rgba(18,23,51, .18);
  --line-on-dark: rgba(255, 255, 255, .1);
  --line-on-dark-strong: rgba(255, 255, 255, .18);
  --accent: var(--gold-500);
  --accent-on-light: var(--indigo-600);
  --focus: var(--gold-400);

  /* Gradients */
  --grad-gold: linear-gradient(135deg, #f3dcae 0%, #dcab5f 42%, #b5833a 100%);
  --grad-gold-soft: linear-gradient(135deg, rgba(243,220,174,.22), rgba(181,131,58,.12));
  --grad-indigo: linear-gradient(150deg, #232e6e 0%, #151c45 55%, #0b1028 100%);
  --grad-deep: radial-gradient(120% 90% at 85% 0%, #2f3c8f 0%, #151c45 38%, #070b1e 100%);
  --grad-glass: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  --grad-paper: linear-gradient(180deg, #f7f7fb 0%, #eff0f7 100%);

  /* Jewel tones — one per care category (dark cards) */
  --jewel-mood:     linear-gradient(155deg, #4252b5 0%, #1a2254 70%);
  --jewel-severe:   linear-gradient(155deg, #8a3b56 0%, #3a1424 70%);
  --jewel-brain:    linear-gradient(155deg, #2f6f9a 0%, #13314a 70%);
  --jewel-sleep:    linear-gradient(155deg, #5b4fb0 0%, #1f1a4a 70%);
  --jewel-addict:   linear-gradient(155deg, #7a4a86 0%, #321c3f 70%);
  --jewel-child:    linear-gradient(155deg, #b77d35 0%, #5c3a12 72%);
  --jewel-therapy:  linear-gradient(155deg, #b0685a 0%, #4e2622 72%);

  /* ---------- Typography ------------------------------------------- */
  --font-display: "Fraunces", "Noto Serif Bengali", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-bn: "Hind Siliguri", "Noto Sans Bengali", var(--font-sans);
  --font-bn-display: "Noto Serif Bengali", var(--font-display);

  /* Fluid type scale — 360px → 1440px */
  --fs-hero: clamp(2.65rem, 1.55rem + 4.6vw, 5.6rem);
  --fs-h1:   clamp(2.3rem, 1.5rem + 3.3vw, 4.4rem);
  --fs-h2:   clamp(1.95rem, 1.35rem + 2.45vw, 3.4rem);
  --fs-h3:   clamp(1.3rem, 1.12rem + .75vw, 1.8rem);
  --fs-h4:   clamp(1.08rem, 1rem + .35vw, 1.3rem);
  --fs-lead: clamp(1.04rem, .98rem + .3vw, 1.22rem);
  --fs-body: 1rem;
  --fs-sm:   .9rem;
  --fs-xs:   .8rem;
  --fs-2xs:  .7rem;
  --fs-eyebrow: .72rem;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-heavy: 800;

  --lh-tight: 1.04;
  --lh-snug: 1.18;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;

  --ls-display: -.025em;
  --ls-tight: -.01em;
  --ls-eyebrow: .2em;
  --ls-caps: .12em;

  /* ---------- Space (4px base) ------------------------------------- */
  --s-0: 0;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 48px;
  --s-10: 64px;
  --s-11: 80px;
  --s-12: 96px;
  --s-13: 128px;
  --section-y: clamp(80px, 9vw, 144px);
  --section-y-sm: clamp(56px, 6vw, 96px);

  /* ---------- Layout ----------------------------------------------- */
  --container: 1280px;
  --container-wide: 1440px;
  --container-narrow: 860px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
  --topbar-h: 40px;

  /* ---------- Shape ------------------------------------------------- */
  --r-2xs: 6px;
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-2xl: 56px;
  --r-pill: 999px;
  --r-arch: 999px 999px 32px 32px;

  /* ---------- Depth ------------------------------------------------- */
  --sh-1: 0 1px 2px rgba(7,11,30,.05), 0 2px 8px rgba(7,11,30,.04);
  --sh-2: 0 2px 4px rgba(7,11,30,.04), 0 12px 32px -12px rgba(7,11,30,.18);
  --sh-3: 0 4px 10px rgba(7,11,30,.05), 0 30px 70px -28px rgba(7,11,30,.35);
  --sh-4: 0 50px 120px -40px rgba(7,11,30,.55);
  --sh-gold: 0 14px 34px -12px rgba(213,162,86,.6), inset 0 1px 0 rgba(255,255,255,.45);
  --sh-inset-light: inset 0 1px 0 rgba(255,255,255,.12);
  --glow-lilac: 0 0 0 4px rgba(169,156,245,.18);
  --blur-glass: saturate(160%) blur(18px);

  /* ---------- Motion ------------------------------------------------ */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --d-instant: 120ms;
  --d-fast: 200ms;
  --d-base: 340ms;
  --d-slow: 650ms;
  --d-slower: 1000ms;

  /* ---------- Layers ------------------------------------------------ */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 80;
  --z-header: 100;
  --z-mega: 110;
  --z-drawer: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-veil: 500;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --d-fast: 1ms;
    --d-base: 1ms;
    --d-slow: 1ms;
    --d-slower: 1ms;
  }
}
