/*
 * P-SEO.7 — Comparison pages (index + per-competitor).
 * Served from /public so it works without a Vite rebuild.
 */

/* ── Compare index grid ─────────────────────────────────────────────── */
.mt-vs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
}

@media (min-width: 640px) { .mt-vs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mt-vs-grid { grid-template-columns: repeat(3, 1fr); } }

.mt-vs-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mt-vs-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.mt-vs-card-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.mt-vs-us {
    color: #0071e3;
}

.mt-vs-pivot {
    color: #6e6e73;
    font-weight: 500;
    font-size: 0.85em;
    padding: 2px 8px;
    background: #f5f5f7;
    border-radius: 999px;
}

.mt-vs-pivot-h1 {
    color: #6e6e73;
    font-weight: 500;
    font-size: 0.6em;
    vertical-align: middle;
    padding: 4px 12px;
    background: #f5f5f7;
    border-radius: 999px;
    margin: 0 8px;
}

.mt-vs-them {
    color: #1d1d1f;
}

.mt-vs-card-tagline {
    color: #6e6e73;
    margin: 0 0 16px;
    flex-grow: 1;
    font-size: 0.92rem;
    line-height: 1.55;
}

.mt-vs-card-cta {
    color: #0071e3;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Per-competitor: intro cards (their pitch + our pitch) ─────────── */
.mt-vs-intro {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0 32px;
}

@media (min-width: 768px) {
    .mt-vs-intro { grid-template-columns: 1fr 1fr; }
}

.mt-vs-intro-card {
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.mt-vs-intro-card h2 {
    font-size: 1rem;
    margin: 0 0 10px;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.mt-vs-intro-card p {
    margin: 0;
    line-height: 1.6;
    color: #1d1d1f;
}

.mt-vs-them-card {
    background: #fafafa;
}

.mt-vs-us-card {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.06), rgba(94, 92, 230, 0.04));
    border-color: rgba(0, 113, 227, 0.18);
}

/* ── Comparison table ───────────────────────────────────────────────── */
.mt-vs-table-wrap {
    overflow-x: auto;
    margin: 16px 0 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
}

.mt-vs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
    background: #fff;
}

.mt-vs-table thead {
    background: #f5f5f7;
}

.mt-vs-table th,
.mt-vs-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.95rem;
}

.mt-vs-table th {
    font-weight: 700;
    color: #1d1d1f;
}

.mt-vs-table th:nth-child(2),
.mt-vs-table td:nth-child(2) {
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.04), rgba(94, 92, 230, 0.03));
}

.mt-vs-table tbody tr:last-child td { border-bottom: 0; }

.mt-vs-yes { color: #34c759; font-size: 1.3rem; }
.mt-vs-no { color: #d1d1d6; font-size: 1.3rem; }
.mt-vs-partial {
    display: inline-block;
    padding: 2px 10px;
    background: #FFF5DB;
    color: #B47300;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.mt-vs-note {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #6e6e73;
    font-style: italic;
}

/* ── Why switch list ────────────────────────────────────────────────── */
.mt-vs-reasons {
    list-style: none;
    padding: 0;
    margin: 16px 0 32px;
    display: grid;
    gap: 10px;
}

.mt-vs-reasons li {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 10px;
    line-height: 1.55;
}

.mt-vs-reasons li i {
    color: #0071e3;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Verdict block ──────────────────────────────────────────────────── */
.mt-vs-verdict {
    margin: 16px 0 32px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.06), rgba(94, 92, 230, 0.04));
    border-left: 4px solid #0071e3;
    border-radius: 10px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1d1d1f;
    font-style: normal;
}

/* ── Other-competitors list at page bottom ──────────────────────────── */
.mt-vs-other-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
}

.mt-vs-other-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.mt-vs-other-link:hover {
    background: #f0f0f2;
    border-color: rgba(0, 0, 0, 0.12);
}
