/* Bar 9 design tokens (variables only). Element and component styles live in site.css and app.css. */
/* ==========================================================================
   Bar 9 AI — Colors & Type
   ==========================================================================
   Webfonts: Inter (body/UI) + Poppins (display/headings, Bold 700).
   Loaded from Google Fonts — if you vendor .ttf/.woff2 into /fonts, swap the
   @import for a matching @font-face block.
   ========================================================================== */


:root {
  /* ---------- Brand core ---------- */
  --brand-green:        #40bb91;  /* primary brand */
  --brand-charcoal:     #363743;  /* primary ink   */

  /* ---------- Green scale (derived from #40bb91) ---------- */
  --green-50:   #ecfaf4;
  --green-100:  #cef1e0;
  --green-200:  #a3e4c8;
  --green-300:  #76d5ac;
  --green-400:  #55c79c;
  --green-500:  #40bb91;   /* brand */
  --green-600:  #2f9e78;
  --green-700:  #247d5f;
  --green-800:  #1b5d47;
  --green-900:  #123e2f;

  /* ---------- Charcoal / neutral scale (derived from #363743) ---------- */
  --ink-950:   #0f1015;
  --ink-900:   #1b1c24;
  --ink-800:   #24252f;
  --ink-700:   #2d2e39;
  --ink-600:   #363743;   /* brand charcoal */
  --ink-500:   #4a4c5a;
  --ink-400:   #6b6d7c;
  --ink-300:   #9a9ca9;
  --ink-200:   #c7c9d2;
  --ink-100:   #e5e6eb;
  --ink-50:    #f3f4f7;
  --ink-25:    #fafbfc;

  /* ---------- Foreground (text) ---------- */
  --fg-1: var(--ink-600);     /* primary text    — AA+ on white */
  --fg-2: var(--ink-500);     /* secondary text  */
  --fg-3: var(--ink-400);     /* tertiary / meta */
  --fg-4: var(--ink-300);     /* disabled / hint */
  --fg-inverse: #ffffff;      /* text on dark surfaces */
  --fg-accent: var(--green-700); /* green text on light bg — AA compliant */

  /* ---------- Background / surfaces ---------- */
  --bg-0: #ffffff;            /* page */
  --bg-1: var(--ink-25);      /* subtle */
  --bg-2: var(--ink-50);      /* card / muted */
  --bg-3: var(--ink-100);     /* hover row */
  --bg-inverse: var(--ink-600);  /* dark surfaces */
  --bg-inverse-2: var(--ink-800);

  /* ---------- Borders ---------- */
  --border-1: var(--ink-100); /* hairline */
  --border-2: var(--ink-200); /* default */
  --border-3: var(--ink-300); /* strong  */
  --border-focus: var(--green-500);

  /* ---------- Semantic (high-contrast, WCAG-minded) ---------- */
  --success:     #17835f;     /* deeper green for text/icons on white */
  --success-bg:  #e6f5ee;
  --warning:     #a8630b;
  --warning-bg:  #fdf1dc;
  --danger:      #b4352c;
  --danger-bg:   #fbe8e6;
  --info:        #1e5fa8;
  --info-bg:     #e4eefb;

  /* ---------- Focus ring ---------- */
  --ring: 0 0 0 3px rgba(64, 187, 145, 0.35);

  /* ---------- Type families ---------- */
  --font-display: 'Poppins', 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-sans:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* ---------- Type scale (1.250 major third, anchored at 16px) ---------- */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   20px;
  --text-xl:   24px;
  --text-2xl:  30px;
  --text-3xl:  38px;
  --text-4xl:  48px;
  --text-5xl:  60px;
  --text-6xl:  76px;

  --leading-tight:  1.12;
  --leading-snug:   1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight:  -0.02em;
  --tracking-normal:  0em;
  --tracking-wide:    0.04em;
  --tracking-caps:    0.08em;

  /* ---------- Weights ---------- */
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;
  --weight-black:   800;

  /* ---------- Spacing (4px base) ---------- */
  --space-0:   0;
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;

  /* ---------- Radii ---------- */
  --radius-xs:  4px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  /* ---------- Shadows ---------- */
  --shadow-xs: 0 1px 2px rgba(15, 16, 21, 0.06);
  --shadow-sm: 0 1px 3px rgba(15, 16, 21, 0.08), 0 1px 2px rgba(15, 16, 21, 0.04);
  --shadow-md: 0 6px 16px -4px rgba(15, 16, 21, 0.10), 0 2px 4px rgba(15, 16, 21, 0.05);
  --shadow-lg: 0 18px 40px -12px rgba(15, 16, 21, 0.18), 0 6px 12px -4px rgba(15, 16, 21, 0.06);
  --shadow-xl: 0 32px 60px -16px rgba(15, 16, 21, 0.22);
  --shadow-brand: 0 12px 28px -10px rgba(64, 187, 145, 0.45);

  /* ---------- Motion ---------- */
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-emphasis: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:       cubic-bezier(0.4, 0, 1, 1);
  --dur-fast:   120ms;
  --dur-base:   200ms;
  --dur-slow:   360ms;
}
