/* ════════════════════════════════════════════════════════════════════════
   Snagfly — comparison / blog pages. Loaded alongside legal.css
   (legal.css provides tokens, nav, base). Footer styles live here too so
   every page shares one professional footer.
   ════════════════════════════════════════════════════════════════════════ */

:root { --rose-fill: #FF7A6B; }
[data-theme="light"] { --rose-fill: #E85544; }

/* ── Layout: article + sticky sidebar ────────────────────────────────────── */
.cmp { padding: clamp(28px, 5vw, 56px) 0 96px; }
.cmp .container { max-width: 1120px; }
.cmp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.cmp-main { min-width: 0; max-width: 760px; }
.cmp-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 940px) {
  .cmp-layout { grid-template-columns: 1fr; gap: 40px; }
  .cmp-side { position: static; top: auto; }
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--text-subtle); margin: 0 0 20px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--lime-text); text-decoration: none; }
.breadcrumb .sep { margin: 0 8px; color: var(--text-subtle); opacity: .6; }
.breadcrumb .current { color: var(--text); }

/* ── Heading + intro ─────────────────────────────────────────────────────── */
.cmp h1 {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04;
  font-size: clamp(32px, 4.6vw, 52px); margin: 6px 0 16px;
}
.cmp h1 em { font-style: italic; color: var(--lime-text); }
.cmp .sub { color: var(--text-muted); font-size: clamp(17px, 2vw, 20px); margin: 0 0 22px; }

/* Author / E-E-A-T byline */
.byline { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; padding-bottom: 22px; border-bottom: 1px solid var(--bg-line); }
.byline .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--bg-line); display: grid; place-items: center; flex: none; }
.byline .avatar img { width: 22px; height: 22px; }
.byline .who { font-size: 14px; line-height: 1.4; }
.byline .who strong { color: var(--text); font-weight: 600; }
.byline .who span { color: var(--text-subtle); font-family: var(--mono); font-size: 12px; }

/* ── CTA buttons row ─────────────────────────────────────────────────────── */
.cmp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }

/* ── Key takeaways (top-of-page summary, AI-citation optimized) ──────────── */
.takeaways { background: var(--bg-card); border: 1px solid var(--bg-line); border-radius: var(--r-lg); padding: 22px 26px; margin: 0 0 32px; }
.takeaways h2 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime-text); margin: 0 0 14px; }
.takeaways ul { margin: 0; padding-left: 0; list-style: none; }
.takeaways li { position: relative; padding-left: 26px; margin: 0 0 11px; color: var(--text-muted); }
.takeaways li:last-child { margin-bottom: 0; }
.takeaways li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-fill); }
.takeaways li strong { color: var(--text); font-weight: 600; }

/* ── Body prose ──────────────────────────────────────────────────────────── */
.cmp h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(23px, 3vw, 30px); margin: 52px 0 16px; scroll-margin-top: 88px; }
.cmp h3 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 28px 0 8px; }
.cmp p, .cmp li { color: var(--text-muted); }
.cmp-main p { margin: 0 0 16px; }
.cmp-main ul, .cmp-main ol { margin: 0 0 18px; padding-left: 22px; }
.cmp-main li { margin: 0 0 9px; }
.cmp strong { color: var(--text); font-weight: 600; }
/* prose links only — NOT buttons (this was the invisible-button bug) */
.cmp-main p a, .cmp-main li a, .cmp-faq a, .takeaways a, .disclosure a { color: var(--lime-text); text-decoration: underline; text-underline-offset: 2px; }
.cmp .meta { font-family: var(--mono); font-size: 13px; color: var(--text-subtle); }

/* ── Verdict box ─────────────────────────────────────────────────────────── */
.verdict { background: var(--bg-card); border: 1px solid var(--bg-line); border-left: 3px solid var(--lime-fill); border-radius: var(--r-lg); padding: 20px 24px; margin: 0 0 8px; }
.verdict h3 { margin: 0 0 8px; font-size: 12px; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lime-text); }
.verdict p:last-child { margin-bottom: 0; }

