/* ═══════════════════════════════════════════════════════════════════
   THRIVE OVATION DESIGN SYSTEM — TOKENS
   Structure: Figma "Thrive Ovation Revamp → Workspace" DS page
   (node 1167-1668: Primitives → Tokens) mirrored as CSS custom
   properties, following the Thrive Leads DS token file layout.

   Brand values: the Ovation rebrand ramp (#FA8831 family) per the
   rebrand kit — the Figma DS page carries the generic Thrive revamp
   orange (#F06100); Ovation's branding overrides it by design.

   THE ONE EXCEPTION (Rijul's rule): buttons use WordPress colors
   (--button-*), never the brand ramp. Brand stays for card hovers,
   outlines, focus accents, and identity moments.

   Font: Rubik — never bolder than Medium (500).
   ═══════════════════════════════════════════════════════════════════ */

:root {

  /* ── PRIMITIVES · Brand (Ovation rebrand ramp) ─────────────────── */
  --brand-10:  #FEF3EA;
  --brand-15:  #FEE7D4;
  --brand-25:  #FDD3B0;
  --brand-30:  #FDB983;
  --brand-50:  #FCA460;
  --brand-75:  #FB964A;
  --brand-100: #FA8831;   /* brand/100-Action */
  --brand-200: #DE7218;
  --brand-300: #9C4E0E;
  --brand-500: #2D1804;

  /* ── PRIMITIVES · Neutrals (Figma colour/neutral/*) ────────────── */
  --neutral-white: #FFFFFF;
  --neutral-25:  #F7FAFA;
  --neutral-50:  #F3F6F6;
  --neutral-75:  #EAEFEF;
  --neutral-100: #CDD3D8;
  --neutral-200: #9A9EA9;
  --neutral-300: #6E717B;   /* AA muted text (Rijul 2026-11-01); was #7F828C */
  --neutral-400: #626670;
  --neutral-500: #50565F;
  --neutral-600: #444648;

  /* ── PRIMITIVES · Utility (Figma colour/utility/*) ─────────────── */
  --green-10:  #EDF7EF;
  --green-50:  #A5D9AE;
  --green-75:  #6ECA7F;
  --green-100: #4BB35E;
  --green-200: #2B813B;
  --green-300: #2A7A3A;   /* text step (library green--300) */
  --red-10:  #FFEFEE;
  --red-50:  #FECECC;
  --red-75:  #FC8580;
  --red-100: #FB5C55;
  --red-200: #A73636;
  --orange-10:  #FCF9F6;
  --orange-25:  #FFEAD9;
  --orange-100: #FF7100;
  --purple-10:  #F3EDF7;
  --purple-75:  #AD6ECA;
  --purple-100: #794BB3;
  --yellow-10:  #FFF7E8;
  --yellow-25:  #FFF3DC;
  --yellow-100: #FCAF18;
  --yellow-300: #946200;  /* text step (library yellow--300) */

  /* ── TOKENS · Action (Figma colour/action/*) ───────────────────── */
  --action-primary:  var(--brand-100);
  --action-success:  var(--green-100);
  --action-error:    var(--red-100);
  --action-disabled: var(--neutral-100);

  /* ── TOKENS · Surface (Figma colour/surface/*) ─────────────────── */
  --surface-screen:    var(--neutral-white);
  --surface-overlay-0: var(--neutral-25);
  --surface-overlay-1: var(--neutral-50);
  --surface-overlay-2: var(--neutral-75);
  --surface-overlay-3: var(--neutral-600);

  /* ── TOKENS · Type (Figma colour/type/*) ───────────────────────── */
  --type-primary:    var(--neutral-600);
  --type-secondary:  var(--neutral-400);
  --type-tertiary:   var(--neutral-300);
  --type-on-surface: var(--neutral-white);
  --type-success:    var(--green-300);   /* text only; fills and icons keep green-100 */
  --type-warning:    var(--yellow-300);  /* text only; fills and icons keep yellow-100 */

  /* ── TOKENS · Stroke (Figma colour/stroke/*) ───────────────────── */
  --stroke-primary:   var(--neutral-200);
  --stroke-secondary: var(--neutral-100);
  --stroke-tertiary:  var(--neutral-75);
  --stroke-dark:      var(--neutral-600);
  --stroke-white:     var(--neutral-white);
  --stroke-error:     var(--red-100);
  --stroke-success:   var(--green-100);

  /* ── TOKENS · Status surfaces ──────────────────────────────────── */
  --success:       var(--green-100);
  --success-light: var(--green-10);
  --error:         var(--red-100);
  --error-light:   var(--red-10);
  --warning:       var(--yellow-100);
  --warning-light: var(--yellow-10);

  /* ── COMPONENT TOKENS · Buttons = WordPress palette (the rule) ─── */
  --button-primary:         #3858E9;
  --button-primary-hover:   #2145E6;
  --button-primary-pressed: #183AD6;
  --button-focus:           #4465DB;
  --button-tint-4:          rgba(56, 88, 233, .04);
  --button-tint-8:          rgba(56, 88, 233, .08);
  --button-tint-8-solid:    #EFF2FD;                /* library --thrive-prefix--color-button--tint-8-solid */
  --badge-strong:           #C05605;                /* white-text badge fill, AA (Rijul 2026-11-01); brand-100 #FA8831 stays for rings, chips, tiles */
  --button-disabled:        var(--action-disabled);

  /* ── WordPress admin chrome ────────────────────────────────────── */
  --wp-admin-bg:     #1d2327;
  --wp-admin-hover:  #2c3338;
  --wp-admin-icon:   #a0a5aa;
  --wp-content-bg:   #f0f0f1;

  /* ── TYPOGRAPHY (Figma typescale · Rubik, max weight 500) ──────── */
  --font: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --btn-lg: 500 16px/1.6 var(--font);   /* button/large-16M  */
  --btn-md: 500 14px/1.6 var(--font);   /* button/med-14M    */
  --btn-sm: 500 12px/1.6 var(--font);   /* button/small-12M  */
  --body-md: 400 14px/1.4 var(--font);  /* body/med-14R      */
  --label-sm: 500 10px/1.4 var(--font); /* label/small-10M   */
  /* Library type scale (_css-variables.scss:197-236): headings 500/1.4, body 400/1.4 (xs 1.3) */
  --heading-xl: 500 24px/1.4 var(--font);
  --heading-lg: 500 22px/1.4 var(--font);
  --heading-md: 500 18px/1.4 var(--font);
  --heading-sm: 500 16px/1.4 var(--font);
  --heading-xs: 500 14px/1.4 var(--font);
  --body-lg: 400 16px/1.4 var(--font);
  --body-sm: 400 12px/1.4 var(--font);
  --body-xs: 400 10px/1.3 var(--font);

  /* ── SHADOWS (card = Figma Drop 0; hover/modal = rebrand kit,
         not Leads — Leads' modal is 0 4px 24px rgba(0,0,0,.12)) ──── */
  --shadow-card:  0 1px 2px rgba(50, 50, 50, .08);
  --shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  --shadow-drop-1: 0 2px 4px rgba(0, 0, 0, .04);  /* library shadow--drop-1 (Ovation Figma, 2026-10-30) */
  --shadow-lg:    0 12px 8px rgba(16, 24, 40, .08), 0 4px 3px rgba(16, 24, 40, .03); /* library shadow--lg: Tooltip only (the toast uses --shadow-drop-1) */
  --shadow-modal: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);

  /* ── RADIUS (Leads scale; card is 12px) ────────────────────────── */
  /* Radius scale (Rijul, 2026-10-20): only 2, 4, 8, 12, 16, 24 and 100. */
  --radius-2:    2px;
  --radius-4:    4px;
  --radius-8:    8px;
  --radius-10:   10px;   /* Ovation Figma radius/medium (library border-radius--10) */
  --thrive-prefix--border-radius--10: 10px;
  --radius-12:   12px;
  --radius-16:   16px;
  --radius-24:   24px;
  --radius-full: 100px;
  --radius-xs:   var(--radius-2);    /* was 3px */
  --radius-sm:   var(--radius-4);
  --radius-md:   var(--radius-8);    /* was 10px */
  --radius-card: var(--radius-12);   /* was 14px */
  --radius-lg:   var(--radius-full); /* Leads pill */

  /* ── Z-INDEX LAYERS (Leads) ────────────────────────────────────── */
  --layer-base:  0;
  --layer-nav:   100;
  --layer-modal: 1000;  /* library Modal overlay z-index */
  --layer-toast: var(--layer-max);  /* library Toast z-index, above --layer-modal */
  --layer-max:   9999;

  /* ── SPACING (Figma spacing/*) ─────────────────────────────────── */
  --space-2:  2px;
  --space-3:  3px;   /* 3, 5, 7, 10, 14, 26, 36, 40 added from the library 2026-10-30 */
  --space-4:  4px;
  --space-5:  5px;
  --space-6:  6px;
  --space-7:  7px;
  --space-8:  8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-20: 20px;
  --space-22: 22px;
  --space-24: 24px;
  --space-26: 26px;
  --space-32: 32px;
  --space-36: 36px;
  --space-40: 40px;
  --space-48: 48px;

  /* ── SIZES (library --size--*) ── */
  --input-height-xl: 50px;   /* Ovation Figma 18121:11478 */
  --modal-width-xl:  700px;  /* Ovation Figma 18121:6945 */

  /* ── FOCUS RING (library --thrive-prefix--focus-ring--*) ───────── */
  --focus-ring-width:  2px;
  --focus-ring-offset: 2px;
  --focus-ring-color:  var(--brand-100);

  /* ── LAYOUT ────────────────────────────────────────────────────── */
  --content-max: 1500px;    /* nav + main share this, 32px side padding */
  --sidebar-w: 160px;
  --wp-admin-h: 32px;
  --product-nav-h: 64px;

  /* ═════ LEGACY ALIASES (shorthand used across the flow protos) ═══ */
  --n-white: var(--neutral-white);
  --n-25:  var(--neutral-25);
  --n-50:  var(--neutral-50);
  --n-75:  var(--neutral-75);
  --n-100: var(--neutral-100);
  --n-200: var(--neutral-200);
  --n-300: var(--neutral-300);
  --n-400: var(--neutral-400);
  --n-500: var(--neutral-500);
  --n-600: var(--neutral-600);
  --wp-primary:         var(--button-primary);
  --wp-primary-hover:   var(--button-primary-hover);
  --wp-primary-pressed: var(--button-primary-pressed);
  --wp-focus:           var(--button-focus);
  --wp-tint-4:          var(--button-tint-4);
  --wp-tint-8:          var(--button-tint-8);
}
