/* ==========================================
   GUIA DE DESIGN - ReEnglish Landing
   Sistema de cores, tipografia e espaçamento
   ========================================== */

/* ---------- VARIÁVEIS CSS ---------- */
:root {
    --primary-500: #2563EB;
    --primary-600: #1D4ED8;
    --primary-100: #DBEAFE;
    --accent-500: #F97316;
    --accent-600: #EA580C;
    --accent-100: #FFF7ED;
    --success-500: #10B981;
    --success-100: #D1FAE5;
    --neutral-900: #0F172A;
    --neutral-800: #1E293B;
    --neutral-700: #334155;
    --neutral-500: #64748B;
    --neutral-300: #CBD5E1;
    --neutral-100: #F1F5F9;
    --neutral-50: #F8FAFC;
    --white: #FFFFFF;

    --bg-body: var(--white);
    --bg-section-alt: var(--neutral-50);
    --bg-card: var(--white);
    --bg-footer: var(--neutral-900);
    --text-heading: var(--neutral-900);
    --text-body: var(--neutral-700);
    --text-muted: var(--neutral-500);
    --text-on-dark: var(--neutral-100);
    --border-color: var(--neutral-300);
    --border-light: #E2E8F0;

    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
    --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
    --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

    --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-body);
    background: var(--bg-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; }

