/* ============================================================
   VIGORBOOKS — Pricing Page (pricing.css)
   All new classes are prefixed px-
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   HERO
   ──────────────────────────────────────────────────────────── */
.px-hero {
    padding: 148px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Animated mesh background */
.px-hero-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.px-mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.px-mesh-orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(91,95,199,0.14) 0%, transparent 65%);
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    animation: pxOrbFloat1 18s ease-in-out infinite;
}

.px-mesh-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 65%);
    bottom: -80px;
    left: -60px;
    animation: pxOrbFloat2 22s ease-in-out infinite;
}

.px-mesh-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, transparent 65%);
    top: 20%;
    right: -40px;
    animation: pxOrbFloat3 16s ease-in-out infinite;
}

@keyframes pxOrbFloat1 {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-30px); }
}
@keyframes pxOrbFloat2 {
    0%,100% { transform: translate(0,0); }
    50%     { transform: translate(30px, -20px); }
}
@keyframes pxOrbFloat3 {
    0%,100% { transform: translate(0,0); }
    50%     { transform: translate(-20px, 20px); }
}

/* Subtle dot-grid overlay */
.px-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(91,95,199,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

.px-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.px-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    max-width: 640px;
}

.px-hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
}

/* Billing toggle */
.px-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 6px 18px;
    box-shadow: var(--shadow-sm);
}

.px-toggle-lbl {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast);
    cursor: pointer;
    user-select: none;
}

.px-toggle-lbl.is-active {
    color: var(--color-primary);
}

.px-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: background var(--transition-normal);
    flex-shrink: 0;
    padding: 0;
}

.px-toggle[aria-checked="true"] {
    background: var(--color-primary);
}

.px-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform var(--transition-normal);
}

.px-toggle[aria-checked="true"] .px-toggle-knob {
    transform: translateX(20px);
}

.px-save-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Trust strip */
.px-trust-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.px-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.px-trust-item svg {
    color: var(--color-secondary);
    flex-shrink: 0;
}

.px-trust-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border-color);
}

/* ────────────────────────────────────────────────────────────
   PRICING CARDS
   ──────────────────────────────────────────────────────────── */
.px-cards-section {
    padding: 0 0 80px;
    position: relative;
}

.px-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
    position: relative;
}

/* ── Base card ── */
.px-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.px-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ── Professional (featured) card ── */
.px-card--pro {
    /* Gradient border trick */
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        linear-gradient(145deg, #5B5FC7, #7B7FD7, #10B981) border-box;
    border: 2px solid transparent;
    box-shadow:
        0 0 0 1px rgba(91,95,199,0.08),
        0 20px 60px rgba(91,95,199,0.18),
        0 4px 16px rgba(0,0,0,0.06);
    /* Slight upward shift to look elevated */
    margin-top: -16px;
    padding-top: 48px; /* space for the "Most Popular" pill */
}

.px-card--pro:hover {
    transform: translateY(-10px);
    box-shadow:
        0 0 0 1px rgba(91,95,199,0.1),
        0 28px 80px rgba(91,95,199,0.25),
        0 8px 24px rgba(0,0,0,0.08);
}

/* Most Popular pill */
.px-popular-pill {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 6px 16px;
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(91,95,199,0.35);
}

/* Enterprise card amber accent */
.px-card--enterprise {
    border-color: rgba(245,158,11,0.2);
}

.px-card--enterprise:hover {
    border-color: rgba(245,158,11,0.4);
    box-shadow: 0 20px 60px rgba(245,158,11,0.12), var(--shadow-lg);
}

/* Card header */
.px-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.px-plan-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: white;
}

.px-plan-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.px-plan-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Price display */
.px-price-wrap {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 4px;
}

.px-currency {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    padding-top: 10px;
}

.px-price {
    line-height: 1;
}

.px-price-num {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    display: inline-block;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.px-price-num.is-switching {
    opacity: 0;
    transform: translateY(-8px);
}

.px-price-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    padding-top: 26px;
}

.px-billing-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    min-height: 18px;
    transition: opacity 0.25s ease;
}

/* CTA buttons */
.px-card-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px !important;
    font-size: 0.95rem !important;
    border-radius: var(--radius-md) !important;
}

.px-card-btn--starter {
    background: rgba(16,185,129,0.08) !important;
    color: #059669 !important;
    border: 1px solid rgba(16,185,129,0.25) !important;
}

.px-card-btn--starter:hover {
    background: rgba(16,185,129,0.15) !important;
    transform: translateY(-1px);
}

.px-card-btn--enterprise {
    background: rgba(245,158,11,0.08);
    color: #D97706;
    border: 1px solid rgba(245,158,11,0.25);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-normal);
    cursor: pointer;
    width: 100%;
}

.px-card-btn--enterprise:hover {
    background: rgba(245,158,11,0.15);
    transform: translateY(-1px);
}

/* Divider */
.px-divider {
    height: 1px;
    background: var(--border-light);
    margin: 24px 0;
}

/* Feature list */
.px-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.px-feat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.4;
}

.px-feat-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.px-feat--yes .px-feat-icon {
    color: var(--color-secondary);
}

.px-feat--no {
    opacity: 0.4;
}

