/* ========================================
   MEMO - CSS
   ======================================== */

/* Variables */
:root {
    /* Primary Colors */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-900: #1e3a8a;
    
    /* Secondary Colors */
    --secondary-500: #10b981;
    --secondary-600: #059669;
    
    /* Accent Colors */
    --accent-500: #f59e0b;
    --accent-600: #d97706;
    --science-500: #8b5cf6;
    --science-600: #7c3aed;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-science: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-text: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Spacing otimizado para mobile */
    --space-px: 1px;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 3rem;
    --space-24: 4rem;
    
    /* Variáveis responsivas conservadoras */
    --nav-height: 80px; 
    --section-padding: clamp(1.5rem, 4vh, 3rem);
    --section-gap: clamp(1rem, 2vh, 1.5rem);
    --space-section-header: clamp(1.5rem, 3vh, 2.5rem);
    --space-content-gap: clamp(1rem, 2vh, 1.5rem);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;

    /* ========== NOSSAS NOVAS VARIÁVEIS DE FONTE (Base Desktop) ========== */
    --font-size-h1: 2.6rem;
    --font-size-h2-section: 1.8rem;
    
    /* Animation */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overscroll-behavior: none; /* <-- ADICIONE ISSO */
}

body {
    font-family: var(--font-sans);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--gray-800);
    background: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Utility Classes */
.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ========================================
   CONTROLE DE MOCKUPS - VERSÃO CORRIGIDA
   ======================================== */

/* Reset - esconde ambos por padrão */
.mobile-only,
.desktop-tablet-only {
    display: none;
}

/* Mobile: até 667px (celulares em portrait) - MOSTRA CELULAR */
@media (max-width: 667px) {
    .mobile-only {
        display: flex !important;
    }
    
    .desktop-tablet-only {
        display: none !important;
    }
}

/* Tablets e Desktop: acima de 668px - MOSTRA TABLET */
@media (min-width: 668px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-tablet-only {
        display: flex !important;
    }
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: all var(--transition-normal);
    height: var(--nav-height);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6) var(--space-4) var(--space-2);
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    padding-left: 0 !important;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 0 0 auto;
    margin-left: 25px !important;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: fit-content;
    cursor: pointer;
    transition: all var(--transition-normal);
    border-radius: var(--radius-md);
    padding: var(--space-1);
}

.logo-container:hover {
    transform: scale(1.02);
    background: rgba(102, 126, 234, 0.05);
}

.logo-container:active {
    transform: scale(0.98);
    background: rgba(102, 126, 234, 0.1);
}

.logo-img {
    width: auto;
    height: 45px;
    max-width: 200px;
    min-width: 80px;
    transition: all var(--transition-normal);
    object-fit: contain;
    display: block;
}

.logo-container:hover .logo-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.logo-container:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

.logo-img--footer {
    height: 60px;
    max-width: 250px;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-600);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.nav-cta .btn-nav {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    font-size: 0.875rem;
    white-space: nowrap;
}

.nav-cta .btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-nav-secondary {
    background: transparent;
    color: var(--primary-600);
    padding: var(--space-2) var(--space-4);
    border: 2px solid var(--primary-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-normal);
    font-size: 0.95rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-nav-secondary:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-nav-secondary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: auto;
    padding: calc(var(--nav-height) + clamp(1.5rem, 3vh, 3rem)) 0 clamp(1.5rem, 3vh, 3rem);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-16);
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hero-content { 
    animation: slideInLeft 1s ease; 
}

.hero-title {
    font-size: var(--font-size-h1);
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--gray-900);
}

.hero-title .line-1, 
.hero-title .line-2, 
.hero-title .line-3 {
    display: inline-block;
    white-space: nowrap;
    line-height: 1.1;
}

.highlight-word {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-subheading {
    font-size: 1.2rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-900);
    margin-top: var(--space-4);
    margin-bottom: var(--space-4);
    line-height: 1.3;
    max-width: 600px;
    background: rgba(37, 99, 235, 0.08);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-500);
    position: relative;
}

.hero-subheading::before {
    content: '★';
    color: #f59e0b;
    margin-right: var(--space-2);
    font-weight: bold;
}

.highlight-bold {
    color: var(--gray-900);
    font-weight: var(--font-weight-bold);
}

.highlight-underline {
    color: var(--gray-900);
    font-weight: var(--font-weight-bold);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease;
}

/* ========================================
   NOVA ESTRUTURA DE BENEFÍCIOS
   ======================================== */

.benefits-bullets {
    margin-bottom: var(--space-8);
}

.bullet-item {
    font-size: 1.2rem;
    color: var(--gray-700);
    margin-bottom: var(--space-1);  /* ← Muda para 0.25rem */
    line-height: 1.6;
}

.bullet-item strong {
    color: var(--primary-600);
}

.bullet-item.highlight {
    white-space: normal !important;
    font-size: 1.4rem;
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: rgba(102, 126, 234, 0.05);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-500);
    max-width: 100%;
    width: fit-content;
    margin-left: 0;
    margin-right: auto;
    line-height: 1.4;
    color: var(--gray-900);
}

.bullet-item.highlight strong {
    color: var(--gray-900);
}

.highlight-second-line {
    display: block;
    text-align: center;
    color: var(--gray-900);
}

.bullet-item.highlight .highlight-second-line strong {
    color: var(--primary-600) !important;
    font-weight: var(--font-weight-bold);
}

/* ========================================
   CTAs E BOTÕES - VERSÃO FINAL E ESTÁVEL
   ======================================== */

.hero-cta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    flex-wrap: nowrap;
}

