/* Innervate kit tokens, light only. Source: docs/redesign/gallery/innervate/kit (round 4).
   Every raw colour, radius, shadow and type value of the kit lives here; components.css only reads tokens. */
:root {
    color-scheme: light;

    /* brand */
    --accent: #b81ad1; /* primary pill, focus ring, selection */
    --accent-strong: #a314bb; /* hover, links, violet text (6.2:1 on white) */
    --accent-tint: rgb(184 26 209 / 0.08);
    --on-accent: #ffffff;

    /* surfaces */
    --ground: #f5f7f9; /* page */
    --surface: #ffffff; /* fields, cards, popovers, dialog */
    --surface-muted: #f0f2f6; /* row hover, table head, skeleton */
    --surface-disabled: #eceef3;
    --skeleton-sheen: #f8f9fb;
    --line: #e3e6ee; /* hairlines */
    --line-strong: #868ca8; /* control outlines, 3.3:1 on white */
    --scrim: rgb(24 31 74 / 0.45);

    /* text */
    --fg: #181f4a; /* 15.7:1 on white */
    --fg-label: #2e3560;
    --fg-mute: #5a6080; /* 5.7:1 on ground */
    --fg-disabled: #9097b0;
    --link: var(--accent-strong);

    /* focus: two-tone ring */
    --ring: #b81ad1;
    --halo: rgb(184 26 209 / 0.18);

    /* status (text-safe tones >= 4.5:1 on white and on their fill) */
    --danger: #c0223b;
    --danger-fill: rgb(192 34 59 / 0.07);
    --danger-halo: rgb(192 34 59 / 0.16);
    --success: #16794a;
    --success-fill: rgb(22 121 74 / 0.09);
    --warning: #9a5800;
    --warning-fill: rgb(242 160 7 / 0.14);
    --info: #1f6fd1;
    --info-fill: rgb(48 150 255 / 0.11);

    /* radii */
    --radius-pill: 999px;
    --radius-card: 24px;
    --radius-notice: 16px;
    --radius-row: 12px;
    --radius-focus: 6px;

    /* shadows */
    --shadow-lift: 0 1px 2px rgb(24 31 74 / 0.06),
        0 12px 28px -16px rgb(24 31 74 / 0.3);
    --shadow-lift-hover: 0 1px 2px rgb(24 31 74 / 0.08),
        0 16px 32px -16px rgb(24 31 74 / 0.38);
    --shadow-pop: 0 2px 6px rgb(24 31 74 / 0.06),
        0 28px 64px -24px rgb(24 31 74 / 0.38);
    --shadow-accent: 0 14px 30px -14px rgb(184 26 209 / 0.55);
    --shadow-accent-hover: 0 16px 34px -14px rgb(184 26 209 / 0.7);

    /* type */
    --font: Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fs-display: 64px; /* login title */
    --fs-title: 44px; /* screen titles */
    --fs-greeting: 34px;
    --fs-code: 120px; /* status code numeral */
    --fs-h3: 20px;
    --fs-body: 16px;
    --fs-sm: 14px;
    --fs-xs: 12px;
    --lh-tight: 1.08;
    --lh-body: 1.5;
    --tracking-display: -0.035em;
    --tracking-title: -0.02em;
    /* Poppins side bearing before a stem capital (B D E H L P R...): 0.077em at 400, 0.069em at 600; titles.js
       measures each title's own first glyph */
    --lsb-body: calc(var(--fs-body) * 0.077);
    --lsb-title: 0.069em;
    --fs-otp: 28px;
    --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    /* layout and motion */
    --pad: clamp(28px, 6.6vw, 104px);
    --form: 400px;
    --control: 56px;
    --row: 36px;
    --ease: cubic-bezier(0.24, 0.46, 0.45, 0.94);
    --mask: #000; /* opaque stop for mask gradients (alpha only, never painted) */

    /* icons: 24px stroke glyphs used as masks, painted with the tone colour */
    --icon-error: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 8v5m0 3h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0'/%3E%3C/svg%3E");
    --icon-warning: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4m0 3.5h.01M10.3 4.8 2.8 18a1.3 1.3 0 0 0 1.1 2h16.2a1.3 1.3 0 0 0 1.1-2L13.7 4.8a2 2 0 0 0-3.4 0Z'/%3E%3C/svg%3E");
    --icon-success: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 12 3 3 5-6M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0'/%3E%3C/svg%3E");
    --icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 11v5m0-8h.01M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0'/%3E%3C/svg%3E");
    --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E");
    --icon-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E");
    --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
    --icon-dot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");
}

/* type is fixed per layout (never fluid): one phone step */
@media (max-width: 760px) {
    :root {
        --fs-display: 44px;
        --fs-title: 32px;
        --fs-greeting: 28px;
        --fs-code: 72px;
    }
}
