/* ============================================================
   UNITRADE DESIGN TOKENS — the single source of truth.
   Never hard-code a colour/size in components or pages;
   reference a token from here. New devs: start with this file.
   ============================================================ */
:root {
  /* ── Brand ─ */
  --color-primary: #EB7E18;
  --color-primary-dark: #C2660D;
  --color-primary-ink: #9A4E0A;        /* primary as text on light backgrounds (AA) */
  --color-primary-soft: rgba(235, 126, 24, 0.10);
  --color-secondary: #E72535;          /* urgency / high-energy CTAs */
  --color-secondary-dark: #C01D2C;
  --color-secondary-soft: rgba(231, 37, 53, 0.10);
  --color-accent: #951ABC;             /* highlights, section eyebrows */
  --color-accent-soft: rgba(149, 26, 188, 0.10);

  /* ── Neutrals (slate ramp) ── */
  --color-ink: #0F172A;
  --color-ink-muted: #475569;
  --color-ink-subtle: #64748B;
  --color-canvas: #F8FAFC;             /* page background */
  --color-surface: #FFFFFF;            /* cards */
  --color-surface-sunk: #F1F5F9;       /* inputs, chips */
  --color-line: #E2E8F0;
  --color-line-strong: #CBD5E1;

  /* ── Semantic (base / deep=text-on-light / soft=tinted bg) ── */
  --color-success: #22E55C; --color-success-deep: #15803D; --color-success-soft: rgba(34, 229, 92, 0.12);
  --color-info: #38B2F6;    --color-info-deep: #0369A1;    --color-info-soft: rgba(56, 178, 246, 0.12);
  --color-warning: #F6A728; --color-warning-deep: #92400E; --color-warning-soft: rgba(246, 167, 40, 0.14);
  --color-danger: #EF4444;  --color-danger-deep: #B91C1C;  --color-danger-soft: rgba(239, 68, 68, 0.12);

  /* ── Dark surfaces (hero banners, live-demand card, footer) ── */
  --color-navy: #0F172A;
  --color-navy-soft: #1E293B;

  /* ── Typography ── */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem; --text-lg: 1.125rem;
  --text-xl: 1.25rem; --text-2xl: 1.5rem; --text-3xl: 2rem; --text-4xl: 2.75rem;

  /* ── Radius / shadow / spacing ── */
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px;
  --radius-xl: 18px; --radius-2xl: 24px; --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-2: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-3: 0 12px 32px rgba(15, 23, 42, 0.12);
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4rem;

  /* ── Layout ── */
  --container: 1200px;
  --navbar-h: 64px;
}

/* ============================================================
   TEMPORARY LEGACY COMPAT — maps old token names to the new system
   so pages that haven't been rewritten yet keep rendering.
   DELETE THIS BLOCK at the end of G7.
   ============================================================ */
:root {
  --primary-purple: var(--color-primary);
  --primary-purple-dark: var(--color-primary-dark);
  --primary-purple-light: var(--color-primary);
  --secondary-orange: var(--color-primary);
  --white: #FFFFFF;
  --gray-50: var(--color-canvas);
  --gray-100: var(--color-surface-sunk);
  --gray-200: var(--color-line);
  --gray-300: var(--color-line-strong);
  --gray-400: #94A3B8;
  --gray-500: var(--color-ink-subtle);
  --gray-600: var(--color-ink-muted);
  --gray-700: #334155;
  --gray-900: var(--color-ink);
  --success: var(--color-success);
  --warning: var(--color-warning);
  --error: var(--color-danger);
}