/* WORKING PRICING PAGE CSS */

.pricing-page-wrapper {
    background: #ffffff;
    min-height: 100vh;
}

/* Hero Section */
.pricing-hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.pricing-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.2;
}

.pricing-hero p {
    font-size: 20px;
    color: #64748b;
    margin-bottom: 40px;
}

/* Pricing Toggle */
.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 8px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.toggle-label {
    font-weight: 600;
    color: #64748b;
    font-size: 16px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.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: #cbd5e1;
    transition: 0.4s;
    border-radius: 32px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background-color: #22c55e;
}

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

.save-badge {
    background: #22c55e;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

/* Pricing Cards */
.pricing-cards-section {
    padding: 60px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border-color: #22c55e;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.card-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.card-header p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 24px;
}

.card-pricing {
    margin-bottom: 32px;
}

.price-display {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

.currency {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
}

.amount {
    font-size: 48px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 4px;
}

.period {
    font-size: 16px;
    color: #64748b;
}

.billing-note {
    color: #64748b;
    font-size: 14px;
}

.card-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    position: relative;
    padding-left: 24px;
}

.card-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.card-features li:last-child {
    border-bottom: none;
}

.card-cta {
    margin-top: 32px;
}

.card-cta .sunrise-btn {
    width: 100%;
    justify-content: center;
}

/* View Features Section */
.view-features-section {
    padding: 40px 0;
    text-align: center;
    background: #f8fafc;
}

.view-features-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-features-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.view-features-btn svg {
    transition: transform 0.3s ease;
}

.view-features-btn.expanded svg {
    transform: rotate(180deg);
}

/* Detailed Features Section */
.detailed-features {
    background: white;
    padding-top: 60px;
}

/* Sticky Header */
.features-sticky-header {
    position: sticky;
    top: 80px; /* Account for main site header */
    background: white;
    border-bottom: 2px solid #e2e8f0;
    z-index: 100;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-header-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.feature-category-header {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.plan-header {
    text-align: center;
    position: relative;
}

.plan-header.popular {
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 16px 12px;
}

.popular-mini-badge {
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    display: inline-block;
    border: none;
}

.plan-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.plan-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Feature Categories */
.features-comparison {
    padding: 40px 0;
}

.feature-category {
    margin-bottom: 48px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
}

.category-icon {
    font-size: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 12px;
}

.category-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.category-info p {
    color: #64748b;
    margin: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 24px;
}

.feature-row {
    display: contents;
}

.feature-name {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-weight: 500;
}

.feature-value {
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    text-align: center;
    font-weight: 600;
}

.feature-row .feature-value:not(:first-child) {
    position: relative;
}

/* Checkmark and dash styling handled by JavaScript */

/* Final CTA */
.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 24px;
}

.trust-indicators {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 32px;
    }
    
    .pricing-hero p {
        font-size: 16px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .sticky-header-grid,
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .plan-header {
        display: none;
    }
    
    .feature-category-header {
        text-align: center;
        font-size: 16px;
    }
    
    .feature-value {
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-info h3 {
        font-size: 20px;
    }
    
    /* Mobile view features button improvements */
    .view-features-btn {
        font-size: 18px;
        padding: 20px 40px;
        font-weight: 700;
        letter-spacing: 0.5px;
        min-height: 60px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    }
    
    .view-features-section {
        padding: 60px 20px;
    }
}



/* Color-coded Plan Styling */

/* Solo Plan - Orange */
.pricing-card:nth-child(1) {
    border-color: #f97316;
}

.pricing-card:nth-child(1) .card-header h3 {
    color: #f97316;
}

.pricing-card:nth-child(1) .card-features li:before {
    color: #f97316;
}

/* Alto Plan - Blue */
.pricing-card:nth-child(2) {
    border-color: #3b82f6;
}

.pricing-card:nth-child(2) .card-header h3 {
    color: #3b82f6;
}

.pricing-card:nth-child(2) .card-features li:before {
    color: #3b82f6;
}

/* Nimbus Plan - Green */
.pricing-card:nth-child(3) {
    border-color: #22c55e;
}

.pricing-card:nth-child(3) .card-header h3 {
    color: #22c55e;
}

.pricing-card:nth-child(3) .card-features li:before {
    color: #22c55e;
}



/* Color-coded Plan Headers in Comparison Table */

/* Solo Plan Header - Orange */
.sticky-header-grid .plan-header:nth-child(2) {
    border: 2px solid #f97316;
    border-radius: 12px;
    padding: 16px 12px;
    background: #fff7ed;
}

.sticky-header-grid .plan-header:nth-child(2) h4 {
    color: #f97316;
}

/* Alto Plan Header - Blue (already has popular styling, enhance it) */
.sticky-header-grid .plan-header:nth-child(3) {
    border: 2px solid #3b82f6;
    background: #eff6ff;
}

.sticky-header-grid .plan-header:nth-child(3) h4 {
    color: #3b82f6;
}

.sticky-header-grid .plan-header:nth-child(3) .popular-mini-badge {
    background: #3b82f6;
    color: white;
    border: none;
}

/* Nimbus Plan Header - Green */
.sticky-header-grid .plan-header:nth-child(4) {
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 16px 12px;
    background: #f0fdf4;
}

.sticky-header-grid .plan-header:nth-child(4) h4 {
    color: #22c55e;
}

/* Color-coded Feature Values (Checkmarks only, not dashes) */

/* Solo Plan Column - Orange checkmarks */
.feature-row .feature-value:nth-child(2) {
    color: #f97316;
}

/* Alto Plan Column - Blue checkmarks */
.feature-row .feature-value:nth-child(3) {
    color: #3b82f6;
}

/* Nimbus Plan Column - Green checkmarks */
.feature-row .feature-value:nth-child(4) {
    color: #22c55e;
}

/* Keep dashes (—) gray */
.feature-row .feature-value:nth-child(2):contains("—"),
.feature-row .feature-value:nth-child(3):contains("—"),
.feature-row .feature-value:nth-child(4):contains("—") {
    color: #cbd5e1;
}

/* Specific styling for storage values (not checkmarks) */
.feature-row .feature-value:nth-child(2):not(:contains("✓")):not(:contains("—")),
.feature-row .feature-value:nth-child(3):not(:contains("✓")):not(:contains("—")),
.feature-row .feature-value:nth-child(4):not(:contains("✓")):not(:contains("—")) {
    color: #475569;
    font-weight: 600;
}


/* Mobile: Add plan names next to checkmarks */
@media (max-width: 768px) {
    .feature-value:nth-child(2)::before,
    .feature-value:nth-child(3)::before,
    .feature-value:nth-child(4)::before {
        font-weight: 700;
        margin-right: 8px;
        font-size: 12px;
    }
    
    /* Solo plan (2nd child) */
    .feature-value:nth-child(2)::before {
        content: "Solo: ";
        color: #f97316;
    }
    
    /* Alto plan (3rd child) */
    .feature-value:nth-child(3)::before {
        content: "Alto: ";
        color: #3b82f6;
    }
    
    /* Nimbus plan (4th child) */
    .feature-value:nth-child(4)::before {
        content: "Nimbus: ";
        color: #22c55e;
    }
}
