/* CSS Otimizado e Simplificado v4.1 */
:root {
    --primary-color: #FF548B;
    --secondary-color: #01E884;
    --green-dark: #00A960;
    --text-color: #242424;
    --text-light: #91999D;
    --background-color: #FFFFFF;
    --light-background: #F8F8F8;
    --card-background: #F3F4F6;
    --pink-light: #FFD2E0;
    --pink-footer: #FFE8EF;
}

/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
}

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

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.main-header .logo img {
    width: 150px;
    height: auto;
}

.main-nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

.main-nav a.btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 25px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.main-nav a.btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Botão Padrão */
.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
}

/* Seção Hero */
.hero {
    display: flex;
    align-items: center;
    padding: 40px 0;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 55px;
    line-height: 1.2;
}

.hero-text h1 .highlight-secondary {
    color: var(--secondary-color);
}

.hero-text h1 .highlight-primary {
    color: var(--primary-color);
}

.hero-text p {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    color: var(--text-light);
    margin: 20px 0 30px;
}

.hero-image {
    flex: 1;
    position: relative;
    text-align: center;
}

.hero-image .background-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 508px;
    max-height: 508px;
    background-color: var(--pink-light);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Seção "Como Funciona" com fundo rosa */
.how-it-works {
    position: relative;
    padding: 60px 0;
    margin-top: 60px;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 1200px; /* Limita a largura máxima do fundo */
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 50px;
    z-index: -1;
}


.how-it-works h2 {
    font-size: 30px;
    color: white;
    margin-bottom: 50px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--card-background);
    padding: 30px 20px;
    border-radius: 50px;
    text-align: center;
}

.feature-card h3 {
    font-size: 17px;
    margin-bottom: 15px;
}

.feature-card h3 span {
    color: #067742;
}

.feature-card img {
    max-width: 100%;
    height: auto;
}

/* Seção de Passos */
.steps-section {
    padding: 80px 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-text {
    flex: 1;
}

.step-text h3 {
    font-size: 30px;
    margin-bottom: 15px;
}

.step-text .pink-text { color: var(--primary-color); }
.step-text .green-text { color: var(--green-dark); }

.step-text p {
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
}

.step-text .btn {
    margin-top: 20px;
}

.step-image {
    flex: 1;
    position: relative;
    text-align: center;
}

.step-image img {
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.step-image .background-circle {
    position: absolute;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.step-image .circle-pink { background-color: var(--pink-light); }
.step-image .circle-green { background-color: var(--secondary-color); opacity: 0.2; }

/* Seção de Funcionalidades */
.functions {
    background-color: var(--green-dark);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.functions h2 {
    font-size: 30px;
    margin-bottom: 50px;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 50px;
}

.function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.function-item .icon-wrapper {
    background-color: white;
    border-radius: 15px;
    width: 49px;
    height: 49px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.function-item .icon-wrapper svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-color);
}

.function-item p {
    font-size: 15px;
    font-weight: 400;
}

.function-item b {
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.functions .btn {
    margin-top: 50px;
}

/* Seção de Preços */
.pricing {
    padding: 80px 0;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.plan {
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 20px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    background-color: white;
    overflow: hidden;
}

.plan-header {
    background-color: var(--green-dark);
    color: white;
    border-radius: 30px;
    padding: 20px;
    margin-bottom: 20px;
}

.plan-header h3 {
    font-size: 28px;
    margin: 0;
}

.plan-header p {
    font-size: 20px;
    margin: 5px 0 0;
}

.plan ul {
    list-style: none;
    text-align: left;
    margin: 30px 0;
    padding: 0 10px;
}

.plan ul li {
    margin-bottom: 15px;
}

.plan .btn {
    width: 100%;
}

.plan .disclaimer {
    font-size: 10px;
    margin-top: 15px;
    color: var(--text-light);
}

/* Seção FAQ */
.faq {
    padding: 50px 0 80px;
    text-align: center;
}

.faq h2 {
    font-size: 55px;
    color: var(--secondary-color);
}

.faq > p {
    margin: 15px 0 40px;
}

.faq-container {
    max-width: 700px;
    margin: 0 auto;
}

.faq details {
    background-color: var(--card-background);
    border-radius: 15px;
    margin-bottom: 15px;
    text-align: left;
    overflow: hidden;
}

.faq summary {
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq details .faq-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease-in-out;
}
.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    transition: transform 0.3s ease-in-out;
}
.faq-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}
.faq-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
}
details[open] > summary .faq-icon {
    transform: rotate(180deg);
}
details[open] > summary .faq-icon::after {
    transform: scaleY(0);
}

.faq details[open] > summary {
    background-color: white;
    color: var(--primary-color);
}

.faq details p {
    margin-top: 10px;
    padding-bottom: 20px; /* Adiciona padding ao parágrafo para espaçamento */
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}

/* Footer */
.main-footer {
    background-color: var(--pink-footer);
    padding: 60px 0 20px;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h4 {
    font-size: 15px;
    margin-bottom: 15px;
}

.footer-col a, .footer-col p {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.footer-col .logo-footer { width: 150px; margin-bottom: 10px; }
.footer-col .social-icons { display: flex; gap: 10px; }
.footer-col .social-icons a { display: inline-block; }
.footer-col .social-icons svg {
    width: 28px;
    height: 28px;
    color: var(--text-color);
    transition: color 0.3s ease;
}
.footer-col .social-icons a:hover svg {
    color: var(--primary-color);
}

.footer-col form {
    display: flex;
}

.footer-col input {
    border-radius: 100px;
    border: 1px solid #ddd;
    padding: 8px 12px;
    width: 100%;
}

.footer-col .btn {
    padding: 8px 15px;
    font-size: 12px;
    margin-left: -30px;
    background-color: var(--green-dark);
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow: hidden;
    height: 60px;
    width: 60px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.whatsapp-float .whatsapp-icon,
.whatsapp-float .whatsapp-text {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-float .whatsapp-icon {
    width: 60px;
    height: 60px;
}

.whatsapp-float .whatsapp-icon svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float .whatsapp-text {
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0);
    padding: 0 20px 0 60px;
    font-weight: bold;
    font-size: 16px;
}

/* Animação do botão */
.whatsapp-float.expand {
    width: 200px;
}

.whatsapp-float.expand::before {
    animation: none;
}

.whatsapp-float.expand .whatsapp-icon {
    transform: translateX(-65px);
}

.whatsapp-float.expand .whatsapp-text {
    opacity: 1;
    transform: scale(1);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* Responsividade */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 40px; }
    .hero-image { margin-top: 40px; }
    .step { flex-direction: column !important; text-align: center; }
    .step-image { order: -1; margin-bottom: 30px; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .functions-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .how-it-works::before { border-radius: 30px; }
}

@media (max-width: 768px) {
    .main-header { flex-direction: column; gap: 20px; }
    .main-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 15px; }
    .features-grid { grid-template-columns: 1fr; }
    .functions-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col .social-icons { justify-content: center; }
    .footer-col form { justify-content: center; }
    .how-it-works::before { left: 0; transform: none; width: 100%; border-radius: 0; }
    .how-it-works { padding-left: 0; padding-right: 0; }
}