.btn-primary,
.btn-secondary {
    font-size: 0.95rem;
    padding: 0.9rem 3.2rem;
    border-radius: 60px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: all 0.2s ease;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    font-weight: var(--font-weight-bold);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-600);
    border: 2px solid rgba(102, 126, 234, 0.3);
    font-weight: var(--font-weight-semibold);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-500);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.btn-icon {
    font-size: 1.2rem;
}

/* ========================================
   HERO VISUAL - PHONE MOCKUP (MOBILE)
   ======================================== */
.phone-mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.phone-frame {
    width: 320px;
    height: 640px;
    max-width: 90vw;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal);
    margin: 0 auto;
    clip-path: inset(0 round 40px); /* ADICIONE ESTA LINHA: */
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    pointer-events: none;
    border-radius: 40px;
}

.phone-header {
    height: 44px;
    background: #000;
    border-radius: 28px 28px 0 0;
    position: relative;
}

.phone-header::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: white;
    font-size: 14px;
    font-weight: var(--font-weight-semibold);
}

.indicators {
    display: flex;
    gap: 4px;
}

.phone-screen {
    height: calc(100% - 44px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 28px 28px;
    overflow: hidden;
    position: relative;
}

.real-app-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 28px 28px;
    display: block;
}

/* ========================================
   HERO VISUAL - TABLET MOCKUP (DESKTOP/TABLET)
   ======================================== */
.tablet-mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.tablet-frame {
    width: 600px;
    height: 450px;
    max-width: 90vw;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 25px;
    padding: 22px;
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal);
    margin: 0 auto;
    aspect-ratio: 4/3;
    /* FIX: clip-path resolve o problema dos wedges cinzas que apareciam nos cantos 
       inferiores devido ao conflito entre border-radius do frame e elementos internos */
    clip-path: inset(0 round 25px); 
}

.tablet-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    pointer-events: none;
    border-radius: 25px;
}

.tablet-header {
    height: 24px;
    background: #000;
    border-radius: 15px 15px 0 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tablet-camera {
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tablet-screen {
    height: calc(100% - 24px);
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
    overflow: hidden;
    position: relative;
}

.tablet-screen .real-app-screen {
    width: auto;
    height: 100%;
    object-fit: contain;
    border-radius: 0 0 15px 15px;
    display: block;
    margin: 0 auto;
}

/* ========================================
   ANIMAÇÕES DA HERO SECTION
   ======================================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   DEMO VIDEO SECTION - VERSÃO LARGE
   ======================================== */
.demo-video-clean {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    text-align: center;
}

.demo-content-focused {
    max-width: 900px;
    margin: 0 auto;
}

.demo-header-clean h2 {
    font-size: var(--font-size-h2-section);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.video-container-focused {
    margin-bottom: 1.5rem;
}

.video-wrapper-clean {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    aspect-ratio: 16/9;
    transition: transform 0.3s ease;
}

.demo-cta-focused {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.btn-demo-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    min-width: 300px;
}

.btn-demo-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.demo-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin: 0;
    font-weight: 500;
}

.video-wrapper-clean iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* ========================================
   AJUSTE FINO PARA ZOOM 110% - SEÇÃO DEMO
   ======================================== */

/* * Este bloco aplica pequenas reduções no espaçamento e na fonte 
 * da seção de demonstração para melhorar a visualização em 
 * níveis de zoom um pouco maiores, como 110%.
*/

/* 1. Reduz o preenchimento vertical geral da seção */
.demo-video-clean {
    padding: 1.5rem 0; /* ANTES: 2rem 0 */
}

/* 2. Reduz o tamanho da fonte e a margem inferior do título */
.demo-header-clean h2 {
    font-size: 1.7rem; /* ANTES: var(--font-size-h2-section) que é 1.8rem */
    margin-bottom: 1.25rem; /* ANTES: 1.5rem */
}

/* 3. Reduz a margem inferior do container do vídeo */
.video-container-focused {
    margin-bottom: 1.25rem; /* ANTES: 1.5rem */
}

/* 4. (Opcional) Leve redução no botão CTA se o acima не for suficiente */
.btn-demo-primary {
    padding: 1.1rem 2.2rem; /* ANTES: 1.25rem 2.5rem */
    font-size: 1.2rem; /* ANTES: 1.3rem */
}

/* ========================================
   PROBLEM SECTION
   ======================================== */
.problem {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.problem .section-header {
    margin-bottom: 1.5rem !important;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-section-header);
}

.section-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header h2 {
    font-size: var(--font-size-h2-section);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-content-gap);
}

.problem-item {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.problem-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.problem-item:hover::before {
    transform: scaleX(1);
}

.problem-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.problem-item h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
    color: var(--gray-900);
}

.problem-item p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========================================
   SCIENCE SECTION
   ======================================== */
.science {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.science .section-header {
    margin-bottom: 1.5rem !important;
}

.science::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238b5cf6' fill-opacity='0.03'%3E%3Ccircle cx='40' cy='40' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.science-content {
    display: block;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.science-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.science-points {
    display: flex;
    flex-direction: column;
    gap: var(--space-content-gap);
}

.science-point {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    max-width: 100%;
    box-sizing: border-box;
}

.science-point:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.science-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-science);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.science-content-item h3 {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
    color: var(--gray-900);
}

.science-content-item p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-2);
}

.science-source {
    font-size: 0.75rem;
    color: var(--science-600);
    font-style: italic;
    font-weight: var(--font-weight-medium);
    background: rgba(139, 92, 246, 0.1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    display: inline-block;
}

/* ========================================
   STUDY MODES SECTION
   ======================================== */
.study-modes {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.study-modes .section-header {
    margin-bottom: 1.5rem !important;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-content-gap);
}

.mode-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-200);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    box-sizing: border-box;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.mode-card:hover::before {
    transform: scaleX(1);
}

