/* Design tokens. Light is the default (clean, Sumsub-like); dark follows the OS
   unless the visitor picked a theme explicitly (html[data-theme]). */

/* Flag emoji for Windows (which has none). Only regional-indicator code points
   use it, so the rest of the text is unaffected. Twemoji, CC-BY 4.0. */
@font-face {
  font-family: "Twemoji Country Flags";
  src: url("../fonts/TwemojiCountryFlags.woff2") format("woff2");
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --bg-tint: #eef3ff;
  --surface: #ffffff;
  --surface-2: #f6f8fc;
  --surface-3: #eceff6;
  --line: #e4e8f0;
  --line-strong: #cfd6e3;
  --text: #0b1222;
  --text-2: #3d4a61;
  --muted: #5f6b80;
  --accent: #1f5eff;
  --accent-btn: #1f5eff;
  --accent-btn-hover: #1449d6;
  --accent-text: #1f5eff;
  --accent-hover: #1449d6;
  --accent-ink: #ffffff;
  --accent-soft: #e6edff;
  --accent-2: #00b386;
  --accent-3: #7b4dff;
  --invert-bg: #0b1222;
  --invert-text: #ffffff;
  --good: #0ca30c;
  --good-text: #067a06;
  --good-soft: #e3f6e3;
  --warning: #fab219;
  --warning-text: #8a5a00;
  --warning-soft: #fff3d6;
  --critical: #d03b3b;
  --critical-text: #b32626;
  --critical-soft: #fde6e6;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(11, 18, 34, 0.04), 0 12px 32px -12px rgba(11, 18, 34, 0.14);
  --shadow-lg: 0 30px 80px -30px rgba(11, 18, 34, 0.28);
  --font: "Twemoji Country Flags", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --max: 1200px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #070b14;
    --bg-soft: #0c1220;
    --bg-tint: #0f1a33;
    --surface: #0f1626;
    --surface-2: #141c2f;
    --surface-3: #1c2640;
    --line: #1f2940;
    --line-strong: #2d3a57;
    --text: #eef2fa;
    --text-2: #b6c0d4;
    --muted: #8691a8;
    --accent: #4d7fff;
    --accent-hover: #6b95ff;
    --accent-btn: #2f62e8;
    --accent-btn-hover: #3d70f5;
    --accent-text: #7ea2ff;
    --accent-ink: #ffffff;
    --accent-soft: #15234a;
    --accent-2: #2fd3a6;
    --accent-3: #a283ff;
    --invert-bg: #eef2fa;
    --invert-text: #0b1222;
    --good-text: #3ddc84;
    --good-soft: #0f2a1a;
    --warning-text: #ffc94d;
    --warning-soft: #2e2410;
    --critical-text: #ff8a8a;
    --critical-soft: #331616;
    --series-1: #3987e5;
    --series-2: #d95926;
    --grid: #232c3f;
    --axis: #38425a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b14;
  --bg-soft: #0c1220;
  --bg-tint: #0f1a33;
  --surface: #0f1626;
  --surface-2: #141c2f;
  --surface-3: #1c2640;
  --line: #1f2940;
  --line-strong: #2d3a57;
  --text: #eef2fa;
  --text-2: #b6c0d4;
  --muted: #8691a8;
  --accent: #4d7fff;
  --accent-hover: #6b95ff;
  --accent-btn: #2f62e8;
  --accent-btn-hover: #3d70f5;
  --accent-text: #7ea2ff;
  --accent-ink: #ffffff;
  --accent-soft: #15234a;
  --accent-2: #2fd3a6;
  --accent-3: #a283ff;
  --invert-bg: #eef2fa;
  --invert-text: #0b1222;
  --good-text: #3ddc84;
  --good-soft: #0f2a1a;
  --warning-text: #ffc94d;
  --warning-soft: #2e2410;
  --critical-text: #ff8a8a;
  --critical-soft: #331616;
  --series-1: #3987e5;
  --series-2: #d95926;
  --grid: #232c3f;
  --axis: #38425a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent-btn); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-btn-hover); }
.btn-dark { background: var(--invert-bg); color: var(--invert-text); }
.btn-dark:hover { opacity: 0.88; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

.seg,
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.seg button,
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.seg button[aria-pressed="true"],
.lang-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(11, 18, 34, 0.12);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-text);
  white-space: nowrap;
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .btn { height: 46px; padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
