/* ============================================================
   giusim-tokens.css · the single source of truth · v1.0
   Consumed by: the app, auth shell, Talent Club, the landing,
   PDF exports. No raw hex may exist outside this file.
   Document register: radius 0 by rule, not by token.
   ============================================================ */
:root {
  /* Brand core */
  --accent:        #2A3BC8;  /* Copy-Ink, the one blue */
  --accent-hover:  #2333A8;
  --accent-active: #1C2A8C;
  --accent-soft:   rgba(42,59,200,.08);
  --accent-soft-2: rgba(42,59,200,.14);
  --accent-border: rgba(42,59,200,.32);
  --marker:        #F5E14E;  /* documents: evidence spans, selection, disclosure tag */
  --marker-soft:   #FBF4C9;  /* workbench: evidence spans and selection */

  /* Ground and surfaces (one family, two volumes) */
  --bond:        #F1F2EF;   /* page ground everywhere: paper and app canvas */
  --surface:     #FFFFFF;
  --sunken:      #F6F7F5;
  --hover:       #EFF1EE;
  --active:      #E8EAE7;
  --line:        #DCDFDB;
  --line-strong: #C6CAC4;
  --overlay:     rgba(25,28,30,.45);

  /* Ink ramp */
  --ink:   #191C1E;  /* carbon */
  --ink-2: #454B4F;
  --ink-3: #646B79;  /* AA on white */
  --ink-4: #868D99;  /* metadata only, 12px and up */

  /* Verdict trio (identical in app, documents, PDFs) */
  --verdict-green: #1F6B45; --verdict-green-bg: #E9F3EC; --verdict-green-border: #B7D8C4;
  --verdict-amber: #91580B; --verdict-amber-bg: #FAF0DD; --verdict-amber-border: #EBCF98;
  --verdict-red:   #B42D1E; --verdict-red-bg:   #FBECEA; --verdict-red-border:   #EFBDB6;
  --wa: #E7F6D4; /* WhatsApp preview bubble, Talent Club only */

  /* Score bands: 70 and above green, 45 to 69 amber, below 45 red */
  --band-high: var(--verdict-green);
  --band-mid:  var(--verdict-amber);
  --band-low:  var(--verdict-red);

  /* Stage ramp (pipeline) */
  --stage-1: #57606F; --stage-2: #0E7490; --stage-3: #0C6478;
  --stage-4: var(--accent); --stage-5: #5B34B8;

  /* Type */
  --display: 'Frank Ruhl Libre', Georgia, 'Times New Roman', serif;   /* 700, 900 */
  --body: 'IBM Plex Sans', 'IBM Plex Sans Hebrew', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace; /* 400, 500 */
  /* --mono-he treatment: Plex Sans Hebrew 500, same size, letter-spacing 0,
     on --sunken or a bordered chip. Latin fragments inside stay true mono. */
  --text-micro: 11px;  /* 600, caps, +.08em, Latin only */
  --text-meta: 12px;   /* whispers, hints, metadata */
  --text-ui: 13px;     /* buttons, cells, nav, inputs */
  --text-base: 14px;   /* app body, lh 1.5 */
  --text-reading: 16px;/* public body, lh 1.6 */
  --text-lead: 19px;   /* leads, lh 1.55 */
  --text-h2: 24px;     /* Frank Ruhl 700 */
  --text-h1: 30px;     /* Frank Ruhl 900 */
  --text-display: clamp(34px, 5vw, 64px); /* marketing only, lh 1.05 */
  --tracking-caps: .08em; /* Latin only, never Hebrew */
  --weight-medium: 500; --weight-semibold: 600; --weight-bold: 700; --weight-black: 900;

  /* Shape (workbench; document register is radius 0 by rule) */
  --r-sm: 6px; --r-md: 8px; --r-lg: 10px; --r-pill: 999px;

  /* Space (4-base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s7: 32px; --s8: 48px;
  --section-y: 88px; --section-y-mobile: 56px;

  /* Elevation (workbench only; documents use the flat offset device) */
  --shadow-1: 0 1px 2px rgba(25,28,30,.04);
  --shadow-2: 0 2px 8px rgba(25,28,30,.06);
  --shadow-3: 0 12px 32px rgba(25,28,30,.12);

  /* Motion */
  --t-micro: 150ms; --t-enter: 450ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Focus */
  --focus-ring: 0 0 0 3px var(--accent-soft);
}

/* Migration aliases: temporary, deleted when migration completes */
:root {
  --color-action: var(--accent);
  --color-action-hover: var(--accent-hover);
  --color-action-active: var(--accent-active);
  --paper-bond: var(--bond);
  --paper-carbon: var(--ink);
  --surface-sunken: var(--sunken);
  --border: var(--line);
  --border-strong: var(--line-strong);
}