/* ---------- HEADER ---------- */
.header-fixo {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-3) 0;
}
.header-fixo .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; color: var(--text-heading); text-decoration: none; }
.nav-desktop { display: flex; gap: var(--space-6); }
.nav-desktop a { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.nav-desktop a:hover { color: var(--primary-500); }
.btn-header {
    display: inline-block; padding: 8px 20px; background: var(--primary-500); color: #fff;
    font-size: 0.9rem; font-weight: 600; border-radius: var(--radius-full); text-decoration: none;
    transition: background 0.2s;
}
.btn-header:hover { background: var(--primary-600); }

/* ---------- HERO ---------- */
.hero { padding: var(--space-20) 0 var(--space-16); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.headline-principal { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; color: var(--text-heading); line-height: 1.15; margin-bottom: var(--space-6); }
.destaque { color: var(--primary-500); }
.subheadline { font-size: 1.15rem; color: var(--text-muted); max-width: 480px; margin-bottom: var(--space-6); line-height: 1.6; }
.hero-prova-social { display: flex; gap: var(--space-4); margin-bottom: var(--space-6); flex-wrap: wrap; }
.hero-destaque { font-size: 0.9rem; font-weight: 600; color: var(--neutral-700); background: var(--neutral-100); padding: 6px 14px; border-radius: var(--radius-full); }
.cta-principal {
    display: inline-block; padding: 16px 36px; background: var(--primary-500); color: #fff;
    font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
    border-radius: var(--radius-md); text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.cta-principal:hover { background: var(--primary-600); transform: translateY(-1px); }
.hero-garantia { font-size: 0.8rem; color: var(--text-muted); margin-top: var(--space-3); }
.hero-card-preview { display: flex; justify-content: center; }
.mini-flashcard { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: var(--space-6); max-width: 340px; box-shadow: var(--shadow-lg); }
.mini-badge { display: inline-block; font-size: 0.7rem; font-weight: 700; background: var(--primary-100); color: var(--primary-500); padding: 2px 10px; border-radius: var(--radius-full); margin-bottom: var(--space-3); }
.mini-front { font-size: 1.05rem; font-weight: 600; color: var(--text-heading); margin-bottom: var(--space-3); }
.mini-back { font-size: 0.9rem; color: var(--text-muted); padding-top: var(--space-3); border-top: 1px solid var(--border-light); }

/* ---------- FILTRO ---------- */
.filtro { padding: var(--space-16) 0; background: var(--bg-section-alt); }
.filtro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.filtro-card { padding: var(--space-8); border-radius: var(--radius-lg); }
.filtro-card h3 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; margin-bottom: var(--space-4); }
.filtro-card ul { padding-left: var(--space-4); font-size: 0.92rem; }
.filtro-card li { margin-bottom: var(--space-2); }
.filtro-sim { background: #D1FAE5; border: 1px solid #A7F3D0; }
.filtro-sim h3 { color: #065F46; }
.filtro-nao { background: #FEE2E2; border: 1px solid #FECACA; }
.filtro-nao h3 { color: #991B1B; }
.filtro-icone { font-size: 1.3rem; display: block; margin-bottom: var(--space-3); }

/* ---------- PROBLEMA / SOLUÇÃO ---------- */
.problema-solucao { padding: var(--space-20) 0; }
.ps-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-6); align-items: center; }
.ps-card { padding: var(--space-8); border-radius: var(--radius-lg); }
.ps-card--problema { background: #FEF2F2; border: 1px solid #FECACA; }
.ps-card--problema h3 { color: #991B1B; }
.ps-card--solucao { background: #D1FAE5; border: 1px solid #A7F3D0; }
.ps-card--solucao h3 { color: #065F46; }
.ps-card h3 { font-family: var(--font-heading); font-weight: 700; margin-bottom: var(--space-4); }
.ps-emoji { font-size: 2rem; display: block; margin-bottom: var(--space-4); }
.ps-lista { list-style: none; font-size: 0.92rem; }
.ps-lista li { margin-bottom: var(--space-2); }
.ps-seta { font-size: 2rem; color: var(--text-muted); }

/* ---------- COMO FUNCIONA ---------- */
.como-funciona { padding: var(--space-20) 0; background: var(--bg-section-alt); }
.section-titulo { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--text-heading); text-align: center; margin-bottom: var(--space-4); }
.passos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-10); }
.passo { text-align: center; padding: var(--space-6); }
.passo-numero { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--primary-500); color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; border-radius: var(--radius-full); margin: 0 auto var(--space-4); }
.passo h4 { font-family: var(--font-heading); font-weight: 700; margin-bottom: var(--space-2); }
.passo p { font-size: 0.9rem; color: var(--text-muted); }
.passos-cta-wrapper { text-align: center; margin-top: var(--space-8); }
.cta-secundario { display: inline-block; padding: 14px 32px; border: 2px solid var(--primary-500); color: var(--primary-500); font-family: var(--font-heading); font-weight: 700; border-radius: var(--radius-md); text-decoration: none; transition: all 0.2s; }
.cta-secundario:hover { background: var(--primary-500); color: #fff; }

/* ---------- CONTEÚDO ---------- */
.conteudo { padding: var(--space-20) 0; }
.conteudo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); margin-top: var(--space-10); }
.conteudo-card { padding: var(--space-6); background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); }
.conteudo-icon { font-size: 1.5rem; display: block; margin-bottom: var(--space-3); }
.conteudo-card h4 { font-family: var(--font-heading); font-weight: 700; margin-bottom: var(--space-2); }
.conteudo-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- DIFERENCIAIS ---------- */
.diferenciais { padding: var(--space-20) 0; background: var(--bg-section-alt); }
.tabela-wrapper { overflow-x: auto; margin-top: var(--space-10); }
.tabela-comp { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tabela-comp th, .tabela-comp td { padding: 12px 10px; border: 1px solid var(--border-light); text-align: center; }
.tabela-comp th { background: var(--neutral-100); font-weight: 700; font-size: 0.8rem; }
.tabela-nota { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-top: var(--space-4); }
.col-destaque { background: var(--primary-100); font-weight: 700; }

/* ---------- GRÁTIS ---------- */
.gratis { padding: var(--space-20) 0; }
.gratis-box { text-align: center; padding: var(--space-12); background: var(--primary-100); border-radius: var(--radius-xl); }
.gratis-box h2 { font-family: var(--font-heading); font-weight: 800; color: var(--primary-600); margin: var(--space-4) 0; }
.gratis-box p { max-width: 500px; margin: 0 auto; color: var(--text-muted); }
.gratis-emoji { font-size: 2.5rem; }

/* ---------- FAQ ---------- */
.faq { padding: var(--space-20) 0; background: var(--bg-section-alt); }
.faq-lista { max-width: 680px; margin: var(--space-10) auto 0; }
.faq-item { border-bottom: 1px solid var(--border-light); padding: var(--space-4) 0; }
.faq-item summary { font-family: var(--font-heading); font-weight: 600; cursor: pointer; padding: var(--space-2) 0; font-size: 1.02rem; }
.faq-item p { padding: var(--space-3) 0; font-size: 0.92rem; color: var(--text-muted); }

/* ---------- CTA FINAL ---------- */
.cta-final { padding: var(--space-20) 0; text-align: center; }
.cta-final-titulo { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--text-heading); margin-bottom: var(--space-4); }
.cta-final-subtitulo { font-size: 1.05rem; color: var(--text-muted); margin-bottom: var(--space-6); }
.cta-final-btn { font-size: 1.2rem; padding: 18px 48px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--bg-footer); color: var(--text-on-dark); padding: var(--space-12) 0 var(--space-6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-8); }
.footer-logo { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; }
.footer-marca p { font-size: 0.85rem; color: var(--neutral-500); margin-top: var(--space-2); }
.footer-links h5, .footer-contato h5 { font-family: var(--font-heading); font-weight: 600; margin-bottom: var(--space-3); font-size: 0.9rem; }
.footer-links a, .footer-contato a { display: block; font-size: 0.85rem; color: var(--neutral-500); text-decoration: none; margin-bottom: var(--space-2); transition: color 0.2s; }
.footer-links a:hover, .footer-contato a:hover { color: var(--white); }
.footer-bottom { text-align: center; font-size: 0.8rem; color: var(--neutral-500); margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,0.1); }