.mode-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.mode-card.featured {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
}

.mode-card.featured:hover {
    transform: translateY(-8px);
}

.mode-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6); /* ← Adicione esta linha */
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-md);
}

.mode-card h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-3);
    color: var(--gray-900);
    text-align: center; /* ← Adicione esta linha */
}

.mode-badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
}

.mode-badge.free {
    background: var(--secondary-500);
    color: white;
}

.mode-badge.premium {
    background: var(--accent-500);
    color: white;
}

.mode-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-6);
    font-size: 1rem; /* <-- Adicione esta linha e ajuste o valor */
}

.mode-features {
    margin-bottom: var(--space-6);
    flex-grow: 1;
}

.feature {
    padding: var(--space-2) 0;
    color: var(--gray-700);
    font-size: 1rem;
}

.mode-science {
    font-size: 0.875rem;
    color: var(--science-600);
    background: rgba(139, 92, 246, 0.1);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--science-500);
    font-weight: var(--font-weight-medium);
    margin-top: auto;
}

/* ========================================
   CONTENT SECTION
   ======================================== */
.content-available {
    padding: var(--section-padding) 0;
    background: white;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-content-gap);
    max-width: 1000px;
    margin: 0 auto;
}

.content-tier {
    background: var(--gray-50);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 2px solid var(--gray-200);
    transition: all var(--transition-normal);
    max-width: 100%;
    box-sizing: border-box;
}

.content-tier:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.content-tier.free {
    border-color: var(--secondary-500);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.content-tier.premium {
    border-color: var(--accent-500);
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.content-tier h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-6);
    color: var(--gray-900);
}

.content-list {
    margin-bottom: var(--space-6);
}

.content-item {
    padding: var(--space-2) 0;
    color: var(--gray-700);
    font-size: 0.875rem;
}

.content-note {
    font-size: 0.875rem;
    color: var(--gray-600);
    background: white;
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-500);
}

/* ========================================
   PRICING SECTION - VERSÃO OTIMIZADA
   ======================================== */
.pricing {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.pricing .section-header {
    margin-bottom: 1.5rem !important;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Linha alterada para 3 colunas */
    gap: var(--space-content-gap);
    max-width: 1350px; /* Aumentado para caber 3 cards */
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-6) var(--space-6); /* Reduzido de --space-8 */
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-200);
    position: relative;
    transition: all var(--transition-normal);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    box-sizing: border-box;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.pricing-card.featured {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
}

.pricing-card.featured:hover {
    transform: translateY(-8px);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-md);
}

.plan-header {
    text-align: center;
    margin-bottom: var(--space-4); /* Reduzido de --space-8 */
}

.plan-icon {
    font-size: 2.2rem; /* Reduzido de 3rem */
    margin-bottom: var(--space-2); /* Reduzido de --space-4 */
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: -0.5rem; /* Reduzido de --space-3 */
    color: var(--gray-900);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: var(--space-1); /* Reduzido de --space-2 */
}

.currency {
    font-size: 1.25rem;
    color: var(--gray-500);
}

.amount {
    font-size: 3rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-600);
}

.period {
    font-size: 1rem;
    color: var(--gray-500);
}

.plan-desc {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold); /* ← ADICIONE ESTA LINHA */
}

.plan-features {
    margin-bottom: var(--space-4); /* Reduzido de --space-8 */
    flex-grow: 1;
}

.feature-item {
    padding: var(--space-2) 0; /* Mantido para legibilidade */
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.4; /* Adicionado para melhor legibilidade */
}

.btn-plan {
    width: 100%;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    padding: var(--space-2); /* Reduzido de --space-4 */
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 1rem; /* Reduzido de 1.125rem */
    display: block;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    margin-top: auto;
}

.btn-plan.primary {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.btn-plan:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-plan.primary:hover {
    box-shadow: var(--shadow-xl);
}

/* ==================================================================
   CSS PROMO INDIVIDUAL (VERSÃO FINAL COM ESPAÇADOR)
   ================================================================== */

/* PARTE A: CONTROLES DE EXIBIÇÃO
   ------------------------------------------------------------------ */

/* ESTADO PADRÃO: Mostra a versão original e esconde a versão promo. */
.promo-version,
.promotional-badge {
    display: none;
}
.original-version {
    display: block;
}

/* REGRA MENSAL: Inverte a exibição quando a promo mensal está ativa. */
.pricing-card.promo-mensal-on .original-version {
    display: none;
}
.pricing-card.promo-mensal-on .promo-version,
.pricing-card.promo-mensal-on .promotional-badge {
    display: block;
}

/* REGRA ANUAL: Inverte a exibição quando a promo anual está ativa. */
.pricing-card.promo-anual-on .original-version {
    display: none;
}
.pricing-card.promo-anual-on .promo-version,
.pricing-card.promo-anual-on .promotional-badge {
    display: block;
}

/* PARTE B: LÓGICA DE ALINHAMENTO COM O ESPAÇADOR
   ------------------------------------------------------------------ */

/* Por padrão, o espaçador não ocupa espaço. */
.price-spacer {
    height: 0;
    margin-bottom: 0;
    transition: all 0.2s ease;
}

/* O preço riscado real sempre tem o mesmo tamanho. */
.plan-price-original {
    color: var(--gray-500); 
    font-size: 1.1rem; 
    font-weight: var(--font-weight-medium);
    text-decoration: line-through; 
    height: 1.2rem; 
    margin-bottom: -0.5rem;
    text-align: center;
}

/* REGRA INTELIGENTE: Se QUALQUER promoção estiver ativa... */
.pricing-cards:has(.promo-mensal-on, .promo-anual-on) .price-spacer {
    /* ...ativa o espaçador, dando a ele o mesmo tamanho do preço riscado. */
    height: 1.2rem;
    margin-bottom: -0.5rem;
}


/* PARTE C: ESTILOS VISUAIS
   ------------------------------------------------------------------ */
.promotional-badge {
    position: absolute; top: 24px; right: -45px; background: var(--accent-500);
    color: white; padding: var(--space-2) var(--space-12); transform: rotate(45deg);
    width: 200px; text-align: center; font-size: 0.8rem; font-weight: var(--font-weight-bold);
    text-transform: uppercase; box-shadow: var(--shadow-md); letter-spacing: 0.5px;
    z-index: 4; overflow: hidden;
}

.pricing-card.premium.featured {
    position: relative; overflow: hidden;
}

.value-badge {
    background: var(--secondary-500); color: white; font-size: 0.8rem;
    font-weight: var(--font-weight-bold); padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full); text-align: center; position: absolute;
    top: 4px; left: 50%; transform: translateX(-50%); z-index: 3;
    width: max-content;
}

