/* Pricing Page Styles */

.pricing-hero {
    padding: 240px 0 120px 0;
    background-color: transparent;
}

.pricing-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 64px;
}

.pricing-title {
    text-align: left;
    margin-bottom: 0;
    color: #0C0B0E;
    font-family: "Funnel Display";
    font-size: 56px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

/* Toggle Buttons */
.pricing-toggle {
    border: 1px solid var(--text-primary);
    border-radius: 44px;
    display: flex;
    align-items: center;
    padding: 0;
}

.toggle-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    min-width: 156px;
    justify-content: center;
}

.toggle-btn span {
    font-weight: 400;
    line-height: 1;
}

.toggle-btn.active {
    background-color: var(--text-primary);
    color: white;
    border-radius: 54px;
}

.save-badge {
    font-weight: 500 !important;
}

.toggle-btn.active .save-badge {
    color: #f4e1d6;
}

/* Pricing Cards Container */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #d7d6d6;
    border-radius: 8px;
    overflow: hidden;
}

/* Individual Pricing Card */
.pricing-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    background-color: rgba(255, 255, 255, 0.2);
}

.pricing-card:not(:last-child) {
    border-right: 1px solid #d7d6d6;
}

.pricing-card.featured {
    background: linear-gradient(135deg, 
        rgba(234,67,53,0.06) 0%, 
        rgba(238,97,41,0.06) 13%, 
        rgba(243,128,29,0.06) 26%, 
        rgba(247,158,16,0.06) 40%, 
        rgba(251,188,4,0.06) 53%, 
        rgba(240,184,18,0.06) 56%, 
        rgba(229,181,33,0.06) 59%, 
        rgba(207,173,62,0.06) 65%, 
        rgba(185,166,90,0.06) 71%, 
        rgba(163,159,119,0.06) 76%, 
        rgba(118,144,177,0.06) 88%, 
        rgba(74,130,235,0.06) 100%);
}

/* Card Header */
.card-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.plan-image-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.plan-image {
    width: 141px;
    height: 103px;
}

.plan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flipped-image {
    transform: scaleY(-1) rotate(180deg);
}

.annual-badge {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    padding-top: 16px;
    white-space: nowrap;
}

.save-badge {
    font-weight: 500 !important;
}

/* Toggle Switch */
.toggle-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 16px;
}

.toggle-label {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
}

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

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

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-primary);
    border-radius: 12px;
    transition: 0.3s;
    padding: 2px;
    display: flex;
    align-items: center;
}

.toggle-slider:before {
    content: "";
    height: 20px;
    width: 20px;
    background-color: white;
    border-radius: 10px;
    transition: 0.3s;
    position: absolute;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--text-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    right: 2px;
}

.toggle-switch input:not(:checked) + .toggle-slider {
    background-color: rgba(0, 0, 0, 0.3);
}

.toggle-switch input:not(:checked) + .toggle-slider:before {
    left: 2px;
}

/* Plan Info */
.plan-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-name-wrapper {
    display: flex;
    gap: 4px;
    align-items: flex-end;
}

.plan-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
    margin: 0;
}

.popular-badge {
    border: 1px solid var(--text-primary);
    background: #D8EDCC;
    padding: 4px 8px;
    border-radius: 8px;
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1;
    height: 24px;
    display: flex;
    align-items: center;
}

.plan-price {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.price-amount {
    font-weight: 500;
}

.plan-btn {
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.checkmark {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-item span {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 21px;
}

/* Custom Plan Section */
.custom-plan-section {
    border: 1px solid #d7d6d6;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-top: 24px;
}

.custom-plan-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    gap: 24px;
}

.custom-plan-text {
    display: flex;
    gap: 24px;
    align-items: center;
    flex: 1;
}

.custom-plan-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
}

.custom-plan-description {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 21px;
    margin: 0;
}

.custom-plan-section .btn {
    white-space: nowrap;
    min-width: 140px;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        border: none;
    }

    .pricing-card {
        border: 1px solid #d7d6d6 !important;
        border-radius: 8px;
        margin-bottom: 16px;
    }

    .pricing-card:not(:last-child) {
        border-right: 1px solid #d7d6d6;
    }

    .pricing-card:last-child {
        margin-bottom: 0;
    }

    .custom-plan-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .custom-plan-text {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .custom-plan-section .btn {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .pricing-hero {
        padding: 60px 0 80px 0;
    }

    .pricing-header {
        gap: 20px;
        margin-bottom: 48px;
    }

    .pricing-cards {
        max-width: 360px;
        margin: 0 auto;
    }

    .pricing-card {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .pricing-hero {
        padding: 40px 0 60px 0;
    }

    .toggle-btn {
        font-size: 14px;
        padding: 6px 12px;
    }

    .toggle-btn.active {
        min-width: 120px;
    }

    .plan-name {
        font-size: 20px;
    }

    .popular-badge {
        font-size: 10px;
        padding: 3px 6px;
        height: 20px;
    }
}