.px-feat--no .px-feat-icon {
    color: var(--text-muted);
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

.px-soon-badge {
    display: inline-block;
    background: rgba(91,95,199,0.1);
    color: var(--color-primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 4px;
}

/* Custom bar */
.px-custom-bar {
    margin-top: 32px;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.px-custom-bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.px-custom-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(91,95,199,0.25);
}

.px-custom-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.px-custom-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.px-custom-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────
   FEATURE COMPARISON TABLE
   ──────────────────────────────────────────────────────────── */
.px-compare-section {
    padding: var(--section-padding) 0;
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.px-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    margin-top: 48px;
}

.px-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

/* Column widths */
.px-th-feature  { width: 38%; }
.px-th-plan     { width: 20.67%; text-align: center; }

/* Header row */
.px-table thead tr {
    background: var(--bg-card);
    border-bottom: 2px solid var(--border-color);
}

.px-table thead th {
    padding: 20px 20px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 2;
}

.px-th-starter { color: #059669; }

.px-th-pro {
    color: var(--color-primary);
    background: rgba(91,95,199,0.04) !important;
    position: relative;
}

.px-th-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0;
}

.px-th-enterprise { color: #D97706; }

.px-th-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Group header rows */
.px-tr-group td {
    padding: 14px 20px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-light);
}

/* Body rows */
.px-table tbody tr:not(.px-tr-group) {
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.px-table tbody tr:not(.px-tr-group):hover {
    background: var(--bg-section);
}

.px-table tbody td {
    padding: 14px 20px;
    color: var(--text-secondary);
    vertical-align: middle;
}

/* Featured column highlight */
.px-col-pro {
    background: rgba(91,95,199,0.03);
    text-align: center;
}

.px-col-pro:not(th) {
    border-left: 1px solid rgba(91,95,199,0.08);
    border-right: 1px solid rgba(91,95,199,0.08);
}

.px-cell-no {
    text-align: center;
    color: var(--text-light);
    font-weight: 400;
}

/* Checkmark */
.px-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16,185,129,0.1);
    color: #059669;
    font-size: 0.75rem;
    font-weight: 700;
}

.px-soon-text {
    display: inline-block;
    background: rgba(91,95,199,0.08);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

/* Table footer (CTA row) */
.px-table tfoot td {
    padding: 20px;
    background: var(--bg-card);
    border-top: 2px solid var(--border-color);
    text-align: center;
}

.px-table tfoot .px-col-pro {
    background: rgba(91,95,199,0.04);
}

.px-table-btn {
    min-width: 140px;
    justify-content: center;
    font-size: 0.85rem !important;
    padding: 10px 18px !important;
}

/* ────────────────────────────────────────────────────────────
   GUARANTEE STRIP
   ──────────────────────────────────────────────────────────── */
.px-guarantee {
    padding: 56px 0;
}

.px-guarantee-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.px-guarantee-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 36px;
}

.px-guarantee-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.px-guarantee-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.px-guarantee-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.px-guarantee-sep {
    width: 1px;
    height: 52px;
    background: var(--border-color);
    flex-shrink: 0;
}

/* ────────────────────────────────────────────────────────────
   FAQ
   ──────────────────────────────────────────────────────────── */
.px-faq-section {
    padding: var(--section-padding) 0;
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
}

.px-faq-inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 80px;
    align-items: start;
}

.px-faq-header {
    position: sticky;
    top: 100px;
}

.px-faq-header .section-title {
    font-size: 2rem;
    margin-top: 12px;
}

.px-faq-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(91,95,199,0.3);
    transition: border-color var(--transition-fast);
}

.px-faq-link:hover {
    border-color: var(--color-primary);
}

.px-faq-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.px-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.px-faq-item:has(.px-faq-q[aria-expanded="true"]) {
    border-color: var(--color-primary);
}

.px-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.px-faq-q:hover {
    color: var(--color-primary);
}

.px-faq-q[aria-expanded="true"] {
    color: var(--color-primary);
}

.px-faq-chevron {
    flex-shrink: 0;
    transition: transform var(--transition-normal);
    color: var(--text-muted);
}

.px-faq-q[aria-expanded="true"] .px-faq-chevron {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.px-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0,1,0,1);
}

.px-faq-a.is-open {
    max-height: 300px;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1);
}

.px-faq-a p {
    padding: 0 24px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .px-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .px-card--pro {
        margin-top: 0;
    }

    .px-guarantee-item {
        padding: 0 20px;
    }

    .px-faq-inner {
        grid-template-columns: 260px 1fr;
        gap: 48px;
    }
}

@media (max-width: 900px) {
    .px-cards-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .px-card--pro {
        order: -1;
    }

    .px-custom-bar {
        flex-direction: column;
        text-align: center;
    }

    .px-custom-bar-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .px-faq-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .px-faq-header {
        position: static;
    }

    .px-faq-header .section-title {
        font-size: 1.6rem;
    }

    .px-guarantee-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        max-width: 360px;
        margin: 0 auto;
    }

    .px-guarantee-sep {
        display: none;
    }
}

@media (max-width: 640px) {
    .px-hero {
        padding: 120px 0 60px;
    }

    .px-trust-strip {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .px-trust-dot {
        display: none;
    }

    .px-table tbody td,
    .px-table thead th,
    .px-table tfoot td {
        padding: 12px 12px;
        font-size: 0.82rem;
    }

    .px-th-feature { min-width: 140px; }

    .px-toggle-wrap {
        padding: 6px 12px;
        gap: 8px;
    }

    .px-card--pro {
        padding-top: 48px;
    }
}
