/* ==========================================================================
   Buyer pages and comparisons (components/buyer-pages/build.mjs).

   One page per question a buyer asks: a hero that answers it, the problem,
   what Sellva does, how it works, questions, and a demo call. The comparison
   pages swap the feature grid for a table and a "fits when" pair.
   Same type, colours and rhythm as the Solution page (roles.css).
   ========================================================================== */

.bp-page { position: relative; z-index: 2; }
.bp-inner { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.bp-narrow > * { max-width: 780px; }  /* the text stays narrow, its left edge the grid's */

.bp-section { padding: 72px 0; background: #FFFFFF; }
.bp-section--tint { background: #F6F7F2; }

/* ---------------------------------------------------------------- hero ----- */

.bp-hero { padding: 112px 0 80px; background: #F6F7F2; }
.bp-hero .bp-inner > * { max-width: 880px; }
.bp-eyebrow {
  font: 700 11px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3F7D4E;
  margin-bottom: 14px;
}
.bp-h1 {
  font: 800 clamp(30px, 4.4vw, 50px)/1.1 Poppins, Inter, sans-serif;
  color: #111827;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.bp-lede {
  font: 400 clamp(17px, 1.6vw, 19px)/1.65 Inter, sans-serif;
  color: #475569;
  max-width: 66ch;
}
.bp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.bp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font: 600 15px/1 Inter, sans-serif;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.bp-btn--primary { background: var(--sns-cta-bg, #1F4A2E); color: #fff; }
.bp-btn--primary:hover { background: var(--sns-cta-bg-hover, #2A5E40); }
.bp-btn--ghost { border: 1px solid rgba(15, 23, 42, 0.14); color: #111827; background: #fff; }
.bp-btn--ghost:hover { border-color: #3F7D4E; color: #1F4A2E; }
.bp-btn--light { background: #fff; color: #1F4A2E; }
.bp-btn--light:hover { background: #E3EEE2; }

/* ---------------------------------------------------------------- type ----- */

.bp-h2 {
  font: 800 clamp(24px, 3vw, 34px)/1.15 Poppins, Inter, sans-serif;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.bp-h3 { font: 700 18px/1.35 Inter, sans-serif; color: #111827; margin-bottom: 8px; }
.bp-p { font: 400 16px/1.7 Inter, sans-serif; color: #475569; }
.bp-p + .bp-p { margin-top: 14px; }
.bp-p--lg { font-size: 18px; color: #1D2939; }

/* --------------------------------------------------------------- cards ----- */

.bp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bp-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 26px 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.bp-card--sellva { border-color: #C9DEC8; box-shadow: 0 0 0 1px #C9DEC8 inset; }

/* --------------------------------------------------------------- steps ----- */

.bp-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 8px 0 0; padding: 0; }
.bp-step-n {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E3EEE2;
  color: #1F4A2E;
  font: 700 14px/1 Inter, sans-serif;
  margin-bottom: 14px;
}

/* ---------------------------------------------------------- comparison ----- */

.bp-verdict {
  border-left: 3px solid #3F7D4E;
  padding: 4px 0 4px 20px;
  margin-bottom: 36px;
  max-width: 860px;
}
.bp-table-wrap { overflow-x: auto; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 16px; }
.bp-table { width: 100%; border-collapse: collapse; min-width: 640px; font: 400 15px/1.55 Inter, sans-serif; }
.bp-table th, .bp-table td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
.bp-table thead th { font: 700 12px/1.2 Inter, sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: #667085; background: #F6F7F2; }
.bp-table tbody th { font-weight: 600; color: #111827; width: 30%; }
.bp-table td { color: #475569; }
.bp-table tr:last-child th, .bp-table tr:last-child td { border-bottom: 0; }
.bp-col-sellva { background: rgba(227, 238, 226, 0.45); color: #1D2939 !important; }
.bp-table thead .bp-col-sellva { color: #1F4A2E; }

.bp-when { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bp-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.bp-list li { display: flex; gap: 10px; align-items: flex-start; font: 400 16px/1.55 Inter, sans-serif; color: #475569; }
.bp-list svg { flex: none; margin-top: 5px; color: #3F7D4E; }

/* ----------------------------------------------------------------- faq ----- */

.bp-faq { border-bottom: 1px solid rgba(15, 23, 42, 0.08); padding: 18px 0; }
.bp-faq summary {
  cursor: pointer;
  list-style: none;
  font: 600 17px/1.45 Inter, sans-serif;
  color: #111827;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  align-items: center;
}
.bp-faq summary::-webkit-details-marker { display: none; }
.bp-faq summary::after { content: '+'; font: 400 22px/1 Inter, sans-serif; color: #3F7D4E; }
.bp-faq[open] summary::after { content: '−'; }
.bp-faq .bp-p { margin-top: 10px; }

/* ------------------------------------------------------------- related ----- */

.bp-related { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; }
.bp-related a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #fff;
  color: #1D2939;
  font: 500 15px/1 Inter, sans-serif;
  text-decoration: none;
}
.bp-related a:hover { border-color: #3F7D4E; color: #1F4A2E; }

/* ----------------------------------------------------------------- cta ----- */

.bp-cta {
  background: var(--sns-cta-bg, #1F4A2E);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
}
.bp-cta .bp-h2 { color: #fff; }
.bp-cta .bp-p { color: rgba(255, 255, 255, 0.78); max-width: 56ch; margin: 0 auto 28px; }

/* ---------------------------------------------------------- responsive ----- */

@media (max-width: 960px) {
  .bp-grid { grid-template-columns: 1fr 1fr; }
  .bp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bp-inner { padding: 0 16px; }
  .bp-hero { padding: 88px 0 56px; }
  .bp-section { padding: 52px 0; }
  .bp-grid, .bp-when { grid-template-columns: 1fr; }
  .bp-cta { padding: 40px 22px; }
  .bp-btn { width: 100%; justify-content: center; }
}
