/* Pricing Page Specific Styles */

:root {
    /* Shido Theme Variables from landing_page/shido.css */
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #edf2f7;
    --brand-orange: #ff9500;
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --glass-border: rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-base: 0.3s ease;

    /* Pricing specific overrides/mappings */
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --btn-shadow: 0 8px 25px rgba(255, 149, 0, 0.3);
}

.pricing-page {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-orange);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.pricing-nav {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-ghost {
    color: var(--text-secondary);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
    /* Darken for light theme */
}

.btn-primary {
    background: var(--brand-orange);
    color: white;
    box-shadow: var(--btn-shadow);
    border: none;
}

.btn-primary:hover {
    background: #e68600;
    /* Darker orange on hover */
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 149, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-block {
    display: flex;
    width: auto;
    /* Match landing page (not full width) */
    align-self: center;
    /* Center in flex column */
    margin-top: 0;
    /* Spacing handled by yearly-total margin-bottom */
    padding: 1.25rem 2.5rem;
    /* Exact padding from shido.css */
    justify-content: center;
    font-size: 1.05rem;
    min-width: 200px;
    /* Ensure decent clickable area */
}

.btn.disabled {
    opacity: 1;
    /* Reset opacity as we control color */
    cursor: not-allowed;
    pointer-events: none;
    background: #e2e8f0 !important;
    /* Grey background */
    color: #a0aec0 !important;
    /* Muted text */
    border: 1px solid #cbd5e0 !important;
    box-shadow: none !important;
}

/* Hero Section */
.pricing-hero {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.pricing-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    line-height: 1.1;
}

.pricing-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.5;
}

/* Billing Toggle */
.billing-toggle-wrapper {
    position: relative;
    /* Context for absolute positioning of badge */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /* Keep toggle centered */
    margin-bottom: var(--spacing-xl);
    height: 48px;
    /* Ensure height for absolute child */
}

.billing-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--bg-secondary);
    padding: 6px 8px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.toggle-label {
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
    font-size: 0.9rem;
    padding: 0 4px;
}

.toggle-label.active {
    color: var(--text-primary);
}

/* Switch Styles */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--glass-border);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

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

input:checked+.toggle-slider:before {
    transform: translateX(20px);
}

.save-badge-container {
    position: absolute;
    left: 50%;
    margin-left: 120px;
    /* Push to right of centered toggle (approx toggle width/2 + gap) */
    white-space: nowrap;
    height: 24px;
}

.save-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-4px);
    }

    60% {
        transform: translateY(-2px);
    }
}

/* Pricing Cards Container */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg) var(--spacing-xl);
    width: 100%;
}

/* Individual Card */
.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: var(--card-shadow);
}

/* Divider */
.pricing-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1.5rem 0;
    width: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured {
    border: 2px solid var(--brand-orange);
    background: var(--bg-secondary);
    box-shadow: 0 15px 50px rgba(255, 149, 0, 0.15);
    transform: scale(1.05);
    /* Make middle card bigger */
    z-index: 10;
    /* Ensure it overlaps neighbors if needed */
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
    /* Keep scale on hover */
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-orange);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(255, 167, 31, 0.4);
}

.card-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.plan-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.price-amount {
    font-size: 3.5rem;
    /* Matched to shido.css */
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price-period {
    font-size: 1.25rem;
    /* Matched to shido.css */
    color: var(--text-secondary);
    margin-left: 0;
}

.yearly-total {
    text-align: center;
    font-size: 0.875rem;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
    height: 20px;
}

.yearly-total-placeholder {
    height: 20px;
    margin-bottom: 0.5rem;
}

.features-header {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-xs);
    margin-top: var(--spacing-sm);
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* Matched gap */
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.feature-list li svg {
    color: #22c55e;
    /* Match landing page green check */
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.feature-list li.feature-muted {
    color: var(--text-muted);
    opacity: 0.6;
}

.feature-list li.feature-muted i {
    color: var(--text-muted);
}



/* FAQ Section */
.pricing-faq {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    /* border-top: 1px solid var(--glass-border); Removed for cleaner look */
}

.pricing-faq h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.pricing-footer {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 2.25rem;
    }


}