/* Base defaults */
:root {
  --ff: 'DM Serif Display', Georgia, serif;
  --fb: 'DM Sans', -apple-system, sans-serif;
  --r: 8px;
  --rl: 12px;
  --bg: #f3f4f6;
  --sf: #ffffff;
  --el: #f7f8fa;
  --sub: #ebeef2;
  --t1: #111827;
  --t2: #374151;
  --t3: #4b5563;
  --ta: #1f2937;
  --red: #b91c1c;
  --rd: #fef2f2;
  --rg: rgba(185,28,28,0.05);
  --rs: #fef2f2;
  --rt: #991b1b;
  --rb: rgba(185,28,28,0.18);
  --or: #b45309;
  --od: rgba(180,83,9,0.06);
  --os: #fffbeb;
  --ot: #92400e;
  --ob: rgba(180,83,9,0.18);
  --gr: #047857;
  --gd: rgba(4,120,87,0.06);
  --gs: #ecfdf5;
  --gt: #065f46;
  --gb: rgba(4,120,87,0.15);
  --bl: #1d4ed8;
  --bd: rgba(29,78,216,0.06);
  --bt: #1e3a8a;
  --pu: #6d28d9;
  --pd: rgba(109,40,217,0.06);
  --pt: #5b21b6;
  --br: rgba(0,0,0,0.1);
  --bs: rgba(0,0,0,0.15);
  --hbg: #111827;
  --hq: #6b7280;
  --ha: #d1d5db;
  --sh: 0 1px 3px rgba(0,0,0,0.06);
}

/* Light mode */
body.light {
  --bg: #f3f4f6;
  --sf: #ffffff;
  --el: #f7f8fa;
  --sub: #ebeef2;
  --t1: #111827;
  --t2: #374151;
  --t3: #4b5563;
  --ta: #1f2937;
  --red: #b91c1c;
  --rd: #fef2f2;
  --rg: rgba(185,28,28,0.05);
  --rs: #fef2f2;
  --rt: #991b1b;
  --rb: rgba(185,28,28,0.18);
  --or: #b45309;
  --od: rgba(180,83,9,0.06);
  --os: #fffbeb;
  --ot: #92400e;
  --ob: rgba(180,83,9,0.18);
  --gr: #047857;
  --gd: rgba(4,120,87,0.06);
  --gs: #ecfdf5;
  --gt: #065f46;
  --gb: rgba(4,120,87,0.15);
  --bl: #1d4ed8;
  --bd: rgba(29,78,216,0.06);
  --bt: #1e3a8a;
  --pu: #6d28d9;
  --pd: rgba(109,40,217,0.06);
  --pt: #5b21b6;
  --br: rgba(0,0,0,0.1);
  --bs: rgba(0,0,0,0.15);
  --hbg: #111827;
  --hq: #6b7280;
  --ha: #d1d5db;
  --sh: 0 1px 3px rgba(0,0,0,0.06);
}

/* Warm mode -- editorial warmth, genuine mid-contrast palette */
body.warm {
  --bg: #e4dbd4;
  --sf: #f2ece7;
  --el: #ede6e0;
  --sub: #d8cfc6;
  --t1: #2a2420;
  --t2: #4d443c;
  --t3: #6b6058;
  --ta: #3a322c;
  --red: #a83838;
  --rd: #f2deda;
  --rg: rgba(168,56,56,0.06);
  --rs: #ede0db;
  --rt: #883030;
  --rb: rgba(168,56,56,0.22);
  --or: #9a6828;
  --od: rgba(154,104,40,0.09);
  --os: #ede4da;
  --ot: #7a5018;
  --ob: rgba(154,104,40,0.22);
  --gr: #2e7850;
  --gd: rgba(46,120,80,0.08);
  --gs: #deeae2;
  --gt: #1e6038;
  --gb: rgba(46,120,80,0.18);
  --bl: #2e6888;
  --bd: rgba(46,104,136,0.08);
  --bt: #1e5070;
  --pu: #6e4e88;
  --pd: rgba(110,78,136,0.08);
  --pt: #583e70;
  --br: rgba(42,36,32,0.12);
  --bs: rgba(42,36,32,0.18);
  --hbg: #3a322c;
  --hq: #8a7e74;
  --ha: #c4bab0;
  --sh: 0 1px 4px rgba(42,36,32,0.08);
}

/* Dark mode */
body.dark {
  --bg: #0c1017;
  --sf: #131921;
  --el: #1a2130;
  --sub: #1e2636;
  --t1: #e2e8f0;
  --t2: #94a3b8;
  --t3: #7c8da2;
  --ta: #cbd5e1;
  --red: #e87070;
  --rd: #1a1318;
  --rg: rgba(232,112,112,0.06);
  --rs: #1a1318;
  --rt: #e8a0a0;
  --rb: rgba(232,112,112,0.15);
  --or: #fb923c;
  --od: rgba(251,146,60,0.08);
  --os: rgba(251,146,60,0.04);
  --ot: #fdba74;
  --ob: rgba(251,146,60,0.15);
  --gr: #34d399;
  --gd: rgba(52,211,153,0.06);
  --gs: rgba(52,211,153,0.04);
  --gt: #6ee7b7;
  --gb: rgba(52,211,153,0.12);
  --bl: #60a5fa;
  --bd: rgba(96,165,250,0.08);
  --bt: #93c5fd;
  --pu: #a78bfa;
  --pd: rgba(167,139,250,0.06);
  --pt: #c4b5fd;
  --br: rgba(255,255,255,0.06);
  --bs: rgba(255,255,255,0.1);
  --hbg: #101620;
  --hq: #64748b;
  --ha: #cbd5e1;
  --sh: none;
}

