/* --- VARIAVEIS E RESET GERAL --- */
:root {
    --primary-color: #0d1b2a;
    --secondary-color: #1b263b;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --text-light: #f0f2f5;
    --text-dark: #333;
    --text-gray: #e0e1dd;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    scroll-behavior: smooth; /* Adiciona uma rolagem suave natural para links internos */
}

body {
    width: 100%;
    overflow-x: hidden; /* Mantém a prevenção de scroll horizontal apenas no body */
    overscroll-behavior-y: none; /* Previne efeito elástico (espaço branco) */
    font-family: var(--font-secondary);
    background-color: #f7f9fc;
    color: var(--text-dark);
    min-height: 100vh; 
    position: relative; /* Boa prática para garantir que elementos fixed/absolute respeitem o body */
}

/* --- TIPOGRAFIA E CONTAINER --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    color: #555;
}

/* --- BOTÕES --- */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    text-align: center;
}

.cta-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(13, 27, 42, 0.95); /* Um pouco mais opaco para leitura */
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
}
.logo strong { font-weight: 700; }

/* --- ESTILIZAÇÃO DO TÍTULO HERO --- */
/* Container principal - Mantém tudo centralizado na seção */
.hero-brand-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px; /* Espaço para o parágrafo abaixo */
    padding: 0 20px;
    z-index: 10; /* Garante que fique acima do overlay do vídeo */
}

/* Linha das logos */
.brand-logos-row {
    display: flex;
    flex-direction: row; /* Lado a lado no Web */
    align-items: center; /* Alinhamento vertical base (pelo centro matemático) */
    justify-content: center;
    gap: 60px; /* Espaço generoso entre elas no Desktop */
    width: 100%;
    max-width: 1100px;
}

/* Estilo geral das logos - Mantendo proporções originais */
.logo-item {
    display: block;
    height: auto; /* Não força altura */
    width: auto;
    object-fit: contain;
}

/* --- AJUSTE ÓPTICO DE ALINHAMENTO (WEB) --- */
/* Devido às transparências diferentes nos PNGs, precisamos mover 
   as imagens individualmente para que pareçam alinhadas ao olho. */

.logo-protocolo {
    max-width: 400px; /* Largura máxima original */
    
    /* AJUSTE AQUI: Se ela parecer muito alta, aumente o valor (ex: 15px). 
       Se parecer muito baixa, use valor negativo (ex: -10px). */
    transform: translateY(10px); 
}

.logo-nucleo {
    max-width: 250px; /* Largura máxima original */
    
    /* AJUSTE AQUI: Mesma lógica se precisar mover esta imagem. */
    /* transform: translateY(0px); */
}

/* Divisor vertical - Ajustado para acompanhar o movimento das logos */
.logo-divider {
    width: 1px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    /* Alinha o divisor com o deslocamento médio das logos */
    transform: translateY(5px); 
}

/* --- RESPONSIVIDADE (MOBILE) --- */
@media (max-width: 768px) {
    .brand-logos-row {
        flex-direction: column; /* Empilha no mobile */
        gap: 5px; /* APROXIMAÇÃO MÁXIMA: Quase coladas uma na outra */
    }

    .logo-item {
        max-width: 50% !important; /* Mantém responsivo em telas pequenas */
    }

    /* Removemos o ajuste óptico horizontal no mobile para não desalinhá-las verticalmente */
    .logo-protocolo, .logo-nucleo {
        transform: translateY(0); 
    }

    .logo-divider {
        width: 50px; /* Traço horizontal no mobile */
        height: 1px;
        margin: 10px 0; /* Espaçamento mínimo para o traço */
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateY(0);
    }
}

.brand-prefix {
    font-size: 1.5rem; /* Menor e elegante */
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 400;
    opacity: 0.9;
}

