@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(1 0 0);
  --foreground: oklch(0.17 0.02 275);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.17 0.02 275);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.17 0.02 275);
  --primary: oklch(0.17 0.02 275);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.975 0.004 270);
  --secondary-foreground: oklch(0.17 0.02 275);
  --muted: oklch(0.975 0.004 270);
  --muted-foreground: oklch(0.42 0.03 270);
  --accent: oklch(0.965 0.006 270);
  --accent-foreground: oklch(0.17 0.02 275);
  --destructive: oklch(0.62 0.21 30);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(0.92 0.008 270);
  --input: oklch(0.9 0.01 270);
  --ring: oklch(0.58 0.2 268);
  --success: oklch(0.68 0.16 155);
  --warning: oklch(0.72 0.18 40);
  --chart-1: oklch(0.68 0.16 155);
  --chart-2: oklch(0.58 0.2 268);
  --chart-3: oklch(0.72 0.18 40);
  --chart-4: oklch(0.8 0.1 155);
  --chart-5: oklch(0.78 0.1 268);
  --sidebar: oklch(1 0 0);
  --sidebar-foreground: oklch(0.17 0.02 275);
  --sidebar-primary: oklch(0.17 0.02 275);
  --sidebar-primary-foreground: oklch(0.99 0 0);
  --sidebar-accent: oklch(0.975 0.004 270);
  --sidebar-accent-foreground: oklch(0.17 0.02 275);
  --sidebar-border: oklch(0.92 0.008 270);
  --sidebar-ring: oklch(0.58 0.2 268);

  /* ── brand accents (green / blue / coral + soft tints) ────────── */
  --brand-green: oklch(0.68 0.16 155);
  --brand-blue: oklch(0.58 0.2 268);
  --brand-coral: oklch(0.72 0.18 40);
  --coral: var(--brand-coral);
  --brand-green-soft: oklch(0.95 0.05 155);
  --brand-blue-soft: oklch(0.94 0.04 268);
  --brand-coral-soft: oklch(0.95 0.05 40);
  --brand-gradient: linear-gradient(90deg, var(--brand-green), var(--brand-blue) 50%, var(--brand-coral));

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.975 0.004 270);
  --surface-hover:   color-mix(in srgb, var(--foreground) 4%,  var(--background));
  --surface-active:  color-mix(in srgb, var(--foreground) 8%, var(--background));
  --surface-elevated: oklch(1 0 0);
  --surface: oklch(1 0 0);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.96 0.005 270);
  --border-muted: oklch(0.94 0.006 270);
  --border-strong: oklch(0.82 0.015 270);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.42 0.03 270);

  /* ── primary depth (hover/tint states for brand colour) ─────── */
  --primary-hover: color-mix(in srgb, var(--primary) 85%, var(--brand-blue));
  --primary-muted: color-mix(in srgb, var(--primary) 12%, var(--background));
  --primary-soft:  color-mix(in srgb, var(--primary) 6%,  var(--background));
  --primary-tint:  color-mix(in srgb, var(--primary) 4%,  var(--background));

  /* ── focus ring (alpha-blended, for soft ring style) ────────── */
  --focus-ring: oklch(0.58 0.2 268 / 0.35);

  /* ── error (form validation — distinct from destructive) ─────── */
  --error: oklch(0.62 0.21 30);
  --error-foreground: oklch(0.99 0 0);

  /* ── radius ───────────────────────────────────────────────────── */
  --radius: 1rem;
  --radius-none: 0rem;
  --radius-sm: 0.625rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  /* ── typography ───────────────────────────────────────────────── */
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans: Manrope, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;
  --font-weight-display: 800;
  --line-height-display: 1.05;
  --tracking-display: -0.03em;
  --font-weight-body: 400;
  --line-height-body: 1.6;
  --tracking-body: 0em;
  --font-weight-mono: 400;

  /* ── shadows ──────────────────────────────────────────────────── */
  --shadow-sm: 0 2px 8px rgba(11, 13, 23, 0.04), 0 1px 2px rgba(11, 13, 23, 0.03);
  --shadow-md: 0 8px 24px rgba(11, 13, 23, 0.06), 0 2px 6px rgba(11, 13, 23, 0.04);
  --shadow-lg: 0 24px 60px rgba(11, 13, 23, 0.1), 0 6px 16px rgba(11, 13, 23, 0.05);

  /* ── motion ───────────────────────────────────────────────────── */
  --duration-fast: 120ms;
  --duration-normal: 220ms;
  --duration-slow: 360ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);

  /* ── spacing ──────────────────────────────────────────────────── */
  --spacing-base: 0.25rem;
}

/* Brand is white everywhere: dark mode stays light, with the same tokens. */
.dark {
  /* ── shadcn base tokens ───────────────────────────────────────── */
  --background: oklch(1 0 0);
  --foreground: oklch(0.17 0.02 275);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.17 0.02 275);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.17 0.02 275);
  --primary: oklch(0.17 0.02 275);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.975 0.004 270);
  --secondary-foreground: oklch(0.17 0.02 275);
  --muted: oklch(0.975 0.004 270);
  --muted-foreground: oklch(0.42 0.03 270);
  --accent: oklch(0.965 0.006 270);
  --accent-foreground: oklch(0.17 0.02 275);
  --destructive: oklch(0.62 0.21 30);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(0.92 0.008 270);
  --input: oklch(0.9 0.01 270);
  --ring: oklch(0.58 0.2 268);
  --success: oklch(0.68 0.16 155);
  --warning: oklch(0.72 0.18 40);
  --chart-1: oklch(0.68 0.16 155);
  --chart-2: oklch(0.58 0.2 268);
  --chart-3: oklch(0.72 0.18 40);
  --chart-4: oklch(0.8 0.1 155);
  --chart-5: oklch(0.78 0.1 268);
  --sidebar: oklch(1 0 0);
  --sidebar-foreground: oklch(0.17 0.02 275);
  --sidebar-primary: oklch(0.17 0.02 275);
  --sidebar-primary-foreground: oklch(0.99 0 0);
  --sidebar-accent: oklch(0.975 0.004 270);
  --sidebar-accent-foreground: oklch(0.17 0.02 275);
  --sidebar-border: oklch(0.92 0.008 270);
  --sidebar-ring: oklch(0.58 0.2 268);

  /* ── surface hierarchy ────────────────────────────────────────── */
  --background-secondary: oklch(0.975 0.004 270);
  --surface-elevated: oklch(1 0 0);

  /* ── border hierarchy ─────────────────────────────────────────── */
  --border-subtle: oklch(0.96 0.005 270);
  --border-muted: oklch(0.94 0.006 270);
  --border-strong: oklch(0.82 0.015 270);

  /* ── text hierarchy ───────────────────────────────────────────── */
  --foreground-secondary: oklch(0.42 0.03 270);

  /* ── primary depth ────────────────────────────────────────────── */
  --primary-tint: color-mix(in srgb, var(--primary) 4%, var(--background));

  /* ── focus ring ───────────────────────────────────────────────── */
  --focus-ring: oklch(0.58 0.2 268 / 0.35);

  /* ── error ────────────────────────────────────────────────────── */
  --error: oklch(0.62 0.21 30);
  --error-foreground: oklch(0.99 0 0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
}
