/* Tema KariesLens: indigo ke violet, Bricolage Grotesque + Plus Jakarta Sans. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans.ttf") format("truetype"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/BricolageGrotesque.ttf") format("truetype"); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -.035em;

  --gutter: clamp(1rem, 4.6vw, 2.5rem);
  --r: 1.15rem;
  --r-lg: 1.75rem;

  --bg: #f6f4ff;
  --surface: #ffffff;
  --surface-2: #f1eeff;
  --ink: #17133a;
  --ink-2: #4f4b78;
  --ink-3: #6f6b98;
  --ink-on-light: #2a1d8f;
  --line: rgb(91 70 255 / .12);
  --line-strong: rgb(91 70 255 / .26);

  --accent: #5b46ff;
  --accent-2: #a23df0;
  --tooth-hi: #ffffff;
  --tooth-lo: #d9d0ff;
  --accent-text: #4a35e8;
  --accent-soft: rgb(91 70 255 / .10);
  --focus: #5b46ff;
  --grad: linear-gradient(120deg, #5b46ff 0%, #a23df0 100%);
  --btn: linear-gradient(120deg, #5a45f5 0%, #9b3de8 100%);
  --grad-deep: linear-gradient(135deg, #261a85 0%, #4a2fcb 52%, #7a2fc2 100%);

  --glass: rgb(255 255 255 / .62);
  --glass-strong: rgb(255 255 255 / .84);
  --shadow: rgb(60 40 160 / .38);
  --glow-1: #9a8cff;
  --glow-2: #f59cff;
  --glow-3: #8fd3ff;
  --op: .42;

  --ok: #15a35a;
  --bad: #d1365a;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0a1c;
  --surface: #15122e;
  --surface-2: #1d1942;
  --ink: #f0eeff;
  --ink-2: #b9b5e3;
  --ink-3: #8f8bbf;
  --line: rgb(170 160 255 / .14);
  --line-strong: rgb(170 160 255 / .3);
  --accent: #8f7fff;
  --accent-2: #e585ff;
  --tooth-hi: #f6f3ff;
  --tooth-lo: #b3a4ff;
  --accent-text: #b6abff;
  --accent-soft: rgb(143 127 255 / .17);
  --focus: #b6abff;
  --grad: linear-gradient(120deg, #a89bff 0%, #e585ff 100%);
  --glass: rgb(30 26 70 / .55);
  --glass-strong: rgb(16 13 40 / .84);
  --shadow: rgb(0 0 0 / .85);
  --glow-1: #4a35d9;
  --glow-2: #9a2fc4;
  --glow-3: #1f6fb5;
  --op: .5;
  --ok: #3ddc84;
  --bad: #ff6b8f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c0a1c; --surface: #15122e; --surface-2: #1d1942;
    --ink: #f0eeff; --ink-2: #b9b5e3; --ink-3: #8f8bbf;
    --line: rgb(170 160 255 / .14); --line-strong: rgb(170 160 255 / .3);
    --accent: #8f7fff; --accent-2: #e585ff; --tooth-hi: #f6f3ff; --tooth-lo: #b3a4ff; --accent-text: #b6abff; --accent-soft: rgb(143 127 255 / .17); --focus: #b6abff;
    --grad: linear-gradient(120deg, #a89bff 0%, #e585ff 100%);
    --glass: rgb(30 26 70 / .55); --glass-strong: rgb(16 13 40 / .84); --shadow: rgb(0 0 0 / .85);
    --glow-1: #4a35d9; --glow-2: #9a2fc4; --glow-3: #1f6fb5; --op: .5;
    --ok: #3ddc84; --bad: #ff6b8f;
  }
}
