/*
 * Chetver design tokens — ported from the redesign prototype
 * (.claude/redesign/src/shell.html, snapshot of 7 Oct 2026, md5 0b8cd0eeb358adff8da78d020f6fb024).
 * Light theme only. The dark values at the end are the prototype's proposal and are NOT exposed:
 * nothing in the product sets data-theme="dark" and there is no prefers-color-scheme rule.
 */
:root {
  --bg: #f7f7f7;          /* page plane */
  --panel: #ffffff;       /* cards, tables, sidebar surfaces */
  --panel-2: #fafafa;     /* inner surface: chart well, table head */
  --wash: #f2f2f2;        /* chips, hover */
  --wash-2: #e9e9e9;      /* pressed chip, active filter */
  --ink: #171717;
  --ink-2: #525252;
  --ink-3: #6b6b6b;
  --ink-4: #8a8a8a;       /* display second line, decorative only at large sizes */
  --hair: #ececec;        /* dividers */
  --ring: rgba(23, 23, 23, .08);
  --shadow-sm: 0 1px 2px rgba(23, 23, 23, .05);
  --shadow: 0 0 0 1px var(--ring), 0 1px 1px rgba(23, 23, 23, .025), 0 6px 14px -6px rgba(23, 23, 23, .07);
  --shadow-pop: 0 0 0 1px var(--ring), 0 2px 4px rgba(0, 0, 0, .04), 0 18px 36px -8px rgba(0, 0, 0, .14), 0 48px 80px -24px rgba(0, 0, 0, .14);
  --btn-bg: #171717;
  --btn-fg: #ffffff;
  --tip-bg: #0a0a0a;
  --tip-fg: #f5f5f5;
  --float-bg: #171717;     /* always-dark floating surfaces: tooltips, toasts, hero callouts */
  --on-float: #f5f5f5;
  --brand: #171717;       /* Chetver star mark */
  --focus: #2a78d6;
  --hl: rgba(255, 255, 255, .9);   /* inner top highlight on raised surfaces */
  --glow: rgba(42, 120, 214, .10);
  --pop-bg: #ffffff;       /* popover surface (details[data-pop], .pop, .menu); lifts above the card in dark */
  --pop-wash: #f2f2f2;     /* hover/chip inside a popover */
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* data: one slot per entity (DATA.md: you s1 · OpenAI s2 · Anthropic s3 · Perplexity s4 · Google s5 · Microsoft s6 · Інші s7 · reserve s8).
     Vendor remap (phase 3, decision of 2 Oct): s3, s4 and s6 moved off the status hues — s3 #08A2AF teal, s4 #2A6056 deep green,
     s6 #724D0B brown (was green, amber, green); ΔE2000 ≥ 29 to --good/--warn/--bad in light. Dark pairs: s3 same, s4 #65847A, s6 #98784E
     (contrast ≥ 4,5 on the dark card, ΔE ≥ 25 to status, ≥ 16 to the other slots — computed by gen_foundations.py). */
  --s1: #2a78d6; --s2: #eb6834; --s3: #08a2af; --s4: #2a6056; --s5: #e87ba4; --s6: #724d0b; --s7: #4a3aa7; --s8: #e34948;
  --good: #0ca30c; --good-ink: #15803d; --good-wash: #ecf8ee;
  --warn: #fab219; --warn-ink: #9a6700; --warn-wash: #fdf6e3;
  --bad: #d03b3b;  --bad-ink: #b42323;  --bad-wash: #fcefef;
  --info-wash: #eef4fc; --info-ink: #1c5cab;
  --grid: #efefef;
  --axis: #d4d4d4;

  /* Geist is the product font (decision of 2 Oct). The prototype loads Geist + Geist Mono from Google Fonts (shell.html <link>);
     the product self-hosts them as WOFF2 with the latin, cyrillic and cyrillic-ext subsets (ә ғ қ ң ө ұ ү һ for kk). */
  --f-display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-ui: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* type scale (values from the approved Overview v4; sys-foundations «Типографія») */
  --fs-index: 88px;   /* AI-visibility index only (D12) */
  --fs-hero: 64px;    /* every other hero number; 48px at ≤760 */
  --fs-tile: 30px;    /* number in a summary tile */
  --fs-title: 22px;   /* page title, lock title */
  --fs-verdict: 18px; /* card answer = Overview verdict */
  --fs-why: 15px;     /* «why» sentence under a hero number */
  --fs-card: 14px;    /* card title (14/20) */
  --fs-row: 13.5px;   /* row title */
  --fs-body: 13px;
  --fs-cap: 12.5px;   /* captions, meta */
  --fs-fine: 12px;    /* fine print, card sub */

  --r-xs: 5px; --r-sm: 7px; --r-md: 10px; --r-lg: 14px; --r-xl: 18px;
  --g: 16px;          /* gap between cards (one value on every screen) */
  color-scheme: light;
}

/* dark theme: proposal only (owner decision 2 Oct 2026) — not exposed */
:root[data-theme="dark"] {
  --bg: #0b0b0b; --panel: #141414; --panel-2: #111111; --wash: #1d1d1d; --wash-2: #282828;
  --ink: #ededed; --ink-2: #b4b4b4; --ink-3: #9a9a9a; --ink-4: #7a7a7a; --hair: #232323; --ring: rgba(255, 255, 255, .09);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 0 0 1px var(--ring), 0 4px 4px rgba(0, 0, 0, .25);
  --shadow-pop: 0 0 0 1px var(--ring), 0 12px 28px rgba(0, 0, 0, .5), 0 40px 50px rgba(0, 0, 0, .35);
  --btn-bg: #ededed; --btn-fg: #0b0b0b; --tip-bg: #f2f2f2; --tip-fg: #111111; --float-bg: #1f1f1f; --on-float: #f5f5f5; --brand: #ededed; --focus: #5598e7; --hl: rgba(255, 255, 255, .045); --glow: rgba(57, 135, 229, .18); --pop-bg: #1c1c1c; --pop-wash: #272727;
  --s1: #3987e5; --s2: #d95926; --s3: #08a2af; --s4: #65847a; --s5: #d55181; --s6: #98784e; --s7: #9085e9; --s8: #e66767;
  --good-ink: #3fbf5f; --good-wash: #13261a; --warn-ink: #e0a82e; --warn-wash: #2a2210; --bad-ink: #ef7a7a; --bad-wash: #2c1515;
  --info-wash: #13213a; --info-ink: #86b6ef; --grid: #1f1f1f; --axis: #333333;
  color-scheme: dark;
}
