/* Buyer pages: /compare/<slug>, /alternatives/<slug>, /use-cases/<slug> and their hubs.
   Rendered by Calidad CRM's SEO & Content engine from _buyer/_page.html and _buyer/_index.html
   (or a type's own compare/_index.html). Reader extras in /buyer.js. No competitor logos or images. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.buyer-wrap { max-width: 860px; margin: 0 auto; padding: 0 22px; }
.buyer-hero { padding-bottom: 84px; }
.buyer-hero .hero-title.sm { font-size: clamp(34px, 5vw, 60px); line-height: 1.05; margin-top: 18px; }
.buyer-eyebrow { margin: 0; }
.buyer-eyebrow a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(168,232,74,.35); background: rgba(168,232,74,.08); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); transition: background .15s, border-color .15s; }
.buyer-eyebrow a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.buyer-eyebrow a:hover { background: rgba(168,232,74,.16); border-color: var(--lime); }
.buyer-dek:empty { display: none; }
.buyer-dek { margin: 22px auto 0; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.55; color: #b9bfcd; max-width: 700px; }
.buyer-hero .buyer-checked { position: relative; display: inline-block; padding-left: 28px; margin: 28px auto 0; max-width: 640px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; letter-spacing: .01em; color: rgba(255,255,255,.62); text-align: left; }
.buyer-hero .buyer-checked::before { content: "\2713"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--lime); color: var(--black); font-size: 11px; font-weight: 700; }
.buyer-hero .buyer-checked time { color: #fff; }

/* ---------- Content ---------- */
.buyer-sec { padding: 64px 0 96px; }
.buyer-verdict { position: relative; margin: 0 0 52px; padding: 28px 30px 8px; border-radius: 20px; background: var(--accent-tint); border: 1px solid rgba(23,178,106,.22); font-size: 18.5px; line-height: 1.65; color: var(--ink); }
.buyer-verdict::after { content: ""; position: absolute; left: 30px; right: 30px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--lime), #4fd18b, var(--teal)); }
.buyer-verdict-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px !important; font-family: var(--mono); font-size: 12px !important; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.buyer-verdict-h::before { content: "\2713"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 12px; letter-spacing: 0; }
.buyer-verdict p { margin: 0 0 20px; }
.buyer-verdict a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(15,122,72,.35); text-underline-offset: 3px; }
.buyer-h { font-family: var(--display); font-size: clamp(25px, 3vw, 31px); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); margin: 0 0 18px; scroll-margin-top: 96px; }