/* ========================================
   FAQ SECTION STYLES
   ======================================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid var(--gray-200);
}

.faq-item-accordion {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    /* Reset de botão */
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    
    /* Layout e espaçamento */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0.5rem;
    text-align: left;
    
    /* Tipografia */
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-800);
    
    /* Transição */
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-600);
}

.faq-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-600);
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform var(--transition-normal);
}

/* A mágica da animação de expandir/recolher */
.faq-answer-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-answer-accordion p {
    color: var(--gray-600);
    line-height: 1.6;
    padding: 0 0.5rem 1.5rem;
}

/* Estilos quando o item está ativo (aberto) */
.faq-item-accordion.active .faq-question {
    color: var(--primary-600);
    font-weight: var(--font-weight-semibold);
}

.faq-item-accordion.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item-accordion.active .faq-answer-accordion {
    /* Valor alto para garantir que todo o conteúdo caiba */
    max-height: 300px; 
}

/* Responsividade para mobile */
@media (max-width: 767.98px) {
    .faq-question {
        font-size: 1rem;
        padding: 1.25rem 0.25rem;
    }
    .faq-answer-accordion p {
        padding: 0 0.25rem 1.25rem;
    }
}

/* Estilos para lista dentro do FAQ */
.faq-answer-accordion ul.faq-list {
    list-style-type: disc;
    padding-left: 1.5rem; /* Garante espaço para a bolinha */
    margin-bottom: 1.5rem;
    padding-right: 0.5rem;
}

.faq-answer-accordion ul.faq-list li {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0.75rem; /* Espaço entre os tópicos */    
}

/* Ajuste para mobile para garantir que não quebre */
@media (max-width: 767.98px) {
    .faq-answer-accordion ul.faq-list {
        padding-left: 1.25rem;
    }
    
    .faq-answer-accordion ul.faq-list li {
        font-size: 1rem; /* Ajuste para mobile igual ao texto normal */
    }
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */
.final-cta {
    padding: var(--section-padding) 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: var(--space-6);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    margin-bottom: var(--space-8);
}

.btn-cta-primary {
    background: white;
    color: var(--primary-600);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-xl);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
}

.btn-arrow {
    margin-left: var(--space-2);
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    opacity: 0.9;
}

.benefit-item {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--section-padding) 0 var(--space-4);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    /* Linha alterada para uma nova proporção */
    grid-template-columns: 1fr 3fr; 
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-logo h3 {
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: white;
}

.footer-desc {
    margin-bottom: var(--space-6);
    line-height: 1.6;
    color: var(--gray-400);
}

.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 1px solid var(--gray-700);
}

.social-link:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ANTES: repeat(3, 1fr) */
    gap: var(--space-8);
}

.footer-column h4 {
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-4);
    color: white;
}

.footer-column a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: var(--space-2);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-8);
    text-align: center;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ========================================
   UTILITIES & STATES
   ======================================== */

/* Focus States for Accessibility */
.keyboard-navigation .nav-link:focus,
.keyboard-navigation .btn-primary:focus,
.keyboard-navigation .btn-secondary:focus,
.keyboard-navigation .btn-plan:focus,
.keyboard-navigation .btn-nav:focus,
.keyboard-navigation .btn-nav-secondary:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.skip-link:focus {
    top: 6px !important;
}

/* Loading States */
.btn-primary:disabled,
.btn-plan:disabled,
.btn-nav:disabled,
.btn-nav-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Menu Open State */
body.menu-open {
    overflow: hidden;
}

