/* Tribbo — design tokens. Single source of truth for the site and the brandbook (brandbook.html documents these). */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/golos-text-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 900;
  font-display: swap;
  src: url('../fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colour — brand */
  --ink: #14123a;          /* text, dark surfaces */
  --violet: #6d4aff;       /* primary actions */
  --violet-deep: #4b2fd6;  /* primary text on light, pressed */
  --saffron: #ffc83d;      /* accent: the "key" — prices, trial, highlights */
  --mint: #17b890;         /* success surfaces (ink text on top) */
  --mint-deep: #0b7a60;    /* success text on light */
  /* Colour — neutrals */
  --paper: #ffffff;
  --lavender: #f2f0ff;     /* quiet section background */
  --lavender-2: #e4dfff;   /* borders, chips on lavender */
  --slate: #5b5878;        /* secondary text */
  --danger: #d6334c;

  /* Roles */
  --text: var(--ink);
  --text-muted: var(--slate);
  --surface: var(--paper);
  --surface-quiet: var(--lavender);
  --line: var(--lavender-2);
  --action: var(--violet);
  --action-hover: var(--violet-deep);

  /* Type */
  --font-display: 'Unbounded', 'Arial Black', 'Segoe UI', system-ui, sans-serif;
  --font-text: 'Golos Text', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-base: 1.0625rem; /* 17 */
  --fs-lg: 1.25rem;     /* 20 */
  --fs-xl: 1.625rem;    /* 26 */
  --fs-2xl: clamp(1.6rem, 2.6vw + 0.6rem, 2.4rem);
  --fs-3xl: clamp(1.9rem, 3.4vw + 0.6rem, 3.1rem);
  --fs-hero: clamp(1.75rem, 3.2vw + 0.7rem, 3.1rem);
  --lh-tight: 1.12;
  --lh-text: 1.6;

  /* Space (4px scale) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;
  --s-9: 7rem;

  /* Shape — the "bubble corner": three large radii, one small where a chat bubble has its tail */
  --r-bubble: 28px 28px 28px 8px;       /* received / content surfaces */
  --r-bubble-out: 28px 28px 8px 28px;   /* sent */
  --r-field: 14px;
  --r-pill: 999px;

  /* Elevation — tinted with the ink colour, never neutral grey */
  --shadow-1: 0 1px 0 rgb(20 18 58 / 0.06), 0 14px 30px -16px rgb(20 18 58 / 0.35);
  --shadow-2: 0 2px 0 rgb(20 18 58 / 0.08), 0 30px 60px -24px rgb(20 18 58 / 0.5);

  /* Layout */
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
