/* ==========================================================================
   Brand Tokens (Frontend Alignment Program)
   Green-forward palette for optimization / waste-reduction product direction.
   ========================================================================= */

:root {
  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Brand / Accent (light-green first, owner preference) */
  --brand-green-50: #ecfdf5;
  --brand-green-100: #d1fae5;
  --brand-green-200: #a7f3d0;
  --brand-green-300: #6ee7b7;
  --brand-green-400: #34d399;
  --brand-green-500: #10b981;
  --brand-green-600: #059669;
  --brand-green-700: #047857;
  --brand-green-800: #065f46;
  --brand-green-900: #064e3b;

  --action-blue-500: #2563eb;
  --action-blue-600: #1d4ed8;

  /* Semantic */
  --color-success: var(--brand-green-500);
  --color-info: #0ea5e9;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;
  --color-action: var(--action-blue-500);

  /* Neutrals */
  --neutral-0: #ffffff;
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* Glass surfaces */
  --surface-glass-bg: rgba(255, 255, 255, 0.68);
  --surface-glass-bg-strong: rgba(255, 255, 255, 0.82);
  --surface-glass-border: rgba(255, 255, 255, 0.52);
  --surface-glass-blur: 14px;
  --overlay-bg: rgba(15, 23, 42, 0.45);

  /* Borders / focus */
  --color-border-default: var(--neutral-200);
  --color-border-strong: var(--neutral-300);
  --focus-ring: 0 0 0 3px rgba(16, 185, 129, 0.25);

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

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.18);

  /* Control sizing */
  --control-height: 2.5rem;
  --table-row-height: 2.5rem;

  /* Motion */
  --motion-fast: 140ms;
  --motion-normal: 220ms;
  --motion-slow: 320ms;
  --easing-standard: cubic-bezier(0.2, 0, 0, 1);

  /* Layering */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-toast: 1060;
  --z-tooltip: 1080;
}

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