/* Compact Pricing Section - Landing Page Component
 * A condensed pricing display that highlights free tier and shows upgrade path
 */

.compact-pricing-section {
    padding: 4rem 0;
}

.compact-pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.compact-pricing-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.compact-pricing-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* Currency Selector Wrapper */
.compact-currency-selector-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Loading State */
.compact-plans-loading {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Compact Pricing Card */
.compact-pricing-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 42rem;
    margin: 0 auto 1.5rem;
}

/* Free Tier Highlight */
.free-tier-highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.free-tier-info {
    flex: 1;
}

.free-tier-badge-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.free-tier-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-success);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

.free-tier-label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
}

.free-tier-features {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.feature-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.free-tier-cta {
    flex-shrink: 0;
}

.free-tier-cta .button {
    white-space: nowrap;
}

/* Upgrade Path Section */
.upgrade-path {
    padding-top: 1.25rem;
}

.upgrade-path-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0 0 1rem 0;
}

/* Upgrade Plans Grid */
.upgrade-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.upgrade-plan-preview {
    position: relative;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease;
}

.upgrade-plan-preview:hover {
    background: var(--surface-hover);
}

.upgrade-plan-preview.is-popular {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.popular-badge {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-success);
    color: var(--color-background);
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
}

.plan-preview-name {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.upgrade-plan-preview.is-popular .plan-preview-name {
    color: var(--color-success);
}

.plan-preview-price {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.price-symbol {
    font-size: 0.875rem;
}

.price-amount {
    font-size: 1.125rem;
}

.price-period {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-preview-highlight {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.plan-preview-billing {
    font-size: 0.625rem;
    color: var(--text-muted);
    opacity: 0.8;
    margin-top: 0.125rem;
}

/* Pricing Link */
.pricing-link-container {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.pricing-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.pricing-link:hover {
    color: var(--color-success);
}

.pricing-link-icon {
    width: 1rem;
    height: 1rem;
}

/* Trust Elements */
.trust-elements {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-icon {
    color: var(--color-success);
}

/* Custom/Enterprise Plan Preview - Visible card style */
.compact-custom-plan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.5rem;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}

.compact-custom-plan:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

.compact-custom-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.compact-custom-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.compact-custom-separator {
    opacity: 0.4;
    color: var(--text-muted);
}

.compact-custom-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.compact-custom-cta {
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-primary);
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
    white-space: nowrap;
}

.compact-custom-cta:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Legacy custom plan preview (keep for backwards compatibility) */
.custom-plan-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.5rem;
}

.custom-plan-info {
    flex: 1;
}

.custom-plan-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.custom-plan-feature {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
    .free-tier-highlight {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .free-tier-cta {
        width: 100%;
    }

    .free-tier-cta .button {
        width: 100%;
        text-align: center;
    }

    .upgrade-plans-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .upgrade-plan-preview {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 0.75rem 1rem;
    }

    .upgrade-plan-preview.is-popular {
        flex-direction: column;
        text-align: center;
    }

    .popular-badge {
        position: static;
        transform: none;
        margin-bottom: 0.5rem;
    }

    .plan-preview-name {
        margin-bottom: 0;
    }

    .plan-preview-price {
        margin-bottom: 0;
    }

    .plan-preview-highlight {
        display: none;
    }

    .upgrade-plan-preview.is-popular .plan-preview-highlight {
        display: block;
    }

    .compact-custom-plan {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .compact-custom-info {
        flex-direction: column;
        gap: 0.25rem;
    }

    .compact-custom-separator {
        display: none;
    }

    .compact-custom-cta {
        width: 100%;
    }

    .trust-elements {
        flex-direction: column;
        gap: 0.75rem;
    }
}
