/* ===================================
   OTIMIZAÇÕES MOBILE - PERFORMANCE CRÍTICA
   =================================== */

/* Regras globais para scroll */
html {
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    height: auto !important;
}

body {
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    height: auto !important;
    min-height: 100vh;
}

/* Otimizações de renderização inicial */
@media (max-width: 768px) {
    /* Prevenir reflow durante carregamento */
    img, video {
        content-visibility: auto;
    }
    
    /* Lazy loading para melhor performance */
    img:not([src*="logo"]):not([src*="icon"]) {
        loading: lazy;
    }
    
    video {
        loading: lazy;
    }
    
    /* CRÍTICO: Garantir scroll vertical */
    html, body {
        max-width: 100vw;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: relative;
        -webkit-overflow-scrolling: touch;
        height: auto !important;
        min-height: 100%;
        touch-action: pan-y;
    }
    
    /* Garantir que nada ultrapasse a viewport */
    * {
        max-width: 100%;
    }
    
    /* Todas as seções sem overflow horizontal */
    section {
        overflow-x: hidden !important;
        overflow-y: visible !important;
        max-width: 100vw !important;
    }
    
    /* Exceções para elementos que precisam ultrapassar */
    #mobile-menu,
    #mobile-menu-drawer,
    .fixed,
    .absolute,
    #neural-bg,
    canvas,
    nav {
        max-width: none;
    }
    
    /* ===================================
       NAVBAR MOBILE
       =================================== */
    
    /* Forçar layout correto da navbar */
    nav .max-w-7xl {
        display: flex;
        position: relative;
        justify-content: flex-end;
        align-items: center;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Logo centralizada em mobile */
    #nav-logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
        pointer-events: auto;
    }
    
    /* Botões à direita (tema + hamburger) */
    nav .md\:hidden.flex.items-center.gap-2 {
        z-index: 10;
        pointer-events: auto;
    }
    
    #mobile-menu-btn {
        position: relative;
        z-index: 10;
        padding: 0.5rem !important;
        margin: 0 !important;
        background: transparent !important;
        width: auto !important;
        min-width: auto !important;
    }
    
    #mobile-menu-btn i {
        font-size: 1.5rem;
    }
    
    #theme-toggle-mobile {
        padding: 0.5rem !important;
    }
    
    #theme-toggle-mobile i {
        font-size: 1.25rem;
    }
    
    /* Ajustar altura da logo */
    #logo-image {
        height: 2rem !important;
    }
    
    /* ===================================
       TIPOGRAFIA MOBILE
       =================================== */
    
    /* Reduzir tamanho das fontes globalmente */
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    p {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
    }
    
    /* ===================================
       CENTRALIZAÇÃO DE TEXTOS
       =================================== */
    
    /* Centralizar todos os textos em mobile */
    section {
        text-align: center;
    }
    
    /* Centralizar parágrafos - NOTA: span removido para não quebrar flex justify-between */
    p, li {
        text-align: center;
    }
    
    /* Spans centralizados apenas em seções específicas, não em flex containers */
    section > span,
    .glass-panel > span,
    .text-center span {
        text-align: center;
    }
    
    /* EXCEÇÃO CRÍTICA: Cards de preço mobile - força alinhamento à direita */
    .md\:hidden .bg-blue-950\/30 .flex.justify-between > span:last-child {
        text-align: right !important;
        display: inline-block !important;
        width: auto !important;
    }
    
    .md\:hidden .bg-blue-950\/30 .flex.justify-between > span:last-child > span {
        text-align: right !important;
        display: block !important;
    }
    
    /* Centralizar headings */
    h1, h2, h3, h4, h5, h6 {
        text-align: center !important;
    }
    
    /* Exceções para elementos que devem manter alinhamento */
    .text-left {
        text-align: left !important;
    }
    
    /* ===================================
       CONTAINERS E CARDS
       =================================== */
    
    /* Reduzir padding dos containers */
    .max-w-7xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Cards menores - aplicar a todos */
    .glass-panel {
        padding: 1.25rem !important;
        margin: 0.75rem auto !important;
        max-width: 95% !important;
        width: 100% !important;
    }
    
    /* Pricing cards mais compactos */
    .glass-panel.rounded-3xl {
        padding: 1.5rem !important;
    }
    
    /* Grid de pricing - forçar 1 coluna */
    #precos .grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Reduzir espaçamento entre elementos */
    .space-y-8 > * + * {
        margin-top: 1.5rem !important;
    }
    
    .space-y-6 > * + * {
        margin-top: 1rem !important;
    }
    
    /* ===================================
       FOOTER MOBILE
       =================================== */
    
    /* Centralizar logo do footer */
    #footer-logo {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        max-width: 150px !important;
        height: auto !important;
    }
    
    /* Centralizar colunas do footer */
    footer .grid {
        text-align: center !important;
    }
    
    footer .grid > div {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Centralizar links do footer */
    footer ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    footer ul li {
        text-align: center !important;
    }
    
    footer h4 {
        text-align: center !important;
        width: 100%;
    }
    
    /* Centralizar ícones sociais */
    footer .flex.gap-3 {
        justify-content: center !important;
        width: 100%;
    }
    
    /* Centralizar parágrafo de descrição */
    footer p {
        text-align: center !important;
        width: 100%;
    }
    
    /* Footer - reduzir espaçamento */
    footer {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Espaçamento entre colunas do footer */
    footer .grid {
        gap: 2rem !important;
    }
    /* Canvas neural - Mantido visível mas com menos partículas (definido no JS) */
    #neural-bg,
    canvas#neural-bg {
        opacity: 0.4 !important; /* Reduzir opacidade em mobile para melhor performance */
    }
    
    /* Remove todos os efeitos de gradiente do canvas em mobile - mas NÃO os vídeos */
    section .bg-gradient-to-r:not(#video-carousel *),
    section .bg-neon\/3:not(#video-carousel *),
    section .bg-indigo-500\/3:not(#video-carousel *) {
        opacity: 0 !important;
        display: none !important;
    }
    
    /* Remove blur apenas de backgrounds decorativos, não de elementos funcionais */
    .absolute.blur-\[120px\],
    .absolute.blur-\[100px\] {
        display: none !important;
    }
    
    /* Reduzir background noise para evitar efeito fosco */
    .bg-noise {
        opacity: 0.01 !important; /* Muito reduzido para evitar overlay branco */
    }
    
    /* REMOVER backdrop-filter que causa lag em mobile */
    .glass-panel,
    [class*="backdrop-blur"] {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Forçar GPU acceleration em elementos que animam */
    .gallery-card,
    .btn-primary,
    button,
    a,
    img {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }
    
    /* Desabilitar transições pesadas durante scroll */
    /* EXCETO durante troca de tema - deve ser instantâneo */
    body:not(.theme-switching) * {
        transition-duration: 0.15s !important; /* Reduzir de 0.3s para 0.15s */
    }
    
    /* CRÍTICO: Desabilitar TODAS transições durante troca de tema (igual desktop) */
    body.theme-switching *,
    body.theme-switching *::before,
    body.theme-switching *::after {
        transition: none !important;
        animation-duration: 0s !important;
    }
    
    /* Otimizar blur effects - muito pesado em mobile */
    [class*="blur"] {
        filter: none !important;
    }
    
    /* Shadows simplificadas para mobile */
    .shadow-2xl,
    .shadow-xl {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Melhorar performance de scroll */
    body {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: auto; /* Mudado de 'contain' para 'auto' */
        transform: translateZ(0); /* GPU acceleration */
        overflow-x: hidden !important; /* Prevenir scroll horizontal */
        overflow-y: auto !important; /* Garantir scroll vertical */
    }
    
    /* Menu mobile não deve bloquear scroll */
    #mobile-menu {
        position: fixed;
        right: 0;
        top: 0;
        pointer-events: none !important;
    }
    
    #mobile-menu.show {
        pointer-events: auto !important;
    }
    
    #mobile-menu-drawer {
        transform: translateX(100%) !important;
        transition: transform 0.3s ease !important;
    }
    
    #mobile-menu.show #mobile-menu-drawer {
        transform: translateX(0) !important;
    }
    
    #mobile-menu-overlay {
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
    }
    
    #mobile-menu.show #mobile-menu-overlay {
        opacity: 1 !important;
    }
    
    /* Otimizar animações - usar apenas transform e opacity */
    .fade-in-up,
    .delay-100,
    .delay-200,
    .delay-300 {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        animation-delay: 0s !important;
    }
    
    /* Remover todas as animações complexas */
    * {
        animation-duration: 0s !important;
    }
    
    /* Simplificar gradientes - manter apenas no título principal */
    .bg-gradient-to-r:not(#hero h1 span),
    .bg-gradient-to-b {
        background-image: none !important;
        background-color: var(--bg-primary) !important;
    }
    
    /* Restore gradient for Hero Title on Mobile */
    #hero h1 span.bg-gradient-to-r {
        background: linear-gradient(to right, #ffffff 0%, #ffffff 40%, #64748b 100%) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        color: transparent !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    [data-theme="light"] #hero h1 span.bg-gradient-to-r {
        background: linear-gradient(to right, #0f172a 0%, #0f172a 40%, #94a3b8 100%) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        color: transparent !important;
    }
    
    /* Simplificar vidro/glass effects */
    .glass-panel {
        background: rgba(30, 41, 59, 0.9) !important;
    }
    
    [data-theme="light"] .glass-panel {
        background: rgba(255, 255, 255, 0.9) !important;
    }
    
    /* Containment para melhor performance */
    section,
    .glass-panel,
    .gallery-card {
        contain: layout style paint;
    }
    
    /* Otimizar padding das seções */
    section {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* ===================================
       BOTÕES E INTERAÇÕES
       =================================== */
    
    /* Botões - tamanho touch-friendly e centralizados */
    button:not(#back-to-top):not(.mobile-menu-toggle):not(#close-mobile-menu):not(#theme-toggle-mobile):not(#mobile-menu-close):not(#open-feedback-btn):not(#mobile-menu-btn), 
    a.btn-primary:not(#cta-start-free-btn), 
    .btn-primary:not(#open-feedback-btn):not(#cta-start-free-btn),
    .js-open-signup,
    #btn-subscribe-monthly,
    #btn-checkout-annual {
        min-height: 44px;
        padding: 0.75rem 1.25rem !important;
        font-size: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
        display: flex !important;
        justify-content: center;
        align-items: center;
    }
    
    /* Botão voltar ao topo - manter redondo */
    #back-to-top {
        width: 3rem !important;
        height: 3rem !important;
        padding: 0 !important;
        border-radius: 50% !important;
        bottom: 1.5rem !important;
        right: 1.5rem !important;
        min-height: auto !important;
    }
    
    /* Container de botões centralizados */
    .flex.flex-col.md\:flex-row.gap-4 {
        width: 100%;
        align-items: center;
    }
    
    /* ===================================
       BADGES E PILLS
       =================================== */
    
    /* Ajustar tamanho de badges e pills */
    .inline-flex.items-center.gap-2.px-3.py-1 {
        font-size: 8px !important;
        padding: 0.3rem 0.5rem !important;
    }
    
    /* Popular badge */
    .popular-badge {
        font-size: 8px !important;
        padding: 0.25rem 0.75rem !important;
    }
    
    /* ===================================
       LISTAS E FEATURES
       =================================== */
    
    /* Listas de features nos cards de pricing */
    ul.space-y-3 {
        text-align: left !important;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    ul.space-y-3 li {
        text-align: left !important;
        font-size: 0.75rem !important;
    }
    
    /* Ícones das features */
    ul.space-y-3 li i {
        font-size: 0.875rem !important;
    }
    
    /* ===================================
       HERO SECTION MOBILE
       =================================== */
    
    #hero {
        min-height: auto !important;
        padding-top: 6rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Título do hero */
    #hero h1 span:first-child {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
        display: block !important;
    }
    
    #hero h1 span:last-child {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        display: block !important;
        background-clip: text !important;
        -webkit-background-clip: text !important;
    }
    
    /* Parágrafos do hero */
    #hero p {
        font-size: 0.875rem !important;
        max-width: 100% !important;
    }
    
    /* ===================================
       PRICING SECTION
       =================================== */
    
    /* Preços */
    .font-space.text-5xl {
        font-size: 2.5rem !important;
    }
    
    /* Título dos planos */
    .font-space.text-2xl {
        font-size: 1.5rem !important;
    }
    
    /* Textos descritivos abaixo do preço - alinhar à esquerda */
    #precos .glass-panel > div > p.text-slate-400,
    #precos .glass-panel p.text-emerald-400,
    #precos .glass-panel p.text-indigo-400 {
        text-align: left !important;
    }
    
    /* Lista de features com ícones - alinhar à esquerda */
    #precos .glass-panel ul {
        text-align: left !important;
        align-items: flex-start !important;
    }
    
    #precos .glass-panel ul li {
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    #precos .glass-panel ul li span {
        text-align: left !important;
    }
    
    /* ===================================
       GALERIA E IMAGENS
       =================================== */
    
    /* Galeria - melhor visualização em mobile (Consolidado abaixo) */
    /* #gallery-cards removido daqui */
    
    /* .gallery-card removido daqui */
    
    /* Imagens responsivas - EXCETO crown-icon */
    img:not(.crown-icon) {
        max-width: 100%;
        height: auto;
    }
    
    /* ===================================
       VÍDEOS E CARROSSEL
       =================================== */
    
    /* Carrossel de vídeos mobile - Scroll Horizontal Nativo */
    #video-carousel {
        padding-bottom: 4rem !important;
        padding-top: 4rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        position: relative !important;
        min-height: auto !important; /* Não forçar altura fixa */
        overflow: visible !important; /* Permitir conteúdo fluir naturalmente */
        z-index: 1 !important; /* Abaixo do section-bg-scroll para não cobri-lo */
        background-color: transparent !important; /* Remover bg para mostrar o container */
        width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Ajustar background container da seção de vídeos */
    #video-section-wrapper .section-bg-scroll {
        top: 1rem !important;
        bottom: 1rem !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 2rem !important;
        margin: 0 !important;
        z-index: 0 !important;
    }
    
    /* Container interno max-w-7xl sem padding lateral */
    #video-carousel .max-w-7xl {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100vw !important;
        overflow: visible !important;
    }
    
    /* Header de vídeos com padding */
    #video-carousel .text-center {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Container wrapper com scroll horizontal */
    #video-carousel .relative.h-\[500px\] {
        height: auto !important;
        min-height: auto !important;
        position: relative !important;
        overflow: visible !important;
        margin-bottom: 2rem !important;
    }
    
    /* Container de vídeos com scroll snap */
    #video-carousel-container {
        display: flex !important;
        overflow-x: auto !important;
        overflow-y: visible !important; /* Não bloquear scroll vertical da página */
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        /* scroll-behavior: smooth !important; REMOVIDO para permitir saltos instantâneos no loop */
        gap: 1rem !important;
        padding: 0 7.5vw !important; /* 7.5vw padding + 85vw card = 100vw (Centralizado) */
        scroll-padding: 0 7.5vw !important; /* Garante alinhamento correto do snap */
        position: relative !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        touch-action: pan-x pan-y !important; /* Permitir scroll vertical E horizontal */
        box-sizing: border-box !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    /* Esconder scrollbar webkit */
    #video-carousel-container::-webkit-scrollbar {
        display: none !important;
    }
    
    /* ===================================
       VIDEO ITEMS - MOBILE CAROUSEL
       =================================== */
    
    .video-item {
        /* Layout e dimensões */
        flex: 0 0 85vw !important;
        width: 85vw !important;
        max-width: 450px !important;
        
        /* Scroll snap */
        scroll-snap-align: center !important;
        scroll-snap-stop: normal !important; /* Permitir scroll livre (roleta) */
        
        /* Posicionamento */
        position: relative !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        
        /* Visual */
        display: block !important;
        opacity: 1 !important;
        border-radius: 1rem !important;
        border: 2px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        
        /* Transição */
        transition: opacity 0.3s ease !important;
    }
    
    /* Vídeo interno - aspect ratio 16:9 */
    .video-item video {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: cover !important;
        display: block !important;
        background: #000 !important;
        border-radius: 1rem !important;
    }
    
    /* ===================================
       REMOVER CONTROLES AVANÇADOS NO MOBILE
       =================================== */
    
    /* REMOVER TODOS OS CONTROLES NATIVOS NO MOBILE */
    .video-item video::-webkit-media-controls {
        display: none !important;
        -webkit-appearance: none !important;
    }
    
    .video-item video::-webkit-media-controls-enclosure {
        display: none !important;
    }
    
    .video-item video::-webkit-media-controls-panel {
        display: none !important;
    }
    
    .video-item video::-webkit-media-controls-play-button {
        display: none !important;
    }
    
    .video-item video::-webkit-media-controls-timeline-container {
        display: none !important;
    }
    
    .video-item video::-webkit-media-controls-current-time-display {
        display: none !important;
    }
    
    .video-item video::-webkit-media-controls-time-remaining-display {
        display: none !important;
    }
    
    /* Desabilitar Picture-in-Picture */
    .video-item video {
        -webkit-media-controls-picture-in-picture-button: none !important;
    }
    
    /* Esconder botões de controle avançados */
    .video-item video::-webkit-media-controls-fullscreen-button,
    .video-item video::-internal-media-controls-fullscreen-button {
        display: none !important;
        -webkit-appearance: none !important;
    }
    
    .video-item video::-webkit-media-controls-picture-in-picture-button,
    .video-item video::-internal-media-controls-picture-in-picture-button {
        display: none !important;
        -webkit-appearance: none !important;
    }
    
    .video-item video::-webkit-media-controls-download-button,
    .video-item video::-internal-media-controls-download-button {
        display: none !important;
        -webkit-appearance: none !important;
    }
    
    .video-item video::-webkit-media-controls-overflow-button,
    .video-item video::-internal-media-controls-overflow-button {
        display: none !important;
        -webkit-appearance: none !important;
    }
    
    /* Esconder botões prev/next em mobile (scroll nativo é melhor UX) */
    #video-prev,
    #video-next {
        display: none !important;
    }
    
    /* Galeria - Reduzir espaço com vídeos */
    #galeria {
        margin-top: 0.5rem !important;
        padding-top: 4rem !important; /* Aumentado para empurrar conteúdo para dentro do bg */
        position: relative !important;
        z-index: 10 !important;
    }

    /* Ajustar background da galeria para envolver todo o conteúdo */
    #galeria .section-bg-scroll {
        top: 1rem !important; /* Subir o background */
        bottom: 1rem !important;
        left: 1rem !important;
        right: 1rem !important;
        border-radius: 2rem !important;
    }

    /* Transformar galeria em carrossel horizontal no mobile */
    #gallery-cards {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 1rem !important;
        padding: 0 1.5rem 2rem 1.5rem !important; /* Padding lateral para alinhar e inferior para scroll */
        min-height: 300px !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        -webkit-overflow-scrolling: touch;
    }

    /* Resetar estilos dos cards para fluxo normal */
    .gallery-card {
        position: relative !important;
        flex: 0 0 90vw !important;
        width: 90vw !important;
        max-width: 450px !important;
        height: auto !important;
        scroll-snap-align: center !important;
        transform: none !important;
        opacity: 1 !important;
        left: auto !important;
        top: auto !important;
        margin: 0 !important;
        pointer-events: auto !important;
    }

    /* Ajustar painel de vidro dentro do card */
    .gallery-card .glass-panel {
        height: auto !important;
        border-radius: 1rem !important;
        background: transparent !important; /* Remove background to fit image exactly */
        border: none !important; /* Remove outer border if image has its own or if we want tight fit */
        box-shadow: none !important;
    }

    /* Remove aspect ratio constraint and fit image exactly */
    .gallery-card .aspect-video {
        aspect-ratio: auto !important;
        height: auto !important;
        background: transparent !important;
        border-radius: 1rem !important;
        border: 2px solid rgba(255, 255, 255, 0.1) !important; /* Move border here */
        overflow: hidden !important;
        box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.7) !important;
    }

    .gallery-card img {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* Esconder scrollbar */
    #gallery-cards::-webkit-scrollbar {
        display: none;
    }

    /* ===================================
       SEÇÃO SISTEMA (RECURSOS COMPLETOS)
       =================================== */
    
    #sistema {
        padding-top: 5rem !important; /* Empurrar conteúdo para baixo */
        padding-bottom: 4rem !important;
    }

    #sistema .section-bg-scroll {
        top: 1rem !important;
        bottom: 1rem !important;
        left: 1rem !important;
        right: 1rem !important;
        border-radius: 2rem !important;
        margin: 0 !important; /* Resetar margens originais */
    }

    #sistema .mb-16 {
        margin-bottom: 2.5rem !important; /* Reduzir espaço entre header e cards */
    }

    
    /* ===================================
       FAQ E ACORDEÕES
       =================================== */
    
    /* FAQ - melhor espaçamento */
    .faq-item {
        margin-bottom: 0.75rem;
        padding: 0.75rem !important;
    }
    
    .faq-item h3 {
        font-size: 0.95rem !important;
    }
    
    /* ===================================
       SEÇÃO SOBRE O PROJETO
       =================================== */
    
    #sobre {
        padding-top: 5rem !important;
        padding-bottom: 4rem !important;
    }

    #sobre .section-bg-scroll {
        top: 1rem !important;
        bottom: 1rem !important;
        left: 1rem !important;
        right: 1rem !important;
        border-radius: 2rem !important;
        margin: 0 !important;
    }

    /* Ajustar pill DEVCONS */
    #sobre .glass-panel.rounded-full {
        padding: 0.25rem 1rem !important; /* Reduzir padding vertical */
        bottom: -1.25rem !important; /* Ajustar posição */
    }

    #sobre .glass-panel.rounded-full span {
        font-size: 0.875rem !important; /* Manter tamanho do texto (14px) */
    }

    /* Ajustar textos da seção */
    #sobre p {
        font-size: 0.8rem !important; /* Reduzir fonte geral */
        padding: 0 1rem !important; /* Aumentar margem lateral */
        text-align: center !important;
        line-height: 1.6 !important;
    }

    #sobre h2, #sobre h3 {
        text-align: center !important;
    }

    /* Centralizar títulos dos blocos de texto */
    #sobre .grid strong {
        text-align: center !important;
        display: block !important;
    }

    /* Transformar cards finais em pills */
    #sobre .flex-wrap.justify-center.gap-4 .glass-panel {
        border-radius: 9999px !important; /* Pill shape */
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }

    /* ===================================
       SEÇÃO PREÇOS (PLANOS)
       =================================== */
    
    /* Ajustar Header (Tag, Título, Subtítulo) */
    #precos .text-center.mb-16 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }

    /* Ajustar subtítulo para não tocar nas bordas */
    #precos .text-center.mb-16 p {
        padding: 0 1.5rem !important;
        font-size: 0.9rem !important;
    }

    /* Ajustar Badge "Mais Popular" */
    .popular-badge {
        margin-top: 0.5rem !important;
        transform: translateY(5px) !important;
    }

    /* Ajustar Nota de Transparência (* Parcelamento...) */
    #precos p.text-slate-500.text-xs.text-center.mt-6 {
        font-size: 0.65rem !important;
        padding: 0 2rem !important;
        line-height: 1.4 !important;
        margin-top: 1rem !important;
    }

    /* ===================================
       TABELA COMPARATIVA (MOBILE)
       =================================== */
    
    /* Ajustar cor de fundo dos cards da tabela comparativa */
    .md\:hidden.space-y-4 > div {
        background-color: rgba(30, 41, 59, 0.5) !important; /* Slate-800 com transparência */
        border-color: rgba(255, 255, 255, 0.1) !important;
    }

    /* Ajuste específico para modo claro se necessário */
    [data-theme="light"] .md\:hidden.space-y-4 > div {
        background-color: rgba(241, 245, 249, 0.8) !important; /* Slate-100 com transparência */
        border-color: rgba(0, 0, 0, 0.05) !important;
    }

    /* CTA Final - Disclaimer Text */
    .cta-disclaimer {
        font-size: 0.65rem !important;
        opacity: 0.7 !important;
        margin-top: 0.75rem !important;
    }

    /* ===================================
       FOOTER - MOBILE
       =================================== */
    
    footer {
        padding-top: 2rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    footer .grid {
        gap: 2rem !important;
    }
    
    footer h4 {
        font-size: 0.875rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    footer p,
    footer li a,
    footer .text-sm {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }
    
    footer .border-t {
        padding-top: 1.5rem !important;
    }
    
    footer .text-slate-400 {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }
    
    /* Copyright do footer - texto menor e sem borda visível */
    footer .footer-copyright {
        font-size: 0.6rem !important;
        line-height: 1.4 !important;
        padding: 0 0.5rem !important;
    }
    
    footer .border-t.border-white\/10 {
        border-top-width: 1px !important;
        border-color: rgba(255, 255, 255, 0.05) !important;
    }
    
    .faq-item p {
        font-size: 0.8rem !important;
    }

    /* Botão Fale Conosco - Reduzir largura */
    #open-feedback-btn {
        padding: 0.6rem 1rem !important;
        width: 50% !important; /* Forçar largura fixa relativa */
        max-width: none !important; 
        font-size: 0.75rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    /* Disclaimer do Fale Conosco */
    #open-feedback-btn + p {
        font-size: 0.65rem !important;
        padding: 0 1rem !important;
        line-height: 1.3 !important;
    }

    /* Ajustar posição e tamanho da ilustração do FAQ */
    .faq-decoration-svg {
        bottom: 5% !important; /* Mais para baixo (estava 15%) */
        right: 45px !important;
        opacity: 1 !important;
        transform: scale(0.8);
        width: 100px !important;
        height: 100px !important;
    }

    /* Ajustar posição e tamanho da ilustração do CTA (Começar Gratuitamente) */
    .cta-decoration-svg {
        bottom: 18% !important; /* Um pouco mais para baixo (estava 25%) */
        right: 360px !important; /* Um pouco mais para a esquerda (estava 10px) */
        opacity: 1 !important; /* Opacidade total */
        transform: scale(0.9);
        width: 100px !important;
        height: 100px !important;
    }

    /* Botão Começar Gratuitamente (CTA) - Reduzir largura */
    #cta-start-free-btn {
        padding: 0.8rem 1rem !important;
        width: 65% !important; /* Um pouco maior que o Fale Conosco pois o texto é maior */
        max-width: none !important;
        font-size: 0.8rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    /* Galeria - melhor visualização em mobile (Consolidado acima) */
    /* #gallery-cards removido daqui */
    
    /* .gallery-card removido daqui */
    
    /* FAQ - melhor espaçamento */
    .faq-item {
        margin-bottom: 0.75rem;
    }
    
    /* Footer - reduzir espaçamento */
    footer {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Reduzir tamanho de ilustrações decorativas (Consolidado acima) */
    /* .cta-decoration-svg, .faq-decoration-svg removidos daqui */
    
    /* Menu mobile - melhor área de toque */
    .mobile-menu-link {
        padding: 1rem !important;
    }

    /* ===================================
       PLAY BUTTON - MOBILE
       =================================== */
    
    .video-play-button {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 20 !important;
        width: 60px !important;
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        pointer-events: none !important;
        transition: opacity 0.3s ease !important;
        background: transparent !important;
    }
    
    /* Esconder o ícone SVG e usar imagem PNG */
    .video-play-button i {
        display: none !important;
    }
    
    /* PNG como background */
    .video-play-button::before {
        content: '' !important;
        display: block !important;
        width: 60px !important;
        height: 60px !important;
        background-image: url('playbtn.png') !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }
    
    /* Esconder botão quando vídeo está tocando */
    .video-item.playing .video-play-button {
        opacity: 0 !important;
    }

    /* Esconder botão de play nativo do browser */
    video::-webkit-media-controls-start-playback-button,
    video::-webkit-media-controls-overlay-play-button {
        display: none !important;
        -webkit-appearance: none !important;
    }

    /* Indicators are now hidden on mobile and replaced by a counter */
}

/* ===================================
   BREAKPOINTS ESPECÍFICOS - SIMPLIFICADO
   Apenas ajustes de padding, sem alterar tipografia global
   =================================== */

/* Celulares muito pequenos (<375px) */
@media (max-width: 374px) {
    section:not(footer) {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .glass-panel {
        padding: 1rem !important;
    }
}

/* Celulares grandes e phablets (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    section:not(footer) {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
    
    /* Cards de preço centralizados */
    #precos .grid {
        max-width: 450px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Telas intermediárias (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    /* Footer 2 colunas */
    footer .grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    /* Reduzir padding vertical */
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Hero mais compacto */
    #hero {
        min-height: auto !important;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* ===================================
   LIGHTBOX / GALERIA (MOBILE FIX)
   =================================== */
@media (max-width: 768px) {
    #lightbox {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important; /* Altura dinâmica para mobile */
        z-index: 99999 !important; /* Z-index extremo */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        inset: 0 !important; /* Reforçar inset */
    }
    
    /* Container interno do lightbox */
    #lightbox > div.relative {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Wrapper da imagem (div.relative.max-w-6xl) */
    #lightbox > div.relative > div.relative {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }

    /* Glass panel do lightbox */
    #lightbox .glass-panel {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Imagem do lightbox */
    #lightbox-image {
        max-height: 85vh !important;
        max-width: 95vw !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain !important;
        margin: auto !important; /* Garantir centralização */
        transform: none !important; /* Remover transforms que possam atrapalhar */
        display: block !important;
    }
    
    /* Botões de navegação do lightbox */
    #lightbox-prev,
    #lightbox-next {
        width: 3rem !important;
        height: 3rem !important;
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(4px) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    #lightbox-close {
        top: 1.5rem !important;
        right: 1.5rem !important;
        width: 2.5rem !important;
        height: 2.5rem !important;
        background: rgba(255, 255, 255, 0.15) !important;
    }

    /* ===================================
       MODAL DE FEEDBACK - MOBILE
       =================================== */
    
    /* Ocultar botão X do modal de feedback no mobile */
    #close-feedback-modal {
        display: none !important;
    }

    /* ===================================
       MICROSOFT STORE BADGE - MOBILE
       =================================== */
    
    .ms-store-badge {
        height: 24px !important;
        width: auto !important;
    }

}
