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

body.pricing-body-bg {
    position: relative;
}

.pricing-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('../images/pricing/pricing-section-background.png');
    background-position: center top;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.pricing-bg-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.50);
    pointer-events: none;
}

body.pricing-body-bg .subpage,
body.pricing-body-bg .site-footer {
    position: relative;
    z-index: 1;
}

body.pricing-body-bg .s-light,
body.pricing-body-bg .subpage-hero,
body.pricing-body-bg .sub-section-full,
body.pricing-body-bg .section-pricing,
body.pricing-body-bg .pricing-explainer,
body.pricing-body-bg .pricing-hero,
body.pricing-body-bg main,
body.pricing-body-bg header {
    background: transparent !important;
    background-color: transparent !important;
}

/* ============================
   PRICING SECTION
   ============================ */

.section-pricing {
    padding: var(--section-pad) 24px;
    position: relative;
    overflow: visible;
}

.pricing-inner {
    max-width: var(--container);
    margin: 0 auto;
}

/* ── How Pricing Works section ── */
.pricing-explainer {
    padding: 0 24px 100px;
}

.pricing-explainer-inner {
    max-width: min(75vw, 900px);
    margin: 0 auto;
    text-align: center;
}

.pricing-explainer-inner .eyebrow {
    margin-bottom: 28px;
    display: inline-block;
}

.pricing-explainer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: left;
}

.explainer-card {
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: var(--radius-lg);
    padding: 24px 24px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
    transition: box-shadow .4s var(--ease), transform .35s var(--ease), border-color .4s var(--ease);
    will-change: transform;
}

.explainer-card:hover {
    box-shadow: 0 8px 32px rgba(79, 110, 247, .12), 0 2px 8px rgba(0, 0, 0, .06);
    transform: translateY(-4px);
    border-color: rgba(79, 110, 247, .15);
}

.explainer-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 110, 247, .12), rgba(79, 110, 247, .06));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 14px;
    transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}

.explainer-card:hover .explainer-icon {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, rgba(79, 110, 247, .18), rgba(79, 110, 247, .10));
    box-shadow: 0 4px 12px rgba(79, 110, 247, .15);
}

.explainer-card h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a2e;
}

.explainer-card p {
    font-size: .84rem;
    line-height: 1.55;
    color: #111122;
    margin: 0;
}

@media (max-width: 640px) {
    .pricing-explainer-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Hero override for pricing ── */
.pricing-hero {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pricing-hero h1 {
    font-family: var(--ff-serif);
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    text-align: center;
    width: 100%;
}

.pricing-hero-sub {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    color: #080812 !important;
    text-align: center;
}

/* ============================
   PLAN TOGGLE
   ============================ */

.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 36px;
    padding: 4px;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: var(--radius-full);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.pricing-toggle-btn {
    padding: 10px 28px;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    color: #3d4258;
    cursor: pointer;
    transition: all .3s var(--ease);
    position: relative;
}

.pricing-toggle-btn:hover {
    color: var(--accent);
}

.pricing-toggle-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 12px rgba(79, 110, 247, .25);
}

/* ============================
   TAB CONTENT
   ============================ */

.pricing-tab-content {
    display: none;
}

.pricing-tab-content.active {
    display: block;
}

/* ============================
   PLAN CARDS
   ============================ */

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.plan-card {
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 36px 28px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(79, 110, 247, .12), 0 4px 12px rgba(0, 0, 0, .06);
    border-color: rgba(79, 110, 247, .15);
}

.plan-card-highlighted {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(79, 110, 247, .15), 0 0 0 1px rgba(79, 110, 247, .08);
}

.plan-card-highlighted:hover {
    box-shadow: 0 16px 48px rgba(79, 110, 247, .2), 0 0 0 1px rgba(79, 110, 247, .12);
}

.plan-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 18px;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.plan-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.plan-name {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent);
    margin-bottom: 4px;
}

.plan-sub {
    display: block;
    font-size: .82rem;
    font-weight: 400;
    color: #3d4258;
    margin-bottom: 12px;
}

.plan-vat {
    display: block;
    font-size: .75rem;
    font-weight: 400;
    color: #6b7280;
    margin-top: 4px;
}

.plan-price {
    font-size: 1rem;
    color: var(--text);
}

.plan-price strong {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.plan-period {
    font-size: .82rem;
    font-weight: 500;
    color: #3d4258;
}

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

.plan-features li {
    position: relative;
    padding-left: 22px;
    font-size: .84rem;
    color: #1a1a2e;
    line-height: 1.5;
    margin-bottom: 10px;
}

.plan-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(79, 110, 247, .12);
    border: 2px solid var(--accent);
}

.plan-usage-note {
    font-size: .75rem;
    color: #3d4258;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, .04);
    margin-bottom: 16px;
    font-style: italic;
}

.btn-plan {
    display: block;
    width: 100%;
    padding: 14px 0;
    text-align: center;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: .88rem;
    color: var(--accent);
    background: rgba(79, 110, 247, .08);
    border: 1.5px solid rgba(79, 110, 247, .2);
    transition: all .3s var(--ease);
    cursor: pointer;
    text-decoration: none;
}

.btn-plan:hover {
    background: rgba(79, 110, 247, .14);
    border-color: rgba(79, 110, 247, .35);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(79, 110, 247, .15);
}

.btn-plan-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-plan-primary:hover {
    background: #3b5de7;
    border-color: #3b5de7;
    box-shadow: 0 4px 20px rgba(79, 110, 247, .3);
}

/* ============================
   ENTERPRISE CARD
   ============================ */

