/* =====================================================================
   Theme variables.

   - Default :root is the LIGHT theme (warm cream paper).
   - body.app-dark overrides everything for the DARK theme.
   - The user toggles between them via the topbar; choice is persisted in
     localStorage and applied by shared.js before paint.
   ===================================================================== */

:root {
  /* Brand accent — same warm orange in both themes for consistency. */
  --accent: #d97706;            /* slightly deeper for AAA contrast on cream */
  --accent-bright: #f59e0b;
  --accent-soft: rgba(217, 119, 6, 0.12);
  --warm: #d97706;
  --warm-bright: #f59e0b;
  --warm-soft: rgba(217, 119, 6, 0.10);

  /* Surfaces */
  --bg: #faf6f0;                /* warm cream */
  --bg-deep: #f3ece1;
  --bg-elev: #fffaf2;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-solid: #ffffff;
  --bg-card-hover: #fffaf2;

  /* Lines & text */
  --border: rgba(31, 25, 13, 0.08);
  --border-strong: rgba(31, 25, 13, 0.18);
  --text: #1a1109;
  --text-muted: #5b5147;
  --text-soft: #8a7e72;

  /* Status */
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #d97706;

  /* Geometry */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 8px 24px -12px rgba(31, 25, 13, 0.16);
  --shadow-lg: 0 24px 60px -20px rgba(31, 25, 13, 0.22);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Gradients */
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #fb923c 100%);
  --gradient-cool: linear-gradient(135deg, #d97706 0%, #ec4899 100%);
  --gradient-mix: linear-gradient(135deg, #d97706 0%, #f97316 50%, #ec4899 100%);
  --bg-glow: radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.10) 0%, transparent 60%);
  --accent-glow: 0 0 40px -10px rgba(217, 119, 6, 0.4);
}

/* ===== DARK THEME ===== */
.landing-dark, .app-dark {
  --bg: #0a0a0e;
  --bg-elev: #14141a;
  --bg-card: #15151c;
  --bg-card-hover: #1a1a23;
  --bg-card-solid: #14141a;
  --bg-deep: #050507;
  --bg-glow: radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-muted: #a1a1aa;
  --text-soft: #71717a;
  --warm: #f59e0b;
  --warm-bright: #fbbf24;
  --warm-soft: rgba(245, 158, 11, 0.12);
  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --accent-glow: 0 0 60px -10px rgba(245, 158, 11, 0.6);
  --shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
  --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #fb923c 100%);
  --gradient-cool: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  --gradient-mix: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #ec4899 100%);
}

/* Smooth transition between themes when toggling. */
body, .topbar, .cab-card, .pricing-pack, .wizard-card, .pricing-perk,
.case, .step, .story, .sample-card {
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
