/* =====================================================================
   PRICING PAGE — pricing.css
   GlassEntials CRM — Premium Pricing Page Styles
   ===================================================================== */

/* ─── Hero Section ─────────────────────────────────────────────────── */
.pricing-hero {
    position: relative;
    text-align: center;
    padding: 7rem 5% 5rem;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.08) 0%, #ffffff 65%);
    overflow: hidden;
}

.pricing-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(13, 27, 42, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.pricing-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.pricing-hero-content h1 em {
    color: var(--accent-gold);
    font-style: italic;
}

.pricing-hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-hero-content .cta-group {
    justify-content: center;
}

/* ─── Billing Toggle ────────────────────────────────────────────────── */
.billing-toggle-section {
    display: flex;
    justify-content: center;
    padding: 1.5rem 5% 0;
}

.billing-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(13, 27, 42, 0.08);
    box-shadow: 0 2px 12px rgba(13, 27, 42, 0.06);
}

.toggle-label {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s;
    cursor: default;
}

#label-yearly {
    font-weight: 400;
    color: var(--text-muted);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 50px;
    transition: background 0.3s ease;
}

.toggle-track::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    left: 4px;
    top: 4px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-track {
    background: var(--accent-gold);
}

.toggle-switch input:checked + .toggle-track::before {
    transform: translateX(24px);
}

.yearly-badge {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
}

.yearly-badge--active {
    opacity: 1;
    transform: scale(1.05);
}

/* ─── Pricing Cards Grid ────────────────────────────────────────────── */
.pricing-cards-section {
    padding: 3rem 5% 5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
    align-items: start;
}

/* ─── Individual Pricing Card ───────────────────────────────────────── */
.pricing-card {
    background: #ffffff;
    border: 1px solid rgba(13, 27, 42, 0.08);
    border-radius: 20px;
    padding: 2rem 1.75rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(13, 27, 42, 0.08);
    transition: background 0.3s;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(13, 27, 42, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.pricing-card:hover::before {
    background: var(--accent-gold);
}

/* Popular card */
.pricing-card--popular {
    border-color: var(--accent-gold);
    transform: scale(1.04);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.18), 0 8px 25px rgba(13, 27, 42, 0.1);
    background: linear-gradient(135deg, #fffdf5 0%, #ffffff 100%);
    z-index: 2;
}

.pricing-card--popular::before {
    background: linear-gradient(90deg, var(--accent-gold), #f0c040);
    height: 4px;
}

.pricing-card--popular:hover {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 30px 70px rgba(212, 175, 55, 0.25), 0 12px 35px rgba(13, 27, 42, 0.12);
}

/* Enterprise card */
.pricing-card--enterprise {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2f45 100%);
    border-color: transparent;
    color: #ffffff;
}

.pricing-card--enterprise .plan-name,
.pricing-card--enterprise .plan-desc,
.pricing-card--enterprise .plan-users,
.pricing-card--enterprise .plan-features li {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-card--enterprise .plan-price,
.pricing-card--enterprise .price-amount,
.pricing-card--enterprise .price-currency,
.pricing-card--enterprise .price-period {
    color: #ffffff;
}

.pricing-card--enterprise .price-enterprise,
.pricing-card--enterprise .price-custom-tag {
    color: var(--accent-gold);
}

.pricing-card--enterprise::before {
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.pricing-card--enterprise:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 60px rgba(13, 27, 42, 0.3);
}

.pricing-card--enterprise .check-icon {
    color: var(--accent-gold) !important;
}

/* Popular badge */
.popular-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-gold), #f0c040);
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

/* Plan Header */
.plan-header {
    margin-bottom: 1.5rem;
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

/* Price */
.plan-price {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(13, 27, 42, 0.07);
    padding-bottom: 1.5rem;
}

.price-monthly,
.price-yearly {
    animation: priceFade 0.3s ease;
}

@keyframes priceFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.price-enterprise {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.price-custom-tag {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-top: 0.5rem;
}

.price-currency {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    vertical-align: top;
    margin-top: 10px;
    display: inline-block;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.price-period-large {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.5rem;
    font-family: var(--font-body);
}

.price-min-users {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

.price-billed-as {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    font-family: var(--font-body);
}

.price-gst-inline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.8;
}

.pricing-transparency-note {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-family: var(--font-body);
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.price-savings {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    margin-top: 0.5rem;
    font-family: var(--font-body);
}

.price-gst {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-top: 4px;
    text-transform: uppercase;
}

/* GST page-level disclaimer */
.gst-note {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.75rem 5%;
    background: rgba(13, 27, 42, 0.03);
    border-top: 1px solid rgba(13, 27, 42, 0.05);
    border-bottom: 1px solid rgba(13, 27, 42, 0.05);
    margin: 0;
    letter-spacing: 0.02em;
}

/* Plan users */
.plan-users {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Plan Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-main);
    font-family: var(--font-body);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 900;
    flex-shrink: 0;
}

/* CTA buttons */
.plan-cta {
    display: block;
    text-align: center;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.plan-cta:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 27, 42, 0.15);
}

.plan-cta--primary {
    background: var(--primary-color);
    color: #fff !important;
}

.plan-cta--primary:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.plan-cta--enterprise {
    border-color: var(--accent-gold);
    color: var(--accent-gold) !important;
    background: transparent;
}

.plan-cta--enterprise:hover {
    background: var(--accent-gold);
    color: var(--primary-color) !important;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* ─── Section Header (reusable) ─────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ─── Comparison Table ──────────────────────────────────────────────── */
.comparison-section {
    padding: 5rem 5%;
    background: var(--bg-secondary);
}

.comparison-table-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(13, 27, 42, 0.07);
    border: 1px solid rgba(13, 27, 42, 0.07);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 700px;
}

.comparison-table thead tr {
    background: var(--primary-color);
}

.comparison-table thead th {
    padding: 1.1rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    border: none;
}

.comparison-table thead th.feature-col {
    text-align: left;
    color: rgba(255, 255, 255, 0.6);
}

.comparison-table thead th.col-popular {
    background: rgba(212, 175, 55, 0.25);
    color: var(--accent-gold);
    border-radius: 0;
}

.comparison-table tbody tr {
    border-bottom: 1px solid rgba(13, 27, 42, 0.05);
    transition: background 0.2s;
}

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

.comparison-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.03);
}

.comparison-table tbody td {
    padding: 0.95rem 1.25rem;
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.88rem;
}

.comparison-table tbody td.feature-col {
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
}

.comparison-table tbody td.col-popular {
    background: rgba(212, 175, 55, 0.04);
}

.check-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 900;
}

.cross-cell {
    color: #d1d5db;
    font-size: 1.1rem;
    font-weight: 300;
}

/* ─── FAQ Section ───────────────────────────────────────────────────── */
.faq-section {
    padding: 5rem 5%;
    background: #fff;
}

.faq-grid {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid rgba(13, 27, 42, 0.08);
}

.faq-item:first-child {
    border-top: 1px solid rgba(13, 27, 42, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
    gap: 1rem;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--accent-gold);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(13, 27, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: background 0.3s, transform 0.3s, color 0.3s;
    line-height: 1;
}

.faq-open .faq-icon {
    background: var(--accent-gold);
    color: #fff;
    transform: rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 0 1.5rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-family: var(--font-body);
}

/* ─── Final CTA Section ─────────────────────────────────────────────── */
.pricing-cta-section {
    padding: 5rem 5%;
    background: var(--bg-secondary);
}

.pricing-cta-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--primary-color);
    border-radius: 24px;
    padding: 5rem 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(13, 27, 42, 0.2);
}