.pricing-enterprise-card {
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(79, 110, 247, .15);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 48px 40px;
    max-width: 800px;
    margin: 0 auto 40px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.pricing-enterprise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(79, 110, 247, .12), 0 4px 12px rgba(0, 0, 0, .06);
}

.enterprise-inner {
    display: flex;
    align-items: center;
    gap: 48px;
}

.enterprise-text {
    flex: 1;
}

.enterprise-text h3 {
    font-family: 'Young Serif', serif;
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.enterprise-text p {
    font-size: .88rem;
    color: #3d4258;
    line-height: 1.6;
    margin-bottom: 16px;
}

.enterprise-cta {
    text-align: center;
    flex-shrink: 0;
    min-width: 180px;
}

.enterprise-cta .btn-plan {
    min-width: 180px;
}

/* ============================
   AI USAGE EXPLAINER
   ============================ */

.pricing-usage-explainer {
    max-width: 700px;
    margin: 0 auto 48px;
    padding: 28px 32px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, .5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, .06);
    text-align: center;
}

.pricing-usage-explainer h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.pricing-usage-explainer p {
    font-size: .85rem;
    color: #3d4258;
    line-height: 1.6;
    margin: 0;
}

/* ============================
   HIGHLIGHT CHIPS
   ============================ */

.pricing-highlights {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.pricing-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, .05);
    transition: all .35s var(--ease);
    position: relative;
    overflow: hidden;
}

.pricing-chip > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-chip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(79, 110, 247, .06), transparent 60%);
    opacity: 0;
    transition: opacity .4s var(--ease);
}

.pricing-chip:hover::before {
    opacity: 1;
}

.pricing-chip:hover {
    border-color: rgba(79, 110, 247, .15);
    box-shadow: 0 4px 20px rgba(79, 110, 247, .1);
    transform: translateY(-3px);
}

.pricing-chip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(79, 110, 247, .08);
    color: var(--accent);
    flex-shrink: 0;
    transition: all .35s var(--ease);
}

.pricing-chip-icon svg {
    width: 20px;
    height: 20px;
    transition: transform .35s var(--ease-bounce);
}

.pricing-chip:hover .pricing-chip-icon {
    background: rgba(79, 110, 247, .12);
    box-shadow: 0 0 12px rgba(79, 110, 247, .15);
}

.pricing-chip:hover .pricing-chip-icon svg {
    transform: scale(1.12) rotate(-3deg);
}

.pricing-chip-text {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
}

.pricing-chip-sub {
    font-size: .72rem;
    color: #111122;
    display: block;
    margin-top: 1px;
}

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

@media (max-width: 960px) {
    .pricing-plans {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-hero h1 {
        white-space: normal;
    }

    .pricing-hero-sub {
        white-space: normal;
    }

    .enterprise-inner {
        flex-direction: column;
        text-align: center;
    }

    .enterprise-text .plan-features {
        text-align: left;
    }

    .pricing-enterprise-card {
        padding: 32px 24px;
    }
}

@media (max-width: 640px) {
    .pricing-highlights {
        flex-direction: column;
        align-items: stretch;
    }

    .pricing-toggle {
        flex-direction: column;
        border-radius: var(--radius-lg);
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-toggle-btn {
        padding: 12px 20px;
    }

    .plan-card {
        padding: 28px 22px 24px;
    }

    .plan-price strong {
        font-size: 2rem;
    }

    .workflow-steps {
        flex-direction: column;
    }

    .future-pkg-cards {
        flex-direction: column;
    }
}

/* ============================
   TWO-STEP WORKFLOW
   ============================ */

.pricing-workflow {
    max-width: 700px;
    margin: 40px auto 0;
    text-align: center;
}

.pricing-workflow h3 {
    font-family: 'Young Serif', serif;
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 20px;
    text-align: center;
}

.workflow-steps {
    display: flex;
    gap: 24px;
}

.workflow-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    flex: 1;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(100,108,255,.12);
    border-radius: 14px;
    padding: 20px;
}

.workflow-step > div {
    padding-top: 5px;
    text-align: left;
}

.workflow-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #646cff, #8b5cf6);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
}

.workflow-step strong {
    display: block;
    font-size: .85rem;
    color: #1e293b;
    margin-bottom: 4px;
}

.workflow-step p {
    font-size: .78rem;
    color: #475569;
    line-height: 1.45;
    margin: 0;
}

/* ============================
   CONCIERGE (formerly AI Future Package)
   ============================ */

.pricing-future-pkg {
    max-width: 700px;
    margin: 48px auto 0;
    text-align: center;
}

.pricing-future-pkg h3 {
    font-family: 'Young Serif', serif;
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.future-pkg-sub {
    font-size: .82rem;
    color: #64748b;
    margin-bottom: 24px;
}

.future-pkg-cards {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.future-pkg-card {
    flex: 1;
    max-width: 320px;
    background: rgba(255,255,255,.6);
    border: 1px solid rgba(100,108,255,.12);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
}

.future-pkg-label {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #646cff;
    background: rgba(100,108,255,.08);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.future-pkg-price {
    font-family: 'Sora', sans-serif;
    color: #1e293b;
    margin-bottom: 10px;
}

.future-pkg-price strong {
    font-size: 2rem;
    font-weight: 700;
}

.future-pkg-card p {
    font-size: .78rem;
    color: #475569;
    line-height: 1.45;
}

.future-pkg-card .plan-features {
    text-align: left;
    margin: 12px 0 0;
}

.future-pkg-card .plan-features li {
    font-size: .78rem;
    color: #475569;
    line-height: 1.45;
}
