/*
 * Design tokens for public-facing pages (landing, marketing, auth).
 * Loaded only by templates/layouts/public-layout.html and templates/allauth/layouts/base.html.
 * Does not touch corp.css or the logged-in dashboard.
 * Brand blue is derived from the existing site colors (#237bb3 / #2a93d5).
 */

:root {
  /* Brand blue scale */
  --color-primary-50: #eef6fc;
  --color-primary-100: #d7ebf7;
  --color-primary-200: #aed6ef;
  --color-primary-300: #7ebde3;
  --color-primary-400: #4aa2d6;
  --color-primary-500: #2a93d5;
  --color-primary-600: #237bb3;
  --color-primary-700: #1c6390;
  --color-primary-800: #154b6d;
  --color-primary-900: #0f3650;

  /* Neutrals */
  --color-ink-900: #0f172a;
  --color-ink-700: #334155;
  --color-ink-500: #64748b;
  --color-ink-300: #cbd5e1;
  --color-ink-100: #f1f5f9;
  --color-surface: #ffffff;
  --color-surface-muted: #f8fafc;
  --color-border: #e2e8f0;

  /* Form fields get their own, slightly stronger tokens so inputs read as
     distinct, clickable surfaces rather than blending into their card. */
  --color-input-bg: #f3f6f9;
  --color-input-bg-focus: #ffffff;
  --color-input-border: #b9c6d4;
  --color-input-placeholder: #6b7c8d;

  /* Navbar (solid, saturated brand blue — distinct surface from the rest
     of the page, which stays light/neutral) */
  --color-navbar-bg: hsl(203, 67%, 50%);
  --color-navbar-bg-elevated: hsl(203, 67%, 44%);
  --color-navbar-accent: hsl(203, 67%, 38%);
  --color-navbar-text: #ffffff;
  --color-navbar-text-muted: rgba(255, 255, 255, 0.88);
  --color-navbar-hover-bg: rgba(255, 255, 255, 0.14);
  --color-navbar-active-bg: rgba(255, 255, 255, 0.22);

  /* Semantic */
  --color-success: #16a34a;
  --color-success-bg: #ecfdf3;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-info: var(--color-primary-500);
  --color-info-bg: var(--color-primary-50);
  --color-muted: var(--color-ink-500);

  /* Spacing (4px base) */
  --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;

  /* Typography */
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 2.75rem;
  --leading-tight: 1.2;
  --leading-snug: 1.4;
  --leading-normal: 1.65;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadow / elevation */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.14);

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Focus ring (WCAG AA visible focus) */
  --focus-ring: 0 0 0 3px rgba(42, 147, 213, 0.35);

  /* Layout */
  --header-height: 64px;
  --content-max-width: 1200px;
}
