/* Citiwell ID — shared fonts and design tokens (light + dark). */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../assets/fonts/manrope-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../assets/fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../assets/fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../assets/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --bg: #f2f7fa;
  --bg-2: #e8f1f7;
  --surface: #ffffff;
  --surface-2: #f4f8fb;
  --surface-3: #eaf1f6;
  --text: #0e1d2a;
  --muted: #566a7a;
  --faint: #8597a6;
  --border: #dbe5ed;
  --border-strong: #c3d2de;
  --brand: #1d8fbd;
  --brand-strong: #13709f;
  --brand-soft: #e2f2f9;
  --coral: #ff6b70;
  --success: #17895c;
  --success-soft: #e3f6ee;
  --danger: #c23b36;
  --danger-soft: #fdeceb;
  --warn: #a4650f;
  --warn-soft: #fdf2e1;
  --ring: rgba(29, 143, 189, 0.24);
  --card-shadow: 0 1px 2px rgba(14, 29, 42, 0.05), 0 18px 40px -18px rgba(14, 29, 42, 0.22), 0 50px 90px -40px rgba(29, 143, 189, 0.35);
  --glass: rgba(255, 255, 255, 0.72);
  --whatsapp: #25d366;
  --viber: #7360f2;
  --telegram: #26a5e4;
  --radius-card: 28px;
  --radius-field: 16px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #07111e;
    --bg-2: #0a1728;
    --surface: #0f1c2e;
    --surface-2: #132338;
    --surface-3: #182b43;
    --text: #e7eff6;
    --muted: #9db0c1;
    --faint: #6f8599;
    --border: #213750;
    --border-strong: #2d4764;
    --brand: #3aaad9;
    --brand-strong: #6cc3e8;
    --brand-soft: #0f2f45;
    --success: #4cc996;
    --success-soft: #0f2e25;
    --danger: #ff8a84;
    --danger-soft: #3a1618;
    --warn: #f0b35a;
    --warn-soft: #33240f;
    --ring: rgba(58, 170, 217, 0.32);
    --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.7);
    --glass: rgba(15, 28, 46, 0.72);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111e;
  --bg-2: #0a1728;
  --surface: #0f1c2e;
  --surface-2: #132338;
  --surface-3: #182b43;
  --text: #e7eff6;
  --muted: #9db0c1;
  --faint: #6f8599;
  --border: #213750;
  --border-strong: #2d4764;
  --brand: #3aaad9;
  --brand-strong: #6cc3e8;
  --brand-soft: #0f2f45;
  --success: #4cc996;
  --success-soft: #0f2e25;
  --danger: #ff8a84;
  --danger-soft: #3a1618;
  --warn: #f0b35a;
  --warn-soft: #33240f;
  --ring: rgba(58, 170, 217, 0.32);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --glass: rgba(15, 28, 46, 0.72);
}

/* Theme toggle: the icon shows what a click switches to. */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
