/*
 * bb-ga4.css — FINAL CLEAN VERSION
 * Scope: /ga4-gtm-setup/ only
 * Deps: globals.css, bb-additional.css, bb-pillar.css
 *
 * REUSED FROM bb-pillar.css (no redeclaration):
 *   bb-wrap, bb-label, bb-lead, bb-or, bb-btn-*,
 *   bb-page-hero-*, bb-insight-box, bb-soft-cta,
 *   bb-section-cta, bb-accordion-*, bb-proof-aggregate,
 *   bb-proof-agg-*, bb-cases-grid, bb-case-*, bb-faq-*,
 *   bb-faq-inline-cta, bb-related-*, bb-final-*, bb-scarce,
 *   bb-audit, bb-audit-*, bb-diag, bb-method, bb-unlock,
 *   bb-pricing-grid, bb-pricing-card, bb-pricing-card--featured,
 *   bb-pricing-badge, bb-pricing-note,
 *   bb-ga4-flow-* (moved to bb-pillar.css)
 */

/* ═══════════════════════════════════════════════════════════
   S2 — GA4 vs GTM EXPLAINER
   Section bg: #ffffff
═══════════════════════════════════════════════════════════ */
.bb-g4-duo-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-top: 40px;
}

.bb-g4-duo-card {
  padding: 32px 28px;
  background: #ffffff;
  border: 1.5px solid #E2E5EC;
  border-top: 3px solid #FF6A00;
  border-radius: 0 0 12px 12px;
  position: relative;
}

.bb-g4-duo-num {
  position: absolute;
  top: -1px;
  right: 24px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(255,106,0,0.35);
  text-transform: uppercase;
}

.bb-g4-duo-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,106,0,0.07);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(255,106,0,0.12);
}

.bb-g4-duo-label {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF6A00;
  margin-bottom: 8px;
}

.bb-g4-duo-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
  line-height: 1.3;
}

.bb-g4-duo-text {
  font-size: 0.875rem;
  color: #4F5B68;
  line-height: 1.7;
  margin: 0;
}

/* Arrow between cards */
.bb-g4-duo-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 24px;
  padding-top: 60px; /* align with card mid */
}

.bb-g4-duo-arrow-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(255,106,0,0.0) 0%, rgba(255,106,0,0.5) 100%);
}

.bb-g4-duo-arrow-head {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,106,0,0.06);
  border: 1.5px solid rgba(255,106,0,0.2);
  border-radius: 50%;
}

.bb-g4-duo-arrow-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,106,0,0.8);
  margin-top: 6px;
  text-align: center;
}

