﻿/* --- Logiop Stripe-Style Pricing --- */

:root {
    --stripe-primary: #0074d4;
    --stripe-navy: #0a2540;
    --stripe-text: #424770;
    --stripe-bg: #f6f9fc;
    --stripe-border: #e6e9f0;
}

.stripe-container {
    display: flex;
    flex-direction: column;
    background-color: var(--stripe-bg);
    width: 100%;
    height: 100%;
}

.stripe-header {
    font-family: Verdana;
    font-weight: bold;
    font-size: 24px;
    color: var(--stripe-navy);
}

/* Container & Layout */
.stripe-pricing-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    padding: 20px 20px;
}

/* 1. THE SLIDING PILL TOGGLE */
.stripe-pill-toggle-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-top: 10px;
}

.stripe-pill-toggle {
    position: relative;
    display: flex;
    background: #eeeeee;
    padding: 4px;
    border-radius: 20px;
    width: 200px;
    user-select: none;
    border: 1px solid #e0e0e0;
}

.stripe-pill-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 0;
    font-weight: 600;
    font-size: 14px;
    color: #697386;
    z-index: 2;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .stripe-pill-button.active {
        color: #ffffff;
    }

.stripe-pill-highlight {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--stripe-primary);
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 1;
}

    .stripe-pill-highlight.is-yearly {
        transform: translateX(100%);
    }

.stripe-badge-row {
    height: 24px;
    display: flex;
    justify-content: center;
}

.stripe-save-badge {
    background: #e3e8ee;
    color: var(--stripe-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: stripeFadeIn 0.4s ease-out;
}

.stripe-header-row {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

/* 2. THE FLY-IN ANIMATION */
@keyframes stripeFlyIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Trigger animation on cards */
.stripe-fly-in .stripe-card {
    animation: stripeFlyIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

    /* Staggered delay for multiple cards */
    .stripe-fly-in .stripe-card:nth-child(1) {
        animation-delay: 0.05s;
    }

    .stripe-fly-in .stripe-card:nth-child(2) {
        animation-delay: 0.15s;
    }

    .stripe-fly-in .stripe-card:nth-child(3) {
        animation-delay: 0.25s;
    }

/* 3. THE CARD STYLES */
.stripe-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 32px;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--stripe-border);
    position: relative;
    box-shadow: 0 15px 35px rgba(50,50,93,.1), 0 5px 15px rgba(0,0,0,.07);
    /* Note: transform: translateY is removed to prevent hover-lift */
}

    .stripe-card:hover {
        box-shadow: 0 18px 38px rgba(50,50,93,.15), 0 8px 20px rgba(0,0,0,.1);
        border-color: #d1d5db;
    }

/* Typography & Content */
.stripe-plan-name {
    color: var(--stripe-primary);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    letter-spacing: 0.025em;
}

.stripe-price-wrapper {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

.stripe-amount {
    font-size: 42px;
    font-weight: 700;
    color: var(--stripe-navy);
}

.stripe-currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--stripe-navy);
    margin-right: 2px;
}

.stripe-interval {
    color: var(--stripe-text);
    font-size: 16px;
    margin-left: 4px;
}

.stripe-description {
    color: var(--stripe-text);
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 15px;
    min-height: 50px;
}

/* Features List */
.stripe-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
}

.stripe-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--stripe-text);
    font-size: 14px;
}

.stripe-check {
    width: 18px;
    height: 18px;
    color: var(--stripe-primary);
    margin-right: 10px;
    flex-shrink: 0;
}

/* Button */
.stripe-buy-button {
    width: 100%;
    background-color: var(--stripe-primary);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);
}

    .stripe-buy-button:hover {
        background-color: var(--stripe-navy);
        box-shadow: 0 7px 14px rgba(50,50,93,.1), 0 3px 6px rgba(0,0,0,.08);
    }

    .stripe-buy-button:active {
        transform: scale(0.98);
    }

.stripe-header-actions {
    width: 100%;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
}

.stripe-back-button {
    background: transparent;
    border: none;
    color: var(--stripe-text);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

    .stripe-back-button:hover {
        color: var(--stripe-primary);
        background: rgba(0, 116, 212, 0.05);
    }

.back-icon {
    width: 16px;
    height: 16px;
}