/* Dark mode: backstage and line of visibility */
.dark .bp-back { background: #0f1520; }
.dark .bp-back .bp-lbl { background: #0f1520; }
.dark .bp-back::before {
  background-image: radial-gradient(circle, #475569 1.2px, transparent 1.2px);
  background-size: 4px 4px;
}
.dark .bp-div-vis {
  background: transparent;
  color: #94a3b8;
  border-top-color: rgba(255,255,255,0.15);
}
.dark .bp-div-vis .div-desc { color: #7c8da2; }
.dark .bk-sys { background: rgba(255,255,255,0.06); }
.dark .bk-gap { background: rgba(255,255,255,0.03); }
.dark .bp-back .bp-c { border-right-color: rgba(255,255,255,0.06); }
.dark .bp-back .back-legend-item { color: #7c8da2; }
.dark .bp-back .lbl-title { color: #e2e8f0 !important; }
.dark .bp-back .lbl-sub { color: #7c8da2 !important; }
.dark .bk-sys .bk-label { color: #6ee7b7; }
.dark .bk-sys .bk-label::before { background: #6ee7b7; }
.dark .bk-gap .bk-label { color: #fdba74; }
.dark .bk-gap .bk-label::before { background: #fdba74; }
.dark .back-dot-sys { background: #6ee7b7; }
.dark .back-dot-gap { background: #fdba74; }
.dark .bk-text { color: #94a3b8; }
.dark .bk-sys .bk-text { color: #94a3b8; }
.dark .bk-gap .bk-text { color: #94a3b8; }
.dark .bp-back .bp-c { opacity: 1; }
.dark .bp-back .row-highlight {
  background-color: rgba(255,255,255,0.04) !important;
  box-shadow: inset -2px 0 0 0 rgba(255,255,255,0.15) !important;
}
.dark .bp-back .row-highlight .lbl-title { color: #e2e8f0 !important; }
.dark .bp-back .col-highlight { background-color: rgba(255,255,255,0.03) !important; }

/* Dark mode: boost depth bars and click numbers */
.dark .dv-expected { background: #15803d; }
.dark .dv-actual { background: #dc2626; }
.dark .dv-bar { color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.dark .rk-num { color: #e2e8f0; }
.dark .rk-num-bad { color: #f87171; opacity: 1; }
.dark .dv-label { color: #e2e8f0; }
.dark .ramp-svg { opacity: 0.6; }

/* Warm mode: backstage and line of visibility */
.warm .bp-back { background: #d8cfc6; }
.warm .bp-back .bp-lbl { background: #d8cfc6; }
.warm .bp-back::before {
  background-image: radial-gradient(circle, #9e9488 1.2px, transparent 1.2px);
  background-size: 4px 4px;
}
.warm .bp-div-vis {
  background: transparent;
  color: #2a2420;
  border-top-color: rgba(42,36,32,0.25);
}
.warm .bp-div-vis .div-desc { color: #6b6058; }
.warm .bk-sys { background: #e6e0da; }
.warm .bk-gap { background: #ece4dc; }
.warm .bp-back .bp-c { border-right-color: rgba(42,36,32,0.1); }
.warm .bp-back .back-legend-item { color: #6b6058; }
.warm .bp-back .lbl-title { color: #2a2420 !important; }
.warm .bp-back .lbl-sub { color: #6b6058 !important; }
.warm .bk-sys .bk-label { color: #1e6038; }
.warm .bk-sys .bk-label::before { background: #1e6038; }
.warm .bk-gap .bk-label { color: #a83838; }
.warm .bk-gap .bk-label::before { background: #a83838; }
.warm .bk-text { color: #3a322c; }
.warm .bk-sys .bk-text { color: #3a322c; }
.warm .bk-gap .bk-text { color: #3a322c; }
.warm .bp-back .bp-c { opacity: 1; }
.warm .bp-back .row-highlight {
  background-color: rgba(255,255,255,0.12) !important;
  box-shadow: inset -2px 0 0 0 rgba(42,36,32,0.15) !important;
}
.warm .bp-back .row-highlight .lbl-title { color: #2a2420 !important; }
.warm .bp-back .col-highlight { background-color: rgba(255,255,255,0.08) !important; }

/* Warm mode: blueprint table color overrides */
.warm .jc-bad { background: rgba(168,56,56,0.06); }
.warm .tf { background: rgba(46,104,136,0.12); color: var(--bt); }
.warm .tb { background: rgba(154,104,40,0.12); color: var(--ot); }
.warm .ts { background: rgba(110,78,136,0.1); color: var(--pt); }
.warm .bp-div-int { border-top-color: rgba(46,104,136,0.3); }
.warm .bp-div-sup { border-top-color: rgba(110,78,136,0.25); }
.warm .pc-item + .pc-item { border-top-color: rgba(168,56,56,0.15); }
.warm .bp-pain-row { background: var(--sf); }
.warm .bp-pain-row .bp-lbl { background: var(--sf); }
.warm .flow-cells::before {
  background: linear-gradient(90deg, var(--bl) 0%, var(--bl) 65%, var(--red) 100%);
}
.warm .sn-bad { color: var(--red) !important; }
/* Warm ingress sides: subtle warm-compatible tints, not neutral */
.warm .ing-side-left { background: #e2dad0; }
.warm .ing-side-right { background: #c6cad2; }
.warm .ext { background: #e2dad0; }
.warm .int { background: #c6cad2; }
.warm .ing-side-left .ing-insight { background: #d8cfc4; }
.warm .ing-side-right .ing-insight { background: #bcc0c8; }
.warm .ext .src { background: var(--sf); border-color: var(--ob); color: var(--ot); }
.warm .int .src { background: var(--sf); border-color: var(--gb); color: var(--gt); }
.warm .ext-note { color: var(--ot); background: var(--od); border-left-color: var(--or); }
.warm .int-note { color: var(--gt); background: var(--gd); border-left-color: var(--gr); }

/* Warm evidence/touchpoints/screenshots: keep lighter than surface like light mode */
.warm .bp-evidence { background: var(--el); }
.warm .bp-evidence .bp-lbl { background: var(--el); }
.warm .bp-screenshots { background: var(--el); }
.warm .bp-screenshots .bp-lbl { background: var(--el); }
.warm .tag {
  background: var(--sf);
  color: var(--t1);
  border: 1px solid var(--bs);
}
.warm .ev-img {
  background: transparent;
  border: none;
  border-style: none;
}
.warm .ev-desc { color: var(--t1); }

/* Warm journey cells: restore color and contrast */
.warm .jc .sn { color: var(--bl); opacity: 0.5; }
.warm .jc-bad .sn { color: var(--red); opacity: 0.5; }
.warm .jc .sa { color: var(--t1); }
.warm .jc .sd { color: var(--t2); }
.warm .bp-journey { background: var(--sf); }
.warm .bp-journey .bp-lbl { background: var(--sf); }
/* Warm time rings: boost visibility */
.warm .tm-c-ok { stroke: var(--gr); opacity: 0.6; }
.warm .tm-c-mid { stroke: var(--or); opacity: 0.7; }
.warm .tm-c-over { stroke: var(--or); opacity: 0.85; }
.warm .tm-c-bad { stroke: var(--red); opacity: 1; }
.warm .tm-num { color: var(--t1); }
/* Warm clicks: make cursor icons and numbers visible */
.warm .rk-num { color: var(--t1); }
.warm .rk-num-bad { color: var(--red); opacity: 1; }
.warm .click-badge { color: var(--t2); }
.warm .click-badge-bad { color: var(--red); }
/* Warm loop pills: clearly red, not brown */
.warm .lp-pill { opacity: 0.8; }
.warm .lp-pill > .lp-border rect { stroke: var(--red); }
.warm .lp-icon { color: var(--red); }
.warm .lp-pill span { color: var(--red); }
/* Warm depth bars */
.warm .dv-expected { background: var(--gr); }
.warm .dv-actual { background: var(--red); }

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
html { scroll-behavior: smooth; overflow-x: hidden; scrollbar-gutter: stable; }

/* Skip to content link for keyboard users */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--t1);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 8px;
}

/* Global focus styles for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--t3);
  outline-offset: 2px;
  border-radius: 4px;
}
.jtab:focus-visible,
.bsh-tab:focus-visible,
.theme-opt:focus-visible,
.ing-toggle:focus-visible {
  outline-color: var(--t2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--t2) 20%, transparent);
}
.ss-cell:focus-visible {
  outline-color: var(--t2);
  border-radius: 6px;
}

body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
  overflow-x: hidden;
}

/* Header */
.top-bar {
  display: flex; gap: 16px;
  align-items: center; padding: 14px 48px;
  background: var(--el); border-bottom: 1px solid var(--br);
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  box-shadow: var(--sh); transition: background .3s;
}
.dark .top-bar {
  background: rgba(10,14,23,0.85);
  backdrop-filter: blur(16px);
  box-shadow: none;
}
.light .top-bar {
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.light .funnel-flow {
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 15%, #fff5e0 40%, #fde0d8 65%, #fcd4cc 100%);
}
.light .ing-side-right { background: #e4eaf2; }
.light .int { background: #e4eaf2; }
.light .ing-side-left .ing-insight { background: #e8e6e2; }
.light .ing-side-right .ing-insight { background: #d8e0ec; }
.warm .top-bar {
  background: rgba(221,212,204,0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 4px rgba(42,36,32,0.06);
}
.top-bar-left {
  display: flex; align-items: baseline; gap: 12px;
  margin-right: auto;
}
.top-bar h1 {
  font-family: var(--ff); font-size: 18px;
  font-weight: 400; color: var(--t1);
}
.subtitle { font-size: 13px; color: var(--t3); }
.top-bar-right {
  display: flex; align-items: center; gap: 8px;
}
.toggle-btn {
  display: none;
}
/* Theme pill toggle */
.theme-pill {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--el);
  border: 1px solid var(--br);
  border-radius: 50px;
  padding: 3px;
  position: relative;
}
.theme-pill-bg {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--bs);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
.theme-opt {
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  position: relative;
  z-index: 1;
  transition: color 0.2s;
  padding: 0;
}
.theme-opt:hover {
  color: var(--t1);
}
.theme-opt.active {
  color: var(--t1);
}
/* Header buttons */

/* Hero */
.hero {
  background: radial-gradient(ellipse at 50% 60%, var(--el) 0%, var(--sub) 40%, var(--bg) 100%);
  padding: 72px 0 56px;
  margin-bottom: 0;
}
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.hero-q {
  font-family: var(--ff);
  font-size: 36px;
  color: var(--t1);
  margin-bottom: 8px;
  line-height: 1.2;
  font-style: normal;
}
.hero-stat {
  font-family: var(--ff);
  font-size: 20px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
}
.hero-a {
  font-size: 17px; color: var(--t2); line-height: 1.7;
  margin-bottom: 0;
}

/* Hero to section transition */
.hero + .content {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid var(--br);
}

/* Centered section variant */
.section-centered .section-label,
.section-centered .section-title,
.section-centered .section-sub {
  text-align: center;
}
.section-centered .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* Content */
.content {
  max-width: 1200px; margin: 0 auto;
  padding: 0 48px 0;
}

/* Sections */
.section {
  padding: 48px 0 0; opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s, transform .5s;
}
.section.visible { opacity: 1; transform: none; }
.section-label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--t2); margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-centered .section-label {
  justify-content: center;
}
.section-centered .section-label::before,
.section-centered .section-label::after {
  content: '';
  height: 1px;
  width: 40px;
  background: var(--bs);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--ff); font-size: 28px;
  color: var(--t1); margin-bottom: 32px;
  line-height: 1.2;
}
.section-sub {
  font-size: 15px; color: var(--t2);
  margin-bottom: 36px; max-width: 860px;
  line-height: 1.6;
}

/* Stats row */
.stats-row {
  display: flex; align-items: center;
  justify-content: center; background: var(--sf);
  border: 1px solid var(--br); border-radius: var(--rl);
  padding: 36px 0; margin-bottom: 40px;
  box-shadow: var(--sh);
}
.stat { flex: 1; text-align: center; padding: 0 40px; }
.stat-num {
  display: block; font-family: var(--ff);
  font-size: 52px; color: var(--t1); line-height: 1;
}
.stat-num.blue { color: var(--bl); }
.stat-num.purple { color: var(--pu); }
.stat-lbl {
  display: block; font-size: 14px; color: var(--t3);
  margin-top: 10px; font-weight: 500;
}
.stat-div { width: 1px; height: 56px; background: var(--bs); }

/* Ingress diagram */
.ingress {
  display: flex; align-items: stretch;
  margin-bottom: 28px; border-radius: var(--rl);
  overflow: hidden; border: 1px solid var(--br);
  box-shadow: var(--sh);
}
.ingress-side { flex: 1; padding: 32px 28px; }
.ext { background: var(--os); }
.int { background: var(--gs); }
.ingress-mid {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px 20px; gap: 10px; min-width: 170px;
  background: var(--sf);
  border-left: 1px solid var(--br);
  border-right: 1px solid var(--br);
}
.arr { font-size: 22px; color: var(--t3); opacity: .5; }
.mid-node {
  text-align: center; padding: 20px 16px;
  background: var(--t3); border-radius: var(--r);
}
.mid-title {
  display: block; font-family: var(--ff);
  font-size: 18px; color: #fff;
}
.mid-sub {
  display: block; font-size: 12px;
  color: #94a3b8; margin-top: 4px;
}
.ingress-pct {
  font-family: var(--ff); font-size: 48px;
  color: var(--or); line-height: 1;
}
.ingress-pct.green { color: var(--gr); }
.ingress-lbl {
  font-size: 16px; font-weight: 600;
  color: var(--ta); margin-top: 6px;
}
.ingress-detail {
  font-size: 13px; color: var(--t3); margin-top: 2px;
}
.src-list {
  display: flex; flex-direction: column;
  gap: 6px; margin: 20px 0;
}
.src {
  font-size: 14px; padding: 10px 14px;
  border-radius: 6px; font-weight: 500;
}
.ext .src {
  background: var(--sf); border: 1px solid var(--ob);
  color: var(--ot);
}
.int .src {
  background: var(--sf); border: 1px solid var(--gb);
  color: var(--gt);
}
.dark .ext .src {
  background: var(--od); color: var(--ot);
}
.dark .int .src {
  background: var(--gd); color: var(--gt);
}
.warm .ext .src {
  background: var(--od); color: var(--ot);
}
.warm .int .src {
  background: var(--gd); color: var(--gt);
}
.ingress-note {
  font-size: 13px; font-style: italic;
  padding: 12px 14px; border-radius: 6px;
  line-height: 1.55;
}
.ext-note {
  color: var(--ot); background: var(--od);
  border-left: 3px solid var(--or);
}
.int-note {
  color: var(--gt); background: var(--gd);
  border-left: 3px solid var(--gr);
}

/* Pain points */
.pain {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 22px; background: var(--rs);
  border: 1px solid var(--rb); border-radius: var(--r);
  border-left: 3px solid var(--red); margin-bottom: 8px;
  transition: opacity .4s, max-height .4s,
    padding .4s, margin .4s, border-width .4s;
  overflow: hidden;
}
.pain-sm { padding: 12px 14px; margin-top: 10px; }
.pain-dot {
  width: 8px; height: 8px; min-width: 8px;
  border-radius: 50%; background: var(--red);
  margin-top: 6px;
}
.pain-title {
  font-size: 12px; font-weight: 700; color: var(--red);
  margin-bottom: 6px; text-transform: uppercase;
  letter-spacing: .5px;
}
.pain-body {
  font-size: 14px; color: var(--rt); line-height: 1.55;
}
.pain-sm .pain-body { font-size: 13px; }
/* Pain points always visible */

/* Click comparison */
.clicks {
  display: flex; align-items: center;
  justify-content: center; gap: 32px;
  margin-bottom: 40px;
}
.click-box {
  text-align: center; padding: 28px 52px;
  border-radius: var(--rl);
}
.bad {
  background: var(--rs); border: 1px solid var(--rb);
}
.good {
  background: var(--gs); border: 1px solid var(--gb);
}
.click-num {
  display: block; font-family: var(--ff);
  font-size: 64px; line-height: 1;
}
.bad .click-num { color: var(--red); }
.good .click-num { color: var(--gr); }
.click-lbl {
  display: block; font-size: 14px; color: var(--t3);
  margin-top: 10px; font-weight: 500;
}
.click-vs {
  font-family: var(--ff); font-size: 20px;
  font-style: italic; color: var(--t3);
}

/* Blueprint grid -- full width breakout */
.bp-wrap {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  scroll-margin-top: 60px;
}
.bp {
  background: var(--sf);
  border: 1px solid var(--br);
  border-radius: var(--rl);
  box-shadow: var(--sh);
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.bp::-webkit-scrollbar {
  display: none;
}
/* Direct children of .bp stretch via grid minmax */

/* When content overflows: bleed to browser edge */
.bp-wrap.has-overflow {
  padding-right: 0;
}
.bp-wrap.has-overflow .bp {
  border-radius: var(--rl) 0 0 var(--rl);
  border-right: none;
}

/* Scroll hint shadow on right edge */
.bp-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 72px;
  background: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.02) 40%, rgba(0,0,0,0.08) 70%, rgba(0,0,0,0.14) 100%);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bp-wrap.has-overflow::after {
  opacity: 1;
}
.bp-wrap.scrolled-end::after {
  opacity: 0;
}
.dark .bp-wrap::after {
  background: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.2) 70%, rgba(0,0,0,0.4) 100%);
}
.warm .bp-wrap::after {
  background: linear-gradient(to right, transparent 0%, rgba(42,36,32,0.03) 40%, rgba(42,36,32,0.1) 70%, rgba(42,36,32,0.18) 100%);
}

/* Scroll arrow indicators */
.bp-scroll-arrow {
  position: fixed;
  z-index: 100000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--br);
  background: var(--sf);
  color: var(--t2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, color 0.2s, box-shadow 0.2s, background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.bp-scroll-arrow:hover {
  color: var(--t1);
  background: var(--el);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.bp-scroll-arrow svg {
  width: 20px;
  height: 20px;
}
.bp-wrap.has-overflow .bp-scroll-right {
  opacity: 1;
  pointer-events: auto;
}
.bp-wrap.has-overflow.scrolled-end .bp-scroll-right {
  opacity: 0;
  pointer-events: none;
}
.bp-wrap.has-overflow.scrolled-start .bp-scroll-left {
  opacity: 0;
  pointer-events: none;
}
.bp-wrap.has-overflow:not(.scrolled-start) .bp-scroll-left {
  opacity: 1;
  pointer-events: auto;
}
/* Dark mode: boost arrow visibility */
.dark .bp-scroll-arrow {
  background: var(--el);
  border-color: var(--bs);
  color: var(--t2);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.dark .bp-scroll-arrow:hover {
  background: var(--sub);
  color: var(--t1);
}
.bp-row {
  display: flex; border-bottom: 1px solid var(--br);
  min-width: fit-content;
}
.bp-row:last-child { border-bottom: none; }
.bp-lbl {
  width: 140px; min-width: 140px; padding: 14px 16px;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--t3); background: var(--sf);
  border-right: 1px solid var(--br);
  display: flex; align-items: center; line-height: 1.4;
  position: sticky;
  left: 0;
  z-index: 5;
}
.bp-cells {
  display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr));
  flex: 1;
}

/* 7-column grids for D2 journey */
.bp-cells.bp-cells-7 {
  grid-template-columns: repeat(7, minmax(200px, 1fr));
}
/* 8-column grids (legacy) */
.bp-cells.bp-cells-8 {
  grid-template-columns: repeat(8, minmax(200px, 1fr));
}
.bp-c {
  padding: 14px 16px; border-right: 1px solid var(--br);
  font-size: 15px; color: var(--t2);
  display: flex; flex-direction: column; gap: 5px;
}
.bp-c:last-child { border-right: none; }

/* Time */
.bp-time { background: var(--el); }
.bp-time .bp-c {
  font-weight: 600; color: var(--t3); font-size: 15px;
  justify-content: center;
}
.red-text { color: var(--red) !important; }

/* Phase */
.bp-phase { background: var(--sf); }
.phase {
  font-weight: 700; font-size: 14px; color: var(--ta);
  text-transform: uppercase; letter-spacing: .5px;
  justify-content: center; text-align: center;
}
.phase-bad { color: var(--red) !important; background: var(--rg); }

/* Evidence row */
.bp-evidence { background: var(--el); }
.bp-evidence .bp-c { opacity: 0.85; }
.bp-evidence .bp-c:hover { opacity: 1; }
.tag {
  display: inline-block; font-size: 14px;
  padding: 5px 10px; border-radius: 4px;
  background: var(--sub); color: var(--t2);
  font-weight: 500;
}

/* Journey */
.bp-journey {
  background: var(--sf);
  position: relative;
  border-top: none;
}
.bp-journey .bp-cells,
.bp-journey .bp-c {
  position: relative;
  z-index: 1;
}
.jc { padding: 20px 16px !important; }
/* Per-column color bar */
.bp-journey .bp-c { border-top: 3px solid transparent; }
.jc-bad { background: rgba(185,28,28,0.04); }
.step {
  display: flex; align-items: center;
  gap: 10px; margin-bottom: 8px;
}
.sn {
  width: 28px; height: 28px; min-width: 28px;
  display: flex; align-items: center;
  justify-content: center; background: var(--sub);
  border: 1px solid var(--bs); color: var(--ta);
  border-radius: 50%; font-size: 13px; font-weight: 700;
}
.sn-bad {
  background: var(--rd); border-color: var(--rb);
  color: var(--red);
}
.sa {
  font-size: 15px; font-weight: 600;
  color: var(--t1); line-height: 1.3;
}
.sd {
  font-size: 14px; color: var(--t3); line-height: 1.5;
}
.sd-note {
  font-size: 11px;
  font-style: italic;
  color: var(--t3);
  opacity: 0.75;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--br);
}

/* Frontstage / Backstage / Support -- quiet, receded */
.bp-front { background: transparent; }
.bp-front .bp-lbl { color: var(--bl); }
.tf { background: rgba(129,140,248,0.1); color: var(--bt); padding: 5px 10px; border-radius: 4px; }

.bp-back { background: #dfe3ea; position: relative; }
.bp-back .bp-lbl { color: var(--or); }
/* Dot matrix -- dense at top dissolving downward like the veil lifting */
.bp-back::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #8892a2 1.2px, transparent 1.2px);
  background-size: 4px 4px;
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.4) 8%,
    rgba(0,0,0,0.2) 20%,
    rgba(0,0,0,0.08) 40%,
    rgba(0,0,0,0.02) 65%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.4) 8%,
    rgba(0,0,0,0.2) 20%,
    rgba(0,0,0,0.08) 40%,
    rgba(0,0,0,0.02) 65%,
    transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.tb { background: rgba(249,115,22,0.1); color: var(--ot); padding: 5px 10px; border-radius: 4px; }

.bp-support { background: transparent; }
.bp-support .bp-lbl { color: var(--pu); }
.ts { background: rgba(167,139,250,0.08); color: var(--pt); padding: 5px 10px; border-radius: 4px; }

/* Lower rows recede visually */
.bp-front .bp-c,
.bp-back .bp-c,
.bp-support .bp-c {
  opacity: 0.7;
}
.bp-front .bp-c:hover,
.bp-back .bp-c:hover,
.bp-support .bp-c:hover {
  opacity: 1;
}

/* Dividers -- structural separators */
.bp-div {
  display: flex; align-items: center; height: 36px;
  padding: 0 20px; font-size: 11px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  min-width: fit-content;
}
.bp-div span { padding: 0 10px; white-space: nowrap; }
.bp-div-int {
  background: transparent; color: var(--bl);
  border-top: 2px dashed rgba(129,140,248,0.25);
}
.bp-div-vis {
  background: transparent;
  color: #1f2937;
  border: none;
  border-top: 2px solid #c5cad4;
  height: auto;
  padding: 10px 20px;
  font-size: 12px;
  letter-spacing: 1.5px;
  position: relative;
}
/* Shimmer removed -- dot matrix and line handle the visual */
.bp-div-vis::after { display: none; }
.bp-footnote {
  font-size: 12px;
  color: var(--t3, #999);
  padding: 12px 20px 0;
  margin: 0;
  font-style: italic;
}
.lbl-tip {
  display: inline-block;
  cursor: help;
  opacity: 0.5;
  font-size: 13px;
  position: relative;
  vertical-align: middle;
  margin-left: 2px;
}
.lbl-tip:hover::after,
.lbl-tip:focus::after {
  content: attr(aria-label);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--t1);
  color: var(--bg);
  font-size: 11px;
  font-style: italic;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  max-width: 220px;
  white-space: normal;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.bp-div-vis span:first-child {
  position: sticky;
  left: 20px;
  z-index: 2;
}
.bp-div-sup {
  background: transparent; color: var(--pu);
  border-top: 2px dashed rgba(167,139,250,0.2);
}

/* Outcome */
.outcome {
  background: var(--t3); border-radius: var(--rl);
  padding: 36px 40px; text-align: center;
}
.outcome-num {
  display: block; font-family: var(--ff);
  font-size: 28px; color: #fca5a5; margin-bottom: 8px;
}
.outcome-ctx {
  display: block; font-size: 16px;
  color: #94a3b8; line-height: 1.6;
}

/* Theme cards */
.themes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.tc {
  background: var(--sf); border: 1px solid var(--br);
  border-radius: var(--r); padding: 28px 24px;
  box-shadow: var(--sh);
  transition: border-color .2s, box-shadow .2s;
}
.tc:hover {
  border-color: var(--bs);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.tc-icon {
  margin-bottom: 14px;
  color: var(--red);
  line-height: 1;
}
.tc-icon .ti {
  width: 36px; height: 36px;
  opacity: 0.8;
}
.tc-name {
  font-size: 16px; font-weight: 600;
  color: var(--t1); margin-bottom: 8px;
}
.tc-desc {
  font-size: 14px; color: var(--t3); line-height: 1.6;
}

/* Depth bars */
.depth {
  background: var(--sf); border: 1px solid var(--br);
  border-radius: var(--rl); padding: 36px 40px;
  box-shadow: var(--sh);
}
.depth-title {
  font-family: var(--ff); font-size: 20px;
  color: var(--t1); margin-bottom: 4px;
}
.depth-sub {
  font-size: 14px; color: var(--t3); margin-bottom: 28px;
}
.depth-bars {
  display: flex; flex-direction: column; gap: 12px;
}
.db { display: flex; align-items: center; gap: 16px; }
.db-mkt {
  width: 76px; min-width: 76px; font-size: 14px;
  font-weight: 600; color: var(--t2); text-align: right;
}
.db-track {
  flex: 1; height: 34px; background: var(--el);
  border-radius: 4px; overflow: hidden;
}
.db-fill {
  height: 100%; border-radius: 4px;
  display: flex; align-items: center;
  padding: 0 14px; font-size: 13px;
  font-weight: 700; color: #fff;
}
.db-bad { background: var(--red); }
.db-good { background: var(--gr); }
.db-exp {
  margin-top: 8px; padding-top: 16px;
  border-top: 1px dashed var(--bs);
}
.db-exp .db-mkt { color: var(--gr); }

/* Responsive */
@media (max-width: 1000px) {
  .ingress { flex-direction: column; }
  .ingress-mid {
    flex-direction: row;
    border-left: none; border-right: none;
    border-top: 1px solid var(--br);
    border-bottom: 1px solid var(--br);
    padding: 16px;
  }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .content { padding: 0 24px 80px; }
  .hero { padding: 56px 24px 48px; }
  .top-bar { padding: 14px 24px; }
}
@media (max-width: 640px) {
  .stats-row {
    flex-direction: column; gap: 24px; padding: 28px;
  }
  .stat-div { width: 60px; height: 1px; }
  .clicks { flex-direction: column; gap: 16px; }
  .themes { grid-template-columns: 1fr; }
  .bp-lbl { width: 80px; min-width: 80px; }
  .hero-q { font-size: 24px; }
  .section-title { font-size: 28px; }
}

/* Journey image section */
.journey-img {
  background: var(--sf); border: 1px solid var(--br);
  border-radius: var(--rl); padding: 32px;
  margin-top: 28px; box-shadow: var(--sh);
}
.journey-img-title {
  font-family: var(--ff); font-size: 20px;
  color: var(--t1); margin-bottom: 4px;
}
.journey-img-sub {
  font-size: 14px; color: var(--t3); margin-bottom: 20px;
}
.journey-img-slot {
  border: 2px dashed var(--bs); border-radius: var(--r);
  min-height: 200px; display: flex;
  align-items: center; justify-content: center;
  overflow: hidden; background: var(--el);
}
.journey-img-slot img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r);
}
.journey-img-placeholder {
  padding: 40px; text-align: center;
}
.img-ph-text {
  font-size: 14px; color: var(--t3); line-height: 1.6;
}

/* Screenshots row */
.bp-screenshots { background: var(--el); }
.bp-screenshots .bp-c { opacity: 0.85; }
.bp-screenshots .bp-c:hover { opacity: 1; }
.ss-cell {
  padding: 12px 16px !important;
  display: flex !important;
  align-items: flex-start !important;
  cursor: pointer;
}
.ss-cell .ev-img {
  flex: 1;
  min-height: 0;
  margin-top: 0;
  overflow: hidden;
  position: relative;
  align-items: flex-start;
  border-radius: 6px;
  max-height: 300px;
}
.ss-cell .ev-img img {
  object-fit: contain;
  object-position: top;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: block;
}
.ss-cell .ev-img::after {
  display: none;
}

/* Evidence row images */
.ev-cell { gap: 8px !important; }
.ev-img {
  margin-top: 4px; border: none;
  border-radius: 6px; min-height: 0;
  display: flex; align-items: center;
  justify-content: center; overflow: hidden;
  background: transparent; position: relative;
}
.ev-img img {
  width: 100%; height: auto; display: block;
  border-radius: 4px;
}
.ev-img img[src=""] { display: none; }
.ev-img img[src=""]:not([src]) { display: none; }
.ev-ph {
  font-size: 12px; color: var(--t3); font-style: italic;
  padding: 24px 12px;
  text-align: center;
  opacity: 0.7;
}
.ev-img img[src=""]+.ev-ph { display: block; }
.ev-img img:not([src=""])+.ev-ph { display: none; }

/* Pain points row */
.bp-pain-row { background: var(--sf); }
.bp-pain-row > .bp-cells {
  background: linear-gradient(90deg, transparent 0%, transparent 15%, rgba(185,28,28,0.04) 40%, rgba(185,28,28,0.10) 100%);
}
.dark .bp-pain-row { background: var(--sf); }
.dark .bp-pain-row > .bp-cells {
  background: linear-gradient(90deg, transparent 0%, transparent 15%, rgba(232,112,112,0.03) 40%, rgba(232,112,112,0.08) 100%);
}
.warm .bp-pain-row { background: var(--sf); }
.warm .bp-pain-row > .bp-cells {
  background: linear-gradient(90deg, transparent 0%, transparent 15%, rgba(168,56,56,0.04) 40%, rgba(168,56,56,0.09) 100%);
}
.pain-lbl { color: var(--t1) !important; }
.pc { gap: 0 !important;
  flex-direction: column !important; align-items: stretch;
}
.pc .pain-dot { margin-top: 5px; }
.pc-text {
  font-size: 14px; color: var(--rt); line-height: 1.5;
}
.pc-bad { background: transparent; }

/* Outcome spacing after full-width bp */
.outcome { margin-top: 56px; }

/* Outcome above blueprint */
.outcome-top { margin-top: 0; margin-bottom: 28px; }

/* Blueprint shared header -- tabs + stats above grid */
.bp-shared-header {
  background: var(--sf);
  border: 1px solid var(--br);
  border-bottom: none;
  border-radius: var(--rl) var(--rl) 0 0;
  padding: 48px 48px 0;
  box-shadow: var(--sh);
  margin: 48px 24px 0;
  scroll-margin-top: 60px;
}
.bp-shared-header .journey-selector-label {
  margin-bottom: 14px;
  text-align: center;
}
.bp-shared-section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--t2);
  text-align: center;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.bp-shared-section-label::before,
.bp-shared-section-label::after {
  content: '';
  height: 1px;
  width: 40px;
  background: var(--bs);
}
.bp-shared-title {
  font-family: var(--ff);
  font-size: 28px;
  color: var(--t1);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.2;
}
.bp-shared-header .journey-selector {
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.bp-shared-header .bp-intro {
  padding: 36px 0 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 28px;
  border-top: 1px solid var(--br);
}

/* Blueprint intro -- stat block layout */
.bp-intro {
  padding: 32px 28px;
  margin-bottom: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.bp-intro-stats {
  display: flex;
  gap: 28px;
  align-items: baseline;
  flex-shrink: 0;
}
.bp-intro-block {
  text-align: center;
  background: none;
  border: none;
  padding: 0;
}
.bp-intro-block-num {
  display: block;
  font-family: var(--ff);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}
.bp-intro-block.bad .bp-intro-block-num { color: var(--red); }
.bp-intro-block.good .bp-intro-block-num { color: var(--gr); }
.bp-intro-block-sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.bp-intro-right {
  flex: 1;
  border-left: 1px solid var(--br);
  padding-left: 28px;
}
.bp-intro-col {
  flex-direction: column;
  align-items: stretch;
}
.bp-intro-row {
  display: flex;
  align-items: center;
  gap: 32px;
}
.bp-intro-scenario {
  font-size: 14px;
  color: var(--t3);
  line-height: 1.4;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--br);
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
}
.bp-intro-scenario-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--t1);
  margin-right: 8px;
}
.bp-intro-chev {
  color: var(--t2);
  margin: 0 6px;
  font-size: 16px;
  font-weight: 300;
}
.bp-intro-takeaway {
  font-family: var(--ff);
  font-size: 16px;
  font-style: italic;
  color: var(--t1);
  margin: 0;
  text-align: left;
  line-height: 1.4;
}

/* Clicks row -- quiet */
.bp-clicks-row { background: transparent; border-bottom: none !important; }
.bp-clicks-row .bp-lbl { background: var(--sf); }
.ramp-svg { opacity: 0.8; }
.click-ct {
  font-family: var(--ff); font-size: 18px;
  color: var(--t2); font-weight: 400;
  justify-content: center; text-align: center;
  padding: 8px 16px !important;
}
.click-ct-bad {
  color: var(--red) !important;
  opacity: 1 !important;
  font-weight: 400;
}

/* Journey cell layout */
.jc {
  padding: 28px 20px !important;
  flex-direction: column !important;
  gap: 0 !important;
}
.jc .sn {
  width: auto; height: auto; min-width: auto;
  display: block;
  background: none;
  border: none;
  color: var(--t3);
  border-radius: 0;
  font-family: var(--ff);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 8px;
  opacity: 0.35;
}
.jc .sa {
  font-size: 17px; font-weight: 600;
  color: var(--t1); line-height: 1.3;
  margin-bottom: 8px;
}
.jc .sd {
  font-size: 14px; color: var(--t2); line-height: 1.5;
}

/* Actions row bottom edge -- stronger separator from metrics */
.bp-journey {
  border-bottom: 2px solid var(--bs) !important;
}
.jc-bad .sn {
  color: var(--red); opacity: 0.5;
}
.sn-bad {
  background: none !important;
  border: none !important;
  color: var(--red) !important;
}

/* Horizontal flow arrow row */
.bp-flow-row { background: transparent; border-bottom: none; }
.bp-flow-row .bp-lbl { background: transparent; }
.fc {
  justify-content: center; align-items: center;
  padding: 4px 0 !important; border-right-color: transparent !important;
  position: relative;
}
.flow-arr {
  font-size: 18px; color: var(--t3); opacity: 0.4;
}
.flow-end {
  font-size: 10px; color: var(--red); opacity: 0.6;
}

/* Vertical connectors removed -- divider lines handle separation */

/* Tooltips -- rendered via JS to avoid clipping */
.kiro-tip {
  position: fixed;
  padding: 8px 14px;
  background: var(--t1);
  color: var(--bg);
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  border-radius: 6px;
  max-width: 260px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.kiro-tip.show { opacity: 1; }
[data-tip] { cursor: help; }

/* Vertical dependency arrows */
.arrow-down {
  display: block;
  text-align: center;
  font-size: 16px;
  color: var(--bl);
  opacity: 0.5;
  margin-top: 4px;
  line-height: 1;
}
.jc-bad .arrow-down { color: var(--red); }

/* Dim placeholder text */
.dim { opacity: 0.3; }

/* How-to-read guide */
.bp-guide-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 8px;
}
.bp-guide {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
}
.bp-guide-icon {
  width: 18px; height: 18px; min-width: 18px;
  display: flex; align-items: center;
  justify-content: center;
  background: var(--bl);
  color: #fff;
  border-radius: 50%;
  font-size: 10px; font-weight: 700;
  margin-top: 1px;
}
.bp-guide-text { flex: 1; }
.bp-guide-title {
  display: none;
}
.bp-guide-body {
  font-size: 14px;
  color: var(--t3);
  line-height: 1.5;
}
.bp-guide-body strong { color: var(--t2); }

/* Divider inline descriptions */
.div-desc {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #4b5563;
  margin-left: 8px;
  position: sticky;
  left: 180px;
}

/* Background grouping -- divider lines handle this now */

/* Flow indicator row removed from journey - now its own row */
.bp-journey .bp-c { position: relative; z-index: 1; }

/* Flow indicator row */
.bp-flow {
  border-bottom: none !important;
}
.bp-flow .bp-lbl {
  background: transparent;
  border-right-color: transparent;
}
.flow-cells {
  position: relative;
  min-height: 20px;
}
.flow-cells::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 16px;
  right: 28px;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    var(--bl) 0%,
    var(--bl) 65%,
    var(--red) 100%
  );
  opacity: 0.45;
  border-radius: 2px;
}
.flow-cells::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid var(--red);
  opacity: 0.5;
}

/* Individual pain items within cells */
.pc-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
}
.pc-item + .pc-item {
  border-top: 1px solid rgba(153,27,27,0.12);
}
.pc-sev-mark {
  flex-shrink: 0;
  margin-top: 1px;
}
.pc-sev-critical {
  width: 16px;
  height: 16px;
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-sev-critical svg {
  width: 16px;
  height: 16px;
}
.pc-sev-det {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.6;
  margin: 4px 4px 0;
}
.pc-item .pc-text {
  font-size: 14px;
}

/* Pain point theme tags */
.pc-inner { display: flex; flex-direction: column; gap: 8px; }
.pc-theme {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--rb);
}
.pc-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  opacity: 0.85;
}
.tis {
  width: 16px; height: 16px; min-width: 16px;
  display: block;
}

/* Row label title + subtitle */
.bp-lbl {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}
.lbl-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--t1);
  line-height: 1.3;
}
.lbl-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--t3);
  opacity: 0.9;
  line-height: 1.35;
}
.pain-lbl .lbl-title { color: var(--t1); }
.pain-lbl .lbl-sub { color: var(--t3); opacity: 0.9; }
.bp-front .lbl-title { color: var(--bl); }
.bp-back .lbl-title { color: #1f2937 !important; }
.bp-back .lbl-sub { color: #4b5563 !important; }
.bp-support .lbl-title { color: var(--pu); }

/* Sticky label backgrounds for special rows */
.bp-journey .bp-lbl {
  background: var(--sf);
}
.bp-screenshots .bp-lbl,
.bp-evidence .bp-lbl { background: var(--el); }
.bp-pain-row .bp-lbl { background: var(--sf); }
.bp-back .bp-lbl { background: #dfe3ea; }
.bp-loop-row .bp-lbl,
.bp-time-row .bp-lbl,
.bp-clicks-row .bp-lbl,
.bp-depth-row .bp-lbl {
  background: var(--sf);
}

/* Shadow on label column when content is scrolled behind it */
.bp.is-scrolled .bp-lbl {
  box-shadow: 4px 0 16px -4px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s ease;
}
.bp .bp-lbl {
  transition: box-shadow 0.2s ease;
}
.dark .bp.is-scrolled .bp-lbl {
  box-shadow: 4px 0 16px -4px rgba(0,0,0,0.25);
}

/* Merged Phase + Time row */
.bp-phase-time { background: transparent; border-bottom: none !important; }
.bp-phase-time .bp-lbl { background: transparent; }
.bp-phase-time .bp-c {
  opacity: 0.6;
  border-right-color: transparent !important;
}
.pt-cell {
  justify-content: center;
  text-align: center;
  padding: 12px 16px !important;
  gap: 2px !important;
}
.pt-phase {
  display: block;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ta);
}
.pt-time {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--t3);
}
.pt-cell-bad .pt-phase { color: var(--red); }
.pt-cell-bad .pt-time { color: var(--red); opacity: 0.7; }
.pt-cell-bad { background: transparent; }

/* Click badges inside journey cells */
.click-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--t3);
  margin-top: 4px;
}
.click-badge::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  background: currentColor;
  opacity: 0.5;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 0l16 12.279-6.951 1.17 4.325 8.817-3.596 1.734-4.35-8.879L4 20V0z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 0l16 12.279-6.951 1.17 4.325 8.817-3.596 1.734-4.35-8.879L4 20V0z'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}
.click-badge-bad {
  color: var(--red);
  font-weight: 700;
}

/* First pain column - journey start state */
.pc-ok {
  background: transparent !important;
  border-left: none !important;
  border-color: var(--br) !important;
}
.pc-ok .pain-dot { display: none; }
.pc-ok-text {
  font-size: 13px;
  color: var(--t2);
  font-style: italic;
}

/* Closing statement */
.closing {
  margin-top: 56px;
  padding: 48px 0 24px;
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-top: 1px solid var(--br);
}
.closing-headline {
  font-family: var(--ff);
  font-size: 26px;
  color: var(--t1);
  line-height: 1.3;
  max-width: 640px;
  margin: 0 auto 14px;
}
.closing-body {
  font-family: var(--fb);
  font-size: 15px;
  color: var(--t3);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 20px;
}
.closing-cta {
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 600;
  color: var(--ta);
  line-height: 1.5;
  max-width: 580px;
  margin: 0 auto;
}
.closing-text {
  font-family: var(--ff);
  font-size: 24px;
  color: var(--t1);
  line-height: 1.45;
  max-width: 800px;
  margin: 0 auto;
}

/* Page footer */
.page-footer {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: var(--el);
  border-top: 1px solid var(--br);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px 48px;
  text-align: center;
}
.footer-sep {
  display: none;
}
.footer-thanks {
  font-family: var(--ff);
  font-size: 16px;
  color: var(--t3);
  margin-bottom: 16px;
  font-style: italic;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.footer-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ta);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--br);
  border-radius: 5px;
  transition: background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-link:hover {
  background: var(--el);
  color: var(--t1);
}
.footer-link-disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.footer-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--t3);
  opacity: 0.3;
}
.footer-meta {
  font-size: 13px;
  color: var(--t3);
  opacity: 0.6;
}

/* Footer credits */
.footer-credits-line {
  font-size: 13px;
  color: var(--t3);
  text-align: center;
  margin-bottom: 8px;
}
.footer-credit {
  font-weight: 600;
  color: var(--t2);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-credit:hover {
  color: var(--t1);
}
.footer-alias {
  font-weight: 400;
  color: var(--t3);
}

/* Tighten gap: intro to blueprint */
#s2 { padding-bottom: 24px; margin-bottom: 0; }
.content + .bp-wrap { margin-top: 0; }
/* Blueprint grid loses top radius when shared header is present */
.bp-shared-header + .bp-wrap .bp,
.bp-shared-header ~ .bp-wrap .bp {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
#s2 .journey-selector {
  margin-bottom: 20px;
}
main.content { padding-bottom: 0; }

/* Bottom padding only on final content section */
.bp-wrap + .content { padding-bottom: 0; }

/* Extra top space for Part 3 after blueprint */
.bp-wrap + .content .section:first-child { padding-top: 72px; }

/* Theme card data stat */
.tc-stat {
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Journey tabs */
.journey-tabs-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.journey-tabs {
  display: flex;
  gap: 0;
  background: var(--sf);
  border: 1px solid var(--br);
  border-bottom: none;
  border-radius: var(--rl) var(--rl) 0 0;
  overflow: hidden;
}
.journey-tabs .jtab {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: none;
  border-radius: 0;
  background: var(--el);
  cursor: pointer;
  font-family: var(--fb);
  transition: all 0.2s ease;
  text-align: left;
  position: relative;
}
.journey-tabs .jtab + .jtab {
  border-left: 1px solid var(--br);
}
.journey-tabs .jtab:hover {
  background: var(--sub);
}
.journey-tabs .jtab.active {
  background: var(--sf);
}
.journey-tabs .jtab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--t1);
}
.journey-tabs .jtab-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  line-height: 1.3;
}
.journey-tabs .jtab.active .jtab-label {
  color: var(--t1);
}
.journey-tabs .jtab-meta {
  font-size: 11px;
  color: var(--t3);
  opacity: 0.7;
}

/* Journey selector -- integrated into Part 2 header */
.journey-selector-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--t3);
  text-align: center;
  margin-bottom: 10px;
}
.journey-selector {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--br);
  border-radius: 10px;
  overflow: hidden;
}
.jtab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border: none;
  border-radius: 0;
  background: var(--el);
  cursor: pointer;
  font-family: var(--fb);
  transition: all 0.2s ease;
  flex: 1;
  text-align: left;
  position: relative;
}
.jtab + .jtab {
  border-left: 1px solid var(--br);
}
.jtab:hover {
  background: var(--sub);
}
.jtab.active {
  background: var(--sf);
}
.jtab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--t1);
  border-radius: 3px 3px 0 0;
}
.jtab-num {
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 700;
  color: var(--sf);
  background: var(--t3);
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0.7;
}
.jtab.active .jtab-num {
  background: var(--t1);
  opacity: 1;
}
.jtab-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.jtab-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  line-height: 1.3;
}
.jtab.active .jtab-label {
  color: var(--t1);
}
.jtab-meta {
  font-size: 11px;
  font-weight: 400;
  color: var(--t3);
  opacity: 0.7;
  line-height: 1.3;
}
.jtab.active .jtab-meta {
  opacity: 0.85;
}
/* Placeholder journey cells */
.jc-placeholder .sd {
  font-style: italic;
  opacity: 0.4;
}

/* Page depth row in blueprint */
.bp-depth-row { background: transparent; }
.bp-depth-row .bp-lbl { background: transparent; }
.bp-depth-row .bp-c { opacity: 0.8; }
.depth-ct {
  justify-content: center;
  text-align: center;
  padding: 8px 16px !important;
  opacity: 1 !important;
}
.depth-range {
  display: block;
  font-family: var(--ff);
  font-size: 18px;
  color: var(--red);
  line-height: 1;
}
.depth-note {
  display: block;
  font-size: 11px;
  color: var(--t3);
  margin-top: 2px;
}
.depth-ct-bad .depth-range {
  color: var(--red);
  font-weight: 400;
}

/* Page depth mini bar charts */
.dv-cell {
  justify-content: center;
  padding: 16px 14px !important;
}
.dv-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.dv-bar {
  height: 24px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  min-width: 36px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.dv-expected {
  background: var(--gr);
}
.dv-actual {
  background: var(--red);
}
.dv-worst {
  opacity: 1;
}
.dv-label {
  display: block;
  font-size: 13px;
  color: var(--t1);
  margin-top: 6px;
  text-align: center;
  font-weight: 500;
}

/* Cumulative clicks -- rising wedge/ramp */
.ramp-cells {
  position: relative;
}
.ramp-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.rk {
  position: relative;
  z-index: 1;
  justify-content: center;
  align-items: center;
  padding: 10px 8px !important;
  border-right-color: transparent !important;
}
.rk-num {
  font-family: var(--ff);
  font-size: 20px;
  color: var(--t1);
  display: flex;
  align-items: center;
  gap: 4px;
}
.rk-num::before {
  content: '';
  display: inline-block;
  width: 16px; height: 16px;
  background: currentColor;
  opacity: 0.5;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 0l16 12.279-6.951 1.17 4.325 8.817-3.596 1.734-4.35-8.879L4 20V0z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 0l16 12.279-6.951 1.17 4.325 8.817-3.596 1.734-4.35-8.879L4 20V0z'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}
.rk-num-bad {
  color: var(--red);
  opacity: 1;
}
.rk-num-bad::before { opacity: 0.5; }

/* Redirect callout */
.redirect-callout-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px 0;
}
.redirect-callout {
  padding: 24px 0;
}
.redirect-q {
  display: block;
  font-family: var(--ff);
  font-size: 22px;
  color: var(--t2);
  margin-bottom: 10px;
  font-style: normal;
}
.redirect-a {
  display: block;
  font-size: 15px;
  color: var(--t3);
  line-height: 1.6;
  max-width: 900px;
}

/* Escalation funnel */
.funnel-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px 24px;
}
.funnel {
  padding: 16px 0 0;
  text-align: center;
}
.funnel-title {
  font-family: var(--ff);
  font-size: 28px;
  color: var(--t1);
  margin-bottom: 10px;
}
.funnel-sub {
  font-size: 15px;
  color: var(--t2);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Closing section */
.closing-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 48px 64px;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.closing-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.closing-lead {
  font-size: 16px;
  color: var(--t2);
  line-height: 1.7;
  margin: 0 0 28px;
}
.closing-heading {
  font-family: var(--ff);
  font-size: 22px;
  color: var(--t1);
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 32px;
  text-align: center;
}
.closing-split {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 36px;
  text-align: left;
}
.closing-stat-side {
  flex: 0 0 auto;
  text-align: center;
  min-width: 140px;
}
.closing-stat-num {
  display: block;
  font-family: var(--ff);
  font-size: 56px;
  font-weight: 700;
  color: var(--t1);
  line-height: 1;
  margin-bottom: 8px;
}
.closing-stat-label {
  display: block;
  font-size: 13px;
  color: var(--t2);
  line-height: 1.4;
  max-width: 180px;
  margin: 0 auto;
}
.closing-detail-side {
  flex: 1;
  display: flex;
  gap: 32px;
}
.closing-col {
  flex: 1;
}
.closing-col-title {
  font-family: var(--ff);
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.closing-col-text {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.6;
  margin: 0;
}
.closing-forward {
  font-size: 16px;
  color: var(--t1);
  line-height: 1.6;
  margin: 0 auto;
  font-weight: 600;
  text-align: center;
  padding-top: 28px;
  border-top: 1px solid var(--br);
  max-width: 680px;
}
.closing-next {
  font-weight: 700;
}
.funnel-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
  padding: 0;
  border-radius: var(--rl);
  overflow: hidden;
  border: 1px solid var(--br);
  box-shadow: var(--sh);
  background: linear-gradient(90deg, var(--sf) 0%, var(--sf) 15%, var(--od) 40%, var(--rd) 65%, var(--rs) 100%);
}
.funnel-stage {
  flex: 1 1 0;
  min-width: 0;
  padding: 28px 24px 28px 32px;
  position: relative;
  z-index: 1;
  border: none;
  border-radius: 0;
  text-align: center;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Chevron dividers replace vertical lines */
.funnel-stage-warn {
  border-color: transparent;
  background: transparent;
}
.funnel-stage-bad {
  border-color: transparent;
  background: transparent;
}
.funnel-flow .funnel-stage:nth-of-type(2) {
  background: transparent;
}
.funnel-num {
  display: block;
  font-family: var(--ff);
  font-size: 32px;
  color: var(--t1);
  line-height: 1;
  margin-bottom: 6px;
}
.funnel-stage-warn .funnel-num { color: var(--or); }
.funnel-stage-bad .funnel-num { color: var(--red); }
.funnel-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 6px;
}
.funnel-eff {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}
.funnel-eff-good { color: var(--gr); }
.funnel-eff-bad { color: var(--red); }
.funnel-detail {
  display: block;
  font-size: 13px;
  color: var(--t2);
  margin-top: 4px;
}
.funnel-arrow {
  color: var(--t3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  align-self: stretch;
  width: 24px;
  position: relative;
}
.funnel-arrow svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

/* Grouped journey cost metrics */
.bp-metrics-group {
  display: flex;
  border-bottom: 1px solid var(--br);
}
.bp-metrics-label {
  width: 140px;
  min-width: 140px;
  padding: 14px 16px;
  border-right: 1px solid var(--br);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.bp-metrics-body {
  flex: 1;
}
.bp-metrics-body .bp-row {
  border-bottom: none;
}
.bp-mlbl {
  width: 60px;
  min-width: 60px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--br);
  opacity: 0.6;
}

/* Time row -- radial rings */
.bp-time-row { background: transparent; }
.tm {
  padding: 10px 12px !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 8px !important;
  border-right-color: transparent !important;
}
.tm-ring {
  width: 34px; height: 34px; min-width: 34px;
}
.tm-bg {
  fill: none;
  stroke: var(--el);
  stroke-width: 5;
}
.tm-fg {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}
.tm-fg.animated {
  transition: stroke-dasharray 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.tm-c-ok { stroke: var(--gr); opacity: 0.5; }
.tm-c-mid { stroke: var(--or); opacity: 0.6; }
.tm-c-over { stroke: var(--or); opacity: 0.8; }
.tm-c-bad { stroke: var(--red); opacity: 0.9; }
.tm-num {
  font-family: var(--ff);
  font-size: 20px;
  color: var(--t1);
}

/* Phase headers inside journey cells */
.jc-phase {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--t3);
  opacity: 0.5;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--br);
}
.jc-phase-bad {
  color: var(--red);
  opacity: 0.7;
}

/* Backstage recedes */
.bp-back .bp-c { opacity: 1; }
.bp-back .bp-c:hover { opacity: 1; }
.bp-back { border-bottom: 1px solid rgba(255,255,255,0.08) !important; }
.bp-back .bp-c { border-right-color: rgba(0,0,0,0.08); }

/* Backstage structured cells */
.bk-cell {
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  position: relative;
  z-index: 1;
}
.bk-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 5px;
  border: none;
}
.bk-sys {
  background: rgba(255,255,255,0.6);
}
.bk-gap {
  background: rgba(255,255,255,0.35);
}
.bk-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}
.bk-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bk-sys .bk-label { color: #065f46; }
.bk-sys .bk-label::before { background: #065f46; opacity: 0.8; }
.bk-gap .bk-label { color: #92400e; }
.bk-gap .bk-label::before { background: #92400e; opacity: 0.8; }
.bk-text {
  font-size: 13px;
  line-height: 1.5;
  color: #1f2937;
}
.bk-sys .bk-text { color: #1f2937; }
.bk-gap .bk-text { color: #1f2937; }

/* Backstage legend */
.back-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.back-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #4b5563;
  text-transform: none;
  letter-spacing: 0;
}
.back-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.back-dot-sys { background: #065f46; opacity: 1; }
.back-dot-gap { background: #92400e; opacity: 1; }

/* Evidence cell description text */
.ev-desc {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.4;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Dominant source callout */
.src-dominant {
  font-weight: 700;
}
.src-note {
  font-weight: 400;
  font-size: 12px;
  opacity: 0.7;
}

/* Loop-back annotations in journey cells */
.loop-back {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px dashed var(--rb);
  border-radius: 6px;
  background: var(--rg);
}
.loop-icon {
  width: 16px; height: 16px; min-width: 16px;
  color: var(--red);
  opacity: 0.7;
}
.loop-back span {
  font-size: 12px;
  color: var(--red);
  opacity: 0.8;
  line-height: 1.4;
}

/* Loop row -- individual pills per behavior */
.bp-loop-row {
  display: flex;
  border-bottom: 1px solid var(--br);
  position: relative;
}
.bp-loop-row .bp-lbl { background: var(--sf); z-index: 5; }
.lp-c {
  justify-content: center;
  align-items: center;
  padding: 16px 0 !important;
  position: relative;
  border-right-color: transparent !important;
}
.lp-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 28px;
  opacity: 0.75;
  white-space: nowrap;
  position: relative;
  left: -50%;
  transform: translateX(0);
  font-size: 12px;
}
/* Marching dashes via SVG overlay */
/* FALLBACK: To revert to static dashes, remove .lp-border rules and
   add back: border: 2px dashed var(--red); to .lp-pill */
.lp-pill > .lp-border {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  overflow: visible;
}
.lp-pill > .lp-border rect {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-dasharray: 10 8;
  stroke-linecap: round;
  opacity: 0.4;
  animation: lp-march 20s linear infinite;
}
@keyframes lp-march {
  to { stroke-dashoffset: -72; }
}
.lp-icon {
  width: 14px;
  height: 14px;
  color: var(--red);
  flex-shrink: 0;
}
.lp-pill span {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
}

/* Header nav links */
.top-nav {
  display: flex;
  gap: 4px;
}
.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--t3);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 5px;
  transition: color .2s, background .2s;
}
.nav-link:hover {
  color: var(--t1);
  background: var(--sub);
}
.nav-link.nav-active {
  color: var(--t1);
  background: var(--sub);
}

/* Offset scroll target for sticky header */
.section { scroll-margin-top: 60px; }

/* Sticky mini-header for customer actions */
.bp-sticky-header {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--sf);
  border-bottom: 1px solid var(--br);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease;
}

/* When blueprint overflows, bleed sticky header to right edge */
.bp-sticky-header.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Top bar: title + journey toggle */
.bsh-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--el);
  cursor: pointer;
  gap: 16px;
  border-bottom: 1px solid var(--br);
}
.bsh-hint {
  font-size: 11px;
  color: var(--t3);
  opacity: 0.6;
  position: absolute;
  left: 24px;
}
.bsh-hint kbd {
  display: inline-block;
  padding: 1px 5px;
  font-family: var(--fb);
  font-size: 10px;
  font-weight: 700;
  color: var(--t2);
  background: var(--sf);
  border: 1px solid var(--br);
  border-radius: 3px;
  box-shadow: 0 1px 0 var(--br);
}
.bsh-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--t3);
}
.bsh-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--bs);
  border-radius: 8px;
  overflow: hidden;
}
.bsh-tab {
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
  background: var(--el);
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bsh-tab-num {
  font-family: var(--fb);
  font-size: 10px;
  font-weight: 700;
  color: var(--sf);
  background: var(--t3);
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0.6;
  flex-shrink: 0;
}
.bsh-tab.active .bsh-tab-num {
  background: var(--t1);
  opacity: 1;
}
.bsh-tab + .bsh-tab {
  border-left: 1px solid var(--bs);
}
.bsh-tab:hover {
  color: var(--t2);
  background: var(--sub);
}
.bsh-tab.active {
  color: var(--t1);
  background: var(--sf);
  font-weight: 700;
}
.bsh-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--t1);
}

/* Step columns row */
.bsh-steps {
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  display: flex;
  align-items: stretch;
  background: var(--sf);
  position: relative;
}
.bsh-steps::-webkit-scrollbar {
  display: none;
}
.bsh-steps-lbl {
  width: 164px;
  min-width: 164px;
  padding: 12px 16px 12px 40px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--t3);
  border-right: 1px solid var(--br);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--sf);
  position: sticky;
  left: 0;
  z-index: 2;
  box-sizing: border-box;
}
.bsh-cells {
  display: flex;
  min-width: 0;
}
.bsh-c {
  padding: 12px 16px;
  border-right: 1px solid var(--br);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 120px;
}
.bsh-c:last-child { border-right: none; }
.bsh-sn {
  font-family: var(--ff);
  font-size: 18px;
  color: var(--t3);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
}
.bsh-sa {
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
  line-height: 1;
}
.bsh-bad .bsh-sn {
  color: var(--red);
  opacity: 0.45;
}
.bsh-bad .bsh-sa {
  color: var(--red);
}

/* Sticky header column highlight */
.bsh-col-highlight {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.bsh-c {
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 2px 0 0 transparent;
}
.bp-sticky-header .bsh-tab { cursor: pointer; }
.bp-sticky-header .bsh-steps { cursor: pointer; }
.bsh-c { cursor: pointer; }
.bsh-bad { color: var(--red); }

/* Offset for fixed header */
body { padding-top: 52px; }

/* Blueprint grid closed off */

/* Blueprint closing bar */
.bp-closer {
  height: 4px;
  background: var(--bl);
  opacity: 0.2;
  border-radius: 0 0 var(--rl) var(--rl);
}

/* Pain point severity -- unified red palette */
.pain-sev {
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}
.pain-critical {
  color: var(--red);
}
.pain-detractor {
  color: var(--red);
}
.pain-sev-inline {
  font-size: 13px;
  margin-right: 2px;
}
.pain-sev-inline.pain-critical {
  color: var(--red);
}
.pain-sev-inline.pain-detractor {
  color: var(--red);
}
.pc-text br {
  display: block;
  margin-top: 6px;
  content: '';
}

/* Pain legend in row label -- stacked vertically */
.pain-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.pain-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--rt);
  opacity: 0.8;
  text-transform: none;
  letter-spacing: 0;
}

/* Severity icons */
.pain-sev-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pain-sev-critical {
  width: 18px;
  height: 18px;
  color: var(--red);
}
.pain-sev-critical svg {
  width: 18px;
  height: 18px;
}
.pain-sev-detractor {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.5;
  margin: 0 5px;
}

/* Inline severity in pain cell text */
.pain-sev-critical-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  color: var(--red);
  margin-right: 4px;
  flex-shrink: 0;
}
.pain-sev-critical-inline svg {
  width: 18px;
  height: 18px;
}
.pain-sev-inline.pain-sev-critical-inline {
  display: inline-flex;
  vertical-align: middle;
}
.pain-sev-inline.pain-sev-critical-inline svg {
  width: 14px;
  height: 14px;
}
.pain-sev-inline.pain-sev-detractor-inline {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.5;
  vertical-align: middle;
  margin-right: 4px;
}

/* Ingress headline stat */
.ingress-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 44px;
}
.ingress-headline-num {
  font-family: var(--ff);
  font-size: 56px;
  color: var(--t1);
  line-height: 1;
  margin-bottom: 8px;
}
.ingress-headline-text {
  font-size: 16px;
  color: var(--t2);
  line-height: 1.55;
  max-width: 600px;
}

/* Split proportion bar */
.split-bar {
  display: flex;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 28px;
  height: 36px;
  border: 1px solid var(--br);
}
.split-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
}
.split-ext {
  background: var(--sub);
}
.split-int {
  background: var(--el);
}
.split-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--t1);
}
.split-detail {
  font-size: 13px;
  color: var(--t2);
}

/* Ingress v2 diagram */
.ingress-v2 {
  display: flex;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 24px;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  position: relative;
}

.ing-side {
  flex: 1;
  padding: 28px 36px;
}

.ing-insight {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  font-style: italic;
  margin: -28px -36px 20px;
  padding: 14px 36px;
  line-height: 1.5;
  border-radius: var(--rl) 0 0 0;
}
.ing-side-left .ing-insight {
  background: var(--el);
  border-radius: var(--rl) var(--rl) 0 0;
}
.ing-side-right .ing-insight {
  background: var(--el);
  border-radius: var(--rl) var(--rl) 0 0;
}

.ing-header {
  margin-bottom: 16px;
}

.ing-pct {
  font-family: var(--ff);
  font-size: 22px;
  font-weight: 600;
  color: var(--t1);
  line-height: 1.2;
  display: block;
}

.ing-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ta);
  margin-top: 4px;
}

.ing-vol {
  display: block;
  font-size: 13px;
  color: var(--t3);
  margin-top: 2px;
}

.ing-sources {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ing-src {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 5px;
  font-weight: 500;
  background: var(--sf);
  color: var(--t2);
  border: 1px solid var(--br);
  position: relative;
}

.ing-src-lead {
  font-weight: 700;
  color: var(--t1);
}

.ing-src-note {
  font-size: 12px;
  font-weight: 400;
  color: var(--t2);
  margin-left: 4px;
  white-space: nowrap;
}
.ing-src-detail {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--t3);
  margin-top: 2px;
  line-height: 1.3;
}

/* Center hub */
.ing-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 24px;
  min-width: 180px;
  background: transparent;
}

.ing-hub-node {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--hbg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 8px;
  border: 2px solid var(--br);
}

.ing-hub-title {
  display: block;
  font-family: var(--ff);
  font-size: 14px;
  color: #fff;
  opacity: 0.9;
}

.ing-hub-num {
  display: block;
  font-family: var(--ff);
  font-size: 32px;
  color: #fff;
  line-height: 1;
  margin-top: 2px;
}

.ing-hub-sub {
  display: none;
}

.ing-hub-stat {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  text-align: center;
  margin-bottom: 6px;
}

.ing-hub-note {
  font-size: 12px;
  color: var(--t2);
  text-align: center;
  font-style: italic;
  font-weight: 400;
  max-width: 200px;
  line-height: 1.5;
  margin-bottom: 14px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  position: relative;
  box-shadow: none;
}
.ing-hub-note::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 6px;
  background: var(--t3);
  opacity: 0.4;
}

/* Toggle button inside hub */
.ing-hub .ing-toggle {
  margin-top: 16px;
}

/* Flow connectors */

/*
  Pattern: source pills -> thin lines -> vertical merge bar -> gradient trunk -> box edge
  Then from hub: lines reach out from hub circle to the side panel borders
*/

/* -- LEFT SIDE (external): sources connect right, trunk goes right to box edge -- */
.ing-side-left {
  position: relative;
  background: var(--od);
  border-radius: var(--rl);
  border: 1px solid var(--br);
}
.ing-side-left .ing-sources {
  position: relative;
  padding-right: 32px;
}
/* Vertical merge bar on right side of sources -- spans first to last pill center */
.ing-side-left .ing-sources::after {
  content: '';
  position: absolute;
  right: 12px;
  top: var(--merge-top, 22px);
  bottom: var(--merge-bottom, 18px);
  width: 2px;
  background: var(--ta);
  opacity: 0.4;
  border-radius: 1px;
}
/* Horizontal line from each source to the merge bar */
.ing-side-left .ing-src::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--ta);
  opacity: 0.4;
}
/* Gradient trunk: disabled -- JS positions the full-width connector */
.ing-side-left::after { display: none; }

/* -- RIGHT SIDE (internal): sources connect left -- */
.ing-side-right {
  position: relative;
  background: var(--bd);
  border-radius: var(--rl);
  border: 1px solid var(--br);
}
.ing-side-right .ing-sources {
  position: relative;
  padding-left: 32px;
}
/* Vertical merge bar on left side of sources -- spans first to last pill center */
.ing-side-right .ing-sources::after {
  content: '';
  position: absolute;
  left: 12px;
  top: var(--merge-top, 18px);
  bottom: var(--merge-bottom, 18px);
  width: 2px;
  background: var(--ta);
  opacity: 0.4;
  border-radius: 1px;
}
/* Horizontal line from each source to the merge bar */
.ing-side-right .ing-src::after {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--ta);
  opacity: 0.4;
}
.ing-side-right::after { display: none; }

