/* =========================================================
   PRICING PAGE
   ========================================================= */

.pricing-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 24%),
        linear-gradient(180deg, #071120 0%, #081425 45%, #050c18 100%);
}

.pricing-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 14%, rgba(37, 99, 235, 0.14), transparent 30%),
        radial-gradient(circle at 84% 22%, rgba(56, 189, 248, 0.1), transparent 24%),
        radial-gradient(circle at 52% 82%, rgba(37, 99, 235, 0.08), transparent 30%);
    pointer-events: none;
    z-index: 0;
}

.pricing-page>* {
    position: relative;
    z-index: 1;
}

/* =========================================================
   SHARED SECTION SPACING
   ========================================================= */

.pricing-hero.section {
    padding: 132px 0 76px;
}

.pricing-tiers.section {
    padding: 0 0 92px;
}

.pricing-comparison.section {
    padding: 8px 0 92px;
}

.pricing-faq.section {
    padding: 0 0 68px;
}

.pricing-cta.section {
    padding: 60px 0 100px;
}

/* =========================================================
   HERO
   ========================================================= */

.pricing-hero-heading {
    max-width: 920px;
}

.pricing-hero-heading h1 {
    margin: 0 0 18px;
    color: #f8fbff;
    font-size: clamp(2.8rem, 5vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.pricing-hero-heading p {
    margin: 0;
    max-width: 70ch;
    color: #c8d4e3;
    font-size: 1.08rem;
    line-height: 1.75;
}

.pricing-tiers .section-heading,
.pricing-comparison .section-heading,
.pricing-faq .section-heading {
    max-width: 800px;
}

.pricing-tiers .section-heading p,
.pricing-comparison .section-heading p,
.pricing-faq .section-heading p {
    color: #c8d4e3;
}

/* =========================================================
   HEADER FIXES FOR PRICING PAGE
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* =========================================================
   PRICING GRID
   ========================================================= */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-top: 34px;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 32px 28px;
    background: linear-gradient(180deg, rgba(20, 31, 53, 0.92), rgba(10, 17, 30, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.pricing-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(125, 211, 252, 0.7),
            rgba(59, 130, 246, 0.14),
            rgba(59, 130, 246, 0));
    opacity: 0.9;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(125, 211, 252, 0.18);
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.24);
}

.pricing-card-free {
    border-color: rgba(255, 255, 255, 0.09);
}

.pricing-card-featured {
    border-color: rgba(96, 165, 250, 0.34);
    background: linear-gradient(180deg, rgba(24, 40, 72, 0.96), rgba(9, 18, 34, 0.99));
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(59, 130, 246, 0.08);
    transform: translateY(-8px);
}

.pricing-card-featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center, rgba(59, 130, 246, 0.12), transparent 48%);
    pointer-events: none;
}

.pricing-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 7px 12px;
    color: #e9f7ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(125, 211, 252, 0.22);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.18);
    z-index: 2;
}

.pricing-label {
    display: inline-block;
    margin-bottom: 14px;
    color: #9bd8ff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-card-top {
    position: relative;
    z-index: 1;
}

.pricing-card-top h2 {
    margin: 0 0 12px;
    color: #f8fbff;
    font-size: 1.58rem;
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.pricing-card-top p {
    margin: 0;
    color: #c8d4e3;
    line-height: 1.75;
    font-size: 0.98rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 24px;
    position: relative;
    z-index: 1;
}

.price {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
}

.price.custom {
    font-size: 2.15rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.price-term {
    color: #9fb0c7;
    font-size: 1rem;
    font-weight: 500;
}

.price-sub {
    display: block;
    width: 100%;
    margin-top: 8px;
    color: #9fb0c7;
    font-size: 0.94rem;
    line-height: 1.5;
}

.pricing-features {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
    z-index: 1;
}

.pricing-features li {
    position: relative;
    padding-left: 24px;
    color: #e5edf7;
    line-height: 1.7;
    font-size: 0.97rem;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #8fd7ff;
    font-weight: 800;
}

.pricing-actions {
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

.pricing-actions .btn {
    width: 100%;
    justify-content: center;
}

/* =========================================================
   COMPARISON TABLE
   ========================================================= */

.comparison-table-wrap {
    overflow-x: auto;
    margin-top: 28px;
    background: linear-gradient(180deg, rgba(19, 28, 49, 0.92), rgba(10, 16, 30, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.comparison-table {
    width: 100%;
    min-width: 940px;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table th {
    color: #f8fbff;
    font-size: 0.95rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
}

.comparison-table td {
    color: #c8d4e3;
    line-height: 1.6;
    font-size: 0.95rem;
}

.comparison-table tbody tr:last-child td {
    border-bottom: 0;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.faq-card {
    padding: 28px 24px;
    background: linear-gradient(180deg, rgba(24, 35, 58, 0.88), rgba(13, 20, 37, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.faq-card h3 {
    margin: 0 0 12px;
    color: #f8fbff;
    font-size: 1.18rem;
    line-height: 1.3;
}

.faq-card p {
    margin: 0;
    color: #c8d4e3;
    line-height: 1.75;
}

/* =========================================================
   CTA
   ========================================================= */

.pricing-cta.section {
    padding-top: 108px;
    padding-bottom: 96px;
}

.pricing-cta-box {
    margin-top: 18px;
    padding: 42px 36px;
    background: linear-gradient(180deg, rgba(19, 28, 49, 0.94), rgba(10, 16, 30, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 28px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.pricing-cta-box h2 {
    margin: 0 0 14px;
    color: #f8fbff;
    font-size: clamp(2rem, 3vw, 2.85rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.pricing-cta-box p {
    margin: 0;
    max-width: 62ch;
    color: #c8d4e3;
    line-height: 1.8;
}

.pricing-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 80px 0 40px;
    color: #cbd5e1;
    background: #020617;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 700;
}

.footer-brand .brand-mark {
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.footer-brand .brand-text {
    color: #f8fafc;
    font-weight: 700;
}

.footer-description {
    max-width: 320px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}

.footer-col h4 {
    margin: 0 0 14px;
    color: #e2e8f0;
    font-size: 14px;
}

.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #cbd5e1;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-card-featured {
        transform: none;
    }
}

@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {

    .faq-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        min-width: 860px;
    }
}

@media (max-width: 760px) {
    .pricing-hero.section {
        padding: 112px 0 64px;
    }

    .pricing-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card,
    .faq-card,
    .pricing-cta-box {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .pricing-hero-heading h1 {
        font-size: clamp(2.2rem, 10vw, 3.25rem);
    }

    .price {
        font-size: 2.5rem;
    }

    .price.custom {
        font-size: 1.9rem;
    }

    .comparison-table {
        min-width: 820px;
    }

    .site-footer {
        padding: 64px 0 32px;
    }

    .footer-bottom {
        margin-top: 40px;
    }
}