/* Pricing Section */
/* Pricing Section */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotation {
    0% {
        --gradient-angle: 0deg;
    }

    100% {
        --gradient-angle: 360deg;
    }
}

.pricing-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pricing-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 128px;
}

.pricing-cards-container {
    width: 100%;
    box-sizing: border-box;
}

.pricing-cards-grid {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    gap: 32px;
}

/* Pricing Card */
.pricing-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;

    /* Card Styling */
    background: var(--color-bg-second, #1C1C1E);
    /* Fallback */
    padding: 32px;
    border-radius: 32px;
    border: 1px solid transparent;
    /* Default border */
    transition: transform 0.3s ease;
}

.pricing-card.plan-pro {
    position: relative;
    /* Use standard background, no inner gradient border */
    background: var(--color-bg-second, #1C1C1E);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    z-index: 1;
    transform-style: preserve-3d;
    /* Enable 3D space for children */
}

/* Glow Effect (Restored - Static) */
.pricing-card.plan-pro::after {
    content: "";
    position: absolute;
    inset: -2px;
    transform: translateZ(-1px);
    /* Move behind card in 3D space */
    background: linear-gradient(135deg,
            #000000,
            #000000,
            #1C1C1E,
            #4c4c4c,
            #fdfdfd);
    border-radius: 32px;
    filter: blur(16px);
    opacity: 0.8;
}

/* Glow Effect to "increase radius" */


.pricing-card-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pricing-card-header h3 {
    margin: 0;
}

.pricing-card-header p {
    margin: 0;
}

/* Pricing Amount Visuals */
.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.pricing-amount .price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

/* .price-original and .price-free typography handled by .text-* classes */

.pricing-amount .period {
    /* Typography via .text-muted (inherit) or needs class? */
    /* Assuming .text-muted is color, size comes from context or I should set it */
    font-size: 16px;
    font-weight: 500;
    /* Keeping this as it wasn't added to typography.css explicitly except as generic body? 
       Actually, I could use .text-desktop-button (16px, 500)
    */
}

/* Extra Info Section */
.pricing-extra-info {
    margin-top: auto;
    /* Pushes to bottom of list wrapper if list is short */
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
}

.pricing-extra-info .separator {
    height: 1px;
    background: rgba(235, 235, 245, 0.1);
    width: 100%;
}

.pricing-extra-info .extra-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

/* Lists Wrapper */
.pricing-lists-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Features List */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Removed flex-grow on list itself, wrapper handles spacing */
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Typography via .text-list-item in HTML */
}

.check-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17L4 12' stroke='%23EBEBF5' stroke-opacity='0.75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Button Overrides for Pricing Card Context */
.pricing-btn-width {
    width: 100%;
    /* Optional: override border-radius if needed for card consistency, 
       but global tokens use 100px (pill). Keeping global for now unless requested. */
}



/* Responsive */
@media (max-width: 1024px) {
    .pricing-cards-grid {
        flex-direction: column;
        gap: 64px;
    }

    /* Removed pricing-divider and container overrides as they are no longer needed */
}

@media (max-width: 768px) {
    .pricing-header-content h2 {
        font-size: 32px;
    }

    .pricing-wrapper {
        padding: 0 32px;
        gap: 64px;
    }
}

/* Pricing Toggle (Segmented Control) */
.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    /* Space between toggle and grid */
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    /* Offset from viewport top */
    z-index: 200;
    pointer-events: none;
    padding-bottom: 24px;
    /* Breathing room for blur fade */
}

/* Enable pointer events on the control itself */
.segment-control-container,
.pricing-checkbox-hidden {
    pointer-events: auto;
}

.segment-control-container {
    background: rgba(44, 44, 46, 0.4);
    /* More transparent for blur effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 2px;
    display: flex;
    position: relative;
    width: 250px;
    height: 36px;
    box-sizing: content-box;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.segment-indicator {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc(50% - 2px);
    /* Half width minus padding/gap */
    background: #FFFFFF;
    /* Active state is white */
    border-radius: 100px;
    /* Use 100px for max rounded pill */
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.12), 0px 3px 1px rgba(0, 0, 0, 0.04);
}

.pricing-checkbox-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pricing-checkbox-hidden:checked+.segment-control-container .segment-indicator {
    transform: translateX(100%);
}

.segment-option {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    /* Above indicator */
    color: #FFFFFF;
    /* Default text color */
    transition: color 0.3s ease;
    user-select: none;
}

/* Active text color changes */
/* When checkbox is unchecked (Monthly), first option (Monthly) should be black (if indicator is white) */
.pricing-checkbox-hidden:not(:checked)+.segment-control-container .option-monthly .text-desktop-button {
    color: #000000;
}

/* When checkbox is checked (Yearly), second option (Yearly) should be black */
.pricing-checkbox-hidden:checked+.segment-control-container .option-yearly .text-desktop-button {
    color: #000000;
}

/* Pricing Text Animation */
.text-pricing-amount,
.text-pricing-original,
.period {
    transition: all 0.2s ease-in-out;
    opacity: 1;
    transform: translateY(0);
}

.text-pricing-amount.fading-out,
.text-pricing-original.fading-out,
.period.fading-out {
    opacity: 0;
    transform: translateY(-10px);
}