/* compare.css */
.compare {
    background: var(--bg-surface);
}

/* Tab switcher */
.compare-tabs {
    display: flex;
    gap: 0;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 4px;
    width: fit-content;
    margin: 0 auto 32px;
    border: 1px solid var(--border);
}

.compare-tab {
    padding: 8px 20px;
    border-radius: calc(var(--radius-md) - 2px);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition);
    cursor: pointer;
    background: none;
}

.compare-tab.active {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 139, 255, 0.4);
}

.compare-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compare-panel.active {
    display: block;
    animation: fade-in 0.3s forwards;
}

/* Table */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    white-space: nowrap;
}

.compare-table th {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-transform: uppercase;
    background: var(--bg-elevated);
    position: sticky;
    top: 0;
}

/* Highlight Organisync column */
.compare-table th:nth-child(2),
.compare-table td:nth-child(2) {
    background: rgba(59, 139, 255, 0.06);
    border-left: 2px solid rgba(59, 139, 255, 0.3);
    border-right: 2px solid rgba(59, 139, 255, 0.3);
    font-weight: 500;
    white-space: normal;
    min-width: 180px;
}

/* Sticky first column */
.compare-table th:first-child,
.compare-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--bg-surface);
    font-weight: 600;
    color: var(--text-primary);
    min-width: 200px;
    border-right: 1px solid var(--border);
    white-space: normal;
    z-index: 2;
}

.compare-table th:first-child {
    background: var(--bg-elevated);
    z-index: 3;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.compare-table tr:hover td:nth-child(2) {
    background: rgba(59, 139, 255, 0.09);
}

/* Icon shorthand colors */
.yes {
    color: var(--accent-green);
}

.no {
    color: var(--accent-red);
}

.meh {
    color: var(--accent-amber);
}

/* Callout quote */
.compare-callout {
    margin-top: 40px;
    padding: 28px 36px;
    background: var(--bg-elevated);
    border-left: 3px solid var(--accent-blue);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: normal;
    font-size: 1.0625rem;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ── Dashboard Callout Card ────────────────────────────── */
.dashboard-callout.active {
    display: flex;
}

.dashboard-callout {
    gap: 28px;
    align-items: flex-start;
    margin-top: 40px;
    padding: 36px 40px;
    background: var(--bg-elevated);
    border: 1px solid rgba(59, 139, 255, 0.22);
    border-top: 3px solid var(--accent-blue);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.dashboard-callout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(59, 139, 255, 0.05) 0%, transparent 65%);
    pointer-events: none;
}

.dashboard-callout-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 4px;
}

.dashboard-callout-body {
    flex: 1;
}

.dashboard-callout-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
}

.dashboard-callout-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0 0 22px;
    max-width: 680px;
}

.dashboard-callout-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 32px;
}

.dashboard-callout-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.dashboard-callout-features li span[aria-hidden] {
    flex-shrink: 0;
    margin-top: 1px;
}

.dashboard-callout-cta {
    margin-top: 4px;
}

@media (max-width: 700px) {
    .dashboard-callout {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .dashboard-callout-features {
        grid-template-columns: 1fr;
    }
}


/* Accordion */
.why-not {
    margin-top: 48px;
}

.why-not h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    transition: color var(--transition);
}

.accordion-trigger:hover {
    color: var(--accent-blue);
}

.accordion-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.accordion-item.open .accordion-body {
    max-height: 200px;
}

.accordion-body p {
    padding: 0 0 20px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}