/* -- HUB connector lines disabled -- JS handles this -- */
.ing-hub {
  position: relative;
  z-index: 2;
}
.ing-hub::before { display: none; }
.ing-hub::after { display: none; }
.ing-hub-node::before,
.ing-hub-node::after { display: none; }

/* Full-width connector line -- replaced by two targeted lines */
.ing-connector {
  display: none;
}
.ing-line {
  position: absolute;
  height: 4px;
  background: var(--ta);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}
.dark .ing-line {
  background: var(--ta);
  opacity: 0.35;
}

.ing-sources {
  position: relative;
}
.ing-src {
  position: relative;
  z-index: 2;
}
.ing-hub-node {
  position: relative;
  z-index: 3;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0);
  cursor: pointer;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  visibility: hidden;
  pointer-events: none;
  transition: background 0.3s ease, visibility 0s 0.35s;
}
.lightbox.open {
  visibility: visible;
  pointer-events: auto;
  background: rgba(0,0,0,0.85);
  transition: background 0.3s ease, visibility 0s 0s;
}
.lb-keyboard-hint {
  position: fixed;
  top: 28px;
  left: 24px;
  background: rgba(0,0,0,0.75);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 100002;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.lb-keyboard-hint kbd {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 1px 5px;
  font-family: inherit;
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  margin: 0 1px;
}
.lb-hint-visible {
  opacity: 1;
}
/* Hide scroll arrows when lightbox is open */
.lightbox.open ~ .bp-scroll-arrow,
body:has(.lightbox.open) .bp-scroll-arrow {
  opacity: 0 !important;
  pointer-events: none !important;
}
.lightbox.open ~ .top-bar,
body:has(.lightbox.open) .top-bar {
  opacity: 0;
  pointer-events: none;
}
.lightbox-title {
  display: none;
}
/* Lightbox navigation header -- floating pill design */
.lightbox-header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  z-index: 100001;
  pointer-events: none;
}
/* Floating pill container */
.lb-pill {
  display: flex;
  align-items: stretch;
  background: rgba(0,0,0,0.75);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  pointer-events: auto;
  width: 460px;
  overflow: hidden;
  position: relative;
}

