/*
 * iFunnel — Calm Slate design tokens, reset, and base styles.
 *
 * Token VALUES come from the finalized project design contract
 * (docs/.../ux-designs/.../DESIGN.md). Token NAMES follow the shared
 * laravel-web design-system convention so component CSS stays portable.
 * No hardcoded hex values belong in component stylesheets — reference these vars.
 */

:root {
    /* Core brand — project identity (single restrained indigo accent) */
    --color-primary: #4F46E5;
    --color-secondary: #4F46E5;
    --color-secondary-hover: #4338CA;
    --color-accent: #4F46E5;
    --color-accent-hover: #4338CA;
    --color-accent-soft: #EEF2FF;

    /* Surfaces — backgrounds, cards, borders */
    --color-background: #F8FAFC;          /* tinted ground behind cards */
    --color-surface: #FFFFFF;             /* card / content surface */
    --color-surface-raised: #FFFFFF;
    --color-border: #E2E8F0;
    --color-border-subtle: #EEF2FF;

    /* Text — hierarchy */
    --color-text: #0F172A;
    --color-text-secondary: #334155;
    --color-text-muted: #64748B;
    --color-text-inverse: #FFFFFF;

    /* Semantic — status feedback */
    --color-success: #15803D;
    --color-success-light: #DCFCE7;
    --color-warning: #B45309;
    --color-warning-light: #FEF3C7;
    --color-error: #B91C1C;
    --color-error-light: #FEE2E2;
    --color-info: #4F46E5;
    --color-info-light: #EEF2FF;

    /* Typography */
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --line-height-body: 1.5;
    --line-height-heading: 1.2;

    /* Spacing scale (4px base) */
    --space-xs: 0.25rem;   /* 4px */
    --space-sm: 0.5rem;    /* 8px */
    --space-md: 1rem;      /* 16px — card padding / page gutter */
    --space-lg: 1.5rem;    /* 24px — section gap */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;      /* controls & inputs */
    --radius-lg: 12px;     /* cards */
    --radius-full: 9999px; /* pills */

    /* Shadows — mostly flat; one soft card lift */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 2px 8px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;

    /* Layout */
    --content-max-width: 936px;
}

/* ----- Reset ----- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: var(--line-height-body);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    line-height: var(--line-height-heading);
    letter-spacing: -0.01em;
    color: var(--color-text);
}

h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 600; }
h3 { font-size: 1.125rem; font-weight: 500; }

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}
