/* ==============================================================
   OlaOrder Design Tokens
   Consistent with AFOLAOLA ecosystem (OlaPurse, OlaTime, OlaInventory)
   ============================================================== */

:root {
  /* Color — AFOLAOLA core palette */
  --color-ink: #0B0E1A;
  --color-indigo: #5B5FEF;
  --color-mint: #2DD4A7;

  --color-ink-90: #16192A;
  --color-ink-70: #2B2F45;
  --color-ink-50: #565B7A;
  --color-ink-30: #9297B0;
  --color-ink-10: #E4E6ED;

  --color-surface: #FFFFFF;
  --color-surface-alt: #F7F8FC;
  --color-border: #E4E6ED;

  --color-indigo-hover: #4A4EDB;
  --color-indigo-soft: #EEEEFD;
  --color-mint-soft: #E4FBF3;

  --color-warn: #E0A030;
  --color-warn-soft: #FBF1DD;
  --color-warn-text: #8F5B10;
  --color-danger: #E15656;
  --color-danger-soft: #FCE9E9;
  --color-danger-text: #C22A2A;
  --color-success: var(--color-mint);
  --color-success-soft: var(--color-mint-soft);
  --color-success-text: #137052;

  /* Offering-type accent colors — visually distinguish Product vs Service */
  --color-product: var(--color-indigo);
  --color-product-soft: var(--color-indigo-soft);
  --color-service: #C9662B;
  --color-service-soft: #FBEDE3;
  --color-service-text: #984819;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;

  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(11, 14, 26, 0.06);
  --shadow-md: 0 4px 16px rgba(11, 14, 26, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 14, 26, 0.12);
  --shadow-up-sm: 0 -2px 8px rgba(11, 14, 26, 0.06);
  --shadow-up-md: 0 -4px 16px rgba(11, 14, 26, 0.1);

  /* Component sizing — standardized heights so buttons/inputs/chips
     never drift out of alignment with each other on the same row */
  --height-control-sm: 36px;
  --height-control-md: 44px;
  --icon-size-sm: 16px;
  --icon-size-md: 20px;
  --icon-size-lg: 24px;

  /* Motion */
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 220ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-premium: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max-width-content: 1120px;
  --max-width-narrow: 640px;
  --touch-target-min: 44px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-surface: #12141F;
    --color-surface-alt: #0B0E1A;
    --color-border: #262A3C;
    --color-ink-10: #262A3C;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
  }
}