/* ── Comparison table ────────────────────────────────────────────────────── */
.cmp-table-wrap { overflow-x: auto; margin: 0 0 26px; border: 1px solid var(--bg-line); border-radius: var(--r-lg); }
table.cmp-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.cmp-table th, table.cmp-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--bg-line); vertical-align: top; color: var(--text-muted); }
table.cmp-table thead th { color: var(--text); font-family: var(--display); font-weight: 600; font-size: 16px; background: var(--bg-elevated); }
table.cmp-table tbody tr:last-child td { border-bottom: none; }
table.cmp-table td:first-child, table.cmp-table th:first-child { color: var(--text); font-weight: 600; }
table.cmp-table th:nth-child(2), table.cmp-table td:nth-child(2) { background: rgba(200,255,61,0.06); border-left: 1px solid var(--lime-fill); border-right: 1px solid var(--lime-fill); }
[data-theme="light"] table.cmp-table th:nth-child(2), [data-theme="light"] table.cmp-table td:nth-child(2) { background: rgba(122,171,0,0.10); }
table.cmp-table thead th:nth-child(2) { color: var(--lime-text); }
.yes { color: var(--lime-text); font-weight: 700; }
.no  { color: var(--rose-fill); font-weight: 700; }

/* ── Edge cards ──────────────────────────────────────────────────────────── */
.edge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 24px; }
@media (max-width: 560px) { .edge-grid { grid-template-columns: 1fr; } }
.edge { background: var(--bg-card); border: 1px solid var(--bg-line); border-radius: var(--r); padding: 16px 18px; }
.edge h4 { margin: 0 0 6px; font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--text); }
.edge p { margin: 0; font-size: 14.5px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.cmp-faq details { border: 1px solid var(--bg-line); border-radius: var(--r); padding: 2px 20px; margin: 0 0 10px; background: var(--bg-card); }
.cmp-faq summary { cursor: pointer; font-weight: 600; color: var(--text); padding: 15px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cmp-faq summary::-webkit-details-marker { display: none; }
.cmp-faq summary::after { content: "+"; font-family: var(--mono); font-size: 20px; color: var(--lime-text); flex: none; }
.cmp-faq details[open] summary::after { content: "–"; }
.cmp-faq details[open] summary { border-bottom: 1px solid var(--bg-line); }
.cmp-faq .a { padding: 14px 0; color: var(--text-muted); }

/* ── Sidebar cards ───────────────────────────────────────────────────────── */
.side-card { background: var(--bg-card); border: 1px solid var(--bg-line); border-radius: var(--r-lg); padding: 18px 20px; }
.side-card h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); margin: 0 0 12px; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-list li { margin: 0; }
.toc-list a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--bg-line); color: var(--text-muted); font-size: 14px; transition: color .15s ease, border-color .15s ease; }
.toc-list a:hover { color: var(--text); text-decoration: none; }
.toc-list a.active { color: var(--lime-text); border-left-color: var(--lime-fill); font-weight: 600; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { margin: 0 0 2px; }
.related-list a { display: block; padding: 8px 0; color: var(--text-muted); font-size: 14px; border-bottom: 1px solid var(--bg-line); }
.related-list li:last-child a { border-bottom: none; }
.related-list a:hover { color: var(--lime-text); text-decoration: none; }
.side-cta { background: var(--bg-elevated); border: 1px solid var(--bg-line); border-radius: var(--r-lg); padding: 20px; text-align: center; }
.side-cta p { margin: 0 0 14px; font-size: 14.5px; color: var(--text-muted); }
.side-cta .btn { width: 100%; justify-content: center; }

/* ── Hub: comparison cards grid ──────────────────────────────────────────── */
.hub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 10px 0 8px; }
@media (max-width: 620px) { .hub-grid { grid-template-columns: 1fr; } }
.hub-card { display: block; background: var(--bg-card); border: 1px solid var(--bg-line); border-radius: var(--r-lg); padding: 22px 24px; transition: border-color .2s ease, transform .2s ease; }
.hub-card:hover { border-color: var(--lime-fill); transform: translateY(-2px); text-decoration: none; }
.hub-card h3 { margin: 0 0 6px; font-family: var(--display); font-size: 20px; color: var(--text); }
.hub-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
.hub-card .arrow { color: var(--lime-text); font-weight: 600; font-size: 14px; margin-top: 10px; display: inline-block; }

/* ── CTA band + disclosure ───────────────────────────────────────────────── */
.cta-band { background: var(--bg-elevated); border: 1px solid var(--bg-line); border-radius: var(--r-lg); padding: 30px 28px; margin: 44px 0 0; text-align: center; }
.cta-band h2 { margin: 0 0 8px; font-family: var(--display); font-size: clamp(22px,3vw,28px); letter-spacing: -.02em; }
.cta-band p { margin: 0 auto 16px; max-width: 52ch; color: var(--text-muted); }
.cta-band .cmp-cta { justify-content: center; margin-bottom: 0; }
.disclosure { font-size: 13px; color: var(--text-subtle); margin: 28px 0 0; line-height: 1.55; }
.disclosure strong { color: var(--text-muted); }
