/* Shared design tokens. One file for every surface: marketing site, console, health monitor, chat page, agent dashboard.
   Link it with <link rel="stylesheet" href="/theme.css"> (see app/views/shared/_theme_tokens.html.erb).
   Documented in DESIGN.md. Change a value here and in DESIGN.md in the same commit. */

@font-face { font-family: 'Bricolage Grotesque Variable'; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url('/fonts/bricolage-latin.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque Variable'; font-style: normal; font-display: swap; font-weight: 200 800; font-stretch: 75% 100%;
  src: url('/fonts/bricolage-latin-ext.woff2') format('woff2-variations'); 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: 'Archivo Variable'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url('/fonts/archivo-latin.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo Variable'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url('/fonts/archivo-latin-ext.woff2') format('woff2-variations'); 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; }

:root {
  /* Palette: five named roles */
  --ink: #14203A;          /* deep navy: text, outlines, dark grounds */
  --sun: #FFC93C;          /* butter yellow */
  --sky: #2557E8;          /* cobalt blue */
  --coral: #FF6B57;
  --mint: #79DDB3;
  --sun-soft: #FFF0B8; --sky-soft: #D6E3FF; --coral-soft: #FFD9D2; --mint-soft: #CFF4E4;
  --sky-d: #1B43BD; --coral-d: #E5513D; --mint-d: #0A7656;   /* pressed states; --mint-d is also the readable green */

  /* Neutrals: cool, tinted from the ink */
  --paper: #F7F9FD; --paper-2: #E8EEF9; --white: #FFFFFF;
  --rule: #C9D3E6;
  --ink-2: #34425F; --ink-3: #55637F;

  /* Status (always paired with a text label) */
  --ok: #0A7656; --warn: #9A5800; --danger: #C0292B; --info: #2557E8;

  /* Semantic aliases: use these in app surfaces so the dark theme flips for free */
  --bg: var(--paper); --surface: var(--white); --surface-2: var(--paper-2); --line: var(--rule);
  --text: var(--ink); --text-2: var(--ink-2); --text-3: var(--ink-3);
  --primary: var(--sky); --primary-hover: var(--sky-d); --on-primary: #FFFFFF;
  --cta: var(--coral); --cta-hover: var(--coral-d); --on-cta: var(--ink);
  --focus: var(--sky);

  /* Type */
  --font-display: 'Bricolage Grotesque Variable', 'Archivo Variable', system-ui, sans-serif;
  --font-text: 'Archivo Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shape: marketing uses md/lg; calm app surfaces use xs/sm */
  --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-pill: 999px;
  --line-1: 1px; --line-2: 2px; --line-3: 3px;     /* hairline, card outline, illustration/sticker outline */
  --shadow-float: 0 8px 24px rgb(20 32 58 / .14);  /* menus and popovers only; never a hard offset */
  --focus-ring: 3px solid var(--focus);            /* outline-offset: 2px */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

/* Dark theme for the console, health monitor and agent dashboard. Add class "dark" (or data-theme="dark") on <html>. */
.dark, [data-theme="dark"] {
  --bg: #0F1830; --surface: #18264A; --surface-2: #1F2F57; --line: #2B3B63;
  --text: #E9EEFA; --text-2: #A9B6D3; --text-3: #8C9BBD;
  --primary: #8FB1FF; --primary-hover: #B0C7FF; --on-primary: #14203A;
  --cta: #FF8A78; --cta-hover: #FFA595; --on-cta: #14203A;
  --focus: #8FB1FF;
  --ok: #7ADFB5; --warn: #FFD35E; --danger: #FF8A78; --info: #8FB1FF;
  --shadow-float: 0 8px 24px rgb(0 0 0 / .45);
  color-scheme: dark;
}