.bb-ga4-explainer-result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.bb-ga4-explainer-result-chip {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.bb-ga4-explainer-result-chip--warn {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  color: #92400E;
}
.bb-ga4-explainer-result-chip--bad {
  background: #FEE2E2;
  border: 1px solid #EF4444;
  color: #991B1B;
}


/* ═══════════════════════════════════════════════════════════
   S3 — SELF-DIAGNOSIS CHECKLIST
   Section bg: #F7F8FA
═══════════════════════════════════════════════════════════ */
.bb-ga4-check {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
  border: 1px solid #E2E5EC;
  border-radius: 10px;
  overflow: hidden;
}
.bb-ga4-check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #ffffff;
  border-bottom: 1px solid #E2E5EC;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}
.bb-ga4-check-item:last-child { border-bottom: none; }
.bb-ga4-check-item:hover { background: #FAFAFA; }
.bb-ga4-check-item--active {
  background: rgba(255,106,0,0.04) !important;
  border: 0.5px solid rgba(255,106,0,0.3) !important;
  border-left: 3px solid #FF6A00 !important;
  padding-left: 15px;
}
.bb-ga4-check-input {
  width: 18px; height: 18px; min-width: 18px;
  border: 2px solid #D1D5DB; border-radius: 4px;
  cursor: pointer; accent-color: #FF6A00; flex-shrink: 0;
}
.bb-ga4-check-text {
  font-size: 0.875rem; color: #2B3542; line-height: 1.5; flex: 1;
}
.bb-ga4-check-item--active .bb-ga4-check-text { color: #111827; font-weight: 500; }
.bb-ga4-check-pill {
  display: none; padding: 3px 10px;
  background: rgba(255,106,0,0.08); border: 1px solid rgba(255,106,0,0.2);
  border-radius: 999px; font-size: 0.68rem; font-weight: 700;
  color: #FF6A00; white-space: nowrap; flex-shrink: 0;
}
.bb-ga4-check-item--active .bb-ga4-check-pill { display: inline-flex; }
.bb-ga4-check-counter {
  margin-top: 16px; font-size: 0.82rem; color: #9CA3AF;
  font-weight: 500; text-align: center;
}
.bb-ga4-check-counter--warn { color: #FF6A00; font-weight: 700; }
.bb-ga4-check-trigger { margin-top: 20px; }


/* ═══════════════════════════════════════════════════════════
   S4 — CONSEQUENCES
   Section bg: #000000
═══════════════════════════════════════════════════════════ */
.bb-conseq-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 36px 0 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.bb-conseq-node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.bb-conseq-node--ok {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
}

.bb-conseq-node--warn {
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.4);
  color: #F59E0B;
}

.bb-conseq-node--bad {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.35);
  color: #F87171;
}

.bb-conseq-pipe {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.bb-conseq-pipe--break {
  background: none;
  border-top: 2px dashed rgba(239,68,68,0.4);
  height: 0;
}

.bb-conseq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

.bb-conseq-card {
  padding: 24px;
  background: #0D1117;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}

.bb-conseq-card--a { border-top: 2px solid #F59E0B; }
.bb-conseq-card--b { border-top: 2px solid #EF4444; }

.bb-conseq-card-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FF6A00 !important;
  margin-bottom: 12px;
  line-height: 1.3;
}

.bb-conseq-card p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin: 0 0 10px;
}

.bb-conseq-card-strong {
  font-size: 0.84rem !important;
  color: rgba(255,255,255,0.9) !important;
  font-weight: 600 !important;
  margin-top: 10px !important;
}

/* Insight callout with stat figure */
.bb-conseq-insight {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 24px 28px;
  background: rgba(255,106,0,0.06);
  border: 1px solid rgba(255,106,0,0.18);
  border-left: 3px solid #FF6A00;
  border-radius: 0 10px 0px 0;
}

.bb-conseq-insight-fig {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FF6A00;
  line-height: 1.2;
  text-align: center;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,106,0,0.2);
  padding-right: 24px;
  white-space: nowrap;
}

.bb-conseq-insight-fig span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,106,0,0.6);
  margin-top: 2px;
}

.bb-conseq-insight-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

.bb-conseq-insight-text strong {
  color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════
   S5 — SETUP PROCESS
   Section bg: #ffffff
═══════════════════════════════════════════════════════════ */



/* ═══════════════════════════════════════════════════════════
   S7 — SERVER-SIDE DECISION
   Section bg: #F7F8FA
═══════════════════════════════════════════════════════════ */



/* ═══════════════════════════════════════════════════════════
   S8 — PRICING
   Uses global bb-pricing-grid / bb-pricing-card from bb-pillar.css
   These extra classes match analytics page layout exactly
═══════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════
   S10 — REAL RESULTS
   2 cards fill full width — no empty third column
═══════════════════════════════════════════════════════════ */
.bb-proof .bb-cases-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* ═══════════════════════════════════════════════════════════
   S12 — WHAT GA4 POWERS (related services)
   Section bg: #080a0e
   h3 and p were invisible on dark background
═══════════════════════════════════════════════════════════ */
.bb-related .bb-related-card h3 {
  color: #ffffff !important;
  font-size: 1rem !important; font-weight: 700 !important;
  margin: 10px 0 12px !important; line-height: 1.3 !important;
}
.bb-related .bb-related-card p {
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.84rem !important; line-height: 1.65 !important;
  flex: 1 !important; margin-bottom: 18px !important;
}
.bb-related .bb-related-card .bb-case-pill {
  color: #FF6A00 !important;
  background: rgba(255,106,0,0.1) !important;
  border: 1px solid rgba(255,106,0,0.2) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-self: flex-start !important;
  width: auto !important;
  max-width: fit-content !important;
  margin-bottom: 12px !important;
}


.bb-audit-copy {
  max-width: 800px;
}

.bb-audit-form-wrap {
  max-width: 800px;
}

.bb-final-inner {
  max-width: 800px;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bb-ga4-explainer-grid { grid-template-columns: 1fr; }
  .bb-ga4-explainer-arrow { transform: rotate(90deg); margin: 8px auto; }
  .bb-g4-duo-grid        { grid-template-columns: 1fr; }
  .bb-g4-duo-arrow       { transform: rotate(90deg); margin: 8px auto; }
  .bb-audit-layout       { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .bb-ga4-conseq-grid     { grid-template-columns: 1fr; }
  .bb-ga4-server-grid     { grid-template-columns: 1fr; }
  .bb-ga4-server-decision { grid-template-columns: 1fr; }
  .bb-diag-shell         { grid-template-columns: 1fr; }
  .bb-diag-sidebar       { position: static; }
  .bb-diag-score-wrap    { display: flex; align-items: center; gap: 16px; text-align: left; }
  .bb-server-compare     { grid-template-columns: 1fr; }
  .bb-server-dec-strip   { grid-template-columns: 1fr; }
  .bb-server-dec-divider { width: 100%; height: 1px; }
  .bb-conseq-grid        { grid-template-columns: 1fr; }
  .bb-proof .bb-cases-grid { grid-template-columns: 1fr !important; }
  .bb-agg-row            { flex-wrap: wrap; }
  .bb-agg-cell           { min-width: 45%; }
  .bb-agg-divider        { display: none; }
}
@media (max-width: 600px) {
  .bb-ga4-conseq-flow      { gap: 4px; }
  .bb-ga4-conseq-flow-node { font-size: 0.68rem; padding: 5px 10px; }
  .bb-ga4-conseq-flow-pipe { width: 14px; }
  .bb-ga4-step-body        { padding: 16px; }
  .bb-ga4-step-num         { box-shadow: 0 0 0 3px #ffffff; }
  .bb-ga4-check-item       { padding: 12px 14px; gap: 10px; }
  .bb-ga4-check-text       { font-size: 0.82rem; }
  .bb-proof .bb-cases-grid { grid-template-columns: 1fr !important; }
  .bb-pricing-price        { font-size: 1.5rem; }
  .bb-g4-result-bar      { flex-direction: column; align-items: flex-start; gap: 8px; }
  .bb-g4-result-pipe     { display: none; }
  .bb-g4-result-verdict  { margin-top: 4px; }
  .bb-conseq-insight     { flex-direction: column; gap: 16px; }
  .bb-conseq-insight-fig { border-right: none; border-bottom: 1px solid rgba(255,106,0,0.2); padding-right: 0; padding-bottom: 16px; width: 100%; }
  .bb-case-stats         { flex-direction: column; gap: 0; }
  .bb-cs-stat            { padding: 12px 0; border-left: none !important; border-top: 1px solid rgba(255,255,255,0.07); }
  .bb-cs-stat:first-child { border-top: none; }
}