/* Dinâmica Consórcios — Design Tokens v1.0 */
:root {
    /* Brand */
    --brand-navy-950: #071426;
    --brand-navy-900: #0b1f3a;
    --brand-navy-800: #12345b;
    --brand-navy-700: #1b4a78;
    --brand-mint-100: #d9faf2;
    --brand-mint-500: #21d6b5;
    --brand-mint-600: #12b89c;
    --brand-mint-700: #087e6b;

    /* Neutral */
    --neutral-0: #ffffff;
    --neutral-50: #f7f9fc;
    --neutral-100: #edf2f7;
    --neutral-200: #d9e1ea;
    --neutral-400: #8795a5;
    --neutral-600: #526176;
    --neutral-800: #132238;
    --neutral-950: #071426;

    /* Semantic — light */
    --color-bg: var(--neutral-50);
    --color-surface: var(--neutral-0);
    --color-surface-elevated: var(--neutral-0);
    --color-surface-subtle: var(--neutral-100);
    --color-text: var(--neutral-800);
    --color-text-muted: var(--neutral-600);
    --color-text-inverse: #f7fafc;
    --color-border: var(--neutral-200);
    --color-border-strong: var(--neutral-400);
    --color-primary: var(--brand-navy-900);
    --color-primary-hover: var(--brand-navy-800);
    --color-primary-active: var(--brand-navy-950);
    --color-accent: var(--brand-mint-500);
    --color-accent-hover: var(--brand-mint-600);
    --color-accent-strong: var(--brand-mint-700);
    --color-focus: #3b82f6;

    /* UI states */
    --color-success: #0f8a66;
    --color-success-bg: #e6f7f1;
    --color-warning: #b7791f;
    --color-warning-bg: #fff7e1;
    --color-error: #c43d4b;
    --color-error-bg: #fff0f2;
    --color-info: #2563eb;
    --color-info-bg: #edf4ff;

    /* Gradients and graphics */
    --gradient-brand: linear-gradient(120deg, #0b1f3a 0%, #12345b 58%, #087e6b 100%);
    --gradient-accent: linear-gradient(135deg, #21d6b5 0%, #55e5ca 100%);
    --gradient-flow-line: linear-gradient(90deg, transparent 0%, rgb(33 214 181 / 0.56) 50%, transparent 100%);

    /* Typography */
    --font-heading: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;
    --font-numeric: "Inter", "Segoe UI", sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --text-h1: 2.5rem;       /* 40px */
    --leading-h1: 1.1;       /* 44px */
    --tracking-h1: -0.035em;
    --text-h2: 2rem;         /* 32px */
    --leading-h2: 1.1875;    /* 38px */
    --tracking-h2: -0.028em;
    --text-h3: 1.5rem;       /* 24px */
    --leading-h3: 1.333;     /* 32px */
    --tracking-h3: -0.018em;
    --text-body-lg: 1.125rem; /* 18px */
    --leading-body-lg: 1.555; /* 28px */
    --text-body: 1rem;        /* 16px */
    --leading-body: 1.625;    /* 26px */
    --text-small: 0.875rem;   /* 14px */
    --leading-small: 1.571;   /* 22px */
    --text-caption: 0.75rem;  /* 12px */
    --leading-caption: 1.5;   /* 18px */
    --text-button: 0.9375rem; /* 15px */
    --leading-button: 1.333;  /* 20px */

    /* Spacing — 4px base */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Shape */
    --radius-xs: 0.375rem;
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-pill: 999px;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgb(7 20 38 / 0.06);
    --shadow-sm: 0 8px 24px rgb(7 20 38 / 0.08);
    --shadow-md: 0 18px 48px rgb(7 20 38 / 0.12);
    --shadow-focus: 0 0 0 3px rgb(59 130 246 / 0.35);

    /* Component metrics */
    --control-height-sm: 2.5rem;
    --control-height-md: 3rem;
    --control-height-lg: 3.5rem;
    --control-padding-x: 1rem;
    --card-padding: 1.5rem;
    --container-max: 75rem;
    --header-height: 4.75rem;

    /* Motion */
    --duration-fast: 120ms;
    --duration-normal: 200ms;
    --duration-slow: 360ms;
    --ease-standard: cubic-bezier(0.2, 0, 0, 1);
    --ease-emphasized: cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] {
    color-scheme: dark;
    --color-bg: #071426;
    --color-surface: #0f294a;
    --color-surface-elevated: #12345b;
    --color-surface-subtle: #0b1f3a;
    --color-text: #f7fafc;
    --color-text-muted: #b6c2cf;
    --color-text-inverse: #0b1f3a;
    --color-border: #274360;
    --color-border-strong: #4d6580;
    --color-primary: #21d6b5;
    --color-primary-hover: #55e5ca;
    --color-primary-active: #12b89c;
    --color-accent: #21d6b5;
    --color-accent-hover: #55e5ca;
    --color-accent-strong: #8cf1dd;
    --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.2);
    --shadow-sm: 0 8px 24px rgb(0 0 0 / 0.24);
    --shadow-md: 0 18px 48px rgb(0 0 0 / 0.32);
}

@media (min-width: 48rem) {
    :root {
        --text-h1: 3.5rem;    /* 56px */
        --leading-h1: 1.143;  /* 64px */
        --text-h2: 2.5rem;    /* 40px */
        --leading-h2: 1.2;    /* 48px */
        --text-h3: 1.75rem;   /* 28px */
        --leading-h3: 1.286;  /* 36px */
        --card-padding: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-fast: 0ms;
        --duration-normal: 0ms;
        --duration-slow: 0ms;
    }
}
