/*
 * The house design system (RiLiGar Zen) as plain CSS, for the two HireSys prototypes (site and system).
 * Values copied from packages/components-kit/src/theme.js and packages/dashboard-kit/src/tokens.css:
 * one face (Montserrat 500/700/800/900), one ramp of greys, radius 0, no shadow, 1px gray.2 hairline.
 * Dark mode is the kit's ramp by elevation (12-modo-escuro.md): the names keep their role, the values move.
 */
:root {
    --gray-0: #ffffff;
    --gray-1: #f9fafb;
    --gray-2: #f3f4f6;
    --gray-3: #e5e7eb;
    --gray-4: #9ca3af;
    --gray-5: #6b7280;
    --gray-6: #4b5563;
    --gray-7: #374151;
    --gray-8: #1f2937;
    --gray-9: #11181c;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --on-fill: #ffffff;
    --red-6: #e03131;
    --red-7: #c92a2a;
    --red-2: #ffc9c9;
    --green-6: #16a34a;
    --green-7: #15803d;
    --field-line: #9ca3af;
    --hover: color-mix(in srgb, var(--gray-9) 6%, transparent);
    --head: color-mix(in srgb, var(--gray-9) 3%, transparent);
    --scrim: rgba(17, 24, 28, 0.45);
    --art-filter: none;

    --font: Montserrat, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --fz-hero: clamp(2.5rem, 8vw + 1rem, 6rem);
    --fz-section-title: clamp(2rem, 5vw + 1rem, 3.5rem);
    --fz-big-metric-sm: clamp(3rem, 5vw, 4.5rem);
    --line: 1px solid var(--gray-2);
    --gutter-l: max(16px, env(safe-area-inset-left, 0px));
    --gutter-r: max(16px, env(safe-area-inset-right, 0px));
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        --gray-0: #0b0f12;
        --gray-1: #12181d;
        --gray-2: #222a31;
        --gray-3: #2f3840;
        --gray-4: #8a94a0;
        --gray-5: #98a1ac;
        --gray-6: #b6bec8;
        --gray-7: #d3d8de;
        --gray-8: #e5e7eb;
        --gray-9: #f3f4f6;
        --surface: #1a2127;
        --surface-2: #232b32;
        --on-fill: #0b0f12;
        --red-6: #ff6b6b;
        --red-7: #ff8787;
        --red-2: #5a2427;
        --green-6: #22c55e;
        --green-7: #4ade80;
        --field-line: #6b7582;
        --scrim: rgba(0, 0, 0, 0.6);
        --art-filter: invert(1) hue-rotate(180deg);
        color-scheme: dark;
    }
}

:root[data-theme='dark'] {
    --gray-0: #0b0f12;
    --gray-1: #12181d;
    --gray-2: #222a31;
    --gray-3: #2f3840;
    --gray-4: #8a94a0;
    --gray-5: #98a1ac;
    --gray-6: #b6bec8;
    --gray-7: #d3d8de;
    --gray-8: #e5e7eb;
    --gray-9: #f3f4f6;
    --surface: #1a2127;
    --surface-2: #232b32;
    --on-fill: #0b0f12;
    --red-6: #ff6b6b;
    --red-7: #ff8787;
    --red-2: #5a2427;
    --green-6: #22c55e;
    --green-7: #4ade80;
    --field-line: #6b7582;
    --scrim: rgba(0, 0, 0, 0.6);
    --art-filter: invert(1) hue-rotate(180deg);
    color-scheme: dark;
}

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

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

body {
    margin: 0;
    background: var(--gray-0);
    color: var(--gray-6);
    font-family: var(--font);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--gray-9);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-wrap: balance;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

/* The house illustration is grey line art: in dark mode it inverts, the way the kit treats it. */
img.art {
    filter: var(--art-filter);
}

:focus-visible {
    outline: 2px solid var(--gray-9);
    outline-offset: 2px;
}

.icon {
    flex: none;
    display: block;
}

.label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-4);
}

/* The button: a gray.9 rectangle, label uppercase 800 with 1px tracking. Hover is the system's only motion. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 22px;
    border: 1px solid var(--gray-9);
    background: var(--gray-9);
    color: var(--on-fill);
    font: 800 14px/1.35 var(--font);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-default {
    background: var(--surface);
    color: var(--gray-9);
    border-color: var(--gray-3);
}

.btn-subtle {
    background: transparent;
    color: var(--gray-9);
    border-color: transparent;
}

.btn-xl {
    min-height: 48px;
    padding: 10px 28px;
    font-size: 14px;
}

.btn-sm {
    min-height: 36px;
    padding: 0 14px;
    font-size: 12px;
}

@media (any-pointer: coarse) {
    .btn,
    .icon-btn {
        min-height: 44px;
    }
    .icon-btn {
        min-width: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
