/* Page Hero */
.pricing-page {
    overflow-x: hidden;
}

@supports (overflow: clip) {
    .pricing-page {
        overflow-x: clip;
    }
}

.page-hero {
    padding: 10rem 0 4rem;
    text-align: center;
    background: linear-gradient(165deg, var(--gray-50) 0%, var(--white) 100%);
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.page-hero-description {
    font-size: 1.25rem;
    color: var(--navy-600);
    line-height: 1.7;
}

/* Pricing Section */
.pricing-section {
    padding: 4rem 0 6rem;
}

/* Pricing Toggle */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 100%;
}

.pricing-toggle-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-400);
    cursor: pointer;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-toggle-label.active {
    color: var(--navy-900);
}

.pricing-save-badge {
    background: var(--orange-100);
    color: var(--orange-600);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-full);
}

.pricing-toggle-switch {
    width: 56px;
    height: 28px;
    background: var(--gray-200);
    border: none;
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.pricing-toggle-switch.active {
    background: var(--orange-500);
}

.pricing-toggle-slider {
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--white);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.pricing-toggle-switch.active .pricing-toggle-slider {
    transform: translateX(28px);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    position: relative;
    min-width: 0;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--orange-500);
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

.pricing-card.promo {
    border-color: rgba(22, 163, 74, 0.35);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.pricing-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card-header {
    margin-bottom: 1.5rem;
}

.pricing-plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0.5rem;
}

.pricing-plan-description {
    font-size: 0.9375rem;
    color: var(--navy-600);
    line-height: 1.6;
}

.pricing-card-price {
    display: block;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-price-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--navy-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pricing-tooltip {
    position: relative;
    display: inline-flex;
}

.pricing-tooltip-trigger {
    width: 22px;
    height: 22px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--navy-500);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.pricing-tooltip-trigger:hover,
.pricing-tooltip-trigger:focus-visible,
.pricing-tooltip-trigger[aria-expanded="true"] {
    border-color: var(--orange-500);
    color: var(--orange-600);
    background: var(--orange-50);
    outline: none;
}

.pricing-tooltip-content {
    display: none;
    position: absolute;
    z-index: 20;
    left: 50%;
    bottom: calc(100% + 0.75rem);
    width: min(320px, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    pointer-events: none;
    background: var(--navy-900);
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.55;
    text-transform: none;
    letter-spacing: 0;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.pricing-tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: var(--navy-900);
}

.pricing-tooltip-content strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--white);
    font-size: 0.875rem;
}

.pricing-tooltip:hover .pricing-tooltip-content,
.pricing-tooltip-trigger:focus-visible + .pricing-tooltip-content,
.pricing-tooltip-trigger[aria-expanded="true"] + .pricing-tooltip-content {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.pricing-price-line {
    display: flex;
    align-items: baseline;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-right: 0.25rem;
}

.pricing-amount {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1;
}

.pricing-period {
    font-size: 1rem;
    color: var(--navy-500);
    margin-left: 0.5rem;
}

.pricing-price-note {
    margin: 0.5rem 0 0;
    color: var(--navy-500);
    font-size: 0.875rem;
    line-height: 1.5;
}

.pricing-plan-facts {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
}

.pricing-plan-facts div {
    display: grid;
    grid-template-columns: minmax(8.5rem, 42%) 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-plan-facts dt {
    color: var(--navy-500);
    font-size: 0.8125rem;
    font-weight: 700;
}

.pricing-plan-facts dd {
    margin: 0;
    color: var(--navy-800);
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: right;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.9375rem;
    color: var(--navy-700);
}

.pricing-features li strong {
    display: block;
    color: var(--navy-900);
    font-size: 0.875rem;
    margin-bottom: 0.15rem;
}

.pricing-feature-learn {
    display: flex;
    width: fit-content;
    margin-top: 0.25rem;
    color: var(--orange-600);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 800;
}

.pricing-feature-learn:hover {
    color: var(--orange-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pricing-feature-learn:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.35);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.pricing-feature-check {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    background: var(--orange-100);
    color: var(--orange-600);
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
}

.pricing-feature-check::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pricing-cta {
    width: 100%;
    text-align: center;
}

/* Pricing Guarantee */
.pricing-guarantee {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    margin: 4rem auto 0;
    padding: 1.5rem 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    text-align: left;
}

.pricing-guarantee svg {
    width: 48px;
    height: 48px;
    color: var(--orange-500);
    flex-shrink: 0;
}

.pricing-guarantee strong {
    display: block;
    font-size: 1rem;
    color: var(--navy-900);
    margin-bottom: 0.25rem;
}

.pricing-guarantee p {
    font-size: 0.875rem;
    color: var(--navy-600);
    margin: 0;
}

/* FAQ Section */
.pricing-faq {
    padding: 6rem 0;
    background: var(--gray-50);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--gray-200);
}

.faq-item h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0.75rem;
}

.faq-item p {
    font-size: 0.9375rem;
    color: var(--navy-600);
    line-height: 1.6;
    margin: 0;
}

.pricing-compare-prompt {
    margin: 2rem 0 0;
    text-align: center;
}

.pricing-compare-prompt a {
    color: var(--orange-600);
    font-family: var(--font-display);
    font-weight: 800;
    text-decoration: none;
}

.pricing-compare-prompt a:hover {
    color: var(--orange-700);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.pricing-compare-prompt a:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.35);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

/* Checkout Modal */
.checkout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.checkout-modal {
    background: var(--white);
    border-radius: var(--radius-2xl);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-2xl);
}

.checkout-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    z-index: 10;
}

