/*
 * css/tokens.css: Ponlink design tokens (SPEC section 2). Flovia's neutrals, flovia's blue family replaced by green.
 * Every stylesheet reads colour from here and nowhere else. Fonts are self-hosted (fonts/).
 */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-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+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: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-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: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-mono-latin.woff2') format('woff2-variations');
}

:root {
  /* flovia neutrals, unchanged */
  --bg: #f7f7f7;
  --surface: #fff;
  --surface-2: #fafafa;
  --ink: #171717;
  --body: #525252;
  --body-color: var(--body);
  --muted: #8a8a8a;
  --faint: #a8a8a8;
  --line: #e5e5e5;
  --line-soft: #ececec;
  --line-strong: #d9d9d9;
  --ok: #1e7a55;
  --ok-tint: #edf7f2;
  --bad: #c2453b;
  --bad-tint: #fbf1f0;

  /* flovia blue -> Ponlink green (the logo is #03c806; split by contrast need) */
  --brand: #03c806;              /* the logo, fills, chart lines, bars, the active KPI underline, chip dots */
  --accent: #0a9a2c;             /* highlighted hero words and large headings only (3.5:1 on --bg) */
  --accent-text: #0b7f2c;        /* links, small coloured text, step numbers, positive deltas (5:1 on white) */
  --accent-tint: #e8f8ea;        /* tinted rows, chips, the selected table row (was #eef2fd) */
  --accent-ring: rgba(3, 200, 6, 0.35);
  --accent-2: #b98a4a;           /* flovia's warm secondary (chart line 2), unchanged */
  --dim: #6b6b6b;                /* small text that must read (5:1 on white); --muted / --faint are for decoration */
  --ok-text: #1e7a55;            /* positive deltas and "Used" states as text (5.4:1 on white) */

  --sans: 'Geist Variable', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono Variable', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* geometry (flovia) */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-card: 0 1px 2px rgba(23, 23, 23, 0.04), 0 8px 24px rgba(23, 23, 23, 0.04);
  --shadow-pop: 0 2px 6px rgba(23, 23, 23, 0.06), 0 16px 40px rgba(23, 23, 23, 0.1);
  --container: 1200px;
  --gutter: 24px;
  --nav-h: 60px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: var(--accent-tint); color: var(--ink); }
@media (max-width: 760px) { :root { --gutter: 16px; --nav-h: 56px; } }
