/* Toggle Mensal/Anual */
.pricing-toggle-wrapper {
    gap: 8px;
    padding: 6px !important;
    border: 3px solid rgba(91, 33, 182, 0.3);
}

.toggle-btn {
    background: transparent;
    border: 2px solid transparent;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #475569;
    display: flex;
    align-items: center;
    position: relative;
}

.toggle-btn.active {
    background: #5b21b6;
    color: white;
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.5);
    border-color: transparent;
    transform: scale(1.02);
}

.toggle-btn:hover:not(.active) {
    background: #e2e8f0;
    color: #1e293b;
    border-color: rgba(91, 33, 182, 0.2);
    transform: scale(1.02);
}

.toggle-btn:active {
    transform: scale(0.98);
}

.toggle-btn .badge {
    transition: all 0.3s ease;
}

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

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card-featured {
    background: #5b21b6;
    color: white;
    border: 3px solid #fbbf24;
    transform: scale(1.05);
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.pricing-card-featured .plan-name,
.pricing-card-featured .currency,
.pricing-card-featured .amount,
.pricing-card-featured .cents,
.pricing-card-featured .period-text,
.pricing-card-featured .feature-item {
    color: white !important;
}

.pricing-card-featured .feature-item i {
    color: #fbbf24 !important;
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fbbf24;
    color: #1a202c;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card Header */
.pricing-card-header {
    text-align: center;
    margin-bottom: 16px;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-badge .badge {
    font-size: 0.85rem;
    padding: 6px 16px;
    font-weight: 600;
}

/* Price Display */
.pricing-card-price {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-card-featured .pricing-card-price {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.price-display {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 8px;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 8px;
    margin-right: 4px;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.cents {
    font-size: 2rem;
    font-weight: 700;
    color: #64748b;
    margin-top: 8px;
}

.period-text {
    font-size: 1rem;
    color: #64748b;
    font-weight: 400;
    white-space: nowrap;
}

.yearly-info {
    margin-top: 8px;
}

.yearly-info small {
    font-size: 0.85rem;
}

.pricing-card-featured .yearly-info small {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Features List */
.pricing-card-features {
    flex-grow: 1;
    margin-bottom: 16px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: #334155;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card-featured .feature-item {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    font-size: 1.1rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.feature-item.disabled {
    opacity: 0.4;
}

.feature-item.disabled i {
    color: #94a3b8 !important;
}

/* Footer Button */
.pricing-card-footer {
    padding-top: 4px;
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: #5b21b6;
    color: white;
    text-align: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.3);
}

.btn-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(91, 33, 182, 0.4);
    color: white;
}

.pricing-card-featured .btn-pricing {
    background: white;
    color: #5b21b6;
}

.pricing-card-featured .btn-pricing:hover {
    background: #fbbf24;
    color: #1a202c;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

/* Info Banner */
.info-banner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: #334155;
}

.info-banner i {
    font-size: 1.75rem;
    color: #10b981;
}

/* Responsive */
@media (max-width: 991px) {
    .pricing-card-featured {
        transform: scale(1);
        margin-top: 0;
    }

    .pricing-card-featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 767px) {
    .amount {
        font-size: 3rem;
    }

    .cents {
        font-size: 1.5rem;
    }

    .toggle-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .info-banner {
        padding: 16px 24px;
        font-size: 0.9rem;
    }
}
/* LP-16: destaques do cartão ("Tudo do Basic, e mais:") e aviso do que fica no comparativo. */
.titulo-dos-destaques {
    margin: 0 0 4px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pf-texto-secundario, #4a5163);
}

.mais-no-comparativo {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: var(--pf-texto-secundario, #4a5163);
}

/* No cartão em destaque (fundo roxo), o cinza sumia: o mesmo tom claro da nota do teste. */
.pricing-card-featured .titulo-dos-destaques,
.pricing-card-featured .mais-no-comparativo {
    color: var(--pf-texto-claro, #ddd6fe);
}

/* LP-16/LP-24: comparativo completo, recolhido em <details>; a tabela rola na horizontal no celular. */
.comparativo-dos-planos {
    background: #fff;
    border: 1px solid var(--pf-borda, #e5e1ef);
    border-radius: 16px;
    color: var(--pf-texto, #1f2433);
}

.comparativo-dos-planos > summary {
    cursor: pointer;
    padding: 16px 24px;
    font-weight: 700;
    color: var(--pf-marca, #5b21b6);
}

.comparativo-dos-planos[open] > summary {
    border-bottom: 1px solid var(--pf-borda, #e5e1ef);
}

.tabela-comparativa {
    min-width: 560px;
    font-size: 0.9rem;
}

.tabela-comparativa th,
.tabela-comparativa td {
    padding: 10px 16px;
    vertical-align: middle;
}

.tabela-comparativa thead th:not(:first-child),
.tabela-comparativa td {
    text-align: center;
}

.tabela-comparativa .ti-minus {
    color: var(--pf-texto-secundario, #4a5163);
}

/* LP-24: no celular, a chamada fica presa ao fim da tela enquanto a seção de planos
   está à vista (sticky dentro da seção, sem JS). O d-md-none esconde a partir de 768 px. */
.barra-fixa-dos-planos {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-top: 24px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
    .barra-fixa-dos-planos {
        animation: barra-dos-planos-sobe 0.25s ease-out;
    }

    @keyframes barra-dos-planos-sobe {
        from { transform: translateY(100%); }
        to { transform: none; }
    }
}

/* Seletor Mensal/Anual com o selo do desconto passava ~23 px da borda a 320 px. */
@media (max-width: 374.98px) {
    .toggle-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .pricing-toggle-wrapper .badge {
        margin-left: 4px !important;
        font-size: 0.7rem;
    }
}
