/* Variáveis CSS para padronização */
:root {
    --font-poppins: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --color-text-dark: #343a40;
    --color-text-muted: #6c757d;
    --color-primary-green: #4CAF50;
    --color-secondary-green: #66BB6A;
    --color-problem-red: #D84315;
    --color-solution-green: #388E3C;
    --color-highlight-pink: #E91E63;
    --weight-bold: 600;
}

.pricing-section {
    font-family: var(--font-poppins);
    margin: 0 auto;
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    padding: 40px 20px;
    box-sizing: border-box;
    color: var(--color-text-dark);
}

.pricing-container {
    width: 100%;
    max-width: 960px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 50px 30px;
    box-sizing: border-box;
}

/* Savings Highlight Banner - Ajustado para responsividade em mobile */
.savings-highlight {
    background: linear-gradient(90deg, var(--color-primary-green) 0%, var(--color-secondary-green) 100%);
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: var(--weight-bold);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-align: center;
    display: block; /* Garante que se comporte como um bloco */
}

.savings-highlight p {
    margin: 0;
    /* Removido display: flex para permitir que o texto quebre naturalmente */
    white-space: normal; /* Permite que o texto quebre linhas */
    word-break: break-word; /* Força quebra de palavras longas se necessário */
    overflow-wrap: break-word; /* Compatibilidade para quebra de palavras */
}

/* Evita que o valor do "R\$" quebre no meio */
.savings-highlight p b {
    white-space: nowrap;
}

/* Countdown Section */
.countdown-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.countdown-message {
    font-size: 1.25em;
    font-weight: 500;
    color: #495057;
    margin: 0;
}
.countdown-message strong {
    color: var(--color-highlight-pink);
    font-weight: bold;
}
.countdown-action {
    font-size: 1em;
    color: var(--color-text-muted);
    margin: 0;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

#countdown span {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 70px;
    background-color: #343a40;
    color: #fff;
    border-radius: 10px;
    font-size: 2.2em;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}
#countdown span::after {
    content: attr(data-label);
    position: absolute;
    bottom: 8px;
    font-size: 0.35em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Price Comparison Grid */
.price-comparison-grid {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 20px;
}

.price-box {
    flex: 1;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 25px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.price-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.problem-box {
    border: 1px solid #FFECB3;
}
.solution-box {
    border: 1px solid #DCEDC8;
}

.box-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}
.box-title {
    font-size: 1.15em;
    font-weight: var(--weight-bold);
    margin-bottom: 20px;
    color: #495057;
    line-height: 1.3;
}
.problem-box .box-title { color: var(--color-problem-red); }
.solution-box .box-title { color: var(--color-solution-green); }

.box-price {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #212529;
    line-height: 1;
}

.box-price span{
    font-size: 0.5em;
}
.problem-box .box-price { color: var(--color-problem-red); }
.solution-box .box-price { color: var(--color-solution-green); }

.per-month {
    font-size: 0.4em;
    font-weight: 500;
    color: var(--color-text-muted);
    display: block;
    margin-top: -5px;
}

.box-details {
    font-size: 0.9em;
    color: var(--color-text-muted);
    margin-top: 20px;
    line-height: 1.5;
    flex-grow: 1;
}
.box-details strong {
    font-weight: bold;
    color: #495057;
}

/* CTA Area */
.cta-area {
    width: 100%;
    max-width: 500px;
}