.cta-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.pricing-cta-card h2 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
}

.pricing-cta-card h2 em {
    color: var(--accent-gold);
}

.pricing-cta-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.pricing-cta-card .cta-group {
    justify-content: center;
    position: relative;
}

.pricing-cta-card .btn-primary {
    background: var(--accent-gold);
    color: var(--primary-color);
    font-weight: 700;
    border: 2px solid var(--accent-gold);
}

.pricing-cta-card .btn-primary:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-cta-outline {
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.btn-cta-outline:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.cta-note {
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.45) !important;
}

/* ─── Navbar Active ─────────────────────────────────────────────────── */
.nav-active {
    color: var(--accent-gold) !important;
    font-weight: 600;
}

/* ─── Mobile Menu ───────────────────────────────────────────────────── */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ─── Animation Utilities ───────────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in {
    opacity: 0;
    transition: opacity 0.65s ease;
}
.fade-in.visible { opacity: 1; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Force visible immediately for hero elements */
.pricing-hero .fade-in { opacity: 1; }

/* ─── Responsive Design ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card--popular {
        transform: none;
    }
    .pricing-card--popular:hover {
        transform: translateY(-6px);
    }
}

@media (max-width: 768px) {
    .pricing-hero-content h1 { font-size: 2.6rem; }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .pricing-cards-section { padding: 2rem 5% 3rem; }

    .section-header h2 { font-size: 2rem; }

    .pricing-cta-card { padding: 3.5rem 1.75rem; }
    .pricing-cta-card h2 { font-size: 2.2rem; }
    .pricing-cta-card .cta-group { flex-direction: column; align-items: center; }

    .mobile-menu-toggle { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 100;
        font-size: 1.2rem;
    }

    .nav-links.nav-open { display: flex; }

    .billing-toggle-wrapper { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
}

@media (max-width: 480px) {
    .pricing-hero { padding: 5rem 5% 3rem; }
    .pricing-hero-content h1 { font-size: 2.1rem; }
    .pricing-hero-content .cta-group { flex-direction: column; align-items: center; }
}
