/* ==========================================================================
   PRICING PAGE STYLES - payroll.sg
   Scoped specifically for /pricing without affecting Homepage
   ========================================================================== */

.pg-pricing-wrapper {
    background-color: #080c14;
    color: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Hero Section */
.pg-pricing-hero {
    position: relative;
    padding-top: calc(var(--header-height, 72px) + 24px);
    padding-bottom: 0;
    min-height: 360px;
    overflow: hidden;
    background-color: #080c14;
}

.pg-pricing-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
    min-height: 320px;
}

.pg-pricing-hero-content {
    position: relative;
    z-index: 2;
    flex: 1 1 48%;
    max-width: 540px;
    padding-bottom: 28px;
    align-self: center;
}

.pg-pricing-hero-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.pg-pricing-hero-sub {
    font-size: 17px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 0;
}

.pg-pricing-hero-graphic,
.pg-pricing-hero-image-box,
.pg-hero-graphic,
.pg-hero-image-box {
    position: relative;
    flex: 1 1 52%;
    max-width: 660px;
    height: 320px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 1;
    pointer-events: auto;
}

.pg-pricing-hero-img,
.pg-hero-img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: cover;
    object-position: right bottom;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: block;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 18%, rgba(0,0,0,0.85) 45%, #000 70%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 18%, rgba(0,0,0,0.85) 45%, #000 70%);
}

.pg-pricing-hero-bg {
    display: none;
}

/* Billing Toggle Switcher */
.pg-billing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 35px 0 45px 0;
    position: relative;
    z-index: 3;
}

.pg-billing-toggle-pill {
    background: #111827;
    border: 1px solid #1f2937;
    padding: 5px 6px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pg-billing-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pg-billing-btn.active {
    background: #1f2937;
    color: #ffffff;
}

.pg-billing-discount-badge {
    background: rgba(0, 223, 137, 0.15);
    color: #00DF89;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    margin-left: 6px;
}

/* Pricing Cards Grid */
.pg-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.pg-plan-card {
    background: #0d131f;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pg-plan-card:hover {
    transform: translateY(-4px);
    border-color: #334155;
}

/* Featured / Popular Card (Growth) */
.pg-plan-card.featured {
    background: #0f172a;
    border: 1.5px solid #00DF89;
    box-shadow: 0 0 35px rgba(0, 223, 137, 0.18);
}

.pg-popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #00DF89;
    color: #080c14;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 3px 14px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.pg-plan-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.pg-plan-emp-size {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.pg-plan-price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.pg-plan-price {
    font-size: 44px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.pg-plan-period {
    font-size: 16px;
    color: #94a3b8;
}

.pg-plan-tier-label {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 24px;
}

.pg-plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
}

.pg-plan-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #cbd5e1;
    margin-bottom: 14px;
    line-height: 1.45;
}

.pg-plan-feature-item i {
    color: #00DF89;
    font-size: 14px;
    flex-shrink: 0;
}

.pg-plan-btn {
    width: 100%;
    text-align: center;
    padding: 13px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.pg-plan-btn-outline {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid #334155;
}

.pg-plan-btn-outline:hover {
    background: #334155;
    color: #ffffff;
}

.pg-plan-btn-primary {
    background: #00DF89;
    color: #080c14;
    border: none;
}

.pg-plan-btn-primary:hover {
    background: #00fca0;
    box-shadow: 0 4px 15px rgba(0, 223, 137, 0.4);
}

/* Feature Comparison Table */
.pg-comparison-section {
    background: #0d131f;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 50px;
}

.pg-table-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.pg-table-responsive {
    overflow-x: auto;
}

.pg-comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.pg-comparison-table th {
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    padding: 14px 16px;
    border-bottom: 1px solid #1e293b;
}

.pg-comparison-table th:not(:first-child) {
    text-align: center;
    width: 18%;
}

.pg-comparison-table td {
    padding: 14px 16px;
    font-size: 16px;
    color: #94a3b8;
    border-bottom: 1px solid #151f2e;
}

.pg-comparison-table td:not(:first-child) {
    text-align: center;
}

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

.pg-comparison-table .check-yes {
    color: #00DF89;
    font-size: 16px;
}

.pg-comparison-table .check-no {
    color: #475569;
    font-size: 16px;
}

/* Bottom CTA Card */
.pg-bottom-cta {
    background: #0d131f;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 36px 30px;
    text-align: center;
    position: relative;
}

.pg-bottom-cta-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.pg-bottom-cta-sub {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.pg-bottom-cta-btns {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.pg-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pg-cta-whatsapp {
    background: #111827;
    border: 1px solid #334155;
    color: #ffffff;
}

.pg-cta-whatsapp:hover {
    background: #1f2937;
    border-color: #00DF89;
    color: #ffffff;
}

.pg-cta-contact {
    background: #111827;
    border: 1px solid #334155;
    color: #ffffff;
}

.pg-cta-contact:hover {
    background: #1f2937;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 991px) {
    .pg-pricing-hero {
        min-height: auto;
        padding-bottom: 30px;
    }
    .pg-pricing-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        gap: 20px;
    }
    .pg-pricing-hero-graphic,
    .pg-pricing-hero-image-box,
    .pg-hero-graphic,
    .pg-hero-image-box {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 260px;
        justify-content: center;
    }
    .pg-pricing-hero-img,
    .pg-hero-img {
        max-height: 260px;
        object-position: center;
        -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
    }
    .pg-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    .pg-pricing-hero-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .pg-billing-toggle-container {
        margin: 24px 0 32px;
    }

    .pg-billing-toggle-pill {
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 14px;
    }

    .pg-billing-btn {
        font-size: 14px;
        padding: 8px 12px;
    }

    .pg-comparison-section {
        padding: 22px 16px;
        border-radius: 12px;
    }

    .pg-comparison-table th,
    .pg-comparison-table td {
        padding: 12px;
    }
}
