.slide-transition {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-in-out;
}
.slide-hidden {
    display: none !important;
    opacity: 0;
}
.slide-active {
    display: flex !important;
    animation: apresentacaoFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes apresentacaoFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ——— Logo branco no fundo escuro ——— */
.apresentacao-logo-invert {
    filter: brightness(0) invert(1);
}

/* ——— Modo apresentação (slide ocupa a tela, sem chrome) ——— */
html.apresentacao-b2b.apresentacao-focus body {
    height: 100dvh;
}
html.apresentacao-b2b.apresentacao-focus .apresentacao-chrome {
    display: none !important;
}
html.apresentacao-b2b.apresentacao-focus main.apresentacao-main {
    flex: 1 1 auto;
    min-height: 0;
    height: 100dvh;
}
html.apresentacao-b2b.apresentacao-focus .apresentacao-stage {
    padding: 0;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    align-items: stretch;
    display: flex;
    flex-direction: column;
}
html.apresentacao-b2b.apresentacao-focus .slide-container.slide-active {
    flex: 1 1 auto;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    min-height: 0;
    height: auto !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
html.apresentacao-b2b.apresentacao-focus .apresentacao-focus-bar {
    display: flex !important;
}

.apresentacao-focus-bar {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(100, 116, 139, 0.35);
    border-radius: 9999px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* ——— Layout base: altura real no mobile (svh/dvh) ——— */
html.apresentacao-b2b,
html.apresentacao-b2b body.apresentacao-body {
    height: 100%;
    min-height: 100dvh;
    min-height: 100svh;
    overscroll-behavior: none;
}
html.apresentacao-b2b body.apresentacao-body {
    display: flex;
    flex-direction: column;
}
.apresentacao-b2b .apresentacao-main {
    flex: 1 1 auto;
    min-height: 0;
}
.apresentacao-b2b .apresentacao-stage {
    min-height: 0;
    overflow: hidden;
}
.apresentacao-b2b .slide-container {
    min-height: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* ——— Mobile: footer fixo sempre visível ——— */
@media (max-width: 1023px) {
    html.apresentacao-b2b .apresentacao-footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        min-height: 4.25rem;
        padding-top: 0.625rem;
        padding-bottom: max(0.625rem, env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    }
    html.apresentacao-b2b .apresentacao-main {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }
    html.apresentacao-b2b #apresentacao-focus-toggle,
    html.apresentacao-b2b .apresentacao-focus-bar {
        display: none !important;
    }
    html.apresentacao-b2b.apresentacao-focus .apresentacao-chrome {
        display: flex !important;
    }
    html.apresentacao-b2b.apresentacao-focus .apresentacao-footer {
        display: flex !important;
    }
    html.apresentacao-b2b.apresentacao-focus main.apresentacao-main {
        height: auto;
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }
    .apresentacao-b2b .apresentacao-nav-btn {
        min-width: 2.75rem;
        min-height: 2.75rem;
    }
}

/* ——— Layout base (desktop) ——— */
@media (min-width: 1024px) {
    html.apresentacao-b2b body.apresentacao-body {
        height: 100vh;
        height: 100dvh;
    }
}

/* ——— Mobile: slide rolável, tipografia e grids compactos ——— */
@media (max-width: 1023px) {
    .apresentacao-b2b .apresentacao-stage {
        padding: 0.5rem;
        align-items: stretch;
    }
    .apresentacao-b2b .slide-container {
        max-height: none !important;
        height: 100% !important;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
        gap: 0.75rem;
        padding: 1rem !important;
    }
    .apresentacao-b2b .slide-container h1 {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
    }
    .apresentacao-b2b .slide-container h2 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
    }
    .apresentacao-b2b .slide-container h3 {
        font-size: 1rem !important;
    }
    .apresentacao-b2b .slide-container .font-mono.text-4xl,
    .apresentacao-b2b .slide-container .font-mono.text-5xl {
        font-size: 1.75rem !important;
    }
    .apresentacao-b2b .slide-container .my-auto {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    .apresentacao-b2b .apresentacao-table-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        padding-bottom: 0.25rem;
    }
    .apresentacao-b2b .apresentacao-table-scroll table {
        min-width: 36rem;
    }
    .apresentacao-b2b .apresentacao-table-hint {
        display: block;
    }
}

@media (min-width: 1024px) {
    .apresentacao-b2b .apresentacao-table-hint {
        display: none;
    }
}

.apresentacao-b2b .apresentacao-table-hint {
    display: none;
    font-size: 0.65rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 0.25rem;
}

.apresentacao-b2b ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.apresentacao-b2b ::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.05);
}
.apresentacao-b2b ::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 0, 0.4);
    border-radius: 3px;
}
.apresentacao-b2b ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 0, 0.6);
}
.apresentacao-b2b .contact-card {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.apresentacao-b2b .contact-card:hover {
    border-color: rgba(255, 107, 0, 0.45);
    background-color: rgba(255, 107, 0, 0.06);
}
.apresentacao-nivek ::-webkit-scrollbar-thumb {
    background: rgba(42, 6, 222, 0.45);
    border-radius: 3px;
}
.apresentacao-nivek ::-webkit-scrollbar-thumb:hover {
    background: rgba(254, 131, 0, 0.55);
}
.apresentacao-nivek .contact-card:hover {
    border-color: rgba(42, 6, 222, 0.45);
    background-color: rgba(42, 6, 222, 0.08);
}
