/* ═══════════════════════════════════════════════════════════
   bb-gam.css  —  /google-ads-management/ ONLY
   Load order: globals > additional > bb-pillar > bb-cro > bb-gam
   (bb-cro.css needed for bb-cro-roi-grid + bb-cro-pricing-grid)
   Contents:
     1. Section scaffolding
     2. Hero flow leak tag
     3. S4 dark-ROI overrides + badge
     4. S6 AI line band
     5. S13 foundation pricing block
     6. bb-server-dec-block (S12)
     7. Pricing flex fix + includes line
     8. Proof cases-grid + related card overrides
═══════════════════════════════════════════════════════════ */


/* ── 1. SECTION SCAFFOLDING ───────────────────────────────── */
.bb-gam-white,
.bb-gam-light { padding: 96px 0; }
.bb-gam-white { background: #ffffff; }
.bb-gam-light { background: #F7F8FA; }
.bb-gam-white h2, .bb-gam-light h2 { color: #111827; }
.bb-gam-white .bb-lead, .bb-gam-light .bb-lead { color: #4F5B68; }


/* ── 2. HERO FLOW LEAK TAG ────────────────────────────────── */
.bb-gam-hero-flow .bb-ga4-flow-pipe { position: relative; }
.bb-gam-leak-tag {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,106,0,0.7);
  white-space: nowrap;
}
@media (max-width: 600px) {
  .bb-gam-leak-tag { display: none; }
}


/* ── 3. S4 DARK-ROI OVERRIDES (bb-gam-dark-roi) ───────────── */
.bb-gam-dark-roi .bb-cro-roi-grid { padding-top: 22px !important; }
.bb-gam-dark-roi .bb-cro-roi-card--before {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}
.bb-gam-dark-roi .bb-cro-roi-card--before .bb-cro-roi-card__label { color: rgba(255,255,255,0.5) !important; }
.bb-gam-dark-roi .bb-cro-roi-card--before .bb-cro-roi-card__number { color: rgba(255,255,255,0.55) !important; }
.bb-gam-dark-roi .bb-cro-roi-card--before .bb-cro-roi-card__sub { color: rgba(255,255,255,0.45) !important; }
.bb-gam-dark-roi .bb-cro-roi-card--after {
  background: rgba(255,106,0,0.07) !important;
  border: 1px solid rgba(255,106,0,0.5) !important;
  box-shadow: none !important;
  position: relative !important;
  overflow: visible !important;
}
.bb-gam-dark-roi .bb-cro-roi-card--after .bb-cro-roi-card__label { color: rgba(255,106,0,0.8) !important; }
.bb-gam-dark-roi .bb-cro-roi-card--after .bb-cro-roi-card__number { color: #FF6A00 !important; }
.bb-gam-dark-roi .bb-cro-roi-card--after .bb-cro-roi-card__sub { color: rgba(255,106,0,0.7) !important; }
.bb-gam-dark-roi .bb-cro-roi-card--gain {
  background: rgba(255,106,0,0.13) !important;
  border: 2px solid #FF6A00 !important;
  box-shadow: 0 0 28px rgba(255,106,0,0.18) !important;
}
.bb-gam-dark-roi .bb-cro-roi-card--gain .bb-cro-roi-card__label { color: #FF6A00 !important; }
.bb-gam-dark-roi .bb-cro-roi-card--gain .bb-cro-roi-card__number { color: #FF6A00 !important; }
.bb-gam-dark-roi .bb-cro-roi-card--gain .bb-cro-roi-card__sub { color: rgba(255,106,0,0.75) !important; }
.bb-gam-dark-roi .bb-cro-roi-footnote {
  background: rgba(255,106,0,0.08) !important;
  border: 1px solid rgba(255,106,0,0.2) !important;
  border-left: 3px solid #FF6A00 !important;
  border-radius: 0 10px 10px 0 !important;
  color: rgba(255,255,255,0.75) !important;
}
.bb-gam-dark-roi .bb-cro-roi-footnote strong { color: #ffffff !important; }
.bb-gam-dark-roi .bb-ct-attrib-caption { color: rgba(255,255,255,0.8) !important; }
.bb-gam-dark-roi .bb-ct-attrib-caption strong { color: #ffffff !important; }
.bb-gam-roi-featured { position: relative !important; overflow: visible !important; }
.bb-gam-roi-badge {
  position: absolute !important;
  top: -14px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  white-space: nowrap !important;
  font-size: 0.6rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #FFFFFF;
  background: #000000 !important;
  border: 1px solid rgba(255,106,0,0.4) !important;
  border-radius: 999px !important;
  padding: 3px 12px !important;
}


/* ── 4. S6 AI LINE BAND ───────────────────────────────────── */
.bb-gam-ai-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px auto 8px;
  padding: 20px 28px;
  background: #ffffff;
  border: 1px solid rgba(255,106,0,0.2);
  border-radius: 14px;
  max-width: 680px;
  box-shadow: 0 4px 16px rgba(16,24,40,0.05);
}
.bb-gam-ai-line > span {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}
.bb-gam-ai-arrow { color: rgba(255,106,0,0.6) !important; font-weight: 700; }
.bb-gam-ai-result { color: #FF6A00 !important; }
.bb-gam-ai-caption {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}
@media (max-width: 520px) {
  .bb-gam-ai-line { flex-direction: column; gap: 8px; }
  .bb-gam-ai-arrow { transform: rotate(90deg); }
}


/* ── 5. S13 FOUNDATION PRICING ────────────────────────────── */
.bb-gam-foundation-rule {
  max-width: 760px;
  margin: 0 auto 40px;
  background: #fff8f2;
  border: 1px solid rgba(255,106,0,0.18);
  border-left: 3px solid #FF6A00;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
}
.bb-gam-foundation-rule p {
  font-size: 0.92rem !important;
  color: #374151 !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}
.bb-gam-foundation-rule strong { color: #111827 !important; }

.bb-price__per { font-size: 1rem; font-weight: 600; color: #9CA3AF; }

.bb-gam-foundation {
  background: #F7F8FA;
  border: 1px solid #E8EBF0;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 16px 0 18px;
}
.bb-gam-foundation-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 8px;
}
.bb-gam-foundation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #4F5B68;
  padding: 3px 0;
}
.bb-gam-foundation-price { font-weight: 700; color: #111827; white-space: nowrap; }

.bb-gam-foundation-note {
  max-width: 820px;
  margin: 28px auto 0;
  font-size: 0.84rem;
  background: #fef8f1;
  border: 1px solid rgba(255,106,0,0.5);
  color: #6b7280;
  line-height: 1.65;
  text-align: center;
  padding: 16px 22px;
}
.bb-gam-foundation-note strong { color: #374151; }


/* ── 6. bb-server-dec-block (S12) ─────────────────────────── */
.bb-server-dec-block {
  background: #fff8f2 !important;
  border: 1px solid rgba(255,106,0,0.15) !important;
  border-left: 3px solid #FF6A00 !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 20px 24px !important;
}
.bb-server-dec-block p {
  font-size: 0.9rem !important;
  color: #374151 !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  font-weight: 500 !important;
}

.bb-unlock-item { background: #FFFFFF !important; }

/* ── 7. PRICING FLEX FIX + INCLUDES LINE ──────────────────── */
.bb-pricing-features li strong,
.bb-pricing-features li b {
  display: inline !important;
  flex-shrink: unset !important;
}
.bb-pricing-includes-line {
  font-size: 0.8rem !important;
  color: #6b7280 !important;
  margin: 0 0 10px !important;
}
.bb-pricing-includes-line strong { color: #111827 !important; }


/* ── 8. PROOF + RELATED OVERRIDES ─────────────────────────── */
@media (max-width: 860px) {
  .bb-proof .bb-cases-grid { grid-template-columns: 1fr !important; }
}
.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;
}
/* Vertical routing grid: clean 4-up cards (no pill, no redundancy) */
.bb-gam-vert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 12px;
}
.bb-gam-vert-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #E8EBF0;
  border-left: 3px solid #FF6A00;
  border-radius: 12px;
  padding: 24px 22px;
  box-shadow: 0 1px 3px rgba(16,24,40,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.bb-gam-vert-card:hover {
  box-shadow: 0 8px 22px rgba(16,24,40,0.09);
  transform: translateY(-2px);
  border-color: rgba(255,106,0,0.3);
}
.bb-gam-vert-card h3 {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 10px !important;
}
.bb-gam-vert-card p {
  font-size: 0.85rem !important;
  color: #4F5B68 !important;
  line-height: 1.6 !important;
  flex: 1 !important;
  margin: 0 0 16px !important;
}
.bb-gam-vert-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FF6A00;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bb-gam-vert-link:hover { color: #ED4B00; }
@media (max-width: 900px) { .bb-gam-vert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .bb-gam-vert-grid { grid-template-columns: 1fr; } }


/* ── 9. S2 WASTE SYMPTOMS GRID ────────────────────────────── */
.bb-gam-waste-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.bb-gam-waste-card {
  background: #fff8f2;
  border: 1px solid rgba(237,75,0,0.14);
  border-top: 3px solid #ED4B00;
  border-radius: 12px;
  padding: 22px 20px;
}
.bb-gam-waste-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(237,75,0,0.08);
  margin-bottom: 14px;
}
.bb-gam-waste-card h3 {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 8px !important;
}
.bb-gam-waste-card p {
  font-size: 0.82rem !important;
  color: #4F5B68 !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}
@media (max-width: 900px) { .bb-gam-waste-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bb-gam-waste-grid { grid-template-columns: 1fr; } }


/* ── 10. S5 DIAGNOSTIC 3-CARD GRID ────────────────────────── */
.bb-gam-diag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.bb-gam-diag-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #E8EBF0;
  border-top: 3px solid #dadfe7;
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 1px 3px rgba(16,24,40,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.bb-gam-diag-card:hover {
  box-shadow: 0 8px 24px rgba(16,24,40,0.09);
  transform: translateY(-2px);
}
.bb-gam-diag-card--feature {
  border: 1px solid rgba(255,106,0,0.35);
  border-top: 3px solid rgba(255,106,0,0.8);
  background: #fffdfb;
  box-shadow: 0 0 0 1px rgba(255,106,0,0.1), 0 8px 24px rgba(255,106,0,0.08);
}
.bb-gam-diag-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  background: #F3F4F6;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.bb-gam-diag-tag--orange {
  color: #FF6A00;
  background: rgba(255,106,0,0.1);
  border: 1px solid rgba(255,106,0,0.2);
}
.bb-gam-diag-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 14px !important;
}
.bb-gam-diag-tell {
  font-size: 0.85rem !important;
  color: #4F5B68 !important;
  line-height: 1.6 !important;
  margin: 0 0 14px !important;
}
.bb-gam-diag-tell strong { color: #111827 !important; }
.bb-gam-diag-fix {
  font-size: 0.85rem !important;
  color: #4F5B68 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  padding-top: 14px !important;
  border-top: 1px solid #EFF1F4 !important;
  margin-top: auto !important;
}
.bb-gam-diag-fix strong { color: #111827 !important; }
.bb-gam-diag-fix a { color: #FF6A00 !important; font-weight: 600; }
@media (max-width: 860px) { .bb-gam-diag-grid { grid-template-columns: 1fr; } }


/* ── 11. S9 SAMPLE PERFORMANCE REPORT ─────────────────────── */
.bb-gam-report {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid #E8EBF0;
}
.bb-gam-report-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.bb-gam-report-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF6A00;
  background: rgba(255,106,0,0.08);
  border: 1px solid rgba(255,106,0,0.2);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.bb-gam-report-title {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 10px !important;
}
.bb-gam-report-sub { font-size: 0.9rem; color: #6b7280; line-height: 1.6; margin: 0; }
.bb-gam-doc {
  max-width: 780px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #E5E8EE;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(16,24,40,0.1);
}
.bb-gam-doc-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  background: #1C2433;
}
.bb-gam-doc-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.bb-gam-doc-filename {
  margin-left: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.bb-gam-doc-body { padding: 28px 30px 32px; }
.bb-gam-report-block { margin-bottom: 26px; }
.bb-gam-report-block:last-child { margin-bottom: 0; }
.bb-gam-report-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 14px;
}
/* KPI row */
.bb-gam-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bb-gam-kpi {
  background: #F7F8FA;
  border: 1px solid #EAEDF2;
  border-radius: 10px;
  padding: 16px 14px;
  text-align: center;
}
.bb-gam-kpi-num { display: block; font-size: 1.6rem; font-weight: 800; color: #111827; letter-spacing: -0.02em; }
.bb-gam-kpi-lbl { display: block; font-size: 0.72rem; color: #6b7280; margin: 4px 0 8px; }
.bb-gam-kpi-trend {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 700;
  border-radius: 5px;
  padding: 2px 7px;
}
.bb-gam-kpi-trend--good { color: #16a34a; background: #f0fdf4; }
/* CPL trend bars */
.bb-gam-trend {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  height: 150px;
  padding: 0 10px;
}
.bb-gam-trend-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}
.bb-gam-trend-fill {
  width: 100%;
  max-width: 56px;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  border-radius: 6px 6px 0 0;
  min-height: 8px;
}
.bb-gam-trend-fill--now { background: linear-gradient(180deg, #FF8534, #FF6A00); }
.bb-gam-trend-val { font-size: 0.78rem; font-weight: 700; color: #374151; margin-top: 8px; }
.bb-gam-trend-mo { font-size: 0.68rem; color: #9CA3AF; margin-top: 2px; }
/* optimizations list */
.bb-gam-optim-list { list-style: none; margin: 0; padding: 0; }
.bb-gam-optim-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  color: #374151;
  line-height: 1.55;
  padding: 8px 0;
  border-bottom: 1px solid #F3F4F6;
}
.bb-gam-optim-list li:last-child { border-bottom: none; }
.bb-gam-optim-dot {
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #FF6A00;
  margin-top: 7px;
}
.bb-gam-report-foot {
  text-align: center;
  max-width: 620px;
  margin: 24px auto 0;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
}
.bb-gam-report-foot strong { color: #374151; }

.bb-final-inner {  max-width: 640px; }
	
@media (max-width: 600px) {
  .bb-gam-kpi-row { grid-template-columns: 1fr; }
  .bb-gam-trend { gap: 8px; height: 130px; }
  .bb-gam-doc-body { padding: 22px 18px 24px; }
}