/* ═══════════════════════════════════════════════════════════════════
   RJ Business Solutions · Design Tokens · v1.0
   Machine-generated from tokens.json · do not edit directly
   Import BEFORE brand.css for full token coverage
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* ─── Brand color ─── */
  --rj-blue:   #2563eb;
  --rj-sky:    #0ea5e9;
  --rj-deep:   #1e3a8a;
  --rj-navy:   #0f172a;
  --rj-white:  #ffffff;
  --rj-soft:   #f8fafc;
  --rj-light:  #eff6ff;
  --rj-border: #bfdbfe;
  --rj-muted:  #dbeafe;
  --rj-line:   #e2e8f0;

  /* ─── Text ─── */
  --rj-text:        #0f172a;
  --rj-muted-text:  #475569;
  --rj-subtle-text: #94a3b8;
  --rj-inverse:     #ffffff;

  /* ─── Semantic ─── */
  --rj-success:    #10b981;
  --rj-success-bg: #dcfce7;
  --rj-warning:    #f59e0b;
  --rj-warning-bg: #fef3c7;
  --rj-danger:     #ef4444;
  --rj-danger-bg:  #fee2e2;
  --rj-info:       #0ea5e9;
  --rj-info-bg:    #e0f2fe;

  /* ─── Dark app surfaces ─── */
  --rj-dark-surface:   #0b1220;
  --rj-dark-surface-2: #0f172a;
  --rj-dark-border:    rgba(255,255,255,0.06);
  --rj-dark-text:      #e2e8f0;
  --rj-dark-muted:     #94a3b8;
  --rj-dark-subtle:    #64748b;

  /* ─── Data viz palette ─── */
  --rj-series-1: #2563eb;
  --rj-series-2: #0ea5e9;
  --rj-series-3: #1e3a8a;
  --rj-series-4: #60a5fa;
  --rj-series-5: #0891b2;
  --rj-series-6: #0369a1;
  --rj-pos:      #10b981;
  --rj-neg:      #ef4444;

  /* ─── Gradients ─── */
  --grad-primary: linear-gradient(135deg,#2563eb 0%,#0ea5e9 100%);
  --grad-dark:    linear-gradient(135deg,#0f172a 0%,#1e3a8a 55%,#2563eb 100%);
  --grad-light:   linear-gradient(180deg,#ffffff 0%,#eff6ff 100%);
  --grad-success: linear-gradient(135deg,#10b981 0%,#059669 100%);

  /* ─── Type family ─── */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Space Grotesk", ui-monospace, monospace;
  --font-code: ui-monospace, "SF Mono", Menlo, monospace;

  /* ─── Type size ─── */
  --fs-xs:   11px;
  --fs-sm:   12px;
  --fs-base: 14px;
  --fs-md:   15px;
  --fs-lg:   17px;
  --fs-xl:   20px;
  --fs-2xl:  26px;
  --fs-3xl:  32px;
  --fs-4xl:  44px;
  --fs-5xl:  56px;
  --fs-6xl:  72px;
  --fs-7xl:  88px;
  --fs-hero: 112px;

  /* ─── Type weight ─── */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* ─── Line height ─── */
  --lh-tight:   1.05;
  --lh-snug:    1.2;
  --lh-normal:  1.5;
  --lh-relaxed: 1.7;

  /* ─── Letter spacing ─── */
  --ls-tightest: -0.04em;
  --ls-tighter:  -0.03em;
  --ls-tight:    -0.02em;
  --ls-snug:     -0.01em;
  --ls-normal:   0;
  --ls-wide:     0.05em;
  --ls-wider:    0.1em;
  --ls-widest:   0.14em;

  /* ─── Spacing scale ─── */
  --sp-0:  0;
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* ─── Radius ─── */
  --r-none: 0;
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   12px;
  --r-xl:   16px;
  --r-2xl:  20px;
  --r-3xl:  24px;
  --r-full: 9999px;

  /* ─── Borders ─── */
  --bd-hairline: 1px solid var(--rj-line);
  --bd-muted:    1px solid var(--rj-border);
  --bd-focus:    2px solid var(--rj-blue);
  --bd-dashed:   2px dashed var(--rj-border);

  /* ─── Shadows ─── */
  --sh-sm:   0 2px 4px rgba(15,23,42,0.06);
  --sh-md:   0 6px 14px rgba(15,23,42,0.08);
  --sh-lg:   0 15px 30px rgba(15,23,42,0.12);
  --sh-xl:   0 25px 50px rgba(15,23,42,0.18);
  --sh-blue: 0 8px 18px rgba(37,99,235,0.35);
  --sh-sky:  0 8px 18px rgba(14,165,233,0.30);

  /* ─── Blur (glass materials) ─── */
  --blur-sm: 8px;
  --blur-md: 20px;
  --blur-lg: 40px;
  --blur-xl: 60px;

  /* ─── Motion ─── */
  --dur-instant: 0ms;
  --dur-fast:    150ms;
  --dur-base:    200ms;
  --dur-slow:    300ms;
  --dur-slower:  500ms;
  --dur-reveal:  700ms;

  --ease-linear: linear;
  --ease-std:    cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ─── Z-index ─── */
  --z-hide:    -1;
  --z-base:    0;
  --z-sticky:  100;
  --z-banner:  200;
  --z-overlay: 400;
  --z-modal:   500;
  --z-toast:   600;
  --z-tooltip: 700;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur-base: 0ms;
    --dur-slow: 0ms;
    --dur-slower: 0ms;
    --dur-reveal: 0ms;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