/* Notification Styles */
.notification {
    border-radius: var(--radius-xl);
    font-family: var(--font-sans);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.notification-icon {
    font-size: 1.25rem;
}

.notification-message {
    flex: 1;
    font-weight: var(--font-weight-medium);
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.notification-close:hover {
    opacity: 1;
}

/* Demo Modal Styles */
.demo-overlay {
    backdrop-filter: blur(10px);
}

.demo-modal {
    background: white;
    border-radius: var(--radius-2xl);
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.demo-header h3 {
    margin: 0;
    color: var(--gray-900);
}

.demo-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.demo-close:hover {
    color: var(--gray-700);
}

.demo-content {
    padding: var(--space-6);
}

.demo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

/* ========================================
   RESPONSIVE DESIGN OTIMIZADO PARA MOBILE
   ======================================== */

/* MOBILE: Altura da navbar ajustada para logo grande */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px; /* <-- Mude de 72px para 64px */
    }
    
    .logo-img {
        height: 40px;
        max-width: 150px;
        min-width: 80px;
    }
    
    .logo-img--footer {
        height: 50px;
        max-width: 200px;
    }
}

/* DESKTOP GRANDE: Mais compacto */
@media (min-width: 1280px) {
    html { font-size: 15px; }
    
    :root {
        --section-padding: clamp(2rem, 4vh, 3rem);
        --section-gap: clamp(1rem, 2vh, 1.5rem);
        --space-section-header: clamp(1.5rem, 3vh, 2rem);
        --space-content-gap: clamp(1rem, 2vh, 1.5rem);
    }
    
    .hero-container { gap: var(--space-12); }
    .phone-frame { width: 300px; height: 600px; }
    .tablet-frame { width: 580px; height: 435px; }
    .section-header { margin-bottom: var(--space-12); }
    .section-header p { font-size: 1.125rem; }
    
    .modes-grid,
    .problem-grid,
    .pricing-cards,
    .content-grid { gap: var(--space-6); }
    
    .mode-card,
    .problem-item,
    .science-point,
    .pricing-card,
    .content-tier { padding: var(--space-6); }        
}

/* DESKTOP PADRÃO E LAPTOPS MENORES (CORRIGIDO) */
@media (min-width: 1024px) and (max-width: 1279.98px) {
    html { font-size: 15px; }
    
    :root {
        --section-padding: clamp(2rem, 4vh, 3rem);
        --section-gap: clamp(1rem, 2vh, 1.5rem);
        --space-section-header: clamp(1.5rem, 3vh, 2rem);
        --space-content-gap: clamp(1rem, 2vh, 1.5rem);
    }
    
    .hero-container {
        gap: clamp(2rem, 5vw, 4rem);
        align-items: center;
    }

    .phone-frame {
        width: 280px !important;
        height: 560px !important;
    }
    
    .tablet-frame {
        width: 520px !important;
        height: 390px !important;
    }

    .section-header { margin-bottom: var(--space-12); }
    .section-header p { font-size: 1.1rem; }

    .benefits-bullets {
    text-align: left;
    }

    /* === INÍCIO DO CÓDIGO DE CORREÇÃO P/ IPAD PRO === */
    .hero-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "headline"
            "visual"
            "subheading"
            "details";
        gap: var(--space-4);
        text-align: center;
    }

    .hero-content {
        display: contents;
    }

    .hero-visual { 
        grid-area: visual; 
        order: 2;
    }

    .hero-details { 
        grid-area: details; 
        order: 4;
    }

    .hero-subheading {
        font-size: 1.15rem; /* (Mantendo o tamanho da fonte do tablet) */
        margin-top: 0;
        text-align: center;
        grid-area: subheading;
        order: 3;
    }

    .tablet-frame {
        /* Garante centralização no grid */
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        margin-bottom: 1.5rem;
        /* flex-direction: column; <-- REMOVIDO */
        gap: var(--space-4); /* <-- MUDADO para consistência com desktop */
        /* align-items: center; <-- REMOVIDO */
        justify-content: center; /* <-- ADICIONADO para centralizar */
    }
    /* === FIM DO CÓDIGO DE CORREÇÃO === */
}

