/* ─── pricing.css ──────────────────────────────────────────────────────────
   Page-specific styles for /pricing. Layered on top of site.css which gives
   us tokens, header/footer, hero primitives, .faq, .final-cta and buttons.
   This file owns the billing toggle, plan cards and the full feature table.
   ─────────────────────────────────────────────────────────────────────── */

/* Hero glow behind the pricing headline */
.pl-hero { position: relative; }
.pl-hero::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 380px;
    background: radial-gradient(ellipse, rgba(108, 99, 255, .14) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.pl-hero > * { position: relative; z-index: 1; }

/* Billing toggle */
.pl-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 8px auto 48px;
    padding: 0 24px;
}
.pl-toggle-label {
    font-size: 14px;
    color: var(--muted-2);
    transition: color .2s;
    letter-spacing: .04em;
    user-select: none;
}
.pl-toggle-label.active { color: var(--head); font-weight: 600; }
.pl-save-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--green-2);
    background: rgba(16, 185, 129, .1);
    border: 1px solid rgba(16, 185, 129, .25);
    padding: 2px 9px;
    border-radius: 20px;
    margin-left: 6px;
    letter-spacing: .04em;
}
.pl-toggle {
    width: 46px;
    height: 26px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 13px;
    cursor: pointer;
    position: relative;
    transition: background .2s, border-color .2s;
    padding: 0;
}
.pl-toggle.active {
    background: linear-gradient(135deg, rgba(166, 128, 255, .8), rgba(108, 99, 255, .8));
    border-color: rgba(166, 128, 255, .4);
}
.pl-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.pl-toggle.active::after { transform: translateX(20px); }

/* Plan cards grid */
.pl-grid-wrap { max-width: 940px; margin: 0 auto; padding: 0 24px; }
.pl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
}

/* Plan card - premium dark glass, matching the site token recipe */
.pl-card {
    position: relative;
    padding: 38px 32px 32px;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(255, 255, 255, .03), transparent 70%),
        linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    display: flex;
    flex-direction: column;
    transition: border-color .25s, transform .25s;
}
.pl-card:hover {
    border-color: rgba(166, 128, 255, .32);
    transform: translateY(-3px);
}
.pl-card--pro {
    border-color: rgba(166, 128, 255, .3);
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(166, 128, 255, .05), transparent 70%),
        linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
}
.pl-card--pro:hover { border-color: rgba(166, 128, 255, .5); }

.pl-pop {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #a89fff, #6c63ff);
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .1em;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(108, 99, 255, .35);
}

.pl-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-2);
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.pl-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}
.pl-price {
    font-size: 56px;
    font-weight: 800;
    color: var(--head);
    line-height: 1;
    letter-spacing: -.04em;
}
.pl-per {
    font-size: 15px;
    color: var(--muted-2);
    letter-spacing: .03em;
}
.pl-billed {
    font-size: 13px;
    color: var(--muted-2);
    min-height: 19px;
    margin-bottom: 28px;
    letter-spacing: .02em;
}
.pl-divider {
    height: 1px;
    background: rgba(255, 255, 255, .07);
    margin-bottom: 24px;
}

.pl-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.pl-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    letter-spacing: .02em;
    line-height: 1.45;
}
.pl-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
    width: 15px;
    height: 15px;
    stroke: var(--accent-2);
}

/* Plan CTA buttons - reuse .btn-cta / .btn-cta-lg-ghost shapes but full-width */
.pl-cta {
    display: block;
    text-align: center;
    width: 100%;
}
.pl-card .pl-cta + .trial-note { margin-top: 10px; }

/* Feature comparison table */
.pl-table-section {
    max-width: 940px;
    margin: 96px auto 0;
    padding: 0 24px;
}
.pl-table-head { text-align: center; margin-bottom: 40px; }
.pl-table-head .sec-label { margin-bottom: 14px; }
.pl-table-head h2 {
    font-size: clamp(28px, 3.8vw, 42px);
    font-weight: 800;
    letter-spacing: -1.1px;
    color: var(--head);
    margin-bottom: 14px;
}
.pl-table-head p {
    font-size: 16px;
    color: var(--muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}
.pl-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
}
.pl-table thead { background: rgba(255, 255, 255, .03); }
.pl-table th {
    padding: 16px 22px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, .075);
}
.pl-table th:first-child { text-align: left; }
.pl-table th.pro-col { color: var(--accent-2); }
.pl-table td {
    padding: 14px 22px;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, .05);
    text-align: center;
    color: var(--muted);
}
.pl-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text);
}
.pl-table tr:hover td { background: rgba(255, 255, 255, .02); }
.pl-table .section-row td {
    background: rgba(255, 255, 255, .03);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-2);
    text-align: left;
    padding: 10px 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.pl-check { color: var(--green-2); font-size: 15px; font-weight: 700; }
.pl-dash { color: var(--muted-2); font-size: 16px; }

/* Pricing-page FAQ wrapper - uses the shared .faq/.faq-item from site.css.
   This wrapper just adjusts top margin so the layout breathes. */
.pl-faq-wrap { margin-top: 96px; }

/* Responsive */
@media (max-width: 760px) {
    .pl-grid { grid-template-columns: 1fr; }
    .pl-card { padding: 32px 24px 26px; }
    .pl-price { font-size: 46px; }
    .pl-table th,
    .pl-table td { padding: 12px 14px; font-size: 13px; }
    .pl-table-section { margin-top: 72px; }
    .pl-faq-wrap { margin-top: 72px; }
}
