/*
 * Marketing site dark-mode token overrides.
 *
 * Light values stay in each page's inline <style> :root block.
 * This file ONLY defines .dark { ... } overrides for the shared
 * CSS variables those :root blocks declare. The `.dark` class is set
 * on <html> by theme-init.js before paint.
 *
 * Values mirror the dark palette in
 * docs/superpowers/specs/2026-05-11-dark-mode-design.md.
 */

html.dark {
  /* Surfaces */
  --bg-primary: #0f1722;
  --bg-secondary: #17243a;
  /* Match --color-navy so the CTA section flows seamlessly into the footer
     in dark mode (was #0b1320 — created a visible tonal seam). */
  --bg-footer: #1d2d44;

  /* Navy family — flipped so "navy" surfaces become lighter elevated cards on dark */
  --color-navy: #1d2d44;            /* card surface; unchanged hex but now sits ON dark bg */
  --color-navy-dark: #2a4060;       /* elevated hover / 2nd-tier surface */
  --color-navy-glow: rgba(93, 169, 233, 0.18);

  /* Brand blue */
  --color-blue: #5da9e9;
  --color-blue-dark: #7ab8ee;       /* lighter on dark, per spec */
  --color-blue-light: rgba(93, 169, 233, 0.18);

  /* Text */
  --text-primary: #e6ecf3;
  --text-muted: #8a9bad;
  --text-light: #6c7a89;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-navy: rgba(255, 255, 255, 0.18);

  /* Shadows: lower opacity, edge-separation role (per spec) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.40), 0 2px 6px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.50), 0 6px 14px rgba(0, 0, 0, 0.32);
}

/* Prevent transition flash on page load (next-themes pattern, adapted) */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: none !important;
}