.lb-header-center {
  flex: 1;
  text-align: center;
  min-width: 0;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lb-step-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}
.lb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.lb-dot:hover {
  background: rgba(255,255,255,0.5);
  transform: scale(1.3);
}
.lb-dot-visited { background: rgba(255,255,255,0.45); }
.lb-dot-active { background: #fff; }
.lb-dot-active:hover { background: #fff; }
.lb-step-title {
  font-family: var(--fb);
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
}
.lb-step-num {
  font-family: var(--ff);
  font-weight: 400;
  color: rgba(255,255,255,0.75);
}
.lb-step-name {
  font-weight: 600;
}
.lb-step-desc {
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}
/* Pill nav arrows -- circular within the pill */
.lb-pill-nav {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  position: relative;
  margin: auto 6px;
}
.lb-pill-nav:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* Floating close button -- separate circle */
.lb-close-float {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: auto;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  position: fixed;
  top: 20px;
  right: 20px;
}
.lb-close-float:hover {
  background: rgba(0,0,0,0.8);
  color: #fff;
}

/* Top nav row: pill + close button on same plane */
.lb-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}
.lb-top-row > * {
  pointer-events: auto;
}

.lb-no-img {
  font-family: var(--fb);
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  padding: 80px 40px;
  text-align: center;
}
.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 100px 40px 40px;
  transform: scale(0.98);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
  margin: auto;
  min-width: min-content;
  will-change: opacity, transform;
}
.lightbox.open .lightbox-content {
  transform: scale(1);
  opacity: 1;
}
.lightbox-imgs {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}
.lightbox-imgs img {
  height: 75vh;
  width: auto;
  max-width: none;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  object-fit: contain;
  flex-shrink: 0;
}
.lightbox-imgs img.lightbox-single {
  height: auto;
  max-height: 80vh;
  max-width: 90vw;
}
/* Desktop screenshots (late delivery) -- single image, full width, vertical scroll */
.lightbox[data-journey="desktop"] .lightbox-imgs {
  flex-direction: column;
  align-items: center;
}
.lightbox[data-journey="desktop"] .lightbox-imgs img {
  height: auto;
  max-height: none;
  width: 65vw;
  max-width: 65vw;
  min-width: auto;
  border-radius: 4px;
  box-shadow: none;
}
.lightbox[data-journey="desktop"] {
  overflow-x: hidden;
  overflow-y: auto;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  margin: auto 0;
  object-fit: contain;
}
.lightbox.open .lightbox-img {
  transform: scale(1);
  opacity: 1;
}
/* Lightbox close button -- now inside header */

