/* tokens.css — unified design tokens (midnight-indigo canonical)
   Generated for round 1 frontend refresh 2026-06-02
   See review_results/riskai_frontend_round1_2026-06-02/plan.md §3.1 */

:root {
  /* Background ramp — Apple pure-black (rolled back from midnight-indigo per David 2026-06-02) */
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --bg-raised: #1c1c1e;
  --bg-hover: #2c2c2e;

  /* Surface tiers (Apple) */
  --s1: #1c1c1e;
  --s2: #2c2c2e;
  --s3: #3a3a3c;

  /* Accent palette — Apple system colors (rolled back from midnight-indigo per David 2026-06-02) */
  --blue: #0A84FF;
  --green: #30D158;
  --yellow: #FFD60A;
  --orange: #FF9F0A;
  --red: #FF453A;
  --teal: #5AC8FA;
  --positive: #30D158;
  --negative: #FF453A;
  --warning: #FF9F0A;
  --neutral: #8E8E93;

  /* Text ramp */
  --t1: #FFFFFF;
  --t2: rgba(235,235,245,.60);
  --t3: rgba(235,235,245,.30);
  --t4: rgba(235,235,245,.14);

  /* Separators / fills */
  --sep:  rgba(255,255,255,.10);
  --sep2: rgba(255,255,255,.06);
  --fill: rgba(255,255,255,.04);
  --fill2: rgba(255,255,255,.02);

  /* Radii */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Fonts */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang TC", "Noto Sans CJK TC", sans-serif;
  --mono: "SF Mono", "Fira Code", Menlo, Consolas, monospace;

  /* === Alias block (per gate_round1.json amendment §3.1) ===
     Maps legacy token names (trades_dashboard / thesis_tree heritage) to canonical. */
  --accent:        var(--blue);
  --accent-soft:   rgba(10,132,255,.12);
  --accent-vivid:  #0A84FF;
  --accent-glow:   rgba(10,132,255,.22);
  --card-edge:     linear-gradient(180deg, rgba(255,255,255,.04), transparent 24px);
  --border:        rgba(255,255,255,.06);
  --border-strong: rgba(255,255,255,.10);
  --divider:       rgba(255,255,255,.04);
  --text:          rgba(255,255,255,.95);
  --text-muted:    rgba(255,255,255,.55);
  --text-soft:     rgba(255,255,255,.35);
  --text-faint:    rgba(255,255,255,.18);
  --positive-soft: rgba(48,209,88,.12);
  --negative-soft: rgba(255,69,58,.12);
  --warning-soft:  rgba(255,159,10,.12);
  --tag-accept:    #C7A24A;

  /* === Extended palette — Apple system (rolled back from midnight-indigo 2026-06-02) === */
  --indigo:        #5E5CE6;
  --purple:        #BF5AF2;
  --tag-watch:     #FF9F0A;
  --tag-regret:    #FF453A;
  --tag-good:      #30D158;
  --tag-hold:      #6E7787;
  --tag-add:       #0A84FF;

  /* Spacing scale (trades_dashboard heritage) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;

  /* === Typography scale (round 2 — tight modern fintech ramp) === */
  /* Type scale */
  --fs-10: 10px;
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-15: 15px;
  --fs-17: 17px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-28: 28px;
  --fs-36: 36px;
  --fs-48: 48px;

  /* Weights */
  --fw-r:  400;
  --fw-m:  500;
  --fw-sb: 600;
  --fw-b:  700;

  /* Letter spacing */
  --ls-tight:   -0.02em;
  --ls-default:  0em;
  --ls-wide:     0.04em;

  /* Line height */
  --lh-1:     1;
  --lh-tight: 1.25;
  --lh-body:  1.5;
}
