/* BotSaaz Font System - Source of Truth */

@font-face {
    font-family: 'Peyda';
    src: url('/assets/fonts/peyda/PeydaWeb-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('/assets/fonts/peyda/peydaWeb-extralight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('/assets/fonts/peyda/peydaWeb-light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('/assets/fonts/peyda/PeydaWeb-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('/assets/fonts/peyda/PeydaWeb-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('/assets/fonts/peyda/PeydaWeb-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('/assets/fonts/peyda/PeydaWeb-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('/assets/fonts/peyda/PeydaWeb-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('/assets/fonts/peyda/PeydaWeb-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --bs-font: 'Peyda', Tahoma, Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html,
body,
button,
input,
textarea,
select {
    font-family: var(--bs-font) !important;
}


/* Peyda readability tuning */
html,
body {
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
textarea,
select {
    letter-spacing: -0.012em;
}

/* Normalize ultra-heavy weights that looked too compressed in Peyda */
.font-black,
.font-extrabold,
[class*="font-black"],
[class*="font-extrabold"] {
    font-weight: 800 !important;
    letter-spacing: -0.035em !important;
}

/* Landing/public pages */
h1,
h2,
h3,
.bz-auth-title,
.bz-auth-heading h1,
.head h2,
.hero h1,
.cta h2 {
    font-weight: 800 !important;
    letter-spacing: -0.035em !important;
}

p,
.lead,
.box p,
.hero p,
.bz-auth-subtitle {
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

.btn,
button,
.bz-btn,
.bz-auth-btn,
.bz-otp-resend-btn {
    font-weight: 700 !important;
    letter-spacing: -0.015em !important;
}

/* Dashboard-specific classes */
.text-5xl,
.text-4xl,
.text-3xl,
.text-2xl,
.text-xl {
    letter-spacing: -0.035em !important;
}

.font-bold,
.font-semibold {
    letter-spacing: -0.015em !important;
}

@media (max-width: 540px) {
    body,
    button,
    input,
    textarea,
    select {
        letter-spacing: -0.006em;
    }

    h1,
    h2,
    h3,
    .bz-auth-title,
    .hero h1,
    .head h2,
    .cta h2,
    .font-black,
    .font-extrabold,
    [class*="font-black"],
    [class*="font-extrabold"] {
        font-weight: 800 !important;
        letter-spacing: -0.022em !important;
    }

    p,
    .lead,
    .hero p,
    .box p,
    .bz-auth-subtitle {
        font-weight: 500 !important;
        letter-spacing: 0 !important;
    }

    .btn,
    button,
    .bz-btn,
    .bz-auth-btn {
        font-weight: 700 !important;
        letter-spacing: -0.006em !important;
    }
}