/* FIX HERO SECTION - Otimização para tablets e telas intermediárias (CORRIGIDO) */
@media (min-width: 768px) and (max-width: 1023.98px) {
    :root {
        --space-section-header: clamp(1.5rem, 3vh, 2rem);
        --space-content-gap: clamp(1rem, 2vh, 1.5rem);
        /* ========== AJUSTE DE FONTES PARA TABLET ========== */
        --font-size-h1: 2.4rem;
        --font-size-h2-section: 1.7rem;
    }
    
    .hero {
        padding: calc(var(--nav-height) + 2rem) 0 3rem;
        min-height: auto;
        display: flex;
        align-items: center;
    }
    
    .hero-container {
        /* VÁRIAS MUDANÇAS AQUI PARA USAR O LAYOUT DE GRID DO MOBILE */
        display: grid; /* <-- MUDANÇA */
        grid-template-columns: 1fr; /* <-- MUDANÇA */
        grid-template-areas: /* <-- MUDANÇA */
            "headline"
            "visual"
            "subheading"
            "details";
        gap: var(--space-4); /* <-- MUDANÇA (usando o gap do mobile) */
        text-align: center; /* <-- MUDANÇA (adicionado) */
        /* padding-top: 1rem; (removido) */
        /* align-items: center; (removido) */
    }
    
    .hero-title { 
        margin-bottom: 1.5rem;
    }

    .hero-subheading {
        font-size: 1.15rem;
        margin-top: 0; /* <-- MUDANÇA (era var(--space-3)) */
        text-align: center;
        grid-area: subheading; /* <-- MUDANÇA (adicionado) */
        order: 3; /* <-- MUDANÇA (adicionado) */
    }

    .hero-content {
        display: contents; /* <-- MUDANÇA (era flex-shrink: 1) */
    }

    .hero-visual {
        /* flex-shrink: 0; (removido) */
        grid-area: visual; /* <-- MUDANÇA (adicionado) */
        order: 2; /* <-- MUDANÇA (adicionado) */
    }

    .benefits-bullets {
    text-align: left;
    }

    /* === INÍCIO DO CÓDIGO DO MENU HAMBÚRGUER (COLADO AQUI) === */
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        background: #fff;
        flex-direction: column;
        gap: var(--space-4);
        padding: 1.5rem;
        border-top: 1px solid var(--gray-200);
        box-shadow: var(--shadow-xl);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-toggle { display: flex; }
    
    .nav-cta {
        flex-direction: column;
        width: 100%;
        gap: var(--space-3);
        margin-top: var(--space-4);
        align-items: center;
    }
    
    .btn-nav-secondary,
    .btn-nav {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: var(--space-3) var(--space-4);
    }
    
    .nav-cta .btn-nav {
        background: var(--gradient-primary) !important;
        color: white !important;
        padding: var(--space-3) var(--space-4) !important;
        border-radius: var(--radius-lg) !important;
        text-decoration: none !important;
        font-weight: var(--font-weight-semibold) !important;
        font-size: 0.875rem !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 280px !important;
        box-sizing: border-box !important;
        -webkit-text-align-last: center !important;
        -webkit-appearance: none !important;
        -webkit-box-align: center !important;
        -webkit-box-pack: center !important;
    }
    
    .nav-cta .btn-nav-secondary {
        background: var(--primary-50) !important;
        color: var(--primary-700) !important;
        border: 2px solid var(--primary-300) !important;
        padding: var(--space-3) var(--space-4) !important;
        border-radius: var(--radius-lg) !important;
        text-decoration: none !important;
        font-weight: var(--font-weight-semibold) !important;
        font-size: 0.875rem !important;
        box-shadow: var(--shadow-sm) !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 280px !important;
        box-sizing: border-box !important;
        -webkit-text-align-last: center !important;
        -webkit-appearance: none !important;
        -webkit-box-align: center !important;
        -webkit-box-pack: center !important;
    }
    /* === FIM DO CÓDIGO DO MENU HAMBÚRGUER === */

    /* REGRA NOVA ADICIONADA DO MOBILE PARA ORDENAÇÃO */
    .hero-details {  /* <-- MUDANÇA (bloco inteiro adicionado) */
        grid-area: details; 
        order: 4;
    }
    
    .phone-frame { 
        width: 260px !important;
        height: 520px !important;
        max-width: 40vw;
    }
    
    .tablet-frame { 
        width: 480px !important;
        height: 360px !important;
        max-width: 75vw;
        /* Adicionado margin: auto para garantir centralização no grid */
        margin-left: auto; /* <-- MUDANÇA (adicionado) */
        margin-right: auto; /* <-- MUDANÇA (adicionado) */
    }
    
    .hero-cta {
        margin-bottom: 1.5rem;
        /* flex-direction: column; <-- REMOVIDO */
        gap: var(--space-4); /* <-- MUDADO para consistência com desktop */
        /* align-items: center; <-- REMOVIDO */
        justify-content: center; /* <-- ADICIONADO para centralizar */
    }  
    
    .section-header p { font-size: 1.1rem; }
    
    .modes-grid,
    .problem-grid,
    .pricing-cards,
    .content-grid { gap: var(--space-6); }
    
    .mode-card,
    .problem-item,
    .science-point,
    .pricing-card,
    .content-tier { padding: var(--space-6); }
}