/* Crosshair highlight on hover */
.col-highlight {
  background-color: rgba(0,0,0,0.02) !important;
}
.no-highlight .col-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
  border-top-width: 3px !important;
}
.no-highlight .col-highlight::before {
  height: 0 !important;
}
.no-highlight .row-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}
.no-highlight .bsh-col-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}
.no-highlight .bp-back .row-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}
.no-highlight .bp-back .col-highlight {
  background-color: transparent !important;
}
.row-highlight {
  transition: background-color 0.2s ease;
}
.bp-back .row-highlight {
  background-color: rgba(255,255,255,0.08) !important;
  box-shadow: inset -2px 0 0 0 rgba(255,255,255,0.2) !important;
}
.row-highlight .lbl-title {
  color: var(--t1) !important;
}
.bp-back .row-highlight .lbl-title {
  color: rgba(255,255,255,1) !important;
}
.row-highlight .lbl-sub {
  opacity: 1 !important;
  color: var(--t2) !important;
}
.bp-back .row-highlight .lbl-sub {
  color: rgba(255,255,255,0.6) !important;
}
.dark .col-highlight {
  background-color: rgba(255,255,255,0.02) !important;
}

/* Backstage column highlight -- lighten instead of darken */
.bp-back .col-highlight {
  background-color: rgba(255,255,255,0.12) !important;
}

