/* ═══════════════════════════════════════════════════════════
   bb-cro-audit.css  —  /cro-audit/ ONLY
   Load order: globals > additional > bb-pillar > bb-cro > bb-cro-audit
   NOTE: bb-cro.css must also be enqueued (roi-grid + pricing-grid).
   Contents:
     1. Section scaffolding
     2. NEW: bb-cro-funnel (S1 horizontal + S2 vertical)
     3. S5 myth cards light treatment (bb-cro-audit-myth)
     4. S4 dark-ROI overrides (bb-cro-audit-dark-roi) + badge
     5. bb-server-dec-block (S9)
     6. Proof cases-grid mobile breakpoint
     7. Related card text on dark bg
═══════════════════════════════════════════════════════════ */


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

/* Prevent strong/b inside pricing feature bullets from becoming
   a separate flex child and splitting into two columns. The li
   is display:flex in bb-pillar.css; this pins all inline elements
   to a single wrapping text node. */
.bb-pricing-features li strong,
.bb-pricing-features li b {
  display: inline !important;
  flex-shrink: unset !important;
}

/* Pricing: "Everything in X, plus:" line + implementation highlight */
.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; }
.bb-pricing-features li .bb-pricing-hl {
  display: inline !important;
  color: #C2410C !important;
  font-weight: 700 !important;
}


/* ── 2. CRO FUNNEL ────────────────────────────────────────────
   HERO: reuses the proven bb-ga4-flow node UI (nowrap, animated
   dots). We only add a small "leak" tag on the pipes. The flow
   itself is styled by bb-pillar.css.
   S2 COMPARISON: keeps the vertical funnel variant below. ── */

/* Leak tag sitting under the hero flow pipes */
.bb-cro-funnel-flow .bb-ga4-flow-pipe { position: relative; }
.bb-cro-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;
}

/* S2 comparison: vertical funnel inside the explainer card (on white) */
.bb-cro-funnel--vertical {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 18px 0 0;
}
.bb-cro-funnel--vertical .bb-cro-funnel-node {
  font-size: 0.8rem;
  font-weight: 600;
  color: #111827;
  background: #F7F8FA;
  border: 1px solid #E8EBF0;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
}
.bb-cro-funnel--vertical .bb-cro-funnel-node--goal {
  color: #FF6A00;
  background: rgba(255,106,0,0.07);
  border: 1px solid rgba(255,106,0,0.35);
  font-weight: 700;
}
.bb-cro-funnel-leak--v {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}
.bb-cro-funnel-leak--v .bb-cro-funnel-pipe {
  display: block;
  width: 2px;
  height: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(255,106,0,0.4));
}
@media (max-width: 600px) {
  .bb-cro-leak-tag { display: none; }
}


/* ── SAMPLE REPORT PREVIEW (S8) ───────────────────────────── */
.bb-sample-report {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid #E8EBF0;
}
.bb-sample-report-head { text-align: center; max-width: 620px; margin: 0 auto 32px; }
.bb-sample-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-sample-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-sample-report-sub {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* The document frame */
.bb-sample-doc {
  max-width: 760px;
  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-sample-doc-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  background: #1C2433;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.bb-sample-doc-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
}
.bb-sample-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-sample-doc-body { padding: 28px 30px 32px; }

.bb-sample-block { margin-bottom: 26px; }
.bb-sample-block:last-child { margin-bottom: 0; }
.bb-sample-block-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 12px;
}

