/* ======================================================
   Pricing Page Styles (complete, with centered pill‐toggle)
   ====================================================== */

/* 1) Containers & Background */
.pricing-parent-container {
    position: relative;
}

.pricing-background-container {
    background-color: var(--clr-navy-100);
    padding-bottom: 8rem;
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.section-container,
.choose-subscription-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 2) Heading */
.heading-primary {
    font-size: var(--fs-heading-primary);
    font-weight: var(--fw-semi-bold);
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
}

/* 3) Subscription Container & Card Layout */
.choose-subscription-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 2rem;
    align-items: stretch;
    width: 100%;
}

.plan-container {
    flex: 1;
    display: flex;
}

.plan-container .plan-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 4) Plan Card Base */
.plan-card {
    background-color: white;
    border: 1px solid var(--clr-black-100);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    max-width: 500px;
}

.plan-card.premium-subscription {
    border: 2px solid #c9ffe8;
    box-shadow: 0 6px 12px rgba(63, 217, 151, 0.25);
    position: relative;
}

.plan-card.premium-subscription::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 25%, rgba(0, 60, 255, 0.4), transparent 70%);
    opacity: 0;
    animation: premium-glow 4s infinite alternate;
}

.plan-card.premium-subscription .plan-card-required-ribbon {
    --ribbon-angle: -34deg;
    position: absolute;
    bottom: 40px;
    right: -45px;
    transform: rotate(var(--ribbon-angle));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 54px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0f3e28;
    white-space: nowrap;
    background: linear-gradient(180deg, #bfead1 0%, #90dcb0 100%);
    border: 1px solid rgba(15, 62, 40, 0.18);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 6px 12px rgba(0, 0, 0, 0.14);
    pointer-events: none;
    z-index: 3;
}

.plan-card.premium-subscription .plan-card-required-ribbon::before,
.plan-card.premium-subscription .plan-card-required-ribbon::after {
    content: "";
    position: absolute;
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.12);
    filter: blur(1.4px);
    border-radius: 2px;
}

.plan-card.premium-subscription .plan-card-required-ribbon::before {
    left: 12px;
    transform: rotate(-8deg);
}

.plan-card.premium-subscription .plan-card-required-ribbon::after {
    right: 12px;
    transform: rotate(8deg);
}

.plan-card.premium-subscription .plan-card-required-ribbon > span {
    position: relative;
    padding: 0 4px;
}

.plan-card.premium-subscription .plan-card-required-ribbon > span::after {
    content: "";
    position: absolute;
    left: -9999px;
    right: -9999px;
    top: -9999px;
    bottom: 9999px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .plan-card.premium-subscription .plan-card-required-ribbon {
        padding: 6px 48px;
        font-size: 0.68rem;
    }
}

@media (max-width: 480px) {
    .plan-card.premium-subscription .plan-card-required-ribbon {
        padding: 5px 42px;
        font-size: 0.64rem;
    }
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* 5) Card Header (equalized height) */
.plan-card-head {
    position: relative;
    background: #f7f9fc;
    padding: 2rem 1.5rem;
    text-align: center;
    flex-shrink: 0;
    min-height: 300px;
}

#plan-free .plan-card-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plan-card-head h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--clr-black-100);
}

.plan-description {
    margin: 0.5rem auto;
    max-width: 34rem;
    color: var(--clr-black-75);
}

/* 6) Pricing Text */
.plan-price {
    font-size: 2.5rem;
    font-weight: var(--fw-bold);
    color: var(--clr-primary-100);
    margin: 0.5rem 0;
    line-height: 1;
}

.plan-price-frequency {
    font-size: var(--fs-body);
    font-weight: var(--fw-semi-bold);
    color: #666;
    margin-left: 0.25rem;
}

.plan-billing-frequency {
    color: var(--clr-black-75);
    font-weight: var(--fw-light);
    margin-bottom: 1rem;
}

.plan-discount-note {
    margin: 0 0 0.75rem;
    color: var(--clr-primary-100);
    font-size: 0.95rem;
    font-weight: var(--fw-semi-bold);
}

.checkout-empty-state {
    display: grid;
    align-content: center;
    gap: 0.75rem;
    min-height: 300px;
    width: 100%;
    padding: 2rem;
    border: 1px solid var(--clr-black-20);
    border-radius: 8px;
    background: #ffffff;
    color: var(--clr-black-100);
    text-align: center;
}

.checkout-empty-state h2,
.checkout-empty-state p {
    margin: 0;
}

.pricing-parent-container .plan-container[hidden],
.pricing-parent-container .plan-btn[hidden] {
    display: none !important;
}