.cta-button {
    background: linear-gradient(45deg, #6a0dad, #9c27b0);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(106, 13, 173, 0.3);
    text-decoration: none;
    display: inline-block;
    width: auto;
}

.cta-button:hover {
    background: linear-gradient(45deg, #7b1fa2, #af41c9);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(106, 13, 173, 0.4);
}

/* Closed Banner */
.closed-banner {
    background: #fff3cd;
    color: #856404;
    padding: 30px 35px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.closed-banner p {
    margin: 0;
    line-height: 1.6;
}
.closed-banner p:first-child {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
}
.closed-banner b {
    color: var(--color-highlight-pink);
}

/* Responsiveness */
@media (max-width: 992px) { /* Tablets maiores */
    .pricing-container {
        max-width: 90%;
        padding: 40px 25px;
        gap: 30px;
    }
    .savings-highlight {
        font-size: 1.1em;
        padding: 12px 25px;
    }
    .countdown-message {
        font-size: 1.15em;
    }
    #countdown span {
        min-width: 60px;
        height: 60px;
        font-size: 1.8em;
    }
    #countdown span::after {
        font-size: 0.3em;
        bottom: 6px;
    }
    .price-comparison-grid {
        gap: 20px;
    }
    .box-title {
        font-size: 1.15em;
    }
    .box-price {
        font-size: 2.5em;
    }
    .box-details {
        font-size: 0.85em;
    }
    .cta-area {
        max-width: 100%;
    }
    .cta-button {
        font-size: 1.25em;
        padding: 18px 25px;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) { /* Tablets menores e celulares grandes */
    .pricing-container {
        padding: 30px 20px;
        gap: 25px;
    }
    .savings-highlight {
        font-size: 1em;
        padding: 10px 20px;
    }
    .countdown-message {
        font-size: 1.05em;
    }
    #countdown span {
        min-width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
    #countdown span::after {
        font-size: 0.35em;
    }

    .price-comparison-grid {
        flex-direction: column;
        gap: 20px;
    }
    .price-box {
        padding: 25px 15px;
        max-width: 380px;
        margin: 0 auto;
    }
    .box-title {
        font-size: 1.05em;
        margin-bottom: 15px;
    }
    .box-price {
        font-size: 2.2em;
    }
    .per-month {
        margin-top: -3px;
    }
    .box-details {
        font-size: 0.8em;
        margin-top: 15px;
    }

    .cta-area {
        max-width: 380px;
    }
    .cta-button {
        font-size: 1.15em;
        padding: 16px 20px;
        width: 100%;
    }
    .closed-banner p:first-child {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) { /* Celulares médios */
    .pricing-container {
        padding: 25px 15px;
        gap: 20px;
    }
    .savings-highlight {
        font-size: 0.9em;
        padding: 8px 15px;
        border-radius: 30px;
    }
    .countdown-message {
        font-size: 1em;
    }
    #countdown {
        gap: 8px;
    }
    #countdown span {
        min-width: 45px;
        height: 45px;
        font-size: 1.3em;
        border-radius: 8px;
    }
    #countdown span::after {
        bottom: 3px;
        font-size: 0.35em;
    }

    .price-comparison-grid {
        gap: 15px;
    }
    .price-box {
        padding: 20px 10px;
        max-width: 100%;
    }
    .box-title {
        font-size: 1em;
        margin-bottom: 10px;
    }
    .box-price {
        font-size: 2em;
    }
    .per-month {
        font-size: 0.5em;
        margin-top: -3px;
    }
    .box-details {
        font-size: 0.75em;
        margin-top: 10px;
    }

    .cta-area {
        max-width: 100%;
    }
    .cta-button {
        font-size: 1em;
        padding: 14px 15px;
        width: 100%;
    }
    .closed-banner p:first-child {
        font-size: 1.1em;
    }
}

@media (max-width: 375px) { /* Celulares muito pequenos (ex: iPhone SE) */
    .savings-highlight {
        font-size: 0.8em;
        padding: 6px 10px;
        border-radius: 25px;
        letter-spacing: 0.2px;
    }
    #countdown span {
        min-width: 40px;
        height: 40px;
        font-size: 1.1em;
    }
    #countdown span::after {
        font-size: 0.3em;
        bottom: 2px;
    }
    .box-price {
        font-size: 1.8em;
    }
    .per-month {
        font-size: 0.55em;
    }
    .box-details {
        font-size: 0.7em;
    }
    .cta-button {
        font-size: 0.9em;
        padding: 12px 10px;
    }
}