/* ============================================================
   Business Services Providers — store.html
   All selectors scoped under .bsp-page so nothing leaks into
   styles.css (see lessons.md: scope CSS for new modules).
   Mirrors the Bluevine offers page: category header band → 3-col
   grid of cards (grey head strip with sub-category label + optional
   "Exclusive Offer" badge, logo, offer headline, description,
   "Get started" button pinned to the bottom) → footnotes + disclaimer.
   The pill bar stands in for Bluevine's sidebar and shows one
   category at a time (all categories render if JS is off).
============================================================ */

.bsp-page { background: var(--steel-dark); }

/* ── Page header ── */
.bsp-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 24px;
}
.bsp-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 10px;
}
.bsp-hero h1 span { color: var(--accent); }
.bsp-hero p { color: var(--text-mid); font-size: 0.98rem; line-height: 1.7; max-width: 640px; }

/* ── Category pill bar (sticky; JS sets `top` to the header height) ── */
.bsp-catnav {
  position: sticky;
  top: 0;               /* overwritten by js/business-services.js */
  z-index: 99;          /* below .site-header (100) */
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.bsp-catnav-scroll {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bsp-catnav-scroll::-webkit-scrollbar { display: none; }
.bsp-cat-pill {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--steel);
  color: var(--text-mid);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.bsp-cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.bsp-cat-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Category panels (one visible at a time once JS runs) ── */
.bsp-page.js .bsp-panel { display: none; }
.bsp-page.js .bsp-panel.active { display: block; }
.bsp-panel { padding-bottom: 40px; scroll-margin-top: 150px; }
.bsp-panel-head {
  background: var(--steel);
  border-bottom: 1px solid var(--border);
  padding: 28px 0 24px;
  margin-bottom: 24px;
}
.bsp-panel-head h2 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.bsp-panel-head p { color: var(--text-mid); font-size: 0.9rem; line-height: 1.6; max-width: 760px; }

/* ── Groups inside a panel (e.g. Insurance: Personal Health / Business) ── */
.bsp-group + .bsp-group { margin-top: 36px; }
.bsp-group-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ── Provider cards ── */
.bsp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bsp-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bsp-card:hover { border-color: var(--border-light); box-shadow: var(--shadow); }
.bsp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px 16px;
  background: var(--steel);
  border-bottom: 1px solid var(--border);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-mid);
}
.bsp-card-head--exclusive { background: #dbeafe; }
.bsp-badge {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 4px;
  background: #0f172a;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.bsp-card-body { flex: 1; padding: 18px 16px 8px; min-width: 0; }
.bsp-card-logo {
  display: flex;
  align-items: center;
  height: 30px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
}
.bsp-card-logo { gap: 10px; }
.bsp-card-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;      /* vendor app icons are square; soften like Bluevine's marks */
  object-fit: contain;
  flex-shrink: 0;
}
.bsp-card-logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Wordmark mode: vendors that only have a wide logo show it alone at full row height */
.bsp-card-logo--wordmark img { width: auto; height: 28px; max-width: 170px; border-radius: 0; }
.bsp-card-body h3 { font-size: 0.92rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.bsp-card-body p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.55; }
.bsp-card-foot { padding: 20px 16px 16px; }

.bsp-btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--white);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.bsp-btn:hover { background: var(--accent); color: #fff; box-shadow: var(--accent-glow); }
.bsp-btn--primary { background: var(--accent); color: #fff; }
.bsp-btn--primary:hover { background: var(--accent-hover); }
.bsp-btn--disabled {
  border-color: var(--border-light);
  background: var(--steel);
  color: var(--text-dim);
  cursor: default;
  pointer-events: none;
}
.bsp-card--placeholder { border-style: dashed; }
.bsp-card--placeholder .bsp-card-logo { color: var(--text-dim); }

/* ── Footnotes, disclaimer, get-listed CTA ── */
.bsp-notes { padding: 8px 0 56px; }
.bsp-footnotes {
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.bsp-disclaimer { font-size: 0.72rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 32px; }
.bsp-cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 28px 32px;
}
.bsp-cta-box h2 { font-size: 1.25rem; font-weight: 900; color: var(--text); margin-bottom: 6px; }
.bsp-cta-box p { color: var(--text-mid); font-size: 0.92rem; line-height: 1.6; max-width: 560px; }
.bsp-cta-box .btn { flex-shrink: 0; }

/* ── Guide pages (bonding.html) ── */
.bsp-back { display: inline-block; margin-top: 14px; font-size: 0.85rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.bsp-back:hover { text-decoration: underline; }
.bsp-guide-body { max-width: 820px; padding-top: 36px; padding-bottom: 56px; }
.bsp-guide-body section { scroll-margin-top: 110px; margin-bottom: 36px; }
.bsp-guide-body h2 { font-size: 1.35rem; font-weight: 900; color: var(--text); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.bsp-guide-body p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.7; margin-bottom: 12px; }
.bsp-guide-body ul, .bsp-guide-body ol { padding-left: 22px; margin-bottom: 12px; }
.bsp-guide-body li { color: var(--text-mid); font-size: 0.95rem; line-height: 1.7; margin-bottom: 8px; }
.bsp-guide-body li strong { color: var(--text); }
.bsp-guide-body a:not(.btn) { color: var(--accent); font-weight: 600; }
.bsp-steps > li { margin-bottom: 16px; }
.bsp-steps ul { margin-top: 6px; margin-bottom: 0; }
.bsp-steps ul li { margin-bottom: 4px; }
.bsp-guide-body .bsp-disclaimer { margin: 8px 0 24px; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .bsp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .bsp-hero { padding: 24px 0 20px; }
  .bsp-hero h1 { font-size: 1.8rem; }
  .bsp-catnav-scroll { padding: 10px 0; }
  .bsp-panel-head { padding: 22px 0 18px; margin-bottom: 16px; }
  .bsp-panel-head h2 { font-size: 1.3rem; }
  .bsp-grid { grid-template-columns: 1fr; gap: 12px; }
  .bsp-group + .bsp-group { margin-top: 28px; }
  .bsp-btn { width: 100%; text-align: center; }
  .bsp-cta-box { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .bsp-cta-box .btn { width: 100%; text-align: center; }
}
