/* ==========================================================
   ODOO-CONTROL
   GLOBAL UI FOUNDATION
   ========================================================== */

:root {
    --app-bg: #f6f1e8;
    --app-surface: #ffffff;
    --app-surface-soft: #f8fafc;

    --app-text: #172033;
    --app-text-soft: #64748b;
    --app-text-muted: #94a3b8;

    --app-primary: #1677e8;
    --app-primary-hover: #126bd2;

    --app-success: #16865c;
    --app-warning: #b7791f;
    --app-danger: #c53d4b;

    --app-border: #e2e8f0;
    --app-border-strong: #cbd5e1;

    --app-radius-sm: 10px;
    --app-radius-md: 14px;
    --app-radius-lg: 24px;

    --app-shadow-sm:
        0 1px 2px rgba(15, 23, 42, 0.04);

    --app-shadow-md:
        0 8px 24px rgba(15, 23, 42, 0.06);

    --app-page-width: 1180px;

    --app-space-1: 4px;
    --app-space-2: 8px;
    --app-space-3: 12px;
    --app-space-4: 16px;
    --app-space-5: 20px;
    --app-space-6: 24px;
    --app-space-8: 32px;
    --app-space-10: 40px;
}


/* ==========================================================
   RESET
   ========================================================== */

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* ==========================================================
   APP
   ========================================================== */

.app-body {
    min-height: 100vh;
    background: var(--app-bg);
    color: var(--app-text);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.app-shell {
    width: min(
        calc(100% - 32px),
        var(--app-page-width)
    );
    margin: 0 auto;
    padding: 28px 0 48px;
}


/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

.app-eyebrow {
    margin: 0 0 6px;
    color: var(--app-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.app-title {
    margin: 0;
    color: var(--app-text);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.app-subtitle {
    margin: 8px 0 0;
    max-width: 720px;
    color: var(--app-text-soft);
    font-size: 0.94rem;
    line-height: 1.55;
}


/* ==========================================================
   SURFACES
   ========================================================== */

.app-card {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    background: var(--app-surface);
    box-shadow: var(--app-shadow-sm);
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.app-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid transparent;
    border-radius: var(--app-radius-sm);

    padding: 0 18px;

    font-weight: 800;
    line-height: 1;
    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.12s ease;
}

.app-button:active {
    transform: translateY(1px);
}

.app-button-primary {
    background: var(--app-primary);
    color: #ffffff;
}

.app-button-primary:hover {
    background: var(--app-primary-hover);
}

.app-button-secondary {
    border-color: var(--app-border-strong);
    background: var(--app-surface);
    color: var(--app-text);
}

.app-button-secondary:hover {
    background: var(--app-surface-soft);
}


/* ==========================================================
   RESPONSIVE FOUNDATION
   ========================================================== */

@media (max-width: 760px) {
    .app-shell {
        width: min(
            calc(100% - 24px),
            var(--app-page-width)
        );

        padding-top: 18px;
        padding-bottom: 32px;
    }

    .app-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 420px) {
    .app-shell {
        width: calc(100% - 20px);
    }

    .app-button {
        min-height: 48px;
    }
}
