/* Comparison Section - Visual Styles */
.comparison {
    padding: 5rem 0;
    background: #ffffff;
}

.comparison-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Cost Breakdown Visual */
.cost-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.company-breakdown {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.company-breakdown:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.company-breakdown.highlight {
    border: 2px solid #10b981;
    background: #f0fdf4;
}

.company-type {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.company-example {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cost-bar {
    height: 50px;
    width: 100%;
    background: #f1f5f9;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    margin-bottom: 0.5rem;
    border: 1px solid #e2e8f0;
}

.cost-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.cost-segment:hover {
    transform: scale(1.05);
}

.segment-label {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Traditional firm colors - muted palette */
.cost-segment.overhead {
    background: #64748b;
}

.cost-segment.profit {
    background: #94a3b8;
}

.cost-segment.talent {
    background: #10b981;
}

/* 1/x colors - clear distinction */
.cost-segment.platform-fee {
    background: #64748b;
    min-width: 40px;
}

.cost-segment.talent-share {
    background: #10b981;
}

.cost-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.cost-labels.onex-labels {
    justify-content: space-around;
}

.cost-label {
    text-align: center;
}

.legend-color.overhead {
    background: #64748b;
}

.legend-color.profit {
    background: #94a3b8;
}

.legend-color.talent {
    background: #10b981;
}

.legend-color.platform-fee {
    background: #cbd5e1;
}

.legend-color.talent-share {
    background: #10b981;
}

/* Speed Comparison */
.speed-comparison {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 5rem;
    border: 1px solid #e2e8f0;
}

.speed-visual {
    max-width: 800px;
    margin: 0 auto;
}

.speed-item {
    margin-bottom: 2rem;
}

.speed-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.timeline {
    background: #e2e8f0;
    height: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.timeline-bar {
    height: 100%;
    border-radius: 20px;
    position: relative;
}

.traditional-timeline .timeline-bar {
    background: #94a3b8;
}

.onex-timeline .timeline-bar {
    background: #10b981;
}

.timeline-text {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--text-primary);
}

/* Price Examples */
.price-examples {
    margin-bottom: 5rem;
}

.example-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.example-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

.example-type {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.price-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.old-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #94a3b8;
    text-decoration: line-through;
}

.arrow {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.new-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
}

.savings-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1rem;
}

/* Total Savings */
.total-savings {
    background: #f0fdf4;
    border: 2px solid #10b981;
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.total-savings h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.savings-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.savings-before,
.savings-after {
    text-align: center;
}

.savings-before .label,
.savings-after .label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.savings-before .amount {
    font-size: 2rem;
    font-weight: 700;
    color: #94a3b8;
}

.savings-after .amount {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
}

.savings-arrow {
    font-size: 2rem;
    color: var(--primary-color);
}

.savings-highlight {
    font-size: 2.5rem;
    font-weight: 800;
    color: #10b981;
}

/* Responsive */
@media (max-width: 768px) {
    .cost-comparison-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .example-grid {
        grid-template-columns: 1fr;
    }
    
    .cost-legend {
        gap: 1rem;
        font-size: 0.75rem;
    }
    
    .savings-visual {
        flex-direction: column;
    }
    
    .savings-highlight {
        font-size: 1.75rem;
    }
}