/**
 * THEME: INDIGO — deep indigo with a violet accent. A pre-built theme an agency may
 * choose for its customer site or its dashboard (D-088, D-092).
 *
 * Approved by the product owner on 2026-09-26 (from the slice 0 screenshots).
 *
 * A theme is a COMPLETE copy of tokens.css's token set — every selector, every
 * custom property, light AND dark — with its own values (test/themes.test.js pins
 * that). Token names keep the word "gold": they name a ROLE (the accent). Generated
 * once from tokens.css's structure; edit values here, never the names.
 *
 * Contrast, measured (WCAG ratio):
 *   Light, on white    ink 16.0 · ink-soft 11.4 · ink-muted 6.6 · accent 7.1 · accent-as-text 9.0
 *                      button text on accent 7.1 (hover 9.0) · ok 5.9 · warn 5.6 · urgent 5.5
 *   Light, on ground   ink-muted 6.1 · accent-as-text 8.3
 *   Dark, on paper     ink 14.0 · ink-soft 10.1 · ink-muted 6.0 · accent 6.1 · accent-as-text 8.9
 *                      button text on accent 6.9 · ok 9.6 · warn 7.5 · urgent 5.9
 * Display type is Inter: a modern, even voice.
 */
:root {

  --ink:            #1E1B4B;
  --ink-soft:       #34307A;
  --ink-muted:      #5B5A7A;
  --ink-faint:      #A5A3C4;

  --gold:           #6D28D9;
  --gold-deep:      #5B21B6;
  --gold-soft:      #EDE9FE;
  --gold-wash:      #F7F5FF;

  --paper:          #FFFFFF;
  --paper-tint:     #F6F6FB;
  --line:           #E6E4F2;
  --line-strong:    #CBC8E3;

  --ok:             #17724A;
  --warn:           #98580F;
  --warn-wash:      #FEF6E7;

  --urgent:         #C4302B;

  --channel-whatsapp:     #25D366;
  --channel-whatsapp-ink: #FFFFFF;
  --channel-mail-1:       #ED2224;
  --channel-mail-2:       #F58220;
  --channel-mail-3:       #FDC500;

  --font-display:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ui:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:      ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  --text-xs:        0.75rem;
  --text-sm:        0.875rem;
  --text-base:      1rem;
  --text-lg:        1.125rem;
  --text-xl:        1.375rem;
  --text-2xl:       1.75rem;
  --text-3xl:       2.5rem;

  --leading-tight:  1.2;
  --leading-normal: 1.55;

  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      14px;
  --radius-pill:    999px;

  --shadow-sm:      0 1px 2px rgba(30, 27, 75, 0.06);
  --shadow:         0 2px 8px rgba(30, 27, 75, 0.08);
  --shadow-lg:      0 12px 32px rgba(30, 27, 75, 0.14);

  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-8: 3rem;     --sp-10: 4rem;

  --content-max:    1180px;
  --header-h:       68px;

  --rail-w:         0px;
}

:root[data-agent='on'] {
  --rail-w: 360px;
}

:root {
  --tap-min: 48px;
}

:root {
  --action-bg:    var(--gold);
  --action-fg:    #FFFFFF;
  --gold-hover:   #5B21B6;
  --gold-rgb:     109, 40, 217;
  --warn-line:    #EACB9C;
}

:root[data-theme='dark'] {

  --ink:            #ECEBFA;
  --ink-soft:       #C9C7EA;
  --ink-muted:      #9A98BE;
  --ink-faint:      #5D5B80;

  --gold:           #A78BFA;
  --gold-deep:      #C4B5FD;
  --gold-soft:      #2E2552;
  --gold-wash:      #17132B;
  --gold-hover:     #B9A3FB;
  --gold-rgb:       167, 139, 250;

  --paper:          #1F1C35;
  --paper-tint:     #0F0D1C;
  --line:           #2B2846;
  --line-strong:    #403C62;

  --ok:             #4ADE9B;
  --warn:           #E0A458;
  --urgent:         #FF6B5E;
  --warn-wash:      #241B0E;
  --warn-line:      #4A3A22;

  --shadow-sm:      0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow:         0 2px 8px rgba(0, 0, 0, 0.55);
  --shadow-lg:      0 12px 32px rgba(0, 0, 0, 0.65);

  --action-bg:      var(--gold);
  --action-fg:      #120E24;
}
