* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-light);
    line-height: 1.6;
    color: var(--text-primary);
}

.header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.btn-inicio {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-inicio:hover {
    color: var(--primary-dark);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Main Content */

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 20px;
}

.header-section {
    text-align: center;
    margin-bottom: 4rem;
}

.header-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Toggle Switch */
.toggle-desconto {
    font-size: 0.8rem;
    margin-left: 10px;
}

.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    gap: 10px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: #333;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #4f46e5;
}

input:checked+.slider:before {
    transform: translateX(22px);
}

/* Estilos para a seção de cupom */
.cupom-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.cupom-container {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
    text-align: center;
}

.cupom-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.cupom-form {
    display: flex;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto 15px;
}

.cupom-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #bbb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cupom-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.cupom-btn {
    padding: 12px 24px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cupom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.cupom-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cupom-message {
    min-height: 24px;
    font-size: 0.9rem;
    font-weight: 500;
}

.cupom-message.success {
    color: var(--success);
}

.cupom-message.error {
    color: var(--danger);
}

.loading-cupom {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cupom-aplicado {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
}

.cupom-aplicado .cupom-title {
    color: var(--white);
}

.cupom-aplicado .cupom-input {
    background: rgba(255, 255, 255, 0.9);
}

.cupom-aplicado .cupom-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cupom-aplicado .cupom-message {
    color: var(--white);
}

/* Indicador de desconto nos planos */
.plan-card.com-desconto::before {
    content: 'CUPOM APLICADO';
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--success);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.preco-original {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 0.9em;
    margin-right: 8px;
}

.preco-com-desconto {
    color: var(--success);
    font-weight: 700;
}

/* Responsivo para cupom */
@media (max-width: 640px) {
    .cupom-container {
        padding: 20px;
    }
    
    .cupom-title {
        font-size: 1.2rem;
    }
    
    .cupom-form {
        flex-direction: column;
        max-width: 100%;
    }
    
    .cupom-btn {
        width: 100%;
    }
}

/* Planos Section */

.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.plan-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.plan-card.popular {
    border: 3px solid var(--primary);
    transform: translateY(-10px);
}

.plan-card.popular::before {
    content: '✨ Mais Popular';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gradient);
    color: var(--white);
    text-align: center;
    padding: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.plan-card.popular .plan-content {
    margin-top: 1rem;
}

.plan-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-around;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.plan-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Pricing */
.price-container {
    position: relative;
}

.barra-desconto {
    content: "";
    position: absolute;
    top: 13px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: red;
    transform: rotate(9deg);
    transform-origin: left center;
    pointer-events: none;
    transition: width 0.3s ease;
}

.barra-desconto.active {
    width: 46%;
    transition: width 0.3s ease;
}

.plan-mensal.diminuir .price-amount {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.plan-anual {
    transition: all 0.3s ease;
    opacity: 0;
}

.plan-anual.aparecer {
    opacity: 1;
    transition: all 0.3s ease;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price-amount {
    display: inline;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: all 0.3s ease;
}

.hidden {
    display: none;
    pointer-events: none;
}

.price-amount-decimal {
    font-size: 1rem;
    font-weight: 500;
}

.price-period {
    color: var(--text-secondary);
    font-size: 1rem;
}

.economize {
    background: linear-gradient(to right, #3B82F6, #10B981);
    /* azul para verde */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* suporte futuro */
    color: transparent;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0rem;
    transition: all 0.3s ease;
    opacity: 0.8;

}

.plan-anual.aparecer .economize {
    opacity: 1;
    margin-bottom: 1.3rem;
    transition: all 0.3s ease;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.plan-button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: block;
}

.plan-button.primary {
    background: var(--gradient);
    color: var(--white);
}

.plan-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.plan-button.secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.plan-button.secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.faq-section {
    margin-top: 4rem;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

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

.faq-item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-answer {
    padding: 0 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.active {
    transform: rotate(180deg);
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--gradient);
    border-radius: 20px;
    color: var(--white);
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}


/* Modal Styles */
.modal {
    position: fixed;
    inset: 0; /* substitui top/left/right/bottom */
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 14px;
    text-align: center;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.modal-message {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #2d2d2d;
}

.modal-info {
    font-size: 1rem;
    color: #777;
    margin-top: 10px;
    margin-bottom: 20px;
}

.highlight {
    font-weight: bold;
    color: #0077ff;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-yes {
    background: #0077ff;
    color: white;
}

.btn-yes:hover {
    background: #005fcc;
}

.btn-no {
    background: #ddd;
    color: #333;
}

.btn-no:hover {
    background: #bbb;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .plans-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header-section h1 {
        font-size: 2rem;
    }
    
    .header-section p {
        font-size: 1rem;
    }

    .plans-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .plan-card.popular {
        transform: none;
    }

    .main-content {
        padding: 2rem 15px;
    }
    
    .toggle-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .faq-question {
        font-size: 0.9rem;
        padding: 1.2rem;
    }
    
    .faq-answer {
        padding: 0 1.2rem;
        font-size: 0.9rem;
    }
    
    .cta-section {
        padding: 2rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: var(--white);
        position: absolute;
        top: 70px;
        left: 0;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
        opacity: 0;
        transition: opacity 0.3s ease;
        gap: 1rem;
    }

    .nav-links.active {
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .nav-links li a{
        display: block;
        width: 200px;
        padding: 10px 0;
    }
    
    .nav-container {
        height: auto;
        padding: 15px;
        text-align: center;
    }
    
    .header-section h1 {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 1.5rem 10px;
    }
    
    .plan-card {
        padding: 1.5rem;
    }
    
    .plan-name {
        font-size: 1.3rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .plan-features li {
        font-size: 0.9rem;
    }
    
    .plan-button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .toggle-container {
        font-size: 0.9rem;
    }
    
    .switch {
        width: 45px;
        height: 25px;
    }
    
    .slider:before {
        height: 17px;
        width: 17px;
        left: 4px;
        bottom: 4px;
    }
    
    input:checked+.slider:before {
        transform: translateX(20px);
    }
    
    .faq-title {
        font-size: 1.5rem;
    }
    
    .cta-section {
        padding: 1.5rem;
    }
    
    .cta-title {
        font-size: 1.3rem;
    }
    
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-message,
    .modal-info {
        font-size: 0.9rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn {
        width: 100%;
        padding: 12px;
    }
}