/*
 * ProtectifyAI design tokens — single source of truth.
 * Mirrors the Figma "Brand" variables and text styles
 * (ProtectifyAI Website Redesign — Motion / Bold Type / Dark).
 * Every other stylesheet must reference these variables; do not hard-code colours elsewhere.
 */
:root {
  /* Brand colours (Figma variables) */
  --cream: #f5f0e8;
  --cream-2: #ede6da;
  --paper: #faf6f0;
  --ink: #1a0b26;
  --ink-soft: #3d2a4f;
  --ink-muted: #6b5a78;
  --violet: #8b2fd9;
  --violet-bright: #b14ef5;
  --violet-deep: #5a1a99;
  --violet-tint: #efe0fa;
  --violet-glow: color-mix(in srgb, var(--violet) 16%, transparent);
  --aubergine: #2a0f3d;
  --success: #2fbf71;
  --warning: #e8a33b;
  --danger-tint: #c98fa3;

  /* Lines */
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 26%, transparent);

  /* Spacing scale (Figma spacing/*) */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
  --space-120: 120px;

  /* Radii (Figma radii/*) */
  --radius-8: 8px;
  --radius-16: 16px;
  --radius-pill: 999px;

  /* Typography */
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --mono: var(--font-mono);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: ease-in-out;

  /* Semantic surface variables — bands override these */
  --bg: var(--cream);
  --fg: var(--ink);
  --fg-muted: var(--ink-muted);
  --fg-subtle: var(--ink-muted);
  --accent: var(--violet-deep);
  --card-bg: var(--paper);
  --card-border: var(--line);
  --chip-bg: var(--violet-tint);
  --chip-fg: var(--violet-deep);
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
}

/* Dark aubergine band: re-point the semantic variables */
.band-dark {
  --bg: var(--aubergine);
  --fg: var(--cream);
  --fg-muted: color-mix(in srgb, var(--cream) 72%, transparent);
  --fg-subtle: color-mix(in srgb, var(--cream) 55%, transparent);
  --line: color-mix(in srgb, var(--cream) 16%, transparent);
  --line-strong: color-mix(in srgb, var(--cream) 30%, transparent);
  --accent: var(--violet-bright);
  --card-bg: color-mix(in srgb, var(--cream) 8%, transparent);
  --card-border: color-mix(in srgb, var(--cream) 16%, transparent);
  --chip-bg: var(--violet);
  --chip-fg: var(--cream);
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
  background: var(--bg);
  color: var(--fg);
}

/* Warmer cream band */
.band-cream-2 {
  --bg: var(--cream-2);
  background: var(--bg);
}
.band-paper {
  --bg: var(--paper);
  --card-bg: var(--cream);
  background: var(--bg);
}
