/*
 * css/tokens.css: Arbiter design tokens (SPEC section 2). Deep space navy, electric royal blue, white type.
 * Every stylesheet reads colour, type and geometry from here. Fonts are self-hosted (fonts/), font-display swap.
 * Dark theme only.
 */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('/fonts/figtree-var.woff2') format('woff2-variations'), url('/fonts/figtree-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-mono-latin.woff2') format('woff2-variations'), url('/fonts/geist-mono-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;

  /* grounds */
  --bg: #03041a;
  --bg-2: #060828;
  --bg-3: #0b0f3a;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.07);
  --glass-3: rgba(255, 255, 255, 0.1);
  --line: rgba(170, 182, 255, 0.14);
  --line-2: rgba(170, 182, 255, 0.24);
  --scrim: rgba(2, 3, 18, 0.72);

  /* type colour. Every one of these is a TEXT colour: it reaches 4.5:1 on the surfaces text sits on (the page
     ground, glass cards, sheets, menus and modals; measured by the contrast gate in tools/verify.mjs).
     --faint is the quietest: 5.7:1 on --bg, 4.6:1 on the lightest glass (#12165d). It was #5f679c (3.8:1 on --bg,
     3.0:1 on glass), which no small label could use. On tinted brand surfaces (the Pro card) use --muted or lighter. */
  --ink: #f3f5ff;
  --body: #c5cbf2;
  --muted: #8a92c9;
  --faint: #7d85bd;
  /* decoration only (chart fills, rules, glyphs that carry no information): never a text colour */
  --dim: #5f679c;

  /* brand */
  --brand: #111bc4;
  --brand-hi: #3442ff;
  --glow: #6d7bff;
  --ice: #aeb9ff;
  --grad: linear-gradient(135deg, #3442ff 0%, #111bc4 100%);
  --grad-soft: linear-gradient(135deg, rgba(52, 66, 255, 0.22), rgba(17, 27, 196, 0.08));
  --glow-shadow: 0 0 0 1px rgba(109, 123, 255, 0.35), 0 8px 32px -6px rgba(52, 66, 255, 0.55);

  /* state */
  --ok: #43dfae;
  --bad: #ff6f8e;
  --warn: #ffc56b;
  --ok-tint: rgba(67, 223, 174, 0.12);
  --bad-tint: rgba(255, 111, 142, 0.12);
  --warn-tint: rgba(255, 197, 107, 0.12);

  /* destinations (the income rule): wallet, AI credits, stocks, team */
  --dest-wallet: #6d7bff;
  --dest-credits: #43dfae;
  --dest-stocks: #ffc56b;
  --dest-team: #ff8fd8;
  --dest-fee: var(--dim);

  /* type */
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --track-tight: -0.03em;

  /* geometry */
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --pill: 999px;
  --container: 1180px;
  --gutter: 24px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
  --blur: blur(18px) saturate(140%);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --nav-h: 60px; }
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 3px; }
::selection { background: rgba(52, 66, 255, 0.55); color: #fff; }