/* Leak map */
.bb-sample-leakmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.bb-sample-stage {
  border-radius: 9px;
  padding: 14px 12px;
  text-align: center;
  border: 1px solid;
}
.bb-sample-stage-name { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 4px; }
.bb-sample-stage-score { display: block; font-size: 0.68rem; font-weight: 600; }
.bb-sample-stage--ok   { background: #f0fdf4; border-color: #bbf7d0; }
.bb-sample-stage--ok   .bb-sample-stage-name { color: #166534; }
.bb-sample-stage--ok   .bb-sample-stage-score { color: #16a34a; }
.bb-sample-stage--warn { background: #fffbeb; border-color: #fde68a; }
.bb-sample-stage--warn .bb-sample-stage-name { color: #92400e; }
.bb-sample-stage--warn .bb-sample-stage-score { color: #d97706; }
.bb-sample-stage--bad  { background: #fff7ed; border-color: #fed7aa; }
.bb-sample-stage--bad  .bb-sample-stage-name { color: #9a3412; }
.bb-sample-stage--bad  .bb-sample-stage-score { color: #ea580c; }
.bb-sample-stage--crit { background: #fef2f2; border-color: #fecaca; }
.bb-sample-stage--crit .bb-sample-stage-name { color: #991b1b; }
.bb-sample-stage--crit .bb-sample-stage-score { color: #dc2626; }

/* Findings table */
.bb-sample-table { border: 1px solid #EAEDF2; border-radius: 9px; overflow: hidden; }
.bb-sample-row {
  display: grid;
  grid-template-columns: 1fr 90px 80px;
  gap: 12px;
  align-items: center;
  padding: 11px 16px;
  font-size: 0.8rem;
  color: #374151;
  border-bottom: 1px solid #F0F2F6;
}
.bb-sample-row:last-child { border-bottom: none; }
.bb-sample-row--head {
  background: #F7F8FA;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9CA3AF;
}
.bb-sample-impact {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  border-radius: 5px;
  padding: 3px 6px;
}
.bb-sample-impact--crit { color: #dc2626; background: #fef2f2; }
.bb-sample-impact--high { color: #ea580c; background: #fff7ed; }
.bb-sample-impact--med  { color: #d97706; background: #fffbeb; }

/* Recommendation detail */
.bb-sample-rec {
  background: #fff8f2;
  border: 1px solid rgba(255,106,0,0.18);
  border-left: 3px solid #FF6A00;
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
}
.bb-sample-rec-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.bb-sample-rec-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: #FF6A00;
  background: rgba(255,106,0,0.1);
  border-radius: 5px;
  padding: 3px 7px;
}
.bb-sample-rec-title {
  flex: 1;
  font-size: 0.86rem;
  font-weight: 700;
  color: #111827;
}
.bb-sample-rec-body {
  font-size: 0.8rem;
  color: #4F5B68;
  line-height: 1.6;
  margin: 0 0 8px;
}
.bb-sample-rec-body:last-child { margin-bottom: 0; }
.bb-sample-rec-body strong { color: #111827; }

.bb-sample-report-foot {
  text-align: center;
  max-width: 600px;
  margin: 24px auto 0;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
}
.bb-sample-report-foot strong { color: #C2410C; }

@media (max-width: 600px) {
  .bb-sample-leakmap { grid-template-columns: repeat(2, 1fr); }
  .bb-sample-row { grid-template-columns: 1fr 64px; }
  .bb-sample-row span:nth-child(2) { display: none; }
  .bb-sample-row--head span:nth-child(2) { display: none; }
  .bb-sample-doc-body { padding: 22px 18px 24px; }
}


/* ── METHODOLOGY: funnel-stage strip ──────────────────────── */
.bb-cro-stage-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 32px 0 12px;
}
.bb-cro-stage {
  font-size: 0.78rem;
  font-weight: 600;
  color: #111827;
  background: #F7F8FA;
  border: 1px solid #E8EBF0;
  border-radius: 8px;
  padding: 9px 16px;
  white-space: nowrap;
}
.bb-cro-stage--goal {
  color: #FF6A00;
  background: rgba(255,106,0,0.07);
  border: 1px solid rgba(255,106,0,0.35);
  font-weight: 700;
}
.bb-cro-stage-arrow {
  color: rgba(255,106,0,0.55);
  font-weight: 700;
  font-size: 0.85rem;
}
.bb-cro-stage-caption {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .bb-cro-stage-arrow { transform: rotate(90deg); }
  .bb-cro-stage-strip { flex-direction: column; }
  .bb-cro-stage { width: 100%; max-width: 260px; text-align: center; }
}


/* ── 3. S5 MYTH CARDS — light treatment ───────────────────── */
.bb-cro-audit-myth { grid-template-columns: 1fr 1fr 1fr !important; }
.bb-cro-audit-myth .bb-conseq-card {
  background: #ffffff;
  border: 1px solid #E8EBF0;
  border-left: 3px solid #DC2626;
  border-radius: 12px;
  padding: 26px 24px;
  box-shadow: 0 1px 3px rgba(16,24,40,0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.bb-cro-audit-myth .bb-conseq-card:hover {
  box-shadow: 0 6px 18px rgba(16,24,40,0.08);
  transform: translateY(-2px);
}
.bb-cro-audit-myth-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #DC2626;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.bb-cro-audit-myth .bb-conseq-card-label {
  color: #4B5563; font-style: italic; font-size: 0.92rem; font-weight: 600;
}
.bb-cro-audit-myth .bb-conseq-card p { color: #4F5B68; }
.bb-cro-audit-myth .bb-conseq-card p strong { color: #111827; }
.bb-cro-audit-myth .bb-conseq-card-strong { color: #C2410C; font-weight: 700; }
@media (max-width: 860px) {
  .bb-cro-audit-myth { grid-template-columns: 1fr !important; }
}


/* ── 4. S4 DARK-ROI OVERRIDES (bb-cro-audit-dark-roi) ─────────
   roi-grid on black bb-problem-pillar. Same dark family system
   as the audit page. Hierarchy via weight + orange accent. ── */
.bb-cro-audit-dark-roi .bb-cro-roi-grid { padding-top: 22px !important; }

.bb-cro-audit-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-cro-audit-dark-roi .bb-cro-roi-card--before .bb-cro-roi-card__label { color: rgba(255,255,255,0.5) !important; }
.bb-cro-audit-dark-roi .bb-cro-roi-card--before .bb-cro-roi-card__number { color: rgba(255,255,255,0.55) !important; }
.bb-cro-audit-dark-roi .bb-cro-roi-card--before .bb-cro-roi-card__sub { color: rgba(255,255,255,0.45) !important; }

.bb-cro-audit-dark-roi .bb-cro-roi-card--after {
  background: rgba(255,106,0,0.07) !important;
  border: 1px solid rgba(255,106,0,0.3) !important;
  box-shadow: none !important;
  position: relative !important;
  overflow: visible !important;
}
.bb-cro-audit-dark-roi .bb-cro-roi-card--after .bb-cro-roi-card__label { color: rgba(255,106,0,0.8) !important; }
.bb-cro-audit-dark-roi .bb-cro-roi-card--after .bb-cro-roi-card__number { color: #FF6A00 !important; }
.bb-cro-audit-dark-roi .bb-cro-roi-card--after .bb-cro-roi-card__sub { color: rgba(255,106,0,0.7) !important; }

.bb-cro-audit-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-cro-audit-dark-roi .bb-cro-roi-card--gain .bb-cro-roi-card__label { color: #FF6A00 !important; }
.bb-cro-audit-dark-roi .bb-cro-roi-card--gain .bb-cro-roi-card__number { color: #FF6A00 !important; }
.bb-cro-audit-dark-roi .bb-cro-roi-card--gain .bb-cro-roi-card__sub { color: rgba(255,106,0,0.75) !important; }

.bb-cro-audit-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-cro-audit-dark-roi .bb-cro-roi-footnote strong { color: #ffffff !important; }

.bb-cro-audit-dark-roi .bb-ct-attrib-caption { color: rgba(255,255,255,0.8) !important; }
.bb-cro-audit-dark-roi .bb-ct-attrib-caption strong { color: #ffffff !important; }

/* S4 badge on center card */
.bb-cro-audit-roi-featured { position: relative !important; overflow: visible !important; }
.bb-cro-audit-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;
}


/* ── 5. bb-server-dec-block (S9) ──────────────────────────── */
.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;
}


/* ── 6. Proof cases grid mobile breakpoint ────────────────── */
@media (max-width: 860px) {
  .bb-proof .bb-cases-grid { grid-template-columns: 1fr !important; }
}


/* ── 7. Related card text on dark bg (#080a0e) ────────────── */
.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;
}