/**
 * OTOGO 9 AM — Design Tokens
 * Responsive CSS Architecture — Device & Responsibility Separation
 * 
 * Defines foundational design tokens for the entire OTOGO 9 AM platform:
 * - Brand color palette & semantic functional status colors
 * - Dark theme and Light theme surface values
 * - Typography scale & font family definitions
 * - Spacing scale, border radii, and elevation shadows
 * - Device breakpoint definitions & safe-area insets
 */

:root {
  /* --- Brand Primary Palette --- */
  --brand-blue: #0878ef;
  --brand-blue-hover: #0062d1;
  --brand-blue-light: #eff6ff;
  --brand-blue-glow: rgba(8, 120, 239, 0.28);
  --lime: #0878ef; /* Legacy alias for frontend test compatibility */
  
  /* --- Neutral Dark & Surface Palette --- */
  --ink: #10131a; /* Legacy alias for frontend test compatibility */
  --dark-bg: #07090e;
  --dark-surface: #0b1420;
  --dark-card: #101b28;
  --dark-card-hover: #162438;
  
  /* --- Clean White Surface Palette (High Contrast Reference Cards) --- */
  --light-surface: #ffffff;
  --light-surface-subtle: #f8fafc;
  --light-border: #e2e8f0;
  
  /* --- Semantic Status Palette --- */
  --emerald: #10b981;
  --emerald-bg: #ecfdf5;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --crimson: #ef4444;
  --crimson-bg: #fef2f2;
  --sky: #0ea5e9;
  --sky-bg: #f0f9ff;
  
  /* --- Typography Scale & Families --- */
  --font-sans: 'Plus Jakarta Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Manrope', 'Plus Jakarta Sans', sans-serif;
  --font-handwriting: 'Caveat', cursive;
  
  /* --- Typography Sizing --- */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  
  /* --- Spacing Scale --- */
  --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;
  
  /* --- Border Radii --- */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --radius-pill: 9999px;
  
  /* --- Subtle Borders --- */
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-dark-highlight: rgba(255, 255, 255, 0.14);
  --border-light: #e2e8f0;
  
  /* --- Elevation Shadows --- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.22);
  --shadow-card-light: 0 6px 20px rgba(15, 23, 42, 0.07);
  --shadow-blue-glow: 0 4px 18px rgba(8, 120, 239, 0.35);
  
  /* --- Mobile Ergonomics & Safe Areas --- */
  --touch-target-min: 44px;
  --dash-bottom-nav-height: 64px;
  --safe-area-bottom: env(safe-area-inset-bottom, 16px);
  --safe-area-top: env(safe-area-inset-top, 0px);
}