/* 7) Feature List */
.plan-features-list {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
    border-top: 1px solid #e2e8f0;
    flex-grow: 1;
}

.plan-features-list > li {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #333;
    position: relative;
    padding-left: 1.5rem;
}

.plan-features-list > li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: rgb(0, 233, 0);
    font-size: 1rem;
    line-height: 1;
}

/* 8) Nested Tools */
.nested-list {
    list-style: none;
    margin: 0.5rem 0 0 2rem;
    padding: 0;
    width: calc(100% - 2rem);
}

.nested-list li {
    display: block;
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #333;
    padding-left: 1.5rem;
}

.nested-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: rgb(0, 233, 0);
    font-size: 1rem;
    line-height: 1;
}

/* 9) Premium Visibility */
.premium-subscription .plan-features-list > li,
.premium-subscription .nested-list li {
    color: #333 !important;
}

/* The ribbon sits over the card's bottom-right corner; keep the bullets clear
   of it: wrap long lines before the corner and leave room below the last one. */
.plan-card.premium-subscription .plan-features-list {
    padding-right: 3rem;
    padding-bottom: 7rem;
}

/* 10) Select Plan Button */
.select-plan-button {
    all: unset;
    display: block;
    width: calc(100% - 3rem);
    margin: 1.5rem auto 0.75rem;
    padding: 0.75rem 0;
    text-align: center;
    background: var(--clr-primary-100);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.select-plan-button[data-type='inverted'] {
    background: white;
    color: var(--clr-black-100);
    border: 2px solid var(--clr-black-100);
}

.select-plan-button:hover {
    background: var(--clr-primary-40);
    color: white;
}


.select-plan-button.sold-out,
.select-plan-button.sold-out:hover {
    background: var(--clr-black-20);
    color: var(--clr-black-75);
    cursor: not-allowed;
}

/* 11) Billing Toggle (centered pill‐toggle) */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    font-size: 1rem;
    color: white;
}

.billing-label {
    user-select: none;
    flex: 0 0 auto;
}

/* switch wrapper */
.billing-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

/* hide checkbox */
.billing-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* track */
.billing-switch .slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ddd;
    border-radius: 13px;
    transition: background 0.2s;
}

/* knob */
.billing-switch .slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 2px;
    bottom: 2px;
    background: var(--clr-primary-100);
    border-radius: 50%;
    transition: transform 0.2s;
}

/* checked state */
.billing-switch input:checked + .slider {
    background: #bbb;
}

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

.billing-switch:hover .slider {
    background: #ccc;
}

/* 12) Plan Toggle (mobile) */
.plan-toggle {
    display: none;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem auto 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    overflow: hidden;
    max-width: 360px;
}

.plan-btn {
    all: unset;
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ccc;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.plan-btn.active {
    background: var(--clr-primary-100);
    color: white;
    border-radius: 26px;
}

.plan-btn:not(.active):hover {
    background: var(--clr-primary-40);
    color: white;
}

/* 13) Billing Sections Show/Hide */
.billing-section {
    display: none;
}

.billing-section.active {
    display: block;
}

.plan-card.billing-section {
    display: none !important;
}

.plan-card.billing-section.active {
    display: flex !important;
    flex-direction: column !important;
}

/* 14) Responsive Adjustments */
@media (min-width: 1000px) {
    .choose-subscription-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 999px) {
    .plan-toggle {
        display: flex;
    }

    .plan-container {
        display: none;
    }

    .plan-container.active {
        display: flex;
    }

    .plan-container .plan-card {
        width: 100%;
        margin: 0 auto;
    }
}

/* 15) Decorative Elements */
.pricing-grey-oval-divider {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: -10;
}

.pricing-glowing-dots-container {
    position: absolute;
    top: 15%;
    left: 50px;
    opacity: 0.5;
    width: 100%;
    min-width: 1000px;
    height: 85%;
    pointer-events: none;
    z-index: -1;
    background-image: url("../../images/landing-page/HomepageSVG-05.7fb10516ec85.svg");
    background-repeat: repeat-y;
    background-size: auto auto;
    background-position: center;
}

/* 16) Logo visibility: hover on desktop, always show on mobile */
@keyframes premium-glow {
    from {
        opacity: 0.2;
        transform: scale(1);
    }
    to {
        opacity: 0.5;
        transform: scale(2);
    }
}

/* ✅ NEW: CTA microcopy (ONLY addition) */
.plan-cta-note {
    margin: 0 auto 0.25rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--clr-black-75);
    line-height: 1.2;
}
