/* ============================================================
   TASS Vision / Vitrac: canonical design tokens
   Version 2026-10-23. One source of truth for web, decks, PDFs,
   ads, social, video and docs. Fonts load from ../fonts/.
   Conflicts resolved: see README.md, section "What we fixed".
   ============================================================ */

/* ---- Collateral fonts: Onest (everything) + Manrope (caps labels only) ---- */
@font-face { font-family: 'Onest'; src: url('../fonts/collateral/onest-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Onest'; src: url('../fonts/collateral/onest-cyrillic-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; src: url('../fonts/collateral/onest-latin-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Onest'; src: url('../fonts/collateral/onest-cyrillic-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; src: url('../fonts/collateral/onest-latin-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Onest'; src: url('../fonts/collateral/onest-cyrillic-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; src: url('../fonts/collateral/onest-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Onest'; src: url('../fonts/collateral/onest-cyrillic-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; src: url('../fonts/collateral/onest-latin-ext.woff2') format('woff2'); font-weight: 400; font-display: swap; 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: 'Onest'; src: url('../fonts/collateral/onest-latin-ext.woff2') format('woff2'); font-weight: 500; font-display: swap; 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: 'Onest'; src: url('../fonts/collateral/onest-latin-ext.woff2') format('woff2'); font-weight: 600; font-display: swap; 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: 'Onest'; src: url('../fonts/collateral/onest-latin-ext.woff2') format('woff2'); font-weight: 700; font-display: swap; 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'; src: url('../fonts/collateral/manrope-latin-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Manrope'; src: url('../fonts/collateral/manrope-cyrillic-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; src: url('../fonts/collateral/manrope-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Manrope'; src: url('../fonts/collateral/manrope-cyrillic-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; src: url('../fonts/collateral/manrope-latin-ext.woff2') format('woff2'); font-weight: 600; font-display: swap; 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'; src: url('../fonts/collateral/manrope-latin-ext.woff2') format('woff2'); font-weight: 700; font-display: swap; 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; }

/* ---- Website fonts: Inter (EN, TR) + Golos Text (RU). Variable files, 400-700 ---- */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/web/golos-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: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/web/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/web/golos-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: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/web/golos-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;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/web/inter-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: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/web/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/web/inter-vietnamese.woff2") format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309,
    U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/web/inter-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: Inter;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/web/inter-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;
}

/* ============================================================
   Variables. One set for every medium.
   Fonts: collateral (decks, PDFs, ads, social, docs) = Onest + Manrope.
          website = Inter (EN, TR) and Golos Text (RU).
   Switch with <html data-font="web"> or <html data-font="web-ru">.
   ============================================================ */

:root,
[data-theme="light"] {
  /* ---- Neutrals ---- */
  --bg: #ffffff;            /* page */
  --panel: #f4f4f7;         /* soft grey panel: "what you get" surfaces (site: --surface-secondary) */
  --surf: #f8f7fb;          /* tinted section band (site: --surface-tertiary, .sec-tint) */
  --line: #e8e7ee;          /* hairline borders, 1px, everywhere (site: --border) */
  --ink: #1c1b22;           /* text on light (site: --foreground) */
  --gray: #6e6c78;          /* secondary text (site: --muted) */
  --gray-2: #8b8896;        /* tertiary text */
  --gray-3: #b4b1bf;        /* disabled, faint */
  --placeholder: #9c99a8;   /* input placeholder */

  /* ---- The accent: one violet ---- */
  --violet: #7703fc;        /* links, kickers, key numbers, primary buttons (site: --accent) */
  --violet-hover: #650bd6;  /* button hover background */
  --tint: #f3ecfe;          /* violet chip and card backgrounds */
  --violet-soft: #d9c2fe;   /* highlight words on dark (h1 em) */
  --violet-bar: #e9dbfe;    /* chart bar fill on light */
  --lilac: #a970ff;         /* ONLY on dark surfaces, never on white */
  --fold: #23054a;          /* the dark band (site: --violet-deep, --color-brand-deep) */
  --on-violet: #ffffff;     /* text on violet buttons */

  /* ---- Semantic colors. They mean things. Max two per section besides violet ---- */
  --blue: #3894f7;   --blue-tint: #eaf3fe;   /* data, comparisons, electronics world */
  --green: #16a34a;  --green-tint: #e8f8ee;  /* good, growth, success */
  --red: #e2445c;    --red-tint: #fcebee;    /* bad, loss, alerts, fashion world */
  --amber: #d97706;  --amber-tint: #fbf1e3;  /* caution (reserved) */
  --teal: #0f766e;   --teal-tint: #e8f3f1;   /* steady, staff events, pharmacy and health world */
  --leaf: #7fe0a8;                            /* "live" dot on dark chips only */

  /* ---- Charts ---- */
  --chart-1: #7703fc;       /* violet: our number */
  --chart-2: #3894f7;       /* blue: the comparison */
  --chart-3: #16a34a;       /* green */
  --chart-4: #d97706;       /* amber */
  --chart-5: #e2445c;       /* red */
  --chart-teal: #0f8a66;    /* extra series in dashboards */
  --chart-grid: #e8e7ee;
  --chart-bar-soft: #e9dbfe;

  /* ---- Product UI islands (screens that copy the Vitrac app) ---- */
  --app-bg: #fafafb;
  --app-panel: #f4f4f5;
  --app-border: #d4d4d7;

  /* ---- Gradient: hero card, closing CTA, funnel bars. Nowhere else. Never in print. ---- */
  --grad: linear-gradient(160deg, #7703fc 12%, #3894f7 125%);
  --hero-wash:
    radial-gradient(60% 50% at 15% 0%, color-mix(in srgb, #7703fc 16%, transparent), transparent 60%),
    radial-gradient(50% 40% at 90% 10%, color-mix(in srgb, #7703fc 9%, transparent), transparent 55%);
  --fold-glow: radial-gradient(60% 78% at 90% 96%, rgba(119, 3, 252, .4) 0%, transparent 64%);
  --fold-dots: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
  --fold-dots-size: 26px 26px;
  --fold-dots-mask: radial-gradient(72% 68% at 50% 36%, #000 0%, transparent 78%);

  /* ---- Type families (collateral is the default) ---- */
  --font-ui: 'Onest', system-ui, sans-serif;       /* body, headings, numbers */
  --font-display: 'Onest', system-ui, sans-serif;
  --font-caps: 'Manrope', system-ui, sans-serif;   /* caps micro-labels ONLY */
  --font-sans: var(--font-ui);

  /* ---- Type scale ---- */
  --fs-hero: clamp(42px, 6vw, 84px);     /* hero h1 */
  --fs-cta: clamp(36px, 4.4vw, 56px);    /* closing CTA heading */
  --fs-h2: clamp(34px, 3.6vw, 46px);     /* section heading */
  --fs-h3: clamp(26px, 2.6vw, 34px);     /* sub-section heading */
  --fs-h4: 24px;                          /* card title, large */
  --fs-title: 19px;                       /* card title */
  --fs-lead: 19px;                        /* intro paragraph */
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 12.5px;
  --fs-caps: 11px;                        /* caps kicker: 10.5-12px */
  --fs-stat: clamp(44px, 5vw, 72px);      /* one big number */

  --fw-body: 400;
  --fw-ui: 500;
  --fw-heading: 600;
  --fw-hero: 650;
  --fw-number: 700;
  --fw-caps: 700;

  --lh-tight: 1.08;      /* hero and stats */
  --lh-heading: 1.12;
  --lh-body: 1.55;
  --ls-heading: -0.03em;
  --ls-caps: 0.15em;

  /* ---- Spacing (4px base) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* ---- Layout ---- */
  --w-content: min(1140px, calc(100% - 2.5rem));
  --w-text: 46ch;              /* max line length for lead text */
  --pad-section: 5.5rem;       /* 88px */
  --pad-cta: 96px;
  --pad-card: 1.35rem 1.4rem;
  --nav-h: 4rem;               /* 3.5rem under 640px */
  --bp-sm: 640px;
  --bp-md: 900px;
  --bp-lg: 1140px;
  --mobile-floor: 375px;       /* must render with no sideways scroll */

  /* ---- Radius ---- */
  --r-card: 18px;      /* cards and panels */
  --r-inner: 16px;     /* inner blocks, stat tiles */
  --r-soft: 14px;      /* soft panels, inner rows */
  --r-ui: 12px;        /* inputs, small controls (HeroUI --radius) */
  --r-chip-inline: 10px;
  --r-pill: 999px;     /* buttons, chips */

  /* ---- Borders ---- */
  --border-hair: 1px solid var(--line);
  --border-hover: color-mix(in srgb, #7703fc 28%, var(--line));

  /* ---- Shadows (floats only; resting cards have NO shadow) ---- */
  --shadow-hover: 0 18px 40px -34px rgba(28, 27, 34, .45);
  --shadow-frame: 0 30px 80px rgba(28, 27, 40, .16);
  --shadow-drop: 0 18px 44px rgba(28, 27, 40, .10);
  --shadow-toast: 0 8px 24px rgba(28, 27, 40, .06);
  --shadow-ai: 0 18px 50px rgba(60, 30, 120, .14);
  --shadow-focus: 0 0 0 3px color-mix(in srgb, #7703fc 28%, transparent);

  /* ---- Motion ---- */
  --lift: -2px;                                /* hover translate */
  --lift-dur: .48s;                            /* soft, never snappy */
  --lift-ease: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.3, 1.25, .4, 1); /* arrivals */
  --ease-press: cubic-bezier(.22, 1, .36, 1);
  --t-press: .16s;                             /* button press: scale(.97) */
  --t-fade: .2s;
  --t-reveal: .55s;                            /* rise 14px, stagger 80-90ms */
  --reveal-rise: 14px;
  --t-bar: 1s;                                 /* bars grow .9-1.1s */
  --ease-bar: cubic-bezier(.22, .8, .24, 1);
  --t-marquee: 46s;                            /* 38-62s linear, hover pauses */
  --t-tab: 4.5s;                               /* tab rotation the reader browses */
  --t-story: 8s;                               /* story loops 7-9s */

  /* ---- Layers ---- */
  --z-base: 0;
  --z-raised: 1;
  --z-sticky: 40;
  --z-nav: 50;
  --z-dropdown: 60;
  --z-modal: 80;
  --z-toast: 90;
}

/* ---- Dark surfaces ----
   Not a dark mode for whole pages. Use on: the dark band, social posts on ink,
   dark deck covers. Cards on a dark band are glass; logos, app screens and
   notification cards stay solid white. */
[data-theme="dark"],
.on-dark {
  --bg: #23054a;                         /* fold. Use --ink-surface for the neutral dark */
  --ink-surface: #1c1b22;
  --panel: rgba(255, 255, 255, .085);
  --surf: rgba(255, 255, 255, .04);
  --line: rgba(255, 255, 255, .12);
  --ink: #ffffff;
  --gray: rgba(255, 255, 255, .74);
  --gray-2: rgba(255, 255, 255, .55);
  --gray-3: rgba(255, 255, 255, .35);
  --placeholder: rgba(255, 255, 255, .45);
  --tint: rgba(255, 255, 255, .10);       /* chip background on dark */
  --chip-border: rgba(255, 255, 255, .16);
  --accent-text: #d9c2fe;                  /* violet-soft, for highlight words */
  --accent-line: #a970ff;                  /* lilac, for kickers and lines */
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .04));
  --glass-blur: blur(22px) saturate(150%);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .14);
  --border-hover: rgba(255, 255, 255, .28);
  --shadow-hover: 0 18px 40px -24px rgba(0, 0, 0, .55);
  --chart-grid: rgba(255, 255, 255, .12);
  --chart-bar-soft: rgba(169, 112, 255, .35);
  color-scheme: dark;
}

/* ---- Website font register ---- */
[data-font="web"] {
  --font-ui: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-caps: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-sans: var(--font-ui);
}
[data-font="web-ru"] {
  --font-ui: 'Golos Text', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Golos Text', ui-sans-serif, system-ui, sans-serif;
  --font-caps: 'Golos Text', ui-sans-serif, system-ui, sans-serif;
  --font-sans: var(--font-ui);
}

/* ---- Base ---- */
body { background: var(--bg); color: var(--ink); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--fw-heading); letter-spacing: var(--ls-heading); line-height: var(--lh-heading); }
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-hover); }
input::placeholder { color: var(--placeholder); }
.num, [data-num] { font-variant-numeric: tabular-nums; }
.caps, .kicker { font-family: var(--font-caps); font-size: var(--fs-caps); font-weight: var(--fw-caps); letter-spacing: var(--ls-caps); text-transform: uppercase; }

@keyframes logowall { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