/* Action strip column highlight -- subtle animated glow */
.bp-journey .bp-c {
  position: relative;
  overflow: hidden;
}
.bp-journey .bp-c::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(180deg, var(--col-glow, transparent) 0%, transparent 100%);
  opacity: 0.12;
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}
.bp-journey .col-highlight::before {
  height: 100%;
}
.bp-journey .col-highlight {
  background-color: transparent !important;
  box-shadow: none;
}
.bp-journey .col-highlight .sn {
  opacity: 0.6 !important;
}
.bp-journey .col-highlight .sa {
  color: var(--t1) !important;
}

/* Clickable thumbnails */
.ev-thumb {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.ss-cell:hover .ev-thumb {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
/* Screenshot cell keyboard focus */
.ss-cell:focus-visible {
  outline: 2px solid var(--bl);
  outline-offset: -2px;
}
.ss-cell:focus-visible .ev-thumb {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}


/* Expand icon overlay on screenshots -- always visible, round like theme toggles */
.ev-img {
  position: relative;
}
.ss-cell .ev-img::before {
  content: '';
  position: absolute;
  bottom: auto;
  top: 8px;
  left: 8px;
  width: 28px;
  height: 28px;
  background: var(--el);
  border: 1px solid var(--br);
  border-radius: 50%;
  z-index: 3;
  opacity: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}
.dark .ss-cell .ev-img img {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.dark .ss-cell .ev-img::before {
  background-color: var(--el);
  border-color: var(--br);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2e8f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
}
.ss-cell .ev-img:has(.ev-ph)::before {
  display: none;
}

/* Multi-image set indicator */
.ev-set {
  position: relative;
  cursor: pointer;
}
.ev-set-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 600;
  color: var(--t2);
  background: var(--el);
  border: 1px solid var(--br);
  padding: 4px 10px;
  border-radius: 14px;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}

/* Journey prompt -- "don't miss the second journey" */
.journey-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  margin: 32px 0 0;
  background: var(--bd);
  border: 1px solid var(--br);
  border-radius: var(--r);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.journey-prompt-icon {
  color: var(--bl);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.journey-prompt-text {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.5;
}
.journey-prompt-text strong {
  color: var(--t1);
}

/* D2 intro stat */

/* Review note banner */
.bp-review-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin: 0 0 20px;
  background: color-mix(in srgb, var(--or) 8%, var(--sf));
  border: 1px solid color-mix(in srgb, var(--or) 25%, var(--br));
  border-radius: 8px;
  font-size: 13px;
  color: var(--t2);
  line-height: 1.5;
  text-align: left;
}
.bp-review-label {
  font-weight: 700;
  color: var(--or);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-top: 1px;
}
.bp-review-text {
  flex: 1;
}
.bp-review-dismiss {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--t3);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}
.bp-review-dismiss:hover {
  color: var(--t1);
}



/* Ingress detail expand */
.ing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 16px auto 0;
  padding: 10px 24px;
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
  background: var(--sf);
  border: 1px solid var(--bs);
  border-radius: 20px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.ing-toggle::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s ease;
  margin-left: 2px;
}
.ing-toggle.expanded::after {
  transform: rotate(-135deg) translateY(-2px);
}
.ing-toggle:hover {
  color: var(--t1);
  border-color: var(--bs);
}
.ing-detail-expand {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--sf);
  border-radius: 6px;
  border: 1px solid var(--br);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.ing-detail-expand.ing-expand-show {
  opacity: 1;
  transform: translateY(0);
}
.ing-detail-group {
  margin-bottom: 8px;
}
.ing-detail-group:last-child {
  margin-bottom: 0;
}
.ing-detail-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 2px;
}
.ing-detail-list {
  font-size: 12px;
  color: var(--t2);
  line-height: 1.5;
  display: block;
}

/* Detail expand box connector to merge bar */
.ing-side-left .ing-detail-expand {
  position: relative;
}
.ing-side-left .ing-detail-expand::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--ta);
  opacity: 0.4;
}
.ing-side-right .ing-detail-expand {
  position: relative;
}
.ing-side-right .ing-detail-expand::after {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--ta);
  opacity: 0.4;
}
