/* Black Friday 2026: modal, faixas entre seções, barra fixa no celular e página da fila */
.bf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--clr4);

    span {color: inherit;}

    svg {
        width: 15px;
        height: 15px;
        fill: var(--clr4);
    }
}

.bf-hl {color: var(--clr4);}

.bf-discounts {
    display: flex;
    gap: .6rem;

    .bf-discount {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .1rem;
        min-width: 92px;
        padding: .7rem .9rem;
        border: 1px solid rgb(255 255 255 / 14%);
        border-radius: var(--radius);
        font-size: 11px;
        font-weight: 600;
        color: var(--ink-muted);

        b {
            font-family: var(--font-titles);
            font-size: 26px;
            font-weight: 800;
            line-height: 1.1;
            color: var(--white);
        }

        &.first {
            border-color: var(--clr4);
            background-color: rgb(255 223 32 / 10%);

            b {color: var(--clr4);}
        }
    }

    &.small .bf-discount {
        min-width: 0;
        padding: .45rem .7rem;

        b {font-size: 19px;}
    }
}

/* Modal */
html.bf-modal-open {overflow: hidden;}

.bf-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    padding: 1rem;
    background-color: rgb(14 23 43 / 70%);
    overflow-y: auto;

    &[hidden] {display: none;}

    .bf-dialog {
        position: relative;
        width: 100%;
        max-width: 480px;
        /* margin auto centraliza sem cortar o topo quando o modal é mais alto que a tela */
        margin: auto;
        border-radius: var(--radius-xl);
        background-color: var(--white);
        box-shadow: 0 30px 60px -20px rgb(0 0 0 / 50%);
        overflow: hidden;
        animation: bf-in .25s ease-out;
    }

    .bf-close {
        position: absolute;
        top: .75rem;
        right: .75rem;
        z-index: 1;
        display: grid;
        place-items: center;
        width: 34px;
        height: 34px;
        border: none;
        border-radius: 50%;
        background-color: rgb(255 255 255 / 12%);
        cursor: pointer;

        svg {
            width: 22px;
            height: 22px;
            fill: var(--white);
        }
    }

    .bf-top {
        display: flex;
        flex-direction: column;
        gap: .75rem;
        padding: 1.75rem 1.5rem 1.5rem;
        background: radial-gradient(circle at 100% 0, rgb(23 91 248 / 45%), transparent 55%), var(--clr2);
    }

    .bf-title {
        font-family: var(--font-titles);
        font-size: 26px;
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1.15;
        color: var(--white);
    }

    .bf-text {
        font-size: 14px;
        line-height: 1.55;
        color: var(--ink-muted);

        b {color: var(--white);}
    }

    .bf-countdown {
        font-size: 13px;
        font-weight: 700;
        color: var(--clr4);
    }

    .bf-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;

        .fields {--gap-fields: .9rem;}
    }
}

.bf-note {
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    color: var(--muted-foreground);
}

@keyframes bf-in {
    from {opacity: 0; transform: translateY(12px) scale(.98);}
    to {opacity: 1; transform: none;}
}

/* Faixa entre seções */
.bf-strip {
    background: radial-gradient(circle at 100% 0, rgb(23 91 248 / 40%), transparent 50%), var(--clr2);

    > .content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        padding: 2.25rem var(--gutter);
    }

    .texts {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        max-width: 620px;

        p {
            font-size: 15px;
            line-height: 1.55;
            color: var(--ink-muted);
        }
    }

    .bf-strip-title {
        font-family: var(--font-titles);
        font-size: clamp(22px, 2.4vw, 28px);
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1.15;
        color: var(--white);
        text-wrap: balance;
    }

    .side {
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 1rem;
        flex-shrink: 0;
    }
}

/* Barra fixa no celular */
.bf-sticky {display: none;}

@media (max-width: 768px) {
    .bf-sticky:not([hidden]) {
        position: fixed;
        left: .75rem;
        right: .75rem;
        bottom: .75rem;
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        padding: .7rem .75rem .7rem 1rem;
        border-radius: var(--radius-lg);
        background-color: var(--clr2);
        box-shadow: 0 16px 40px -12px rgb(0 0 0 / 55%);
        animation: bf-in .25s ease-out;

        .texts {
            display: flex;
            flex-direction: column;
            gap: .1rem;
            flex: 1;
            min-width: 0;

            b {
                font-size: 14px;
                color: var(--white);
            }

            span {
                font-size: 12px;
                color: var(--ink-muted);
            }
        }

        a.btn-cta {
            flex: 0 0 auto;
            width: auto;
            min-height: 40px;
            padding: 0 1rem;
        }
    }

    .bf-strip > .content {
        flex-direction: column;
        align-items: start;
        gap: 1.25rem;
        padding-block: 2rem;

        .side {
            align-items: stretch;
            width: 100%;
        }
    }
}

/* Página da fila */
.bf-page {
    background: radial-gradient(circle at 90% 0, rgb(23 91 248 / 45%), transparent 50%), var(--clr2);

    > .content {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
        gap: 3rem;
        padding: 4rem var(--gutter);
    }

    .texts {
        display: flex;
        flex-direction: column;
        gap: 1.1rem;
    }

    .bf-page-title {
        font-family: var(--font-titles);
        font-size: clamp(34px, 4.6vw, 56px);
        font-weight: 800;
        letter-spacing: -0.02em;
        line-height: 1.05;
        color: var(--white);
        text-wrap: balance;
    }

    .bf-text {
        font-size: 16px;
        line-height: 1.6;
        color: var(--ink-muted);

        b {color: var(--white);}
    }

    .bf-steps {
        display: flex;
        flex-direction: column;
        gap: .6rem;
        padding-top: .5rem;

        li {
            display: flex;
            align-items: center;
            gap: .7rem;
            font-size: 15px;
            color: var(--white);

            span {
                display: grid;
                place-items: center;
                width: 26px;
                height: 26px;
                flex-shrink: 0;
                border-radius: 50%;
                background-color: var(--clr4);
                font-size: 13px;
                font-weight: 800;
                color: var(--clr2);
            }
        }
    }

    .bf-card {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.75rem;
        border-radius: var(--radius-xl);
        background-color: var(--white);
        box-shadow: 0 30px 60px -20px rgb(0 0 0 / 50%);

        .bf-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
    }
}

@media (max-width: 1024px) {
    .bf-page > .content {grid-template-columns: minmax(0, 1fr);}
}

/* Celular: modal compacto para caber na altura útil do Safari (sem as barras) */
@media (max-width: 600px), (max-height: 760px) {
    .bf-modal {
        padding: .75rem;

        .bf-top {
            gap: .55rem;
            padding: 1.25rem 1.25rem 1rem;
        }

        .bf-title {font-size: 21px;}

        .bf-text {
            font-size: 13px;
            line-height: 1.5;
        }

        .bf-discounts .bf-discount {
            padding: .45rem .5rem;
            font-size: 10.5px;

            b {font-size: 20px;}
        }

        .bf-countdown {font-size: 12px;}

        .bf-form {
            gap: .75rem;
            padding: 1rem 1.25rem 1.25rem;

            .fields {--gap-fields: .6rem;}

            input {padding: .55rem .8rem;}

            .btn-cta.lg {min-height: 44px;}
        }

        .bf-note {font-size: 11px;}
    }
}

@media (max-width: 600px) {
    .bf-discounts .bf-discount {min-width: 0; flex: 1;}
    .bf-page > .content {padding-block: 2.5rem;}
}
