/* ==========================================================================
   Modelo de landing page para grupo de WhatsApp: estilos
   Curso de Tráfego Pago · Manda Boa (Aula 03)

   Para mudar as cores, troque as variáveis em :root logo abaixo.
   O resto pode ficar como está.
   ========================================================================== */

:root {
    --primary: #2563eb;      /* azul dos destaques: troque pela cor da sua marca */
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #0088cc;       /* verde do botão (cor do WhatsApp) */
    --accent-dark: #006fa6;
    --bg-light: #f0f7ff;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-medium: #475569;
    --text-light: #64748b;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    background: var(--white);
}

/* Social Proof Badge */
.social-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 32px;
    animation: slideDown 0.6s ease-out;
}

.social-proof-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.social-proof-icon svg {
    width: 20px;
    height: 20px;
}

.social-proof-text {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Headline */
.headline {
    max-width: min(400px, 100%);
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.headline h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    overflow-wrap: break-word;
}

/* Telas bem estreitas: evita o título estourar a largura */
@media (max-width: 400px) {
    .headline h1 {
        font-size: 24px;
    }
}

.headline h1 .highlight {
    color: var(--primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subheadline */
.subheadline {
    max-width: min(320px, 100%);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.subheadline p {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.5;
}

/* CTA Button */
.cta-container {
    animation: fadeInUp 0.6s ease-out 0.6s both;
    margin-bottom: 48px;
    width: 100%;
    max-width: 320px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Envolve o botão para o efeito de pulso */
.cta-pulse-wrap {
    position: relative;
    width: 100%;
    display: flex;
}

.cta-pulse-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 16px;
    z-index: -1;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 136, 204, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 136, 204, 0.5);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Mascot Logo */
.mascot-container {
    animation: fadeInUp 0.6s ease-out 0.8s both;
    max-width: 340px;
    width: 100%;
}

.mascot-logo {
    width: 100%;
    height: auto;
}

/* Hero Content Wrapper */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .hero {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 60px 80px;
        gap: 60px;
        text-align: left;
    }

    .hero-content {
        flex: 1;
        max-width: 500px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .headline h1 {
        font-size: 48px;
    }

    .headline {
        max-width: 500px;
    }

    .subheadline {
        max-width: 400px;
    }

    .subheadline p {
        font-size: 18px;
    }

    .cta-container {
        max-width: 340px;
    }

    .cta-button {
        font-size: 18px;
        padding: 20px 40px;
    }

    .mascot-container {
        flex: 1;
        max-width: 550px;
        display: flex;
        justify-content: flex-end;
    }

    .social-proof-text {
        font-size: 15px;
    }
}

@media (min-width: 1100px) {
    .hero {
        padding: 60px 120px;
    }

    .headline h1 {
        font-size: 52px;
    }

    .mascot-container {
        max-width: 600px;
    }
}

/* Features Section */
.features {
    padding: 60px 24px;
    background: var(--white);
}

.features-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.features-title .highlight {
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
}

@media (min-width: 769px) {
    .features {
        padding: 80px 40px;
    }

    .features-title {
        font-size: 32px;
        margin-bottom: 48px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .feature-card {
        padding: 32px;
    }

    .feature-card h3 {
        font-size: 20px;
    }

    .feature-card p {
        font-size: 15px;
    }
}

/* Brands Section */
.brands {
    padding: 40px 24px;
    background: var(--bg-light);
}

.brands-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    text-align: center;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.brand-logo {
    height: 28px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Nomes das lojas em texto (não dependem de imagem de outro site) */
.brand-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-medium);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
}

@media (min-width: 769px) {
    .brands {
        padding: 60px 40px;
    }

    .brand-logo {
        height: 32px;
    }
}

/* Second CTA Section */
.cta-section {
    padding: 60px 24px;
    text-align: center;
    background: var(--white);
}

.cta-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.cta-section p {
    font-size: 15px;
    color: var(--text-medium);
    margin-bottom: 28px;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .cta-container {
    margin: 0 auto;
}

.cta-section .cta-container::after {
    border-radius: 16px;
}

@media (min-width: 769px) {
    .cta-section {
        padding: 80px 40px;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .cta-section p {
        font-size: 18px;
        max-width: 450px;
    }
}

/* Footer */
footer {
    padding: 24px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--bg-light);
}

footer p {
    font-size: 13px;
    color: var(--text-light);
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.mobile-sticky-cta .cta-button {
    width: 100%;
    font-size: 15px;
    padding: 16px 18px;
    border-radius: 14px;
}

@media (max-width: 768px) {
    .mobile-sticky-cta.visible {
        display: flex;
        gap: 10px;
        animation: slideUp 0.3s ease-out;
    }

    footer {
        padding-bottom: 100px;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .scroll-animate { opacity: 1; transform: none; } }