/* ---------- SCROLL REVEAL ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transform: translateY(24px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
  .reveal.visible { transform: translateY(0); }
}

/* ---------- PRECOS ---------- */
.precos { padding: var(--space-20) 0; }
.section-subtitulo { text-align: center; color: var(--text-muted); font-size: 1.05rem; margin-bottom: var(--space-10); }
.precos-grid { display: flex; justify-content: center; margin-bottom: var(--space-8); }
.plano-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: var(--space-8); max-width: 420px; width: 100%; text-align: center; position: relative; }
.plano--destaque { border-color: var(--primary-500); box-shadow: var(--shadow-lg); }
.plano-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent-500); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 4px 16px; border-radius: var(--radius-full); white-space: nowrap; }
.plano-card h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin: var(--space-2) 0 var(--space-1); }
.plano-descricao { font-size: 0.9rem; color: var(--text-muted); margin-bottom: var(--space-6); }
.plano-preco { margin-bottom: var(--space-2); }
.plano-de { display: block; font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; margin-bottom: 2px; }
.plano-moeda { font-size: 1.2rem; font-weight: 600; vertical-align: top; }
.plano-valor { font-size: 3rem; font-weight: 800; font-family: var(--font-heading); color: var(--primary-500); line-height: 1; }
.plano-periodo { font-size: 0.9rem; color: var(--text-muted); }
.plano-parcelamento { font-size: 0.8rem; color: var(--accent-500); font-weight: 600; margin-bottom: var(--space-6); }
.plano-beneficios { list-style: none; text-align: left; font-size: 0.9rem; margin-bottom: var(--space-6); }
.plano-beneficios li { padding: var(--space-2) 0; border-bottom: 1px solid var(--border-light); }
.plano-beneficios li:last-child { border-bottom: none; }
.cta-plano { display: block; padding: 14px 24px; background: var(--primary-500); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; border-radius: var(--radius-md); text-decoration: none; transition: background 0.2s; }
.cta-plano:hover { background: var(--primary-600); }

/* ---------- GARANTIA ---------- */
.garantia-box { max-width: 520px; margin: var(--space-8) auto 0; }
.garantia-grid { display: flex; align-items: flex-start; gap: var(--space-4); background: var(--success-100); border-radius: var(--radius-lg); padding: var(--space-6); }
.garantia-icon { font-size: 2rem; flex-shrink: 0; }
.garantia-grid h3 { font-family: var(--font-heading); font-weight: 700; margin-bottom: var(--space-1); }
.garantia-grid p { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- PAGAMENTO INFO ---------- */
.pagamento-info { text-align: center; margin-top: var(--space-6); }
.pagamento-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: var(--space-2); }
.pagamento-logo { font-size: 1.1rem; font-weight: 700; color: var(--text-body); }
.pagamento-detalhe { font-size: 0.8rem; color: var(--text-muted); margin-top: var(--space-1); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .hero-grid, .filtro-grid, .ps-grid { grid-template-columns: 1fr; }
    .ps-seta { text-align: center; transform: rotate(90deg); }
    .hero { padding: var(--space-12) 0; }
    .headline-principal { font-size: 2.2rem; }
    .passos-grid { grid-template-columns: 1fr; }
    .conteudo-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-titulo { font-size: 1.6rem; }
    .nav-desktop { display: none; }
}

@media (max-width: 480px) {
    .headline-principal { font-size: 1.8rem; }
    .container { padding: 0 16px; }
}

/* ---------- ANIMAÇÕES ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- DARK MODE ---------- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-body: #0F172A; --bg-section-alt: #1E293B; --bg-card: #1E293B; --bg-footer: #020617;
        --text-heading: #F1F5F9; --text-body: #CBD5E1; --text-muted: #94A3B8; --text-on-dark: #CBD5E1;
        --border-color: #334155; --border-light: #334155;
        --neutral-100: #1E293B; --neutral-50: #0F172A;
    }
    .filtro-sim { background: #064E3B; border-color: #065F46; }
    .filtro-sim h3 { color: #A7F3D0; }
    .filtro-nao { background: #7F1D1D; border-color: #991B1B; }
    .filtro-nao h3 { color: #FECACA; }
    .ps-card--problema { background: #7F1D1D; border-color: #991B1B; }
    .ps-card--problema h3 { color: #FECACA; }
    .ps-card--solucao { background: #064E3B; border-color: #065F46; }
    .ps-card--solucao h3 { color: #A7F3D0; }
    .tabela-comp th { background: var(--neutral-100); }
    .col-destaque { background: #1E3A5F; }
    .gratis-box { background: #1E3A5F; }
    .gratis-box h2 { color: #93C5FD; }
    .header-fixo { background: rgba(15,23,42,0.95); }
    .mini-flashcard { background: var(--bg-card); }
}