.brand-name {
    font-size: 3.5rem; /* Nome em destaque */
    display: block;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh; /* Ocupa a altura da tela */
    min-height: 600px; /* Evita que fique muito pequeno em telas curtas */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.7);
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.cta-support-text {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- STATS BAR --- */
.stats-bar {
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.stat-card {
    padding: 40px 20px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
    display: block;
    line-height: 1.2;
}

.stat-description {
    font-size: 1rem;
    color: #f0f2f5;
    margin-top: 5px;
}

.stat-card-blue { background-color: var(--secondary-color); }
.stat-card-dark { background-color: var(--primary-color); }
.stat-card-accent { background-color: var(--accent-color); }

/* --- GRID PADRÃO (TEXTO + IMAGEM) --- */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-grid .image-column img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.content-grid .text-column h2 {
    text-align: left;
    margin-bottom: 20px;
}

.content-grid .text-column p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Lista de metodologia */
.check-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}
.check-list li {
    margin-bottom: 15px;
}
.check-list i {
    color: #007bff;
    margin-right: 10px;
}

/* --- RESULTADOS --- */
.results { background-color: white; }

.results-gallery {
    display: grid;
    /* Mudança para 3 colunas iguais no desktop */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.result-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Garante que o conteúdo se alinhe verticalmente */
}

.result-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.result-card img {
    width: 100%;
    /* Ajustamos a altura de 500px para 380px para equilibrar nas 3 colunas */
    height: 380px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.result-card h3 {
    font-size: 1.4rem; /* Diminuímos sutilmente para caber melhor em 3 colunas */
    padding: 20px 25px 10px 25px;
    color: var(--primary-color);
}

.result-card p {
    padding: 0 25px 25px 25px;
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem; /* Ajuste leve no tamanho do texto */
    flex-grow: 1; /* Faz o texto ocupar o espaço restante, alinhando os botões (se houver) no fundo */
}

/* --- CARROSSEL (DIFERENCIAIS) --- */
.differentiators {
    background-color: var(--primary-color); /* Fundo escuro igual header */
    color: white;
    padding: 100px 0; /* Um pouco mais de respiro */
    position: relative;
}

/* Ajuste de títulos dentro da seção escura */
.differentiators h2 {
    color: white;
}

.differentiators .section-subtitle {
    color: var(--text-gray); /* Cinza claro para leitura no escuro */
}

/* Container do carrossel */
.carousel-wrapper {
    position: relative;
    overflow: visible; /* Permite ver a sombra dos botões */
    margin: 0 auto;
    padding: 0 90px;
}

.carousel-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 40px; /* Espaço extra para a sombra do card não cortar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.differentiator-card {
    flex-shrink: 0;
    width: 300px;
    scroll-snap-align: center; /* Centraliza ao parar o scroll */
    background-color: white; /* Card branco no fundo escuro */
    padding: 35px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Sombra mais forte */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-bottom: 4px solid var(--accent-color); /* Detalhe azul na borda inferior */
}
.differentiator-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.differentiator-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.differentiator-card p {
    color: #555;
    font-size: 0.95rem;
}

/* Ícone */
.diff-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.3s;
}

.differentiator-card:hover .diff-icon {
    transform: scale(1.1) rotate(5deg);
}
/* Botões do Carrossel Melhorados */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent; /* Fundo transparente */
    color: white;
    border: 2px solid var(--accent-color); /* Borda colorida */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.6); /* Efeito de brilho (Glow) */
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev { left: 20px; }
.carousel-control.next { right: 20px; }

/* Ajuste Responsivo para o carrossel Dark */
@media (max-width: 768px) {
    .differentiators { padding: 60px 0; }
    .carousel-wrapper { padding: 0 20px; }
    
    /* No mobile, escondemos as setas e deixamos o usuário deslizar com o dedo */
    .carousel-control { display: none; }
    
    .differentiator-card {
        width: 85vw; /* Ocupa quase toda a largura */
        margin-right: 10px;
    }
}

/* --- COMO FUNCIONA --- */
.how-it-works { text-align: center; }

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.step { padding: 30px; }

.step-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* --- SOBRE O DOUTOR --- */
.about-doctor blockquote {
    font-style: italic;
    font-size: 1.2rem;
    margin: 20px 0;
    padding-left: 20px;
    border-left: 4px solid var(--accent-color);
    color: #444;
}

.doctor-specialties {
    font-weight: bold;
    color: var(--accent-color);
    font-family: var(--font-primary);
}