/* Comparison table: first column sticks while the rest scrolls sideways on phones. */
.compare-wrap { position: relative; margin: 0 0 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; -webkit-overflow-scrolling: touch; }
.compare-wrap.more { box-shadow: inset -26px 0 18px -18px rgba(11,15,26,.22); }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.5; color: #283042; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 170px; background: #fff; }
.compare-table thead th { background: var(--canvas); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #5b6377; white-space: nowrap; }
.compare-table thead th.is-us { background: var(--ink); color: var(--lime); box-shadow: inset 0 3px 0 var(--lime); }
.compare-table td.is-us { background: #f5fbea; color: var(--ink); font-weight: 500; }
.compare-table th[scope="row"] { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.compare-table tbody tr:nth-child(even) > * { background: var(--canvas); }
.compare-table tbody tr:nth-child(even) > td.is-us { background: #eef7de; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 150px; max-width: 220px; box-shadow: 1px 0 0 var(--line); }
.compare-table td.is-unknown { color: var(--muted); font-style: italic; }
.compare-table tbody tr:hover > * { background: #f0f2f6; }
.compare-table tbody tr:hover > td.is-us { background: #e9f5d4; }
sup.cite { font-family: var(--mono); font-size: 10.5px; font-weight: 500; line-height: 0; margin-left: 3px; vertical-align: super; white-space: nowrap; }
sup.cite a { display: inline-block; min-width: 17px; padding: 2px 4px; border-radius: 5px; background: rgba(15,122,72,.09); color: var(--accent-ink); text-align: center; text-decoration: none; line-height: 1.2; }
sup.cite a:hover, sup.cite a:focus-visible { background: var(--accent-ink); color: #fff; }
.buyer-legend { margin: 0 0 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Body: who should pick which, switching notes, FAQ (same Markdown as blog posts). */
.buyer-body { margin-top: 44px; font-size: 18px; line-height: 1.75; color: #283042; }
.buyer-body h2 { position: relative; font-family: var(--display); font-size: clamp(25px, 3vw, 31px); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); margin: 52px 0 16px; scroll-margin-top: 96px; }
.buyer-body h3 { font-family: var(--display); font-size: 21px; line-height: 1.3; color: var(--ink); margin: 32px 0 10px; scroll-margin-top: 96px; }
.buyer-body strong { color: var(--ink); }
.buyer-body p, .buyer-body ul, .buyer-body ol, .buyer-body blockquote, .buyer-body .table-wrap { margin: 0 0 20px; }
.buyer-body ul, .buyer-body ol { padding-left: 24px; }
.buyer-body li { margin-bottom: 8px; padding-left: 4px; }
.buyer-body li::marker { color: var(--accent-ink); font-weight: 600; }
.buyer-body a, .buyer-src a, .buyer-note a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(15,122,72,.35); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.buyer-body a:hover, .buyer-src a:hover, .buyer-note a:hover { text-decoration-color: currentColor; }
.buyer-body a.ext::after { content: "\2197"; font-size: .78em; margin-left: 2px; display: inline-block; }
.buyer-body blockquote { border-left: 3px solid var(--lime); padding: 4px 20px; color: #4a5266; font-style: italic; }
.buyer-body code { font-family: var(--mono); font-size: .86em; background: rgba(16,19,26,.06); padding: 2px 6px; border-radius: 5px; }
.buyer-body table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15.5px; line-height: 1.5; }
.buyer-body .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.buyer-body .table-wrap th, .buyer-body .table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 130px; }
.buyer-body .table-wrap th { background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; }
.buyer-body .table-wrap tbody tr:nth-child(even) td { background: var(--canvas); }
.buyer-body .table-wrap tr:last-child td { border-bottom: 0; }
.buyer-body #frequently-asked-questions, .buyer-body .faq-h { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.buyer-body .faq-item { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 4px; margin: 0 0 12px; background: #fff; }
.buyer-body .faq-item h3 { margin: 0 0 8px; font-size: 19px; }
.buyer-body .faq-item p { font-size: 16.5px; line-height: 1.65; }

/* Sources and the fair-use note */
.buyer-src { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.buyer-src h2 { font-family: var(--display); font-size: 22px; letter-spacing: -.01em; color: var(--ink); margin: 0 0 16px; }
.buyer-sources { list-style: none; margin: 0; padding: 0; counter-reset: src; font-size: 15px; line-height: 1.5; }
.buyer-sources li { counter-increment: src; display: grid; grid-template-columns: 34px 1fr; column-gap: 4px; padding: 10px 12px 10px 0; border-radius: 10px; scroll-margin-top: 110px; transition: background .4s; overflow-wrap: anywhere; }
.buyer-sources li::before { content: counter(src); grid-row: 1 / span 2; align-self: start; justify-self: center; min-width: 22px; padding: 2px 5px; border-radius: 6px; background: var(--canvas); border: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; text-align: center; color: #5b6377; }
.buyer-sources li:target { background: var(--accent-tint); }
.buyer-sources li:target::before { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.buyer-sources .src-host { grid-column: 2; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.buyer-note { margin: 26px 0 0; padding: 16px 18px; border-radius: 12px; background: var(--canvas); font-size: 14px; line-height: 1.6; color: #5b6377; }
.buyer-meta { margin: 18px 0 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* CTA card (same as the blog's) and the way back */
.post-cta-card { position: relative; overflow: hidden; margin-top: 48px; padding: 36px 34px 34px; border-radius: 22px; background: radial-gradient(120% 140% at 0% 0%, rgba(168,232,74,.18), transparent 55%), radial-gradient(80% 120% at 100% 100%, rgba(54,194,180,.12), transparent 60%), var(--black); color: #fff; }
.post-cta-card:not(:has(.post-cta)) { display: none; }
.post-cta-card .cta-h { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 10px; color: #fff; }
.post-cta-card .cta-p { margin: 0 0 22px; color: #b9bfcd; font-size: 17px; line-height: 1.55; max-width: 540px; }
.post-cta { margin: 0; }
.post-cta-card .post-cta a.btn { background: var(--lime); color: var(--black); text-decoration: none; font-weight: 600; padding: 13px 24px; border-radius: 999px; display: inline-block; transition: transform .15s; }
.post-cta-card .post-cta a.btn:hover { transform: translateY(-1px); }
.buyer-crumbs { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.buyer-crumbs a { color: var(--ink); text-decoration: none; }
.buyer-crumbs a:hover { color: var(--accent-ink); }
.buyer-crumbs [aria-current] { color: var(--muted); }
.buyer-crumbs .sep { opacity: .5; }
.buyer-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; }
.buyer-back::before { content: "\2190"; transition: transform .15s; }
.buyer-back:hover::before { transform: translateX(-3px); }

/* ---------- Hubs ---------- */
.buyer-hub { padding: 72px 0 110px; }
.buyer-hub-in { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.buyer-hub-head { margin-bottom: 26px; }
.buyer-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.buyer-grid:empty { display: none; }
.buyer-empty { display: none; margin: 0; padding: 36px 30px; border-radius: 20px; border: 1px dashed #d4d8e2; background: var(--canvas); text-align: center; color: #4a5266; font-size: 17px; line-height: 1.6; }
.buyer-grid:empty + .buyer-empty { display: block; }
.buyer-hub-in:has(.buyer-grid:empty) .buyer-hub-head { display: none; }
.buyer-empty a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.buyer-card a { display: flex; flex-direction: column; height: 100%; padding: 26px 26px 24px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.buyer-card a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 18px 36px -22px rgba(11,15,26,.3); }
.buyer-card-meta { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.buyer-card h3 { font-family: var(--display); font-size: 22px; line-height: 1.25; letter-spacing: -.02em; margin: 10px 0 10px; color: var(--ink); }
.buyer-card p:not(.buyer-card-meta) { flex: 1; margin: 0; color: #4a5266; font-size: 16px; line-height: 1.6; }
.buyer-card .card-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 14.5px; color: var(--accent-ink); }
.buyer-card .card-go::after { content: "\2192"; transition: transform .15s; }
.buyer-card a:hover .card-go::after { transform: translateX(3px); }
/* The compare hub keeps its own page and lists the head-to-head pages in one section, hidden while empty. */
.buyer-list-sec:has(.buyer-grid:empty) { display: none; }
.buyer-list-sec .buyer-grid { margin-top: 40px; }

@media (max-width: 640px) {
  .buyer-sec { padding: 40px 0 72px; }
  .buyer-verdict { padding: 24px 20px 6px; font-size: 17px; }
  .buyer-verdict::after { left: 20px; right: 20px; }
  .buyer-body { font-size: 17px; }
  .compare-table { font-size: 14px; }
  .compare-table th, .compare-table td { padding: 12px 14px; min-width: 150px; }
  .compare-table th:first-child { min-width: 112px; max-width: 132px; }
  .post-cta-card { padding: 28px 22px; }
  .buyer-hub { padding: 44px 0 80px; }
}
@media print {
  .hdr, .ftr, .progress, .post-cta-card, .buyer-back { display: none !important; }
  .buyer-hero { background: none !important; padding: 0; }
  .buyer-hero .hero-title, .buyer-dek, .buyer-hero .buyer-checked, .buyer-hero .buyer-checked time { color: #000 !important; }
  .compare-wrap { overflow: visible; }
  .buyer-sources a::after { content: " (" attr(href) ")"; font-size: .8em; }
}
@media (prefers-reduced-motion: reduce) { .buyer-card a, .buyer-card .card-go::after, .buyer-back::before, .buyer-sources li { transition: none; } }
