/* ============================================
   Alternatives, comparison and integration pages
   Layered on top of style.css + legendary.css.
   ============================================ */

body.lg-aibi { --lg-accent: #0891B2; --lg-accent-tint: rgba(8, 145, 178, 0.07); }
body.lg-neutral { --lg-accent: #344054; --lg-accent-tint: rgba(52, 64, 84, 0.06); }

/* Pages that use the fixed AI-BI navbar */
.seo-main { padding-top: 4.5rem; }

/* Breadcrumbs */
.seo-crumbs {
    font-size: 0.8125rem;
    color: var(--lg-muted);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}
.seo-crumbs a { color: var(--lg-muted); text-decoration: none; }
.seo-crumbs a:hover { color: var(--lg-accent); }
.seo-crumbs span[aria-hidden] { opacity: 0.5; }

/* Prose block */
.seo-prose { max-width: 46rem; margin: 0 auto; color: var(--lg-muted); font-size: 1.0625rem; line-height: 1.7; }
.seo-prose p + p { margin-top: 1rem; }
.seo-prose strong { color: var(--lg-ink); }

/* Fact list (definition style) */
.seo-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.seo-fact { background: #fff; border: 1px solid var(--lg-line); border-radius: 1rem; padding: 1.1rem 1.25rem; }
.seo-fact dt { font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lg-accent); margin-bottom: 0.35rem; }
.seo-fact dd { margin: 0; color: var(--lg-ink); font-size: 0.9375rem; line-height: 1.5; }

/* Two-column lists (strengths, choose if) */
.seo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.seo-col { background: #fff; border: 1px solid var(--lg-line); border-radius: 1.25rem; padding: 1.75rem; }
.seo-col h3 { font-size: 1.125rem; font-weight: 600; color: var(--lg-ink); margin-bottom: 1rem; }
.seo-col .lg-checklist { margin-top: 0; }

/* Neutral two-vendor table: no highlighted column */
.seo-vs td.is-them { color: var(--lg-ink); }
.seo-vs td { width: 41%; }

/* FAQ */
.seo-faq { max-width: 46rem; margin: 0 auto; display: grid; gap: 0.75rem; }
.seo-faq details { background: #fff; border: 1px solid var(--lg-line); border-radius: 1rem; padding: 1.1rem 1.35rem; }
.seo-faq summary { cursor: pointer; font-weight: 600; color: var(--lg-ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: "+"; color: var(--lg-accent); font-weight: 500; }
.seo-faq details[open] summary::after { content: "\2212"; }
.seo-faq details p { margin-top: 0.75rem; color: var(--lg-muted); line-height: 1.65; }

/* Recommendation box at the end of comparison pages */
.seo-reco { background: #fff; border: 1px solid var(--lg-line); border-radius: 1.5rem; padding: 2.5rem; box-shadow: var(--shadow-card); max-width: 56rem; margin: 0 auto; }
.seo-reco h2 { font-size: 1.75rem; color: var(--lg-ink); margin: 1rem 0 0.75rem; letter-spacing: -0.02em; }
.seo-reco p { color: var(--lg-muted); line-height: 1.65; }
.seo-reco .lg-checklist { margin: 1.25rem 0 1.75rem; }

/* Badges */
.seo-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.8125rem; font-weight: 600;
    padding: 0.35rem 0.85rem; border-radius: var(--radius-pill);
    border: 1px solid var(--lg-line); background: #fff; color: var(--lg-muted);
}
.seo-badge--native { color: #0F766E; border-color: rgba(15, 118, 110, 0.3); background: rgba(15, 118, 110, 0.06); }
.seo-badge svg { width: 0.9rem; height: 0.9rem; }

/* Hub pages: link cards */
.seo-hub-group { margin-top: 3.5rem; }
.seo-hub-group > h2 { font-size: 1.375rem; font-weight: 600; color: var(--lg-ink); margin-bottom: 1.25rem; letter-spacing: -0.01em; }
.seo-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.85rem; }
.seo-link {
    display: block; background: #fff; border: 1px solid var(--lg-line); border-radius: 1rem;
    padding: 1rem 1.2rem; text-decoration: none; color: var(--lg-ink);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.seo-link:hover { border-color: color-mix(in srgb, var(--lg-accent) 45%, transparent); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.seo-link b { display: block; font-weight: 600; font-size: 0.975rem; }
.seo-link small { display: block; color: var(--lg-muted); font-size: 0.8125rem; margin-top: 0.25rem; line-height: 1.45; }

.seo-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.seo-filter a {
    font-size: 0.875rem; font-weight: 500; text-decoration: none; color: var(--lg-muted);
    padding: 0.45rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--lg-line); background: #fff;
}
.seo-filter a:hover { color: var(--lg-accent); border-color: var(--lg-accent); }

/* Small print */
.seo-note { max-width: 56rem; margin: 0 auto; padding: 0 var(--padding-lr) 3rem; font-size: 0.8125rem; color: #98a2b3; line-height: 1.6; text-align: center; }
.seo-callout { max-width: 46rem; margin: 2rem auto 0; padding: 1rem 1.25rem; border-radius: 1rem; background: var(--lg-accent-tint); color: var(--lg-ink); font-size: 0.9375rem; line-height: 1.6; }

@media (max-width: 768px) {
    .seo-cols { grid-template-columns: 1fr; }
    .seo-reco { padding: 1.75rem 1.25rem; }
    .seo-vs td { width: 100%; }
}