.checkout-modal-close:hover {
    background: var(--gray-200);
}

.checkout-modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--navy-600);
}

.checkout-modal-content {
    padding: 2.5rem;
}

.checkout-step {
    text-align: center;
}

.checkout-step-loading {
    padding: 4rem 2rem;
}

.checkout-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--orange-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.checkout-header {
    margin-bottom: 1.5rem;
}

.checkout-icon {
    width: 64px;
    height: 64px;
    background: var(--orange-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.checkout-icon svg {
    width: 32px;
    height: 32px;
    color: var(--orange-500);
}

.checkout-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0.5rem;
}

.checkout-subtitle {
    font-size: 1rem;
    color: var(--navy-600);
}

.checkout-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

.checkout-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--navy-700);
    font-weight: 500;
}

.checkout-trust-item svg {
    width: 18px;
    height: 18px;
    color: var(--green-500);
}

.checkout-summary {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.checkout-summary-row:first-child {
    font-weight: 600;
    color: var(--navy-900);
}

.checkout-amount-today {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-600);
}

.checkout-summary-future {
    color: var(--navy-600);
    font-size: 0.875rem;
    border-top: 1px dashed var(--gray-300);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.checkout-card-container {
    text-align: left;
    margin-bottom: 1.5rem;
}

.checkout-card-container label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy-700);
    margin-bottom: 0.5rem;
}

.stripe-card-element {
    padding: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.stripe-card-element:focus-within {
    border-color: var(--orange-500);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.checkout-card-errors {
    color: var(--red-600);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

.checkout-submit {
    width: 100%;
    position: relative;
}

.checkout-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.checkout-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.checkout-terms {
    font-size: 0.75rem;
    color: var(--navy-500);
    margin-top: 1rem;
    line-height: 1.6;
}

.checkout-terms a {
    color: var(--orange-600);
    text-decoration: underline;
}

/* Success State */
.checkout-success-icon {
    width: 80px;
    height: 80px;
    background: var(--green-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.checkout-success-icon svg {
    width: 40px;
    height: 40px;
    color: var(--green-600);
}

.checkout-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0.5rem;
}

.checkout-success-message {
    color: var(--navy-600);
    margin-bottom: 1.5rem;
}

/* Error State */
.checkout-error-icon {
    width: 80px;
    height: 80px;
    background: var(--red-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.checkout-error-icon svg {
    width: 40px;
    height: 40px;
    color: var(--red-600);
}

.checkout-error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 0.5rem;
}

.checkout-error-message {
    color: var(--navy-600);
    margin-bottom: 1.5rem;
}

/* Secure Badge */
.checkout-secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
    font-size: 0.875rem;
    color: var(--navy-600);
}

.checkout-secure-badge svg {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 8rem 0 3rem;
    }

    .pricing-toggle {
        width: min(100%, 22rem);
        margin-left: auto;
        margin-right: auto;
        gap: 0.75rem;
    }

    .pricing-toggle-label {
        flex: 0 1 auto;
        min-width: 0;
    }

    .pricing-toggle-label[data-period="annual"] {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pricing-save-badge {
        white-space: nowrap;
    }

    .pricing-plan-facts div {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .pricing-plan-facts dd {
        text-align: left;
    }

    .pricing-tooltip-content {
        left: 0;
        width: min(280px, calc(100vw - 3rem));
        max-width: calc(100vw - 3rem);
        transform: translateX(0) translateY(4px);
    }

    .pricing-tooltip-content::after {
        left: 1rem;
    }

    .pricing-tooltip:hover .pricing-tooltip-content,
    .pricing-tooltip-trigger:focus-visible + .pricing-tooltip-content,
    .pricing-tooltip-trigger[aria-expanded="true"] + .pricing-tooltip-content {
        transform: translateX(0) translateY(0);
    }

    .pricing-guarantee {
        flex-direction: column;
        text-align: center;
    }

    .checkout-trust {
        flex-direction: column;
        gap: 0.75rem;
    }

    .checkout-modal-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .pricing-card {
        padding: 2rem 1.25rem;
    }

    .pricing-card-badge {
        max-width: calc(100% - 2rem);
        text-align: center;
        white-space: normal;
    }

    .pricing-price-line {
        flex-wrap: wrap;
    }

    .pricing-amount {
        font-size: clamp(2.75rem, 16vw, 3.5rem);
    }
}
