/* Buyer comparison pages: /compare/, /compare/ugc-agent-vs-*, /compare/*-alternatives/.
   Builds on seo.css tokens (--primary, --ink, --line, --soft, --radius). */

.bc-page .bc-hero { padding-bottom: 40px; }
.bc-page .bc-hero h1 { max-width: 920px; }
.bc-page .bc-hero .lead { max-width: 820px; color: #4a4a4f; }
.bc-page .bc-hero .seo-byline a { color: var(--primary-dark); font-weight: 700; }

.bc-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Short answer */
.bc-verdict-wrap { padding-top: 8px; }
.bc-verdict { padding: clamp(22px, 3vw, 34px); border: 1px solid #d7dafc; border-radius: calc(var(--radius) + 4px); background: linear-gradient(180deg, #f3f4ff 0%, #fff 70%); }
.bc-verdict-head { max-width: 860px; }
.bc-verdict-lede { margin: 10px 0 24px; color: var(--ink) !important; font-size: clamp(18px, 1.9vw, 21px) !important; font-weight: 560; line-height: 1.55 !important; text-wrap: pretty; }
.bc-verdict-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.bc-verdict-card { position: relative; padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.bc-verdict-card::before { content: ""; position: absolute; inset: -1px -1px auto; height: 3px; border-radius: 14px 14px 0 0; background: #b9bac2; }
.bc-verdict-card.bc-us::before { background: var(--primary); }
.bc-verdict-card.bc-both::before { background: var(--success); }
.bc-verdict-card h2 { margin: 2px 0 8px !important; font-size: 17px !important; line-height: 1.3 !important; letter-spacing: -.01em !important; }
.bc-verdict-card p { margin: 0; font-size: 15.5px !important; line-height: 1.6 !important; }

/* Tables */
.bc-table th[scope="row"] { width: 22%; background: #fafafb; color: var(--ink); font-size: 14.5px; letter-spacing: 0; text-transform: none; }
.bc-table:not(.bc-table-alt) thead th:nth-child(2) { color: var(--primary-dark); }
.bc-table td { font-size: 15px; }
.bc-table td a, .bc-prose a, .bc-option a, .bc-panel a, .bc-faq a, .bc-small a, .seo-note a { color: var(--primary-dark); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bc-table-alt { min-width: 860px; }
.bc-table-alt th[scope="row"] { width: 16%; }
.bc-table-alt tr.bc-self th, .bc-table-alt tr.bc-self td { background: #f5f6ff; }

/* Two-column panels */
.bc-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bc-panel { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.bc-panel-us { border-color: #cdd2ff; box-shadow: inset 0 3px 0 var(--primary); }
.bc-panel h3 { margin-bottom: 14px !important; }
.bc-points { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bc-points li { position: relative; padding-left: 22px; font-size: 16px !important; line-height: 1.6 !important; }
.bc-points li::before { content: ""; position: absolute; top: .68em; left: 2px; width: 7px; height: 7px; border-radius: 2px; background: #9a9ba3; }
.bc-panel-us .bc-points li::before { background: var(--primary); }
.bc-panel-cta { margin-top: 22px; }

/* Long-form prose */
.bc-prose { max-width: 780px; }
.bc-prose p { margin: 0 0 16px; }
.bc-prose p:last-child { margin-bottom: 0; }

/* Alternatives list */
.bc-options { display: grid; gap: 14px; }
.bc-option { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.bc-option p { margin: 0 0 10px; font-size: 16px !important; }
.bc-option p:last-child { margin-bottom: 0; }
.bc-option-self { margin-bottom: 14px; border-color: #cdd2ff; background: #f8f8ff; }
.bc-option-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 12px; }
.bc-option-head h3 { margin: 0 !important; font-size: 21px !important; }
.bc-option-head h3 a { color: var(--ink); text-decoration: none; }
.bc-option-head h3 a:hover { color: var(--primary-dark); }
.bc-option-num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; background: var(--soft); color: var(--primary); font-size: 13px; font-weight: 850; }
.bc-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #fafafb; color: #55555c; font-size: 12.5px; font-weight: 650; }
.bc-option-price { color: var(--ink) !important; }
.bc-watch { color: #5a5a60 !important; }
.bc-more { font-size: 15px !important; }

/* FAQ */
.bc-faq { display: grid; gap: 10px; max-width: 860px; }
.bc-faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.bc-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; }
.bc-faq-item summary::-webkit-details-marker { display: none; }
.bc-faq-item summary::after { content: "+"; flex: none; color: var(--primary); font-size: 22px; font-weight: 500; line-height: 1; transition: transform 200ms cubic-bezier(.23, 1, .32, 1); }
.bc-faq-item[open] summary::after { transform: rotate(45deg); }
.bc-faq-item summary h3 { margin: 0 !important; font-size: 17px !important; line-height: 1.4 !important; }
.bc-faq-item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 14px; }
.bc-faq-item p { margin: 0; padding: 0 20px 20px; font-size: 16px !important; }

/* Sources */
.bc-sources { display: grid; gap: 8px; max-width: 900px; margin: 0 0 18px; padding-left: 22px; }
.bc-sources li { font-size: 15px !important; line-height: 1.5 !important; }
.bc-sources a { color: var(--primary-dark); font-weight: 650; }
.bc-sources span { display: block; color: #8a8a90; font-size: 13px; overflow-wrap: anywhere; }
.bc-small { max-width: 860px; font-size: 14.5px !important; }

/* Hub */
.bc-hub-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.bc-hub-card .bc-chip { margin-bottom: 8px; }
.bc-hub-card h3 { margin-bottom: 6px !important; }
.bc-hub-card p { margin: 0; font-size: 15.5px !important; }

@media (max-width: 900px) {
  .bc-verdict-grid { grid-template-columns: 1fr; }
  .bc-split { grid-template-columns: 1fr; }
}

/* Phones: the side-by-side tables become labelled stacks instead of a sideways scroll. */
@media (max-width: 640px) {
  .bc-table-wrap { overflow: visible; border: 0; background: transparent; }
  .bc-table, .bc-table-alt { min-width: 0; }
  .bc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bc-table, .bc-table tbody, .bc-table tr, .bc-table th, .bc-table td { display: block; width: 100%; }
  .bc-table tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
  .bc-table th[scope="row"] { width: 100%; padding: 13px 16px; border-bottom: 1px solid var(--line); }
  .bc-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .bc-table tr td:last-child { border-bottom: 0; }
  .bc-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: #77777e; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
  .bc-table td[data-label="UGC Agent"]::before { color: var(--primary-dark); }
  .bc-panel, .bc-option { padding: 20px; }
  .bc-option-head h3 { font-size: 19px !important; }
  .bc-faq-item summary { padding: 16px; }
  .bc-faq-item p { padding: 0 16px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .bc-faq-item summary::after { transition: none; }
}