/* --- APP SHOWCASE (TABLET LANDSCAPE) --- */
/* --- APP SHOWCASE (TABLET LANDSCAPE) --- */
.app-showcase {
    background-color: #fff;
    overflow: hidden;
    padding: 60px 0; /* Garante espaçamento em cima e embaixo */
}

.app-features {
    list-style: none;
    margin: 20px 0;
}
.app-features li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}
.app-features i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Container dos Botões das Lojas */
.app-store-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap; /* Permite quebrar linha se necessário */
}

/* Estilo dos Botões (Mais modernos e arredondados) */
.store-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px; /* Mais "gordinho" nas laterais */
    border-radius: 50px; /* Borda totalmente redonda (estilo pílula) */
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600; /* Texto um pouco mais grosso */
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Sombra suave */
    min-width: 160px; /* Tamanho mínimo para ficarem uniformes */
}

.store-btn:hover { 
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.store-btn i {
    font-size: 1.3rem; /* Ícone um pouco maior */
}

/* MOCKUP TABLET PAISAGEM */
.tablet-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tablet-mockup {
    width: 100%;
    max-width: 650px; /* Tamanho bom para landscape */
    aspect-ratio: 16 / 10;
    background-color: #111;
    border-radius: 25px;
    padding: 15px 15px 15px 35px; /* Mais borda na esquerda para simular "bottom" do tablet */
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    border: 2px solid #333;
    position: relative;
    display: flex;
    align-items: center;
}

/* Botão Home do Tablet */
.tablet-mockup::before {
    content: '';
    position: absolute;
    left: 12px; /* Centro da borda esquerda */
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #444;
}

/* Câmera */
.tablet-camera {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #222;
    border-radius: 50%;
}

.tablet-screen {
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* ATUALIZAÇÃO: Mudamos de .app-video para .app-image e o object-fit */
.app-image {
    width: 100%;
    height: 100%;
    /* 'scale-down' é perfeito para garantir que toda a composição do logo fique visível */
    object-fit: scale-down;
}


/* --- FAQ --- */
.faq { background-color: white; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #ddd; }

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 0;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question.active i { transform: rotate(180deg); }
.faq-question i { transition: transform 0.3s ease; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.faq-answer p { padding: 0 0 25px 0; line-height: 1.7; }

/* --- FINAL CTA --- */
.final-cta {
    padding: 4rem 0;
    background-color: white;
}
.final-cta img.img-shadow {
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-gray);
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: white;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 10px; }
.footer-column a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-column a:hover { color: white; }

.social-links a {
    color: white;
    font-size: 1.8rem;
    margin-right: 15px;
    display: inline-block;
    transition: transform 0.3s ease;
}
.social-links a:hover { transform: scale(1.1); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--secondary-color);
    font-size: 0.9rem;
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover { transform: scale(1.1); }

.whatsapp-bubble {
    position: absolute;
    right: 70px;
    bottom: 10px;
    background-color: white;
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transform-origin: right center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.whatsapp-float:hover .whatsapp-bubble {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* --- CHAT INTERATIVO --- */
.interactive-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 360px;
    max-height: 500px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 2000;
    display: none; /* Inicia oculto, JS ativa flex */
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), #25d366);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: white;
}

.chat-avatar { position: relative; margin-right: 15px; }
.chat-avatar img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid white; }
.status-dot {
    position: absolute; bottom: 0; right: 0; width: 10px; height: 10px;
    background-color: #25d366; border-radius: 50%; border: 1.5px solid white;
}

.chat-info { flex: 1; }
.chat-name { display: block; font-weight: bold; font-size: 0.95rem; }
.chat-status { font-size: 0.75rem; opacity: 0.9; }

.chat-close { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

.chat-messages {
    flex: 1;
    padding: 15px;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 250px;
    max-height: 350px;
    overflow-y: auto;
}

.message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: popIn 0.3s;
}
@keyframes popIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

.message.bot { background-color: white; color: #333; align-self: flex-start; border-top-left-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.message.user { background-color: var(--accent-color); color: white; align-self: flex-end; border-top-right-radius: 2px; }

.chat-input-area { padding: 15px; background-color: white; border-top: 1px solid #eee; }
.chat-btn-action {
    width: 100%; padding: 10px; background-color: var(--primary-color); color: white;
    border: none; border-radius: 20px; font-weight: bold; cursor: pointer; transition: 0.2s;
}
.chat-btn-action:hover { background-color: var(--secondary-color); }
.chat-btn-action a { color: white; text-decoration: none; }

.chat-text-input-group { display: flex; gap: 8px; }
.chat-input-field { flex: 1; padding: 8px 12px; border: 1px solid #ddd; border-radius: 20px; outline: none; }
.chat-send-btn { width: 35px; height: 35px; border-radius: 50%; background-color: var(--accent-color); color: white; border: none; cursor: pointer; }


/* =========================================
   MEDIA QUERIES (RESPONSIVIDADE UNIFICADA)
   ========================================= */

@media (max-width: 1200px) {
    .differentiator-card { width: calc((100% - 50px) / 3); }
}

@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Reverte a ordem em mobile para imagem ficar em cima, exceto se especificado */
    .content-grid .text-column { order: 2; text-align: center; }
    .content-grid .image-column { order: 1; }
    .content-grid .text-column h2 { text-align: center; }

    /* Exceção para a metodologia se precisar de ordem específica */
    .reverse-mobile { display: flex; flex-direction: column-reverse; }

    .stats-grid { grid-template-columns: 1fr; }
    .carousel-wrapper { padding: 0 50px; }
    .differentiator-card { width: calc((100% - 25px) / 2); }
}

@media (max-width: 768px) {
    section { padding: 50px 0; }
    .app-showcase .text-column {
        text-align: center;
        margin-bottom: 40px; /* Espaço entre texto e vídeo */
        padding: 0 15px;
    }
    .app-features {
        display: inline-block; /* Para o text-align funcionar no pai */
        text-align: left; /* Mantém os itens alinhados à esquerda visualmente */
        margin: 20px auto;
    }

    /* Ajuste dos botões no mobile */
    .app-store-buttons {
        justify-content: center; /* Centraliza os botões horizontalmente */
        width: 100%;
    }

    .store-btn {
        width: auto; /* Deixa o botão do tamanho do conteúdo */
        padding: 12px 30px; /* Botão confortável para o dedo */
        margin: 5px; /* Espacinho extra entre eles se quebrar linha */
    }
    
    h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }

    .results-gallery { grid-template-columns: 1fr; }
    .results-gallery .result-card img { height: 300px; }

    .steps-container { grid-template-columns: 1fr; gap: 40px; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    
    /* Chat e Whatsapp no Mobile */
    .interactive-chat { display: none !important; }
    .whatsapp-float { display: flex !important; width: 50px; height: 50px; bottom: 20px; right: 20px; font-size: 24px; }
    .whatsapp-bubble { display: none; }

    /* Carrossel Mobile */
    .carousel-wrapper { padding: 0 10px; }
    .carousel-control { display: none; }
    .differentiator-card { width: 85vw; scroll-snap-align: center; }
    
    /* App Store botões */
    .app-store-buttons { flex-direction: column; width: 100%; }
    .store-btn { justify-content: center; }

    .tablet-column {
        padding: 0 10px; /* Margem lateral pequena */
    }
    /* Tablet Mockup no mobile vira apenas um vídeo normal para não ficar pequeno demais */
    .tablet-mockup {
        /* Removemos a "moldura" pesada do tablet no mobile para ganhar espaço */
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: auto; /* Reseta proporção fixa */
    }
    .tablet-mockup::before, .tablet-camera { display: none; }
    .tablet-screen { border-radius: 10px; height: 300px; }
    .tablet-mockup::before, 
    .tablet-camera,
    .tablet-button { 
        display: none; 
    }

    .tablet-screen {
        width: 100%;
        height: auto; /* Altura automática baseada na proporção */
        
        /* Define a proporção padrão de vídeo (16:9) para não ficar nem muito alto nem muito fino */
        aspect-ratio: 16 / 9; 
        
        border-radius: 12px;
        border: 2px solid #333; /* Borda fina apenas para acabamento */
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

    .app-image {
        width: 100%;
        height: 100%;
        /* 'Cover' preenche tudo. Se ainda cortar informação vital, mude para 'contain' */
        object-fit: cover; 
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    .cta-button { width: 100%; padding: 15px 20px; font-size: 1rem; }
}

/* =========================================
   METODOLOGIA / ACCORDION UI
   ========================================= */

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
    line-height: 1.6;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background-color: white;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

/* Remove a setinha padrão do navegador da tag details */
.accordion-item > summary {
    list-style: none;
}
.accordion-item > summary::-webkit-details-marker {
    display: none;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    background-color: white;
    transition: background-color 0.3s ease;
    user-select: none; /* Evita que o texto seja selecionado ao clicar rápido */
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-content i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.header-content h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
    font-family: var(--font-primary);
}

.arrow-icon {
    color: var(--accent-color);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

/* Animação da seta quando aberto */
.accordion-item[open] .arrow-icon {
    transform: rotate(180deg);
}

.accordion-item[open] .accordion-header {
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    background-color: #fcfcfc;
}

.accordion-content {
    padding: 20px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    background-color: white;
    animation: fadeInDown 0.4s ease-out forwards;
}

.accordion-content p {
    margin-bottom: 0;
}

/* Estilização da lista dentro do Passo 2 */
.accordion-list {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    list-style: none;
    padding-left: 0;
}

.accordion-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.accordion-list li:last-child {
    margin-bottom: 0;
}

.accordion-list li i {
    color: var(--accent-color);
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Animação suave para revelar o conteúdo */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustes para Mobile */
@media (max-width: 768px) {
    .header-content h3 {
        font-size: 1rem;
    }
    .header-content i {
        font-size: 1.1rem;
    }
    .accordion-header {
        padding: 15px;
    }
    .accordion-content {
        padding: 15px;
    }
}

/* --- ESTILIZAÇÃO DO TÍTULO HERO --- */
.brand-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    margin-bottom: 30px;
}

.brand-prefix {
    font-size: 1.5rem; /* Menor e elegante */
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 400;
    opacity: 0.9;
}

.brand-name {
    font-size: 3.5rem; /* Nome em destaque */
    display: block;
}

/* --- ESTILIZAÇÃO DO RODAPÉ --- */
/* --- IPHONE MOCKUP PREMIUM --- */
.phone-column {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.iphone-pro {
    position: relative;
    width: 280px;
    height: 570px;
    background: #000;
    border-radius: 45px;
    padding: 12px;
    box-shadow: 
        0 0 0 4px #2c2c2c, /* Moldura externa */
        0 0 0 7px #1a1a1a, /* Borda principal */
        0 20px 50px rgba(0,0,0,0.4);
    border: 1px solid #444;
}

/* Dynamic Island (A Pílula do iPhone 14/15/16) */
.dynamic-island {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    height: 25px;
    background: #000;
    border-radius: 20px;
    z-index: 20;
}

/* Container do iPhone */
.iphone-pro {
    position: relative;
    width: 280px;
    height: 560px;
    padding: 12px;
    background: #111;
    border-radius: 45px;
}

/* Tela do iPhone */
.iphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 35px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fundo borrado */
.iphone-screen::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("assets/newIconApp.png");
    background-size: cover;
    background-position: center;

    filter: blur(50px);
    transform: scale(1.3);
}

/* Logo */
.iphone-screen img {
    position: relative;
    width: 90%;
    height: 90%;
    object-fit: contain;
}

/* --- AJUSTE HERO MOBILE (MENOS APERTADO) --- */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px; /* Dá espaço para o header não cobrir o título */
        padding-bottom: 60px;
        height: auto; /* Permite que o conteúdo respire em telas pequenas */
        min-height: 100vh;
    }

    .brand-title {
        margin-top: 20px;
        gap: 10px;
    }

    .brand-prefix {
        font-size: 1rem;
        letter-spacing: 5px;
    }

    .brand-name {
        font-size: 1.8rem; /* Evita quebras de linha estranhas */
        padding: 0 15px;
        line-height: 1.3;
    }

    .hero-content p {
        margin-top: 20px;
        line-height: 1.5;
        font-size: 1.1rem;
    }
}