/*
 * InfinityCharge — pricing.css
 * Estilos específicos da página de preços (/precos)
 * Deferido via Optimizer::css() na view
 * Usa variáveis do critical.css (Emerald Light)
 */

/* ── Page hero ────────────────────────────────────────────────────────────── */

.page-hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    font-family: 'Bricolage Grotesque',sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    position: relative;
    color: var(--text-primary);
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    line-height: 1.6;
}

/* ── Billing toggle ───────────────────────────────────────────────────────── */

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 48px 0 0;
}

.billing-toggle-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.billing-toggle-label.active { color: var(--text-primary); }

.toggle-switch {
    width: 56px;
    height: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: var(--accent);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch.annual::after { left: 29px; }

.save-badge {
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
}

/* ── Pricing grid & plan cards ────────────────────────────────────────────── */

.pricing-section { padding-bottom: 40px; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 880px;
    margin: 48px auto 0;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 36px;
    position: relative;
    transition: all 0.3s ease;
}

.plan-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

.plan-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 50px var(--accent-glow);
}

.plan-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 20px;
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 100px;
    white-space: nowrap;
}

.plan-name {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
}

.plan-price {
    font-family: 'Bricolage Grotesque',sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.plan-price small { font-size: 0.35em; color: var(--text-secondary); font-weight: 400; }

.plan-price-note {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 400;
    font-family: 'Plus Jakarta Sans',sans-serif;
}

.plan-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.6; }
.plan-divider { height: 1px; background: var(--border); margin: 0 0 24px; }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; padding: 0; }
.plan-features li { font-size: 0.9rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 10px; }
.plan-features li .check { color: var(--accent); font-weight: 700; font-size: 0.9rem; margin-top: 2px; flex-shrink: 0; }
.plan-features li.disabled { color: var(--text-secondary); opacity: 0.5; }
.plan-features li.disabled .check { color: var(--text-secondary); }
.plan-card .btn { width: 100%; justify-content: center; }

/* ── Volume table ─────────────────────────────────────────────────────────── */

.volume-section { margin-top: 100px; text-align: center; }
.volume-section h2 { font-family: 'Bricolage Grotesque',sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); }
.volume-section p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 40px; }

.volume-table {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
}

.volume-table table { width: 100%; border-collapse: collapse; }
.volume-table th { background: var(--bg-secondary); padding: 16px 24px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); text-align: left; border-bottom: 1px solid var(--border); }
.volume-table td { padding: 16px 24px; font-size: 0.92rem; color: var(--text-secondary); background: var(--bg-card); border-bottom: 1px solid var(--border); }
.volume-table tr:last-child td { border-bottom: none; }
.volume-table td:last-child { font-weight: 700; color: var(--accent); font-family: 'JetBrains Mono',monospace; }
.volume-table tr:hover td { background: var(--bg-secondary); }

/* ── FAQ accordion ────────────────────────────────────────────────────────── */

.faq-section { margin-top: 100px; max-width: 720px; margin-left: auto; margin-right: auto; padding-bottom: 100px; }
.faq-section h2 { font-family: 'Bricolage Grotesque',sans-serif; font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 40px; color: var(--text-primary); }

.faq-item { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; overflow: hidden; transition: all 0.3s ease; }
.faq-item:hover { border-color: var(--accent); }

.faq-question { width: 100%; background: var(--bg-card); border: none; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; font-family: 'Plus Jakarta Sans',sans-serif; font-size: 0.95rem; font-weight: 600; color: var(--text-primary); cursor: pointer; transition: background 0.3s ease; }
.faq-question:hover { background: var(--bg-secondary); }

.faq-icon { font-size: 1.2rem; color: var(--accent); transition: transform 0.3s ease; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; background: var(--bg-card); }
.faq-item.open .faq-answer { max-height: 300px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .page-hero { padding: 120px 0 60px; }
    .page-hero h1 { font-size: 2rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .plan-card { padding: 32px 24px; }
    .billing-toggle { flex-wrap: wrap; gap: 12px; }
    .volume-section { margin-top: 60px; }
    .volume-table th, .volume-table td { padding: 12px 16px; font-size: 0.85rem; }
    .faq-section { margin-top: 60px; padding-bottom: 60px; }
    .faq-question { padding: 16px 20px; font-size: 0.9rem; }
}