/* FIX para telas específicas problemáticas */
@media (min-width: 768px) and (max-width: 1024px) and (min-height: 600px) and (max-height: 900px) {
    .hero {
        min-height: 80vh;
    }
    
    .hero-container {
        gap: 1.5rem;
        align-items: center;
    }
    
    .phone-frame {
        width: 220px !important;
        height: 440px !important;
    }
    
    .tablet-frame {
        width: 420px !important;
        height: 315px !important;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* MOBILE: Correções principais */
@media (max-width: 767.98px) {
    :root {
        --section-padding: 1.5rem;
        --section-gap: 0.75rem;
        --space-section-header: 1rem;
        --space-content-gap: 0.75rem;
        /* ========== AJUSTE DE FONTES PARA MOBILE ========== */
        --font-size-h1: 2.0rem;
        --font-size-h2-section: 1.5rem;
    }
    
    .container { 
        padding: 0 1rem; 
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .nav-container { 
        padding: var(--space-3) var(--space-4); 
    }
    
    .hero-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "headline"
            "visual"
            "subheading" /* <-- ADICIONE ESTA LINHA */
            "details";
        gap: var(--space-4);
        text-align: center;
    }
    
    .hero-content {
        display: contents;
    }
    
    .hero-headline { 
        grid-area: headline;
        order: 1;
    }
    
    .hero-visual { 
        grid-area: visual; 
        order: 2;
    }
    
    .hero-details { 
        grid-area: details; 
        order: 4; /* <-- MUDE DE 3 PARA 4 */
    }

    .benefits-bullets {
        text-align: left;
    }
    
    .hero {
        padding: calc(var(--nav-height) + 1rem) 0 1.5rem;
    }
    
    .hero-title { 
        line-height: 1.0;
        margin-bottom: var(--space-2);
    }

    .hero-subheading {
        font-size: 1.1rem;
        margin-top: 0; /* <-- MUDE DE var(--space-3) PARA 0 */
        text-align: center;
        grid-area: subheading; /* <-- ADICIONE ESTA LINHA */
        order: 3; /* <-- ADICIONE ESTA LINHA */
    }
 
    .phone-frame { 
        width: 280px; 
        height: 560px; 
        max-width: 85vw;
    }
    
    .tablet-frame { 
        width: 380px; 
        height: 285px; 
        max-width: 90vw;
        border-radius: 20px;
        padding: 16px;
    }
    
    .tablet-header {
        height: 20px;
        border-radius: 12px 12px 0 0;
    }
    
    .tablet-camera {
        width: 8px;
        height: 8px;
    }
    
    .tablet-screen {
        border-radius: 0 0 12px 12px;
    }
    
    .tablet-screen .real-app-screen {
        border-radius: 0 0 12px 12px;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
        background: #fff;
        flex-direction: column;
        gap: var(--space-4);
        padding: 1.5rem;
        border-top: 1px solid var(--gray-200);
        box-shadow: var(--shadow-xl);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-toggle { display: flex; }
    
    .nav-cta {
        flex-direction: column;
        width: 100%;
        gap: var(--space-3);
        margin-top: var(--space-4);
        align-items: center;
    }
    
    .btn-nav-secondary,
    .btn-nav {
        width: 100%;
        justify-content: center;
        padding: var(--space-3) var(--space-4);
    }
    
    .nav-cta .btn-nav {
        background: var(--gradient-primary) !important;
        color: white !important;
        padding: var(--space-3) var(--space-4) !important;
        border-radius: var(--radius-lg) !important;
        text-decoration: none !important;
        font-weight: var(--font-weight-semibold) !important;
        font-size: 0.875rem !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        -webkit-text-align-last: center !important;
        -webkit-appearance: none !important;
        -webkit-box-align: center !important;
        -webkit-box-pack: center !important;
    }
    
    .nav-cta .btn-nav-secondary {
        background: var(--primary-50) !important;
        color: var(--primary-700) !important;
        border: 2px solid var(--primary-300) !important;
        padding: var(--space-3) var(--space-4) !important;
        border-radius: var(--radius-lg) !important;
        text-decoration: none !important;
        font-weight: var(--font-weight-semibold) !important;
        font-size: 0.875rem !important;
        box-shadow: var(--shadow-sm) !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        -webkit-text-align-last: center !important;
        -webkit-appearance: none !important;
        -webkit-box-align: center !important;
        -webkit-box-pack: center !important;
    }
    
    .problem,
    .science,
    .study-modes,
    .pricing,
    .content-available,
    .demo-video {
        padding: var(--section-padding) 0;
    }
    
    .final-cta {
        padding: 1.5rem 0;
    }
    
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .section-header {
        margin-bottom: var(--space-section-header);
    }
    
    .section-header p { 
        font-size: 1rem; 
    }
    
    .problem-grid,
    .modes-grid,
    .pricing-cards,
    .content-grid,
    .faq-grid,
    .footer-links {
        grid-template-columns: 1fr !important;
        gap: var(--space-content-gap);
    }
    
    .science-point {
        flex-direction: column;
        text-align: center;
        gap: var(--space-3);
        align-items: center;
    }
    
    .science-icon {
        align-self: center;
    }
    
    .mode-card,
    .problem-item,
    .science-point,
    .pricing-card,
    .content-tier {
        padding: 1.25rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 2rem;
        font-size: 1.1rem;
        min-width: 0;
        justify-content: center;
        border-radius: 50px;
    }
    
    .btn-icon {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .cta-content p {
        margin-bottom: 1.5rem;
    }
    
    .demo-footer { 
        flex-direction: column; 
        gap: var(--space-4); 
    }

    .demo-video-clean {
        padding: 2rem 0;
    }
    
    .demo-header-clean h2 {
        margin-bottom: 2rem;
    }
    
    .video-container-focused {
        margin-bottom: 2rem;
    }
    
    .video-wrapper-clean {
        margin: 0; /* <-- Altere aqui */
        border-radius: 12px;
    }

    .pricing-cards {
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    .btn-demo-primary {
        width: 100%;
        max-width: 300px;
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }    
}

/* SMALL MOBILE: Logo ainda maior proporcionalmente */
@media (max-width: 480px) {
    :root {
        --section-padding: 1.25rem;
        --section-gap: 0.5rem;
        --space-section-header: 0.75rem;
        --space-content-gap: 0.5rem;
        /* ========== AJUSTE DE FONTES PARA MOBILE PEQUENO ========== */
        --font-size-h1: 1.5rem;
        --font-size-h2-section: 1.4rem;
    }
    
    .container { padding: 0 0.75rem; }

    .pricing-cards {
        padding: 0 0.75rem;
        box-sizing: border-box;
    }

    /* 1. Posiciona o badge "58%" para baixo, saindo da faixa */
    .pricing-card.promo-anual-on .value-badge {
        top: 30px; 
    }

    /* 2. Empurra o header (estrela, título) para baixo, para dar espaço ao badge */
    .pricing-card.promo-anual-on .plan-header {
        /* O padding normal é 1.25rem (20px). 
           Vamos adicionar mais 30px para o badge.
           Novo padding-top: 50px */
        padding-top: 50px; 
    }
    
    .hero {
        padding: calc(var(--nav-height) + 0.75rem) 0 1.25rem;
    }
    
    .hero-title { 
        line-height: 0.95;
        margin-bottom: var(--space-1);
    }

    /* ADICIONE A NOVA REGRA AQUI */
    .hero-headline {
        margin-bottom: 0.25rem; /* ANTES: -0.75rem */
    }

    .hero-subheading {
        font-size: 1rem;
        margin-top: 0; /* <-- MUDE DE var(--space-2) PARA 0 */
    }  

    .hero-container {
        gap: var(--space-3) !important;
    }
    
    .phone-frame { 
        width: 248px; 
        height: 496px; 
        max-width: 80vw;
    }
    
    .tablet-frame { 
        width: 320px; 
        height: 240px; 
        max-width: 85vw;
    }
    
    .logo-img {
        height: 35px;
        max-width: 120px;
        min-width: 70px;
    }

    .logo-img--footer {
        height: 40px;
    }
    
    .mode-card,
    .problem-item,
    .science-point,
    .pricing-card,
    .content-tier {
        padding: 1rem;
    }
    
    .mode-icon { 
        width: 60px; 
        height: 60px; 
        font-size: 1.5rem; 
    }
    
    .science-icon { 
        width: 40px; 
        height: 40px; 
        font-size: 1.25rem; 
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        max-width: 240px;
        border-radius: 40px;
    }
    
    .btn-icon {
        font-size: 1rem;
    }
    
    .nav-cta .btn-nav,
    .nav-cta .btn-nav-secondary {
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
        max-width: 240px !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .nav-cta {
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Prevent zoom on input focus (iOS) */
@media screen and (max-width: 767.98px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea {
        font-size: 16px !important;
    }
}

/* ========================================
   ACESSIBILIDADE / IMPRESSÃO
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .section-header,
    .problem-item,
    .science-point,
    .mode-card,
    .pricing-card,
    .content-tier,
    .video-wrapper-large {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .shape, .lacuna { animation: none; }
}

@media print {
    .navbar, .final-cta, .demo-overlay, .demo-video { display: none !important; }
    .hero { padding-top: 0; }
    * { color: #000 !important; background: #fff !important; }
}

@media (prefers-contrast: high) {
    :root {
        --primary-500: #0000ff;
        --secondary-500: #008000;
        --gray-600: #000000;
        --gray-800: #000000;
    }
    
    .btn-primary, .btn-secondary, .btn-nav, .btn-nav-secondary, .btn-video-cta-large {
        border: 2px solid currentColor;
    }
}

@supports selector(:focus-visible) {
    .nav-link:focus { outline: none; }
    .nav-link:focus-visible {
        outline: 2px solid var(--primary-500);
        outline-offset: 2px;
    }
}

/* Logo responsividade adicional para Retina */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: auto;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */
.btn-primary,
.btn-secondary,
.btn-nav,
.btn-nav-secondary,
.btn-video-cta-large,
.pricing-card,
.problem-item,
.mode-card,
.phone-frame,
.tablet-frame,
.video-wrapper-large,
.logo-img {
    will-change: transform;
    transform: translateZ(0);
}

.hero-bg,
.final-cta::before,
.science::before,
.demo-video::before {
    will-change: auto;
}

img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* ========================================
   BROWSER SPECIFIC FIXES
   ======================================== */
@supports (-webkit-appearance: none) {
    .phone-frame,
    .tablet-frame,
    .video-wrapper-large,
    .logo-img {
        -webkit-transform: translateZ(0);
        -webkit-backface-visibility: hidden;
    }
}

@-moz-document url-prefix() {
    .gradient-text {
        background: var(--primary-600);
        color: var(--primary-600);
    }
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-500);
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) var(--gray-100);
}

/* ========================================
   SELECTION STYLES
   ======================================== */
::selection {
    background: var(--primary-500);
    color: white;
}

::-moz-selection {
    background: var(--primary-500);
    color: white;
}

/* ========================================
   FIX MOBILE HORIZONTAL SCROLL
   ======================================== */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative;
}

body {
    -webkit-overflow-scrolling: touch;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

.shape {
    max-width: 100vw !important;
    max-height: 100vh !important;
}

.hero-bg, 
.bg-shapes {
    max-width: 100vw !important;
    overflow: hidden !important;
}

@media (max-width: 767.98px) {
    .container,
    .nav-container,
    .hero-container {
        max-width: 100vw;
        padding-left: clamp(0.75rem, 4vw, 1.5rem);
        padding-right: clamp(0.75rem, 4vw, 1.5rem);
        box-sizing: border-box;
    }
    
    .mode-card,
    .problem-item,
    .pricing-card,
    .science-point,
    .content-tier {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-cta,
    .cta-buttons {
        max-width: 100%;
        flex-wrap: wrap;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-cta-primary,
    .btn-video-cta-large {
        max-width: 100%;
        min-width: 0;
        flex: 1 1 auto;
    }
}

@media (max-width: 1023.98px) {
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .shape,
    .demo-overlay,
    .notification {
        max-width: 100vw !important;
    }
}

.section,
section,
.hero,
.demo-video,
.problem,
.science,
.study-modes,
.pricing,
.final-cta,
.footer {
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

/* Tablet - valor intermediário */
@media (min-width: 481px) and (max-width: 768px) {
    .nav-brand {
        margin-left: 25px !important;
    }
}

/* ==============================================================
   Estilos para as páginas de Termos e Política de Privacidade
   ============================================================== */
.legal-page {
    padding-top: 4rem;
    padding-bottom: 4rem;
    max-width: 800px; /* Limita a largura para melhor leitura */
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-page h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0.5rem;
}

.legal-page p, .legal-page li {
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 1.5rem; /* <--- ADICIONE ISSO AQUI */
}

/* Ajuste de alinhamento para listas (bullet points) nas páginas legais */
.legal-page ul {
    padding-left: 20px;       /* Adiciona o recuo para as bolinhas */
    margin-bottom: 20px;      /* Espaço após a lista inteira */
    list-style-position: outside; /* Garante que o texto alinhado não fique embaixo da bolinha */
}

.legal-page li {
    margin-bottom: 8px;       /* Espaço entre cada item da lista */
    padding-left: 5px;        /* Espaço extra entre a bolinha e o texto */
}

/* ========================================
   FIX ACESSIBILIDADE SKIP-LINK
   ======================================== */
.skip-link {
    position: fixed !important;
    top: -100px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
    z-index: 10001;
    padding: 8px 16px;
    background: var(--primary-600);
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* ========================================
   END OF STYLES
   ======================================== */