/* ============================================================
   Pricing page
   ============================================================ */

main { padding-top: calc(var(--nav-h) + 64px); }

.price-hero {
    text-align: center;
    padding-bottom: var(--s-12);
}
.price-hero .eyebrow { margin-bottom: 18px; }
.price-hero h1 { margin-bottom: 18px; }
.price-hero p { margin: 0 auto; }

/* ---- Billing toggle ---- */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    margin-top: 28px;
}
.billing-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: var(--r-pill);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    transition: color var(--transition), background var(--transition);
}
.billing-toggle button.active {
    color: #051218;
    background: linear-gradient(180deg, #d6fbe9, #88e6c5 60%, #67d8ff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.55);
}
.billing-toggle .save-badge {
    padding: 2px 6px;
    border-radius: var(--r-xs);
    background: rgba(149, 241, 209, 0.18);
    color: var(--accent-mint);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.billing-toggle button.active .save-badge {
    background: rgba(5, 18, 24, 0.12);
    color: #08333a;
}

/* ---- Plan cards ---- */
.plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 920px;
    margin: 0 auto;
}

.plan {
    padding: 32px;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(17, 21, 28, 0.95), rgba(10, 12, 16, 0.95));
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
}

.plan.featured {
    border-color: rgba(149, 241, 209, 0.40);
    background:
        radial-gradient(closest-side at 50% 0%, rgba(149, 241, 209, 0.10), transparent 60%),
        linear-gradient(180deg, rgba(20, 28, 28, 0.95), rgba(10, 16, 18, 0.95));
    box-shadow: var(--shadow-glow);
}

.plan-badge {
    position: absolute;
    top: 16px; right: 16px;
    padding: 5px 11px;
    background: var(--gradient-brand);
    color: #051218;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--r-pill);
}

.plan h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--text-muted);
    font-weight: 700;
}
.plan.featured h3 { color: var(--accent-mint); }

.plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.plan-price-row .num {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}
.plan-price-row .per {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.price-context {
    min-height: 22px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: -12px;
    color: var(--text-muted);
    font-size: 12.5px;
    line-height: 1.35;
}

.old-price {
    color: var(--text-subtle);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(255, 99, 125, 0.70);
    font-weight: 700;
}

.plan p.tagline {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.plan-feats {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 2px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.plan-feats li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}
.plan-feats li svg {
    width: 17px; height: 17px;
    color: var(--accent-mint);
    flex-shrink: 0;
    margin-top: 1px;
    overflow: visible;
}
.plan-feats li.muted { color: var(--text-muted); }
.plan-feats li.muted svg { color: var(--text-subtle); }

.plan .btn { margin-top: auto; }

@media (max-width: 720px) {
    .plans { grid-template-columns: 1fr; }
}

/* ---- Comparison table ---- */
.compare {
    margin-top: var(--s-16);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(17, 21, 28, 0.92), rgba(10, 12, 16, 0.92));
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td {
    padding: 14px 22px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.compare thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    background: rgba(255,255,255,0.025);
}
.compare tbody td:first-child {
    color: var(--text-primary);
    font-weight: 500;
}
.compare tbody td:not(:first-child) {
    text-align: center;
    color: var(--text-secondary);
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare svg.check { color: var(--accent-mint); }
.compare svg.x { color: var(--text-subtle); }

@media (max-width: 720px) {
    .compare { font-size: 12.5px; }
    .compare th, .compare td { padding: 12px 14px; }
}

/* ---- FAQ ---- */
.faq {
    max-width: var(--container-sm);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq details {
    background: linear-gradient(180deg, rgba(17, 21, 28, 0.92), rgba(10, 12, 16, 0.92));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: border-color var(--transition);
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    font-size: 22px;
    color: var(--text-muted);
    transition: transform var(--transition), color var(--transition);
    line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent-mint); }

.faq .answer {
    padding: 0 22px 22px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ---- Reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 720ms cubic-bezier(0.2,0.7,0.2,1), transform 720ms cubic-bezier(0.2,0.7,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
