/**
 * Design tokens — premium B2B SaaS (Attio / Linear-inspired).
 * Components must use these variables; avoid hardcoded hex in templates.
 */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,500&display=swap");

:root {
  /* Brand — single accent (teal) */
  --color-primary: #0d9488;
  --color-primary-hover: #0f766e;
  --color-primary-soft: #ccfbf1;
  --color-primary-muted: #99f6e4;
  --color-accent: #14b8a6;
  --color-accent-secondary: #5eead4;
  --color-accent-soft: #f0fdfa;
  --color-accent-pale: #ecfeff;
  --color-highlight: #f0fdfa;

  /* Surfaces */
  --color-bg: #f8fafc;
  --color-bg-sidebar: #ffffff;
  --color-bg-sidebar-hover: #f1f5f9;
  --color-bg-navbar: #ffffff;
  --color-bg-card: #ffffff;
  --color-bg-muted: #f1f5f9;
  --color-bg-elevated: #ffffff;
  --color-bg-subtle: #f8fafc;

  /* Text */
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-text-inverse: #ffffff;

  /* Borders */
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;

  /* Status */
  --color-success: #059669;
  --color-warning: #d97706;
  --color-danger: #dc2626;
  --color-info: #0d9488;

  /* Charts */
  --chart-1: #0d9488;
  --chart-2: #14b8a6;
  --chart-3: #2dd4bf;
  --chart-4: #5eead4;
  --chart-5: #64748b;

  /* Typography */
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.125rem;
  --leading-tight: 1.2;
  --leading-normal: 1.55;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* 8px grid */
  --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;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 999px;

  /* Shadows — tinted to slate */
  --shadow-xs: 0 1px 2px rgb(15 23 42 / 0.04);
  --shadow-sm: 0 1px 3px rgb(15 23 42 / 0.06), 0 1px 2px rgb(15 23 42 / 0.04);
  --shadow-md: 0 8px 24px rgb(15 23 42 / 0.07), 0 2px 6px rgb(15 23 42 / 0.04);
  --shadow-lg: 0 16px 40px rgb(15 23 42 / 0.08);

  /* Layout */
  --navbar-height: 60px;
  --sidebar-width: 252px;
  --content-max: 1440px;
  --transition: 200ms cubic-bezier(0.32, 0.72, 0, 1);
  --transition-fast: 150ms cubic-bezier(0.32, 0.72, 0, 1);

  /* Legacy aliases */
  --bg: var(--color-bg);
  --surface: var(--color-bg-card);
  --text: var(--color-text);
  --muted: var(--color-text-secondary);
  --accent: var(--color-primary);
  --accent-2: var(--color-accent);
  --danger: var(--color-danger);
  --ok: var(--color-success);
  --border: var(--color-border);
  --font: var(--font-sans);
}

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