/* ── Comparison Hero ── */
.comparison-hero {
    padding: 100px 0 60px;
    text-align: center;
}
.comparison-intro { max-width: 800px; margin: 0 auto; }
.comparison-intro h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.25rem; }
.comparison-intro p { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.8; }

.comparison-warning {
    background: rgba(0, 255, 148, 0.07);
    border: 1px solid rgba(0, 255, 148, 0.3);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 2rem auto 0;
    max-width: 640px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.comparison-warning strong { color: var(--primary); }

/* ── Table Wrapper ── */
.comparison-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* overflow:auto → proper scroll container → position:sticky top:0 works reliably */
.comparison-table-wrap {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: auto;
    max-height: calc(100vh - 160px);
    margin-bottom: 3rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    min-width: 700px;
}

.comparison-table th,
.comparison-table td {
    padding: 0.6rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    line-height: 1.3;
}

.comparison-table td:not(:first-child),
.comparison-table thead th:not(:first-child) {
    text-align: center;
}

.comparison-table thead th:not(:first-child) .bot-name {
    justify-content: center;
}


/* Sticky header — sticks to top of its own scroll container */
.comparison-table thead th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    box-shadow: 0 1px 0 var(--border-color);
}

.comparison-table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tbody tr {
    cursor: default;
    transition: background 0.2s ease;
}
.comparison-table tbody tr:hover td { background: rgba(0, 255, 148, 0.025); }

/* Category separator rows */
.feature-category td {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(0, 255, 148, 0.04);
    border-top: 1px solid rgba(0, 255, 148, 0.12);
    padding: 0.35rem 1.2rem;
}

/* ── Bot name header cell ── */
.bot-name {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}
.bot-name.quantilan { color: var(--primary); }

/* Colored avatar replacing broken external logos */
.bot-avatar {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

/* ── Badges ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
}
.comparison-table td .badge {
    display: flex;
    width: fit-content;
    margin: 0 auto;
}
.badge-yes     { background: rgba(0, 255, 148, 0.13); color: var(--primary); border-color: rgba(0, 255, 148, 0.35); }
.badge-no      { background: rgba(255, 68, 68, 0.13);  color: #FF5555;        border-color: rgba(255, 68, 68, 0.35); }
.badge-partial { background: rgba(255, 193, 7, 0.13);  color: #FFCA28;        border-color: rgba(255, 193, 7, 0.35); }

/* ── Price cells ── */
.price-cell { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.price-free { color: var(--primary); }
.price-paid { color: var(--text-secondary); }

/* ── Key Differences ── */
.differences-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.difference-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}
.difference-card:hover { border-color: rgba(0, 255, 148, 0.3); transform: translateY(-3px); }
.difference-card i { font-size: 2rem; color: var(--primary); margin-bottom: 0.85rem; display: block; }
.difference-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--text-primary); }
.difference-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ── Verdict ── */
.verdict-section {
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-align: center;
}
.verdict-section h2 { font-size: 1.85rem; margin-bottom: 1rem; }
.verdict-section p { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.85; }

.cta-buttons { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

.btn-comparison {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}
.btn-comparison.primary { background: var(--gradient); color: #050505; }
.btn-comparison.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,255,148,0.3); }
.btn-comparison.secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-comparison.secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Trust badges */
.trust-badges { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.75rem; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 0.4rem; color: var(--text-secondary); font-size: 0.85rem; }
.trust-badge i { color: var(--primary); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .differences-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .comparison-hero { padding: 80px 0 40px; }
    .comparison-table th, .comparison-table td { padding: 0.5rem 0.75rem; }
    .verdict-section { padding: 2rem 1.5rem; }
}
