/* ==========================================================================
   BillBase brand tokens — the single source of truth.

   Load this before any page-specific stylesheet and reference the variables
   instead of hardcoding hex values. The triad is the de-facto brand that
   already existed across the logo and the app, codified in one place:

     navy  #1B2A4A  — the logo mark, headings, dark surfaces
     teal  #2FC4D8  — the logo accent, highlights
     indigo #4F46E5 — actions (buttons, links), as --bb-brand-600 in the app
   ========================================================================== */
:root {
    /* Brand */
    --bb-navy: #1B2A4A;
    --bb-navy-700: #24365C;
    --bb-navy-900: #101D36;
    --bb-teal: #2FC4D8;
    --bb-teal-700: #1FA8BC;
    --bb-brand: #4F46E5;
    --bb-brand-600: #4F46E5;
    --bb-brand-700: #4338CA;
    --bb-brand-50: #EEF2FF;

    /* Surfaces & text */
    --bb-bg: #F8FAFC;
    --bb-surface: #FFFFFF;
    --bb-surface-2: #F1F5F9;
    --bb-text: #0F172A;
    --bb-text-muted: #475569;
    --bb-text-subtle: #64748B;
    --bb-border: #E2E8F0;
    --bb-border-strong: #CBD5E1;

    /* Status */
    --bb-success: #15803D;
    --bb-success-bg: #DCFCE7;
    --bb-warning: #B45309;
    --bb-warning-bg: #FEF3C7;
    --bb-danger: #B91C1C;
    --bb-danger-bg: #FEE2E2;
    --bb-info: #0369A1;
    --bb-info-bg: #E0F2FE;

    /* Typography (system stack — no web-font cost) */
    --bb-font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --bb-fs-xs: 12px;
    --bb-fs-sm: 13.5px;
    --bb-fs-base: 15px;
    --bb-fs-md: 16px;
    --bb-fs-lg: 20px;
    --bb-fs-xl: 26px;
    --bb-fs-2xl: 34px;
    --bb-fw-normal: 400;
    --bb-fw-medium: 500;
    --bb-fw-semibold: 600;
    --bb-fw-bold: 700;

    /* Radius */
    --bb-r-sm: 8px;
    --bb-r: 10px;
    --bb-r-md: 12px;
    --bb-r-lg: 16px;
    --bb-r-xl: 22px;

    /* Shadows */
    --bb-shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
    --bb-shadow-sm: 0 2px 8px rgba(15, 23, 42, .08);
    --bb-shadow-md: 0 8px 24px rgba(15, 23, 42, .10);
    --bb-shadow-lg: 0 18px 50px rgba(15, 23, 42, .14);

    /* Spacing scale */
    --bb-s-1: 2px;
    --bb-s-2: 4px;
    --bb-s-3: 6px;
    --bb-s-4: 8px;
    --bb-s-5: 12px;
    --bb-s-6: 16px;
    --bb-s-7: 20px;
    --bb-s-8: 24px;
    --bb-s-9: 32px;
    --bb-s-10: 40px;
    --bb-s-11: 56px;
    --bb-s-12: 72px;

    /* Focus ring — one visible, consistent style everywhere */
    --bb-ring: 0 0 0 3px rgba(79, 70, 229, .25);
    --bb-ring-teal: 0 0 0 3px rgba(47, 196, 216, .35);

    /* Motion */
    --bb-t-fast: 120ms;
    --bb-t: 200ms;
    --bb-t-slow: 350ms;
    --bb-ease: cubic-bezier(.2, .7, .3, 1);
}

/* The one reduced-motion override every animated page can rely on. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
