/* ============================================================
   JustGigs — FREEIBILITY design system (web)
   Single source of truth for tokens + fonts + gradient helpers.
   Ported from the company app's src/theme/tokens.ts.
   Load this FIRST on every page (before styles.css / inline <style>).
   ============================================================ */

/* ---------- Gilroy typeface ---------- */
@font-face {
  font-family: 'Gilroy';
  src: url('fonts/Gilroy-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('fonts/Gilroy-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('fonts/Gilroy-Medium.ttf') format('truetype');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('fonts/Gilroy-Bold.ttf') format('truetype');
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('fonts/Gilroy-Heavy.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* Brand — CORE RULE: purple + blue never appear alone, always the gradient.
     Flat --accent is reserved for hairline borders, small icons and links. */
  --accent: #6717CD;
  --accent-weak: #F3E8FF;
  --grad: linear-gradient(135deg, #6717CD 0%, #2871FA 100%);
  --grad-90: linear-gradient(90deg, #6717CD 0%, #2871FA 100%);

  /* Brand-family accents (charts, dots, secondary series) */
  --c-green: #10B981;
  --c-cyan: #2871FA;
  --c-pink: #7C3AED;
  --c-amber: #F0C040;

  /* Warm neutral palette */
  --bg: #F9F7F4;
  --surface: #FFFFFF;
  --surface-2: #F5F5F5;
  --ink: #0D0D0D;
  --ink-2: #6B6B6B;
  --ink-3: #9B9B9B;
  --border: #E0DDD8;
  --border-2: #EEEBE6;
  --track: #F5F5F5;
  --track-strong: #C0BCBA;

  /* Semantic status */
  --up-bg: #ECFDF5; --up-fg: #10B981;
  --down-bg: #FEF2F2; --down-fg: #EF4444;
  --gold: #F0C040; --gold-ink: #5A3D00; --gold-tint: #FFFBEB;

  /* Radii */
  --radius: 16px;      /* panels / cards / modals */
  --radius-sm: 8px;    /* chips, tags */
  --radius-pill: 100px;/* buttons, pills */

  /* Elevation */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.10);

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --sidebar-w: 232px;

  /* Type */
  --font: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Gradient helpers ---------- */
.grad-fill {
  background-image: var(--grad);
  color: #fff;
}
.grad-text {
  background-image: var(--grad-90);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
