/* ===== ETCM Golly-Pilot — design tokens: single source of truth =====
   Linked by every page BEFORE its inline <style>. Pages must not redefine
   these — page-level :root blocks may only add page-unique tokens
   (e.g. calendar event colors, WhatsApp bubble colors).
   See docs/DESIGN-SYSTEM.md for usage rules. */
:root {
  /* Surfaces */
  --bg-primary: #f5f6f8;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f1f4;
  --bg-elevated: #ffffff;

  /* Borders */
  --border: #e2e4e9;
  --border-light: #cdd0d7;

  /* Text */
  --text-primary: #1a1c21;
  --text-secondary: #5a5e6a;
  --text-muted: #8b8f9c;

  /* Brand — Nissan. NOT a status color. */
  --nissan-red: #c3002f;
  --nissan-red-glow: rgba(195, 0, 47, 0.20);
  --nissan-red-dim: rgba(195, 0, 47, 0.08);

  /* Lead temperature — drives ALL lead color */
  --cold: #2563eb;   --cold-bg: rgba(37, 99, 235, 0.08);
  --warm: #d97706;   --warm-bg: rgba(217, 119, 6, 0.08);
  --hot: #dc2626;    --hot-bg: rgba(220, 38, 38, 0.08);
  --ready: #059669;  --ready-bg: rgba(5, 150, 105, 0.08);   /* Booking */
  --parked: #7c3aed; --parked-bg: rgba(124, 58, 237, 0.08); /* Inactive */
  --won: #d97706;    --won-bg: rgba(217, 119, 6, 0.08);

  /* Outcome + states */
  --positive: #059669;
  --negative: #dc2626;
  --neutral-strong: #1a1c21;   /* active dark pill */
  --disabled: #cdd0d7;         /* disabled controls — never a washed brand red */
  --whatsapp: #25d366;

  /* Spacing scale — 4px base */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px;

  /* Type scale — Outfit UI / JetBrains Mono numeric */
  --font-ui: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --text-2xs: 10px; --text-xs: 12px;  --text-sm: 13px; --text-base: 14px;
  --text-md: 16px;  --text-lg: 18px;  --text-xl: 22px; --text-2xl: 28px;
  --text-3xl: 34px;
  --leading-tight: 1.2; --leading-normal: 1.5; --leading-relaxed: 1.6;
  --track-label: 1.2px;  /* uppercase section labels */

  /* Elevation + shape */
  --shadow-sm: 0 1px 2px rgba(26, 28, 33, 0.06);
  --shadow-md: 0 1px 3px rgba(26, 28, 33, 0.10), 0 4px 12px rgba(26, 28, 33, 0.06);
  --radius: 8px; --radius-lg: 12px; --radius-pill: 999px;
}
