/* AIdentify shared theme tokens (v2.16). One place for colours, fonts, radius, shadows.
   Every page keeps its own variable names (--primary, --accent, --acc, --ink, ...) and points them at these tokens,
   so a new screen that uses the page's existing variables picks up the theme automatically.
   Light is the default. Dark applies with <html data-theme="dark">, or with data-ai-scheme="auto" when the
   phone/computer is set to dark (and the page has not forced data-theme="light"). See DESIGN notes in HANDOFF.md. */
:root {
  --ai-font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --ai-display: Geist, Inter, "Segoe UI", system-ui, sans-serif;
  --ai-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ai-bg: #f7f7fb;
  --ai-surface: #ffffff;
  --ai-surface-2: #f1f1f8;
  --ai-line: #e4e4ef;
  --ai-line-strong: #d3d3e3;
  --ai-ink: #14142b;
  --ai-ink-2: #4a4b65;
  --ai-ink-3: #646580;
  --ai-primary: #4f46e5;
  --ai-primary-hover: #4338ca;
  --ai-primary-ink: #ffffff;
  --ai-primary-soft: #eeedff;
  --ai-primary-text: #4338ca; /* primary used as text on white: 7.4:1 */
  --ai-violet: #8b5cf6;
  --ai-sky: #0ea5e9;
  --ai-marigold: #f5a524;
  --ai-success: #0e8f62;
  --ai-success-soft: #e7f6ef;
  --ai-warn: #b45309;
  --ai-warn-soft: #fff6e5;
  --ai-danger: #c4302b;
  --ai-danger-soft: #fdecec;
  --ai-grad: linear-gradient(120deg, #4f46e5 0%, #8b5cf6 55%, #0ea5e9 100%);
  --ai-grad-text: linear-gradient(100deg, #4f46e5 0%, #8b5cf6 50%, #0284c7 100%);
  --ai-aurora:
    radial-gradient(60% 50% at 20% 10%, rgba(79, 70, 229, .22), transparent 70%),
    radial-gradient(45% 40% at 85% 15%, rgba(14, 165, 233, .18), transparent 70%),
    radial-gradient(40% 35% at 60% 0%, rgba(139, 92, 246, .20), transparent 70%),
    radial-gradient(18% 14% at 72% 30%, rgba(245, 165, 36, .16), transparent 70%);

  --ai-r-sm: 10px;
  --ai-r: 14px;
  --ai-r-lg: 24px;
  --ai-shadow-sm: 0 1px 2px rgba(20, 20, 43, .06);
  --ai-shadow: 0 10px 30px -12px rgba(20, 20, 43, .18);
  --ai-shadow-lg: 0 30px 80px -30px rgba(20, 20, 43, .35);
  --ai-glow: 0 0 0 1px rgba(79, 70, 229, .28), 0 24px 70px -20px rgba(79, 70, 229, .55);
  --ai-ring: 0 0 0 3px rgba(79, 70, 229, .22);
  --ai-ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"], :root.ai-dark {
  --ai-bg: #0b0b14;
  --ai-surface: #13131f;
  --ai-surface-2: #1b1b2a;
  --ai-line: rgba(255, 255, 255, .10);
  --ai-line-strong: rgba(255, 255, 255, .18);
  --ai-ink: #f4f4fa;
  --ai-ink-2: #b4b5c8;
  --ai-ink-3: #8e8fa6;
  --ai-primary: #7c74ff;
  --ai-primary-hover: #958eff;
  --ai-primary-ink: #0b0b14;
  --ai-primary-soft: rgba(124, 116, 255, .16);
  --ai-primary-text: #a9a3ff;
  --ai-violet: #a78bfa;
  --ai-sky: #38bdf8;
  --ai-marigold: #ffb224;
  --ai-success: #34d399;
  --ai-success-soft: rgba(52, 211, 153, .14);
  --ai-warn: #fbbf24;
  --ai-warn-soft: rgba(251, 191, 36, .12);
  --ai-danger: #f87171;
  --ai-danger-soft: rgba(248, 113, 113, .12);
  --ai-grad: linear-gradient(120deg, #6d63ff 0%, #9b6bff 55%, #22b5f0 100%);
  --ai-grad-text: linear-gradient(100deg, #a9a3ff 0%, #c4b5fd 50%, #7dd3fc 100%);
  --ai-aurora:
    radial-gradient(60% 50% at 20% 10%, rgba(99, 90, 255, .30), transparent 70%),
    radial-gradient(45% 40% at 85% 15%, rgba(56, 189, 248, .18), transparent 70%),
    radial-gradient(40% 35% at 60% 0%, rgba(167, 139, 250, .22), transparent 70%),
    radial-gradient(18% 14% at 72% 30%, rgba(255, 178, 36, .14), transparent 70%);
  --ai-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --ai-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --ai-shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --ai-glow: 0 0 0 1px rgba(124, 116, 255, .4), 0 24px 70px -20px rgba(109, 99, 255, .6);
  --ai-ring: 0 0 0 3px rgba(124, 116, 255, .32);
}
@media (prefers-color-scheme: dark) {
  :root[data-ai-scheme="auto"]:not([data-theme="light"]) {
    --ai-bg: #0b0b14; --ai-surface: #13131f; --ai-surface-2: #1b1b2a; --ai-line: rgba(255, 255, 255, .10); --ai-line-strong: rgba(255, 255, 255, .18);
    --ai-ink: #f4f4fa; --ai-ink-2: #b4b5c8; --ai-ink-3: #8e8fa6;
    --ai-primary: #7c74ff; --ai-primary-hover: #958eff; --ai-primary-ink: #0b0b14; --ai-primary-soft: rgba(124, 116, 255, .16); --ai-primary-text: #a9a3ff;
    --ai-violet: #a78bfa; --ai-sky: #38bdf8; --ai-marigold: #ffb224;
    --ai-success: #34d399; --ai-success-soft: rgba(52, 211, 153, .14); --ai-warn: #fbbf24; --ai-warn-soft: rgba(251, 191, 36, .12); --ai-danger: #f87171; --ai-danger-soft: rgba(248, 113, 113, .12);
    --ai-grad: linear-gradient(120deg, #6d63ff 0%, #9b6bff 55%, #22b5f0 100%);
    --ai-grad-text: linear-gradient(100deg, #a9a3ff 0%, #c4b5fd 50%, #7dd3fc 100%);
    --ai-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --ai-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --ai-glow: 0 0 0 1px rgba(124, 116, 255, .4), 0 24px 70px -20px rgba(109, 99, 255, .6);
    --ai-ring: 0 0 0 3px rgba(124, 116, 255, .32);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
