/* ============================================================================
   OPEN homepage v2 · folds 1–4
   Scoped styles for the homepage that complement /css/brand.css.
   Patterns lifted verbatim from PROD/index.html so this page reads as one
   continuous brand surface with the live site.
   ============================================================================ */

/* ---------- NAV (homepage variant — bright purple ground) ---------- */
nav { background: var(--super-light-purple); }
.nav-inner { height: 72px; max-width: 1440px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; }
.logo-img { height: 56px; width: auto; display: block; }
.nav-center { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-center a {
  color: var(--super-dark-purple);
  text-decoration: none;
  font-family: var(--font-text);
  font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
}
.nav-center a:hover { background: rgba(255,255,255,.45); color: var(--dark-purple-ui); }
.nav-right { display: flex; align-items: center; gap: 10px; }

/* ============================================================================
   HERO — bright slide master
   ============================================================================ */
/* HERO — verbatim from prod (PROD copy/index.html lines 489–714) */
.hero {
  background: var(--super-light-purple);
  padding: 84px 0 110px;
  color: var(--super-dark-purple);
}
.hero .blob.accent      { top: -260px; right: -180px; width: 760px; height: 760px; opacity: 0.65; }
.hero .blob.pink        { bottom: -220px; left: -160px; width: 600px; height: 600px; opacity: 0.45; }
.hero .blob.super-light { top: 30%; right: 40%; width: 380px; height: 380px; opacity: 0.5; }

.hero-spotlight {
  position: absolute;
  pointer-events: none;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 71, 255, 0.18), transparent 60%);
  filter: blur(40px);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity .35s ease, left .15s ease, top .15s ease;
  z-index: 0;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: calc(100vh - 72px - 150px);
}

.hero-kicker {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(20px, 1.85vw, 26px);
  line-height: 1.3;
  color: var(--rebecca-purple);
  letter-spacing: -0.012em;
  max-width: 480px;
  margin-bottom: 28px;
  position: relative;
  padding-left: 22px;
}
.hero-kicker::before {
  content: '';
  position: absolute;
  left: 0; top: 0.42em; bottom: 0.42em;
  width: 3px;
  background: var(--accent-purple);
  border-radius: 2px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 3.6vw, 54px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.028em;
  max-width: 600px;
  margin-bottom: 28px;
  color: var(--super-dark-purple);
  text-wrap: balance;
}

.hero-sub {
  font-family: var(--font-text);
  font-size: clamp(16.5px, 1.35vw, 19px);
  color: var(--dark-purple-ui);
  max-width: 560px;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 30px;
}
.hero-sub strong { font-weight: 600; color: var(--super-dark-purple); }

.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }

/* Product map — single-line strip below CTAs with all 3 groups */
.hero-modules {
  margin: 0;
  padding: 18px 0 0;
  display: flex; flex-wrap: nowrap;
  align-items: baseline;
  gap: 0;
  border-top: 1px solid rgba(102,51,153,.16);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hero-modules::-webkit-scrollbar { display: none; }
.hero-modules-group {
  display: inline-flex; align-items: baseline;
  gap: 8px;
  padding: 0 14px;
  border-right: 1px solid rgba(102,51,153,.18);
  flex: 0 0 auto;
  white-space: nowrap;
}
.hero-modules-group:first-child { padding-left: 0; }
.hero-modules-group:last-child  { border-right: 0; padding-right: 0; }
.hero-modules dt {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-purple);
  opacity: .65;
  flex-shrink: 0;
}
.hero-modules dd {
  margin: 0; padding: 0;
  display: inline-flex; flex-wrap: nowrap;
  align-items: baseline;
  gap: 4px 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -.008em;
  color: var(--super-dark-purple);
  white-space: nowrap;
}
.hero-modules dd span + span::before {
  content: '·';
  margin-right: 6px;
  color: var(--accent-purple);
  opacity: .85;
}

/* ---------- Right column — Ramp-style single confident mockup (from index-L.html) ---------- */
.hero-visual { position: relative; min-height: 520px; }

.rampish {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid rgba(46, 0, 69, 0.08);
  box-shadow:
    0 48px 96px rgba(46, 0, 69, 0.20),
    0 16px 40px rgba(46, 0, 69, 0.08),
    0 0 0 1px rgba(151, 71, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  overflow: hidden;
  z-index: 1;
  animation: rampStripFloat 8s ease-in-out infinite;
  animation-delay: 1.2s;
}

.rampish-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(46, 0, 69, 0.06);
  background: linear-gradient(180deg, var(--super-light-purple) 0%, #ECDDFC 100%);
}
.rampish-head-l {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--super-dark-purple);
}
.rampish-head-title { font-weight: 800; letter-spacing: -0.012em; }
.rampish-head-sep { color: rgba(46, 0, 69, 0.32); font-weight: 400; }
.rampish-head-section { font-weight: 700; color: var(--super-dark-purple); letter-spacing: -0.01em; }
.rampish-head-agent {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  padding: 6px 12px;
  background: var(--super-dark-purple);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(46, 0, 69, 0.25);
}
.rampish-head-spark { color: var(--accent-purple); font-size: 12px; }
.rampish-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #28D27D;
  box-shadow: 0 0 10px rgba(40, 210, 125, 0.65);
  animation: rampLivePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes rampLivePulse {
  0%, 100% { box-shadow: 0 0 6px rgba(40, 210, 125, 0.45); }
  50%      { box-shadow: 0 0 12px rgba(40, 210, 125, 0.85); }
}

.rampish-metrics {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid rgba(46, 0, 69, 0.06);
  background: #FBFAFD;
}
.rampish-metric {
  padding: 11px 14px;
  border-right: 1px solid rgba(46, 0, 69, 0.06);
}
.rampish-metric:last-child { border-right: none; }
.rampish-metric-l {
  font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--rebecca-purple);
  opacity: 0.80;
  margin-bottom: 5px;
}
.rampish-metric-n {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 800;
  color: var(--super-dark-purple);
  letter-spacing: -0.018em;
  line-height: 1;
  display: inline-flex; align-items: center; gap: 6px;
}
.rampish-metric-delta {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em;
  color: #1F8C57;
  background: rgba(40, 210, 125, 0.14);
  padding: 2px 7px;
  border-radius: 4px;
}

.rampish-chart {
  height: 78px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFAFD 100%);
  border-bottom: 1px solid rgba(46, 0, 69, 0.06);
  padding: 6px 0 0;
}
.rampish-chart svg { display: block; width: 100%; height: 100%; }

.rampish-feed { list-style: none; padding: 0; margin: 0; }
.rampish-row {
  display: grid;
  grid-template-columns: 26px 1fr auto auto;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(46, 0, 69, 0.05);
  transition: background 160ms ease;
}
.rampish-row:last-child { border-bottom: none; }
.rampish-row:hover { background: #FBFAFD; }
.rampish-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: rgba(151, 71, 255, 0.08);
  color: var(--accent-purple);
}
.rampish-icon-ok { background: rgba(40, 210, 125, 0.12); color: #1F8C57; }
.rampish-icon-pending { background: rgba(199, 127, 0, 0.14); color: #B36E00; }
.rampish-text { min-width: 0; }
.rampish-title {
  font-size: 13px; font-weight: 700;
  color: var(--super-dark-purple);
  letter-spacing: -0.008em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rampish-sub {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500;
  color: var(--rebecca-purple);
  opacity: 0.80;
  margin-top: 2px;
  letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rampish-amt {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 800;
  color: var(--super-dark-purple);
  letter-spacing: -0.012em;
  white-space: nowrap;
}
.rampish-amt-action { color: var(--accent-purple); }
.rampish-tag {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.rampish-tag-ok      { background: rgba(40, 210, 125, 0.12); color: #1F8C57; }
.rampish-tag-pending {
  background: var(--accent-purple);
  color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(151, 71, 255, 0.14);
}
.rampish-row-action {
  background: linear-gradient(90deg, rgba(151, 71, 255, 0.06) 0%, rgba(151, 71, 255, 0) 92%);
  border-left: 2px solid var(--accent-purple);
}
.rampish-row-action .rampish-title { color: var(--accent-purple); }

.rampish-feed-wrap { position: relative; }
.rampish-feed-wrap .scene-stage { position: relative; min-height: 198px; }
.rampish-feed-wrap .scene-stage > .scene {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 700ms cubic-bezier(.22, 1, .36, 1);
}
.rampish-feed-wrap .scene-stage > .scene.active {
  position: relative;
  opacity: 1; pointer-events: auto;
}

/* ============ Strip 1 · ping chip · top-left ============ */
.rampish-ping {
  position: absolute;
  top: -28px; left: -22px;
  z-index: 5;
  display: inline-flex; align-items: flex-start; gap: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(46, 0, 69, 0.10);
  border-radius: 14px;
  padding: 12px 14px 11px 12px;
  box-shadow:
    0 22px 44px rgba(46, 0, 69, 0.16),
    0 6px 14px rgba(46, 0, 69, 0.06);
  min-width: 250px; max-width: 280px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: rampStripFloat 6s ease-in-out infinite;
}
.rampish-ping-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(151, 71, 255, 0.18);
  margin-top: 5px;
  flex-shrink: 0;
  animation: rampPingPulse 2.4s ease-in-out infinite;
}
@keyframes rampPingPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(151, 71, 255, 0.16); }
  50%      { box-shadow: 0 0 0 9px rgba(151, 71, 255, 0.08); }
}
.rampish-ping-body { min-width: 0; flex: 1; }
.rampish-ping-line {
  font-size: 12.5px; font-weight: 700;
  color: var(--super-dark-purple);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.rampish-ping-line small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  color: var(--rebecca-purple);
  margin-top: 3px;
  opacity: 0.78;
  letter-spacing: 0.02em;
}

/* ============ Strip 3 · Dark Q&A bubble · bottom-RIGHT ============ */
.rampish-qna {
  position: absolute;
  bottom: -28px; right: -22px;
  z-index: 5;
  width: 320px;
  background: var(--super-dark-purple);
  color: #ffffff;
  border-radius: 16px;
  padding: 16px 18px 12px;
  box-shadow:
    0 28px 56px rgba(46, 0, 69, 0.40),
    0 10px 24px rgba(46, 0, 69, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: rampStripFloat 6s ease-in-out infinite;
  animation-delay: 2.5s;
}
.rampish-qna .scene-stage { position: relative; min-height: 66px; }
.rampish-qna-prompt {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 6px;
  position: relative;
  padding-left: 18px;
}
.rampish-qna-prompt::before {
  content: '✦';
  position: absolute; left: 0; top: 0;
  color: var(--accent-purple);
  font-size: 12px;
}
.rampish-qna-answer {
  font-size: 14px; font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.008em;
  color: #ffffff;
}
.rampish-qna-answer .hl { color: var(--accent-purple); font-weight: 800; }
.rampish-qna .scene-dots { display: flex; gap: 4px; margin-top: 10px; }
.rampish-qna .scene-dots .d {
  width: 18px; height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 280ms ease;
}
.rampish-qna .scene-dots .d.active { background: var(--accent-purple); }
.rampish-qna-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.rampish-qna-foot .pulse {
  display: inline-flex; align-items: center; gap: 6px;
  color: #28D27D;
}
.rampish-qna-foot .pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #28D27D;
  box-shadow: 0 0 8px rgba(40, 210, 125, 0.55);
  animation: rampLivePulse 2s ease-in-out infinite;
}

/* Generic scene-stage cycler used by ping + qna */
.scene-stage { display: grid; position: relative; }
.scene-stage > .scene {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.scene-stage > .scene.active {
  opacity: 1;
  pointer-events: auto;
}
.scene-dots .d {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(102, 51, 153, 0.25);
  transition: background 0.25s ease, transform 0.25s ease;
}
.scene-dots .d.active {
  background: var(--accent-purple);
  transform: scale(1.2);
}

@keyframes rampStripFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (max-width: 1080px) {
  .rampish-ping { top: -22px; left: -10px; min-width: 220px; }
  .rampish-qna  { bottom: -22px; right: -10px; width: 300px; }
}
@media (max-width: 820px) {
  .rampish-metrics { grid-template-columns: 1fr 1fr; }
  .rampish-metric:nth-child(3) { display: none; }
  .rampish-sub { font-size: 10px; }
  .rampish-ping { top: -14px; left: 0; min-width: 200px; padding: 10px 12px; }
  .rampish-qna  { bottom: -14px; right: 0; width: 270px; padding: 14px 16px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .rampish, .rampish-ping, .rampish-qna, .rampish-live-dot, .rampish-ping-dot { animation: none; }
}

/* ============================================================================
   EDITORIAL CHROME — dateline, attribution, footnotes, pull-quote, key-idea
   ============================================================================ */
.dateline {
  background: var(--super-light-purple);
  border-bottom: 1px solid var(--rule-mid);
  padding: 10px 0;
}
.dateline-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rebecca-purple);
}
.dateline-inner em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 300;
  letter-spacing: -.012em;
  text-transform: none;
  color: var(--accent-purple);
  font-size: 12px;
}
.dateline-rule {
  flex: 1;
  height: 1px;
  background: var(--rule-mid);
  min-width: 40px;
  opacity: .65;
}

.folio {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rebecca-purple);
  margin-left: auto;
  opacity: .68;
}
.chapter-dark .folio { color: var(--light-purple-ui); opacity: .72; }

sup.foot {
  font-family: var(--font-mono);
  font-size: .55em;
  vertical-align: .65em;
  margin-left: 2px;
  color: var(--accent-purple);
  font-weight: 700;
}

.attribution {
  display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-light);
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rebecca-purple);
}
.attribution::before {
  content: '§';
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--accent-purple);
}
.chapter-dark .attribution {
  border-top-color: var(--rule-dark);
  color: var(--light-purple-ui);
}
.chapter-dark .attribution::before { color: var(--super-light-purple); }
.attribution span:last-child {
  margin-left: auto;
  font-family: var(--font-display);
  font-style: normal; font-weight: 300;
  font-size: 13px; letter-spacing: -.012em;
  text-transform: none;
  color: var(--dark-purple-ui);
  opacity: .85;
}
.chapter-dark .attribution span:last-child { color: rgba(227,205,255,.65); }

/* Key-idea margin note */
.key-idea {
  position: relative;
  margin-top: 56px;
  padding: 26px 32px 24px;
  background: rgba(151,71,255,.07);
  border-left: 3px solid var(--accent-purple);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5;
  color: var(--rebecca-purple);
  max-width: 740px;
  letter-spacing: -.012em;
}
.key-idea strong {
  font-weight: 900;
  color: var(--super-dark-purple);
  letter-spacing: -.018em;
}
.chapter-dark .key-idea {
  background: rgba(227,205,255,.06);
  color: var(--super-light-purple);
  border-left-color: var(--super-light-purple);
}
.chapter-dark .key-idea strong { color: var(--white); }
.key-idea::before {
  content: 'Key idea';
  position: absolute;
  top: -10px; left: 18px;
  background: var(--accent-purple);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}
.chapter-dark .key-idea::before {
  background: var(--super-light-purple);
  color: var(--super-dark-purple);
}

/* Pull-quote interstitial — sits between chapters */
.pullquote {
  background: var(--white);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
  padding: 110px 0;
  text-align: center;
}
.pullquote .container { max-width: 980px; }
.pullquote-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 84px;
  line-height: .6;
  color: var(--accent-purple);
  letter-spacing: -.05em;
  margin-bottom: 24px;
}
.pullquote-body {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -.022em;
  color: var(--super-dark-purple);
  max-width: 920px;
  margin: 0 auto;
  text-wrap: balance;
}
.pullquote-body em {
  font-style: normal;
  font-weight: 900;
  color: var(--rebecca-purple);
  letter-spacing: -.025em;
}
.pullquote-attribution {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rebecca-purple);
}
.pullquote-attribution::before,
.pullquote-attribution::after {
  content: '';
  width: 36px; height: 1px;
  background: var(--rule-mid);
}

/* Hero meta — small dateline under the CTAs */
.hero-meta {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rebecca-purple);
  opacity: .82;
}
.hero-meta::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--rule-mid);
}

/* ============================================================================
   CHAPTER SECTIONS (re-declared scoped — same vocabulary as prod homepage)
   ============================================================================ */
.chapter {
  padding: 140px 0;
  color: var(--super-dark-purple);
  position: relative;
  overflow: hidden;
}
.chapter-white  { background: var(--white); }
.chapter-bright { background: var(--super-light-purple); }
.chapter-dark   { background: var(--super-dark-purple); color: var(--super-light-purple); }

.chapter-meta { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }
.chapter-num {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--rebecca-purple);
  letter-spacing: -.012em;
  line-height: 1;
  font-weight: 300;
}
.chapter-dark .chapter-num { color: var(--light-purple-ui); }
.chapter-meta-line { flex: 1; max-width: 64px; height: 1px; background: var(--rule-mid); }
.chapter-dark .chapter-meta-line { background: var(--rule-dark); }
.chapter-meta-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 600;
  font-size: 11.5px;
  color: var(--accent-purple);
}
.chapter-dark .chapter-meta-label { color: var(--super-light-purple); }

.chapter-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6.2vw, 86px);
  line-height: .95;
  letter-spacing: -.035em;
  color: var(--super-dark-purple);
  max-width: 1100px;
  margin-bottom: 32px;
  text-wrap: balance;
}
.chapter-dark .chapter-headline { color: var(--white); }
.chapter-headline .emph { font-weight: 900; color: var(--rebecca-purple); }
.chapter-dark .chapter-headline .emph { color: var(--light-purple-ui); }

.chapter-lead {
  font-family: var(--font-text);
  font-size: 20px;
  color: var(--dark-purple-ui);
  max-width: 760px;
  line-height: 1.5;
  margin-bottom: 64px;
}
.chapter-dark .chapter-lead { color: rgba(227,205,255,.75); }

.chapter-closer {
  margin-top: 56px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.4;
  letter-spacing: -.012em;
  color: var(--rebecca-purple);
  max-width: 880px;
}
.chapter-dark .chapter-closer { color: var(--light-purple-ui); }
.chapter-closer em { font-style: normal; font-weight: 900; color: var(--super-dark-purple); }
.chapter-dark .chapter-closer em { color: var(--white); }

/* ---------- Duo grid + feature-list + inline-stats ---------- */
.duo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.duo.reverse { grid-template-columns: 1.1fr 1fr; }

.feature-list { list-style: none; margin-top: 20px; padding: 0; }
.feature-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--rule-light);
  font-family: var(--font-text);
  font-size: 16.5px;
  color: var(--super-dark-purple);
  line-height: 1.45;
}
.feature-list li:last-child { border-bottom: 1px solid var(--rule-light); }
.feature-list .num-tag {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: .22em;
  color: var(--accent-purple);
}
.chapter-dark .feature-list li { color: rgba(227,205,255,.88); border-color: var(--rule-dark); }
.chapter-dark .feature-list li:last-child { border-bottom: 1px solid var(--rule-dark); }
.chapter-dark .feature-list .num-tag { color: var(--light-purple-ui); }

.inline-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-light);
}
.chapter-dark .inline-stats { border-color: var(--rule-dark); }
.inline-stats .v {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 700;
  letter-spacing: -.035em; line-height: 1;
  margin-bottom: 10px;
  font-feature-settings: 'tnum' 1;
  color: var(--super-dark-purple);
}
.chapter-dark .inline-stats .v { color: var(--super-light-purple); }
.inline-stats .k {
  font-family: var(--font-text);
  font-size: 13.5px;
  color: var(--dark-purple-ui);
  line-height: 1.4;
}
.chapter-dark .inline-stats .k { color: rgba(227,205,255,.55); }

/* ============================================================================
   FOLD 2 — PROBLEM (chapter-dark) — four dark tiles with mono tag chips
   ============================================================================ */
.prob-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 12px;
}
.prob-tile {
  background: rgba(227,205,255,.04);
  border: 1px solid var(--rule-dark);
  border-radius: 18px;
  padding: 28px 26px;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.prob-tile:hover {
  background: rgba(227,205,255,.08);
  border-color: rgba(227,205,255,.35);
  transform: translateY(-3px);
}
.prob-tile-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--light-purple-ui);
  margin-bottom: 22px;
}
.prob-tile h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.018em;
  color: var(--white);
  margin: 0 0 10px;
}
.prob-tile p {
  font-family: var(--font-text);
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(227,205,255,.7);
  margin: 0 0 22px;
}
.prob-tag {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--rich-orange);
  background: rgba(255,50,22,.10);
  padding: 5px 10px; border-radius: 999px;
}
.prob-tag.warn { color: var(--pink); background: rgba(255,152,224,.10); }
.prob-tag.alt  { color: var(--mint-green); background: rgba(184,247,199,.08); }

/* ─── Jigsaw: 4 problem pieces clicking into the Open workspace hub ─── */
.puzzle {
  position: relative;
  margin: 56px 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 80px 80px;
}
.puzzle-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.pp {
  position: relative;
  background: rgba(227, 205, 255, 0.05);
  border: 1px solid var(--rule-dark);
  border-radius: 18px;
  padding: 28px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.pp:hover {
  transform: translateY(-2px);
  border-color: rgba(227, 205, 255, .35);
  background: rgba(227, 205, 255, 0.08);
}
.pp-num {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--light-purple-ui);
  opacity: .9;
}
.pp h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.018em;
  color: var(--white);
  margin: 4px 0 6px;
}
.pp p {
  font-family: var(--font-text);
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(227, 205, 255, .75);
  margin: 0;
}

/* Puzzle tab — small semicircular bump on the inner corner pointing to the hub */
.pp-tab {
  position: absolute;
  width: 28px; height: 28px;
  background: var(--super-dark-purple);
  border: 1px solid var(--rule-dark);
  border-radius: 50%;
  z-index: 3;
}
.pp-tl .pp-tab { bottom: -14px; right: -14px; border-color: rgba(151,71,255,.4); }
.pp-tr .pp-tab { bottom: -14px; left: -14px;  border-color: rgba(151,71,255,.4); }
.pp-bl .pp-tab { top: -14px;    right: -14px; border-color: rgba(151,71,255,.4); }
.pp-br .pp-tab { top: -14px;    left: -14px;  border-color: rgba(151,71,255,.4); }

/* Center hub — the Open workspace dashboard piece */
.puzzle-hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  background: linear-gradient(160deg, var(--rebecca-purple) 0%, var(--darker) 60%, var(--super-dark-purple) 100%);
  border: 1px solid rgba(227, 205, 255, .14);
  border-radius: 22px;
  padding: 18px 20px 16px;
  z-index: 5;
  box-shadow:
    0 30px 60px rgba(46, 0, 69, .55),
    0 0 0 1px rgba(151, 71, 255, .15),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}
.ph-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(227, 205, 255, .10);
}
.ph-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #28D27D;
  box-shadow: 0 0 0 3px rgba(40, 210, 125, .35);
  animation: rampLivePulse 2s ease-in-out infinite;
}
.ph-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -.012em;
  color: var(--white);
  flex: 1;
}
.ph-tag {
  font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--super-light-purple);
  background: rgba(151, 71, 255, .25);
  padding: 3px 8px;
  border-radius: 999px;
}
.ph-body { color: var(--white); }
.ph-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--light-purple-ui);
  margin-bottom: 6px;
}
.ph-big {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -.028em;
  line-height: 1;
  color: var(--white);
  font-feature-settings: 'tnum' 1;
  margin-bottom: 10px;
}
.ph-big span {
  font-size: 14px;
  color: var(--light-purple-ui);
  font-weight: 700;
  margin-left: 4px;
}
.ph-chart {
  height: 36px;
  width: 100%;
  display: block;
  margin-bottom: 12px;
}
.ph-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(227, 205, 255, .10);
}
.ph-stats > div { display: flex; flex-direction: column; gap: 2px; }
.ph-stat-l {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(227, 205, 255, .55);
}
.ph-stat-v {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--white);
  letter-spacing: -.014em;
}

/* Hub sockets — 4 round indents where the surrounding puzzle tabs click in */
.ph-socket {
  position: absolute;
  width: 14px; height: 14px;
  background: var(--super-dark-purple);
  border-radius: 50%;
  border: 1px solid rgba(151, 71, 255, .4);
  z-index: 6;
}
.ph-socket-tl { top: -7px;  left: -7px; }
.ph-socket-tr { top: -7px;  right: -7px; }
.ph-socket-bl { bottom: -7px; left: -7px; }
.ph-socket-br { bottom: -7px; right: -7px; }

@media (max-width: 900px) {
  .puzzle {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .puzzle-lines { display: none; }
  .puzzle-hub {
    position: relative;
    top: auto; left: auto;
    transform: none;
    margin: 8px auto;
    width: 100%;
    max-width: 360px;
  }
  .ph-socket { display: none; }
  .pp-tab { display: none; }
}

/* ─── Problem flow visual · chaos → Open workspace (legacy, may be unused) ─── */
.prob-flow {
  position: relative;
  margin: 64px 0 8px;
  padding: 0;
  width: 100%;
  aspect-ratio: 1200 / 290;
  max-width: 100%;
}
.prob-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.prob-flow-chips {
  position: absolute;
  top: 4px;
  left: 0; right: 0;
  height: 32px;
}
.pf-chip {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bright);
  background: rgba(46,0,69,.55);
  border: 1px solid rgba(227,205,255,.22);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.prob-flow-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent-purple);
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(151,71,255,.32);
}

@media (max-width: 820px) {
  .prob-flow { aspect-ratio: 800 / 360; margin-top: 48px; }
  .pf-chip { font-size: 9px; padding: 5px 9px; letter-spacing: .1em; }
}

/* ============================================================================
   FOLD 3 — BANKS workspace card
   ============================================================================ */
.bank-cloud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--super-light-purple);
  border-radius: 18px;
  border: 1px solid var(--rule-light);
}
.bank-pill {
  aspect-ratio: 1.7 / 1;
  display: grid; place-items: center;
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -.012em;
  color: var(--super-dark-purple);
  box-shadow: var(--shadow-soft);
  transition: color .15s ease, transform .15s ease;
}
.bank-pill:hover { color: var(--rebecca-purple); transform: translateY(-2px); }
.bank-pill.more {
  background: var(--rebecca-purple);
  color: var(--white);
  border-color: transparent;
}

.workspace-card {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-top: 24px;
}
.workspace-head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: var(--super-light-purple);
  border-bottom: 1px solid var(--rule-light);
}
.workspace-head img { width: 32px; height: auto; }
.workspace-head .nm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.015em;
  color: var(--super-dark-purple);
}
.workspace-head .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rebecca-purple);
  margin-top: 2px; font-weight: 600;
}
.workspace-body { padding: 24px 26px 26px; }
.workspace-metric {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; padding-bottom: 18px;
  border-bottom: 1px dashed var(--rule-mid);
  margin-bottom: 18px;
}
.workspace-metric .label {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--rebecca-purple);
  margin-bottom: 8px;
}
.workspace-metric .value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 42px;
  letter-spacing: -.038em;
  line-height: 1;
  color: var(--super-dark-purple);
  font-feature-settings: 'tnum' 1;
}
.workspace-metric .value .unit {
  font-size: 18px; font-weight: 700;
  color: var(--accent-purple);
  margin-left: 4px;
}
.workspace-bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; }
.workspace-bars span {
  width: 8px;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent-purple), var(--rebecca-purple));
  border-radius: 4px 4px 2px 2px;
  opacity: .9;
}
.workspace-row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--super-dark-purple);
}
.workspace-row .dot { width: 8px; height: 8px; border-radius: 999px; }
.workspace-row .am {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--super-dark-purple);
}

.bank-proof {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; gap: 14px;
}
.bank-proof li {
  padding: 18px 22px;
  background: var(--super-light-purple);
  border-radius: 12px;
  border-left: 3px solid var(--rebecca-purple);
}
.bank-proof h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.015em;
  color: var(--super-dark-purple);
  margin: 0 0 4px;
}
.bank-proof p {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark-purple-ui);
  margin: 0;
}

/* ============================================================================
   FOLD 4 — PLATFORM tile grid (3-up)
   ============================================================================ */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 12px;
}
.p-tile {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: 18px;
  padding: 28px 26px 24px;
  min-height: 220px;
  display: flex; flex-direction: column;
  text-decoration: none;
  position: relative;
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}
.p-tile:hover {
  transform: translateY(-3px);
  border-color: var(--rule-mid);
  box-shadow: var(--shadow-card);
}
.p-tile-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 22px;
}
.p-tile h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--super-dark-purple);
  margin: 0 0 8px;
}
.p-tile p {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark-purple-ui);
  margin: 0 0 22px;
}
.p-tile .arrow {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--rebecca-purple);
  transition: transform .2s ease;
  align-self: flex-start;
}
.p-tile:hover .arrow { transform: translateX(4px); }

.p-tile-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--rebecca-purple), var(--dark-purple-ui));
  border-color: transparent;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.p-tile-featured .p-tile-eyebrow { color: var(--light-purple-ui); }
.p-tile-featured h3 { color: var(--white); font-size: 26px; }
.p-tile-featured p { color: rgba(227,205,255,.78); }
.p-tile-featured .arrow { color: var(--white); }
.p-tile-featured-glyph {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 96px;
  line-height: .85;
  letter-spacing: -.06em;
  color: var(--accent-purple);
  text-shadow: 0 0 80px rgba(151,71,255,.35);
}

.platform-cta {
  margin-top: 48px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.platform-cta-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rebecca-purple);
  font-weight: 600;
}

/* ============================================================================
   CHAPTER 1 · MULTI-BANK COMMAND CENTRE — Curate Health card (from prod)
   ============================================================================ */
.ch1-cc {
  position: relative;
  background: linear-gradient(180deg, #F0E7FB 0%, #E3CDFF 100%);
  border: 1px solid rgba(102, 51, 153, 0.16);
  border-radius: 22px;
  padding: 22px 24px 24px;
  box-shadow: 0 40px 80px -32px rgba(46, 0, 69, 0.30);
  overflow: visible;
  color: var(--super-dark-purple);
}
.ch1-cc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ch1-cc-customer {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 16px;
  color: var(--super-dark-purple);
  letter-spacing: -0.005em;
}
.ch1-cc-pulse {
  width: 9px; height: 9px;
  background: #5CB87A; border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(184, 247, 199, 0.55);
  animation: ccLivePulse 2s ease-in-out infinite;
}
@keyframes ccLivePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(184, 247, 199, 0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(184, 247, 199, 0); }
}
.ch1-cc-agent {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--super-dark-purple); color: var(--white);
  font-family: var(--font-display);
  font-weight: 600; font-size: 12.5px;
  padding: 6px 12px 6px 10px; border-radius: 100px;
  letter-spacing: -0.005em;
}
.ch1-cc-star { color: var(--accent-purple); font-size: 12px; }

.ch1-cc-context {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(46, 0, 69, 0.60);
  margin-bottom: 4px;
}
.ch1-cc-hero {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.ch1-cc-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px; letter-spacing: -0.03em; line-height: 1.0;
  color: var(--super-dark-purple);
  font-feature-settings: "tnum" 1;
}
.ch1-cc-delta {
  display: inline-block;
  background: rgba(184, 247, 199, 0.55);
  color: #2E5A35;
  font-family: var(--font-display);
  font-weight: 700; font-size: 12px;
  padding: 5px 11px; border-radius: 100px;
  letter-spacing: -0.005em;
  animation: ccDeltaBeat 4.2s ease-in-out infinite;
}
@keyframes ccDeltaBeat {
  0%, 100% { opacity: 0.86; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.03); }
}
.ch1-cc-chart { width: 100%; height: 70px; margin: 4px 0 6px; display: block; }
.ch1-cc-chart-fill { fill: url(#ccGradient); }
.ch1-cc-chart-line {
  fill: none; stroke: var(--rebecca-purple); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 800; stroke-dashoffset: 800;
  animation: ccChartDraw 2.4s 0.4s ease-out forwards;
}
@keyframes ccChartDraw { to { stroke-dashoffset: 0; } }

.ch1-cc-accounts {
  border-top: 1px solid rgba(102, 51, 153, 0.14);
  padding-top: 8px;
}
.ch1-cc-acct {
  display: grid; grid-template-columns: 36px 1fr auto;
  gap: 12px; padding: 8px 0; align-items: center;
  border-bottom: 1px solid rgba(102, 51, 153, 0.10);
}
.ch1-cc-acct:last-child { border-bottom: none; }
.ch1-cc-acct-avatar {
  width: 32px; height: 32px;
  background: rgba(255, 255, 255, 0.70);
  color: var(--rebecca-purple);
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  border-radius: 8px;
  display: grid; place-items: center;
  letter-spacing: 0.05em;
}
.ch1-cc-acct-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--super-dark-purple);
  letter-spacing: -0.005em;
}
.ch1-cc-acct-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(46, 0, 69, 0.55);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.ch1-cc-acct-amt {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--super-dark-purple);
  letter-spacing: -0.005em;
}

/* Live activity · integrated rows inside the main card */
.ch1-cc-activity {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(102, 51, 153, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ch1-cc-activity-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(46, 0, 69, 0.55);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.ch1-cc-activity-dot {
  width: 7px; height: 7px;
  background: #5CB87A;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(184, 247, 199, 0.5);
  animation: ccLivePulse 1.8s ease-in-out infinite;
}
.ch1-cc-activity-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(102, 51, 153, 0.10);
}
.ch1-cc-activity-row.ch1-cc-activity-agent {
  background: var(--super-dark-purple);
  border-color: var(--super-dark-purple);
  color: var(--white);
}
.ch1-cc-activity-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rebecca-purple);
  background: rgba(151, 71, 255, 0.10);
  border: 1px solid rgba(151, 71, 255, 0.30);
  padding: 3px 7px;
  border-radius: 100px;
  white-space: nowrap;
}
.ch1-cc-activity-tag-agent {
  color: var(--accent-purple);
  background: rgba(151, 71, 255, 0.20);
  border-color: rgba(151, 71, 255, 0.50);
}
.ch1-cc-activity-text {
  font-family: var(--font-display);
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--super-dark-purple);
  letter-spacing: -0.005em;
}
.ch1-cc-activity-row.ch1-cc-activity-agent .ch1-cc-activity-text {
  color: rgba(255, 255, 255, 0.90);
}
.ch1-cc-activity-text strong { color: var(--rebecca-purple); font-weight: 700; }
.ch1-cc-activity-row.ch1-cc-activity-agent .ch1-cc-activity-text strong {
  color: var(--accent-purple);
}
.ch1-cc-activity-text em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 900;
  color: var(--rebecca-purple);
  letter-spacing: -0.018em;
}
.ch1-cc-activity-row.ch1-cc-activity-agent .ch1-cc-activity-text em {
  color: var(--accent-purple);
}
.ch1-cc-activity-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(46, 0, 69, 0.50);
  letter-spacing: 0.04em;
}
.ch1-cc-activity-row.ch1-cc-activity-agent .ch1-cc-activity-time {
  color: rgba(227, 205, 255, 0.55);
}

/* ============================================================================
   STATS WALL — bright slide master with blobs (from index-i.html)
   ============================================================================ */
.stats-wall {
  background: var(--super-light-purple);
  padding: 120px 0;
  color: var(--super-dark-purple);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.stats-wall .blob.accent { bottom: -260px; right: -200px; width: 820px; height: 820px; opacity: 0.55; }
.stats-wall .blob.pink   { top: -120px; left: -120px; width: 460px; height: 460px; opacity: 0.40; }
.stats-wall .container { position: relative; z-index: 1; }

.stats-wall-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
  margin-bottom: 80px;
}
.stats-wall-head .eyebrow {
  margin-bottom: 22px;
  display: block;
  color: var(--rebecca-purple);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.stats-wall-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--super-dark-purple);
  margin: 0;
}
.stats-wall-head h2 .emph {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 900;
  color: var(--rebecca-purple);
  letter-spacing: -0.020em;
}
.stats-wall-sub {
  color: var(--dark-purple-ui);
  font-size: 18px;
  max-width: 500px;
  line-height: 1.5;
  font-family: var(--font-text);
  margin: 0;
  padding-top: 48px;
}

@media (max-width: 900px) {
  .stats-wall-sub { padding-top: 0; max-width: 100%; }
}

.stats-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-mid);
}
.stat-cell {
  padding: 40px 28px 56px 28px;
  border-right: 1px solid var(--rule-mid);
  position: relative;
}
.stat-cell:first-child { padding-left: 0; }
.stat-cell:last-child { border-right: none; padding-right: 0; }
.stat-cell .n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 7vw, 104px);
  letter-spacing: -0.055em;
  line-height: 0.9;
  color: var(--super-dark-purple);
  margin-bottom: 22px;
  font-feature-settings: 'tnum' 1;
}
.stat-cell .n .suffix {
  color: var(--accent-purple);
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat-cell .l {
  font-family: var(--font-text);
  font-size: 15px;
  color: var(--dark-purple-ui);
  line-height: 1.45;
  max-width: 230px;
}

@media (max-width: 900px) {
  .stats-wall { padding: 80px 0; }
  .stats-wall-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .stats-wall-head h2 { font-size: clamp(34px, 7.6vw, 56px); }
  .stats-quad { grid-template-columns: repeat(2, 1fr); border-top: none; }
  .stat-cell { padding: 28px 0; border-right: none; border-top: 1px solid var(--rule-mid); }
  .stat-cell:first-child, .stat-cell:nth-child(2) { padding-left: 0; padding-right: 0; }
  .stat-cell .n { font-size: clamp(48px, 12vw, 80px); margin-bottom: 14px; }
  .stat-cell .l { font-size: 13.5px; }
}

/* ============================================================================
   PLATFORM ARCHITECTURE — compliance chapter pattern (bento + dark slab)
   ============================================================================ */
.bento-arch {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.bento-tile {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: 18px;
  padding: 30px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bento-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.bento-tile h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0 0 12px;
  color: var(--super-dark-purple);
}
.bento-tile p {
  font-family: var(--font-text);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--dark-purple-ui);
  margin: 0;
}
.bento-dark   { background: var(--super-dark-purple); color: var(--super-light-purple); border-color: var(--super-dark-purple); }
.bento-dark h3 { color: var(--white); }
.bento-dark p  { color: rgba(227,205,255,.65); }
.bento-pink   { background: var(--pink); border-color: var(--pink); color: var(--super-dark-purple); }
.bento-pink h3 { color: var(--super-dark-purple); }
.bento-pink p  { color: var(--super-dark-purple); opacity: .78; }
.bento-pink p strong { font-weight: 600; opacity: 1; }

.bento-accent { background: var(--accent-purple); border-color: var(--accent-purple); color: var(--white); }
.bento-accent h3 { color: var(--white); }
.bento-accent p  { color: rgba(255,255,255,.82); }
.bento-accent .testi-tag { color: var(--super-light-purple); opacity: .85; }

.testi-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--accent-purple);
  margin-bottom: 20px;
  font-weight: 600;
}
.bento-dark .testi-tag { color: var(--light-purple-ui); }

/* Connect-tile chips · small mono badges for the 6 source systems */
.bento-chips {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.bento-chips li {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--rebecca-purple);
  padding: 4px 8px;
  background: rgba(151,71,255,.08);
  border: 1px solid rgba(151,71,255,.14);
  border-radius: 5px;
}

/* Bottom slab · Open Corporate Banking Workspace */
.arch-workspace-slab {
  margin-top: 48px;
  padding: 44px 52px;
  background: var(--super-dark-purple);
  color: var(--super-light-purple);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Light variant — used when the slab sits on a chapter-dark section */
.arch-workspace-slab-light {
  background: var(--white);
  color: var(--super-dark-purple);
  border: 1px solid rgba(102,51,153,.10);
  box-shadow:
    0 40px 80px -32px rgba(46,0,69,.5),
    0 16px 32px -16px rgba(46,0,69,.3),
    0 0 0 1px rgba(151,71,255,.10);
}
.arch-workspace-slab-light .aws-eyebrow { color: var(--rebecca-purple); }
.arch-workspace-slab-light .aws-headline { color: var(--super-dark-purple); }
.arch-workspace-slab-light .aws-headline .emph {
  color: var(--rebecca-purple);
  font-weight: 900;
  letter-spacing: -.018em;
}
.arch-workspace-slab-light .aws-signals { border-left-color: rgba(102,51,153,.18); }
.arch-workspace-slab-light .aws-signal { border-right-color: rgba(102,51,153,.12); }
.arch-workspace-slab-light .aws-signal-label { color: var(--rebecca-purple); opacity: .75; }
.arch-workspace-slab-light .aws-signal-num { color: var(--super-dark-purple); }
.arch-workspace-slab-light .aws-signal-num small { color: var(--accent-purple); }
.aws-left { min-width: 0; }
.aws-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 16px;
}
.aws-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #28D27D;
  box-shadow: 0 0 0 3px rgba(40,210,125,.30);
  animation: rampLivePulse 2s ease-in-out infinite;
}
.aws-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.18;
  letter-spacing: -.022em;
  color: var(--white);
}
.aws-headline .emph {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 900;
  letter-spacing: -.018em;
  color: var(--light-purple-ui);
}

.aws-signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid rgba(227,205,255,.16);
  padding-left: 36px;
}
.aws-signal {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 18px;
  border-right: 1px solid rgba(227,205,255,.10);
}
.aws-signal:first-child { padding-left: 0; }
.aws-signal:last-child  { border-right: 0; padding-right: 0; }
.aws-signal-label {
  font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(227,205,255,.55);
}
.aws-signal-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -.026em;
  line-height: 1;
  color: var(--white);
  font-feature-settings: 'tnum' 1;
}
.aws-signal-num small {
  font-size: 13px;
  color: var(--accent-purple);
  font-weight: 700;
  margin-left: 2px;
}

@media (max-width: 1100px) {
  .bento-arch { grid-template-columns: repeat(2, 1fr); }
  .bento-arch > * { grid-column: span 1 !important; }
  .arch-workspace-slab { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
  .aws-signals { border-left: 0; padding-left: 0; padding-top: 22px; border-top: 1px solid rgba(227,205,255,.16); }
}
@media (max-width: 640px) {
  .bento-arch { grid-template-columns: 1fr; }
  .aws-signals { grid-template-columns: 1fr 1fr 1fr; }
  .aws-signal { padding: 0 8px; }
  .aws-signal-num { font-size: 24px; }
}

/* ============================================================================
   PLATFORM ARCHITECTURE MAP — 4-layer flow (legacy, unused) — kept hidden
   ============================================================================ */
.arch {
  background: var(--white);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

/* HEAD */
.arch-head { max-width: 860px; margin: 0 auto 72px; text-align: center; }
.arch-head .eyebrow {
  color: var(--rebecca-purple);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  display: inline-block;
}
.arch-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 3.7vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--super-dark-purple);
  margin: 16px 0 22px;
  text-wrap: balance;
}
.arch-head h2 .emph {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 900;
  color: var(--rebecca-purple);
  letter-spacing: -0.018em;
}
.arch-head p {
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.55;
  color: var(--dark-purple-ui);
  margin: 0 auto;
  max-width: 720px;
}

/* DIAGRAM container */
.arch-diagram {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Generic layer label (used by sources only) */
.arch-layer-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rebecca-purple);
  opacity: .7;
  text-align: center;
  margin-bottom: 14px;
}

/* ── Layer 1 · Sources ── */
.arch-sources {
  background: var(--super-light-purple);
  border-radius: 16px;
  padding: 18px 24px 22px;
  border: 1px solid rgba(102,51,153,.12);
}
.arch-chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 14px;
}
.arch-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -.005em;
  color: var(--super-dark-purple);
  background: var(--white);
  border: 1px solid rgba(102,51,153,.16);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.arch-chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(151,71,255,.16);
}

/* ── Flow lines (funnel + branch) — minimal, single-trunk ── */
.arch-flow {
  display: block;
  width: 100%;
  height: 56px;
  margin: 0;
  pointer-events: none;
}
.arch-flow-branch { height: 40px; }

/* ── Layer 2 · Open Corporate Banking Workspace (hero card, white) ── */
.arch-workspace {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(102,51,153,.16);
  border-radius: 20px;
  box-shadow:
    0 40px 80px -32px rgba(46,0,69,.22),
    0 16px 32px -16px rgba(46,0,69,.10),
    0 0 0 1px rgba(151,71,255,.08);
  overflow: hidden;
}
.arch-workspace-body {
  padding: 32px 36px 28px;
  background:
    linear-gradient(180deg, rgba(227,205,255,.55) 0%, rgba(227,205,255,.18) 100%);
  border-bottom: 1px solid rgba(102,51,153,.10);
}
.arch-workspace-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.arch-workspace-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rebecca-purple);
}
.arch-workspace-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #28D27D;
  box-shadow: 0 0 0 3px rgba(40,210,125,.30);
  animation: rampLivePulse 2s ease-in-out infinite;
}
.arch-workspace-tag {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--white);
  background: var(--super-dark-purple);
  padding: 5px 10px;
  border-radius: 999px;
}
.arch-workspace h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 3.0vw, 40px);
  letter-spacing: -.026em;
  color: var(--super-dark-purple);
  line-height: 1.04;
  margin: 0 0 10px;
  text-wrap: balance;
}
.arch-workspace > .arch-workspace-body > p {
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--dark-purple-ui);
  margin: 0 0 24px;
  max-width: 720px;
}

/* 3 live signals · row inside the workspace */
.arch-workspace-signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(102,51,153,.18);
  padding-top: 20px;
}
.arch-signal {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 24px;
  border-right: 1px solid rgba(102,51,153,.12);
}
.arch-signal:first-child { padding-left: 0; }
.arch-signal:last-child  { padding-right: 0; border-right: 0; }
.arch-signal-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--rebecca-purple);
  opacity: .8;
}
.arch-signal-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: -.028em;
  line-height: 1;
  color: var(--super-dark-purple);
  font-feature-settings: 'tnum' 1;
}
.arch-signal-num small {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-purple);
  letter-spacing: -.012em;
  margin-left: 2px;
}

/* ── Layer 3 · Agent layer · integrated dark strip on the workspace card ── */
.arch-agents {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 36px;
  background: var(--super-dark-purple);
  color: var(--super-light-purple);
  border-top: 1px solid rgba(151,71,255,.20);
}
.arch-agents-icon {
  font-size: 14px;
  color: var(--accent-purple);
  flex-shrink: 0;
}
.arch-agents-label {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-purple);
  flex-shrink: 0;
  padding-right: 14px;
  border-right: 1px solid rgba(227,205,255,.18);
}
.arch-agents-text {
  font-family: var(--font-text);
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(227,205,255,.78);
}
.arch-agents-text strong {
  color: var(--white);
  font-weight: 600;
}

/* ── Layer 4 · 3 Pillars ── */
.arch-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.arch-pillar {
  background: var(--white);
  border: 1px solid rgba(102,51,153,.14);
  border-radius: 18px;
  padding: 28px 28px 30px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
}
.arch-pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  background: var(--accent-purple);
  border-radius: 0 0 4px 4px;
  opacity: .85;
}
.arch-pillar:hover {
  transform: translateY(-3px);
  border-color: rgba(102,51,153,.30);
  box-shadow: 0 24px 48px -24px rgba(102,51,153,.25);
}
.arch-pillar-head {
  display: flex; align-items: baseline; gap: 12px;
}
.arch-pillar-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--accent-purple);
  line-height: 1;
}
.arch-pillar h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.024em;
  color: var(--super-dark-purple);
  margin: 0;
}

/* Module list — small wrapping pills (replaces the long single pill) */
.arch-pillar-modules {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap;
  gap: 5px 6px;
}
.arch-pillar-modules li {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--rebecca-purple);
  padding: 5px 9px;
  background: rgba(151,71,255,.08);
  border: 1px solid rgba(151,71,255,.14);
  border-radius: 6px;
  white-space: nowrap;
}

.arch-pillar p {
  font-family: var(--font-text);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--dark-purple-ui);
  margin: 0;
}

@media (max-width: 900px) {
  .arch { padding: 90px 0; }
  .arch-head { margin-bottom: 48px; }
  .arch-flow { height: 50px; }
  .arch-flow-branch { height: 36px; }
  .arch-workspace { padding: 28px 24px; }
  .arch-agents {
    padding: 14px 18px;
    flex-direction: column;
    gap: 8px;
    border-radius: 16px;
    text-align: center;
  }
  .arch-agents-sep { display: none; }
  .arch-pillars { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .arch-chip { font-size: 12.5px; padding: 7px 12px; }
}

/* ============================================================================
   HERO TRUST BAND — slim strip below the hero
   ============================================================================ */
.hero-trust {
  background: rgba(227, 205, 255, 0.55);
  border-top: 1px solid rgba(102, 51, 153, 0.14);
  border-bottom: 1px solid rgba(102, 51, 153, 0.08);
}
.hero-trust-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ht-group {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
}
.ht-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rebecca-purple);
  opacity: 0.72;
  flex-shrink: 0;
}
.ht-names {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.008em;
  color: var(--super-dark-purple);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ht-sep {
  width: 1px;
  height: 22px;
  background: rgba(102, 51, 153, 0.18);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-trust-inner {
    height: auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .ht-sep { display: none; }
  .ht-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
  }
  .ht-names {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
  }
}

/* ============================================================================
   FOLD 5 · REVENUE & PAYABLES — AR + AP cards, 3-tile row, Spend card
   ============================================================================ */
.rp-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
}
.ed-body { padding: 22px; }
.ed-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--rebecca-purple);
  font-weight: 600;
  padding: 4px 10px;
  background: var(--super-light-purple);
  border-radius: 999px;
  letter-spacing: .08em;
}
.rp-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.rp-m-l {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--rebecca-purple);
  margin-bottom: 8px;
  font-weight: 600;
}
.rp-m-v {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.028em;
  color: var(--super-dark-purple);
}
.rp-m-warn { color: var(--rich-orange); }
.rp-section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--rebecca-purple);
  font-weight: 600;
  margin-bottom: 10px;
}
.rp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-light);
  font-family: var(--font-text);
  font-size: 13px;
  color: var(--super-dark-purple);
}
.rp-row:last-of-type { border-bottom: 0; }
.rp-row em {
  font-style: normal;
  color: var(--dark-purple-ui);
  opacity: .7;
  margin-left: 2px;
}
.rp-warn { color: var(--rich-orange); font-weight: 700; }
.rp-warn em { color: var(--dark-purple-ui); opacity: .7; font-weight: 400; }
.rp-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-light);
  font-family: var(--font-display);
  font-style: normal;
  font-size: 14px;
  color: var(--rebecca-purple);
  font-weight: 900;
  letter-spacing: -.018em;
}

.rp-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
.bento-tile .bento-stat {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .9;
  margin: 8px 0 16px;
  font-feature-settings: 'tnum' 1;
  color: var(--super-dark-purple);
}
.bento-tile .bento-stat .suffix { color: var(--accent-purple); font-size: 0.5em; font-weight: 700; }
.bento-dark .bento-stat { color: var(--white); }

/* Spend Management · with corporate card visual */
.rp-spend {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: 18px;
  padding: 40px 44px;
}
.rp-spend-copy h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.022em;
  color: var(--super-dark-purple);
  margin: 4px 0 14px;
}
.rp-spend-copy p {
  font-family: var(--font-text);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--dark-purple-ui);
  margin: 0;
}
.rp-spend-visual { max-width: 320px; margin-left: auto; }

/* Corporate Card visual (from prod chapter VIII) */
.corp-card {
  background: linear-gradient(135deg, var(--super-dark-purple) 0%, var(--dark-purple-ui) 100%);
  border-radius: 16px;
  padding: 22px;
  color: var(--white);
  aspect-ratio: 1.586 / 1;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 24px 56px rgba(46,0,69,.30), 0 0 0 1px rgba(227,205,255,.06);
  position: relative;
  overflow: hidden;
}
.corp-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -30%;
  width: 80%; height: 200%;
  background: radial-gradient(circle, rgba(151,71,255,.30) 0%, transparent 60%);
}
.corp-card::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(255,152,224,.18) 0%, transparent 70%);
}
.cc-row { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: start; }
.cc-brand {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.cc-brand small {
  font-family: var(--font-text);
  font-style: italic;
  font-weight: 400;
  opacity: .7;
  display: block;
  font-size: 10.5px;
  margin-top: 2px;
}
.cc-chip {
  width: 30px; height: 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--light-purple-ui), var(--accent-purple));
}
.cc-num {
  position: relative; z-index: 1;
  font-family: var(--font-mono);
  font-size: 17px;
  letter-spacing: .08em;
  margin-top: 18px;
}
.cc-foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: end;
}
.cc-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 12px;
}
.cc-name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: .6;
  letter-spacing: .14em;
  margin-bottom: 3px;
  font-weight: 600;
}
.cc-net {
  background: var(--super-light-purple);
  color: var(--super-dark-purple);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: -.01em;
}

/* Spend usage card */
.spend-card {
  margin-top: 22px;
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 24px -8px rgba(46,0,69,.08);
}
.spend-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.spend-name {
  font-family: var(--font-text);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--super-dark-purple);
  letter-spacing: -.01em;
}
.spend-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--super-dark-purple);
}
.spend-bar {
  height: 6px;
  background: var(--super-light-purple);
  border-radius: 3px;
  overflow: hidden;
}
.spend-fill {
  height: 100%;
  background: var(--accent-purple);
  border-radius: 3px;
}
.spend-meta {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--dark-purple-ui);
  font-weight: 500;
}
.spend-meta strong { color: var(--rebecca-purple); font-weight: 700; }

@media (max-width: 980px) {
  .rp-duo { grid-template-columns: 1fr; }
  .rp-tiles { grid-template-columns: 1fr; }
  .rp-spend { grid-template-columns: 1fr; padding: 28px; gap: 32px; }
  .rp-spend-visual { margin: 0 auto; }
}

/* ============================================================================
   FOLD 5 · MOVE — vendor payment runbox (legacy, no longer used)
   ============================================================================ */
.move-runbox {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.move-runbox-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: var(--super-light-purple);
  border-bottom: 1px solid var(--rule-light);
}
.move-runbox-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rich-orange);
}
.move-runbox-amt {
  font-family: var(--font-display);
  font-weight: 900; font-size: 22px;
  letter-spacing: -.024em;
  color: var(--super-dark-purple);
  font-feature-settings: 'tnum' 1;
}
.move-runbox-rows {
  list-style: none; padding: 0; margin: 0;
}
.move-runbox-rows li {
  display: grid;
  grid-template-columns: 12px 1.4fr 1.2fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--rule-light);
  font-family: var(--font-text);
  font-size: 13.5px;
}
.move-runbox-rows li:last-child { border-bottom: 0; }
.move-runbox-rows .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.move-runbox-rows .dot.ok   { background: #2A9D4B; box-shadow: 0 0 0 3px rgba(184,247,199,.4); }
.move-runbox-rows .dot.warn { background: var(--rich-orange); box-shadow: 0 0 0 3px rgba(255,50,22,.16); }
.move-runbox-rows .nm { font-weight: 600; color: var(--super-dark-purple); }
.move-runbox-rows .ck { font-family: var(--font-mono); font-size: 11px; color: var(--rebecca-purple); }
.move-runbox-rows .am {
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: -.012em;
  color: var(--super-dark-purple);
  font-feature-settings: 'tnum' 1;
}
.move-runbox-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  background: var(--bg-soft, #F5EEFE);
  border-top: 1px solid var(--rule-light);
}
.move-runbox-actor {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--rebecca-purple);
}
.move-runbox-actions { display: flex; gap: 8px; }
.move-btn {
  font-family: var(--font-text);
  font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.move-btn.reject {
  background: transparent;
  color: var(--super-dark-purple);
  border-color: var(--rule-mid);
}
.move-btn.reject:hover { color: var(--rich-orange); border-color: var(--rich-orange); }
.move-btn.approve {
  background: var(--rebecca-purple);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(102,51,153,.32);
}
.move-btn.approve:hover { background: var(--accent-purple); }

/* ============================================================================
   FOLD 6 · SMART STATEMENT — dark slab, 2-col layout with floating chips
   ============================================================================ */
.chapter-dark.ch2 {
  position: relative;
  overflow: hidden;
  background: var(--super-dark-purple);
  color: var(--super-light-purple);
  padding: 140px 0 130px;
}
.ch2 .container { position: relative; z-index: 1; }
.ch2-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 72px;
  align-items: start;
}
.ch2 .chapter-meta { margin-bottom: 36px; }
.ch2 .chapter-num {
  font-family: var(--font-display);
  font-style: normal;
  color: var(--super-light-purple);
  font-weight: 300;
  letter-spacing: -0.012em;
}
.ch2 .chapter-meta-line { background: rgba(227,205,255,0.32); }
.ch2 .chapter-meta-label { color: rgba(227,205,255,0.85); }
.ch2 .chapter-headline {
  color: var(--white);
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.030em;
  margin-bottom: 28px;
}
.ch2 .chapter-headline .emph { color: #C8A8FF; }
.ch2 .chapter-lead {
  color: rgba(227,205,255,0.78);
  font-size: 17px;
  line-height: 1.55;
  max-width: 540px;
  margin-bottom: 48px;
}

/* 3-point numbered list */
.ch2-list {
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
  border-top: 1px solid rgba(227,205,255,0.18);
}
.ch2-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(227,205,255,0.18);
  align-items: start;
}
.ch2-list-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(227,205,255,0.55);
  padding-top: 3px;
}
.ch2-list li > div {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(227,205,255,0.80);
}
.ch2-list li strong { color: var(--white); font-weight: 600; }
.ch2-list li em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 900;
  color: var(--light-purple-ui);
  letter-spacing: -0.018em;
}

/* RIGHT column — single illustration unit (Settlements + 2 floating chips) */
.ch2-mocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  margin-top: 232px;
}
@media (max-width: 1100px) {
  .ch2-mocks { margin-top: 0; }
}
.ch2-mock-zone {
  position: relative;
  padding: 48px 0 56px;
}

/* Floating annotation chips */
.ch2-chip {
  position: absolute;
  width: 268px;
  padding: 14px 16px 14px 18px;
  background: rgba(36, 0, 55, 0.82);
  border: 1px solid rgba(227, 205, 255, 0.32);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.40),
              0 0 0 1px rgba(151, 71, 255, 0.22) inset;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  color: var(--super-light-purple);
  z-index: 5;
  will-change: transform;
}
.ch2-chip-head {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  color: var(--white);
  display: flex; align-items: center; gap: 8px;
  letter-spacing: -0.005em;
}
.ch2-chip-head strong { font-weight: 700; }
.ch2-chip-head em {
  font-family: var(--font-display);
  font-style: normal; font-weight: 900;
  color: var(--light-purple-ui);
  font-size: 14px;
  letter-spacing: -0.018em;
}
.ch2-chip-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5CB87A;
  box-shadow: 0 0 0 3px rgba(92, 184, 122, 0.20);
  animation: ch2-pulse 1.8s ease-in-out infinite;
}
@keyframes ch2-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(92, 184, 122, 0.20); }
  50%      { box-shadow: 0 0 0 6px rgba(92, 184, 122, 0.05); }
}
.ch2-chip-body {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 13px; line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}
.ch2-chip-body strong { color: var(--white); font-weight: 600; }
.ch2-chip-hl {
  color: var(--accent-purple) !important;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.ch2-chip-foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(227, 205, 255, 0.10);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(227, 205, 255, 0.50);
}
.ch2-chip-foot em {
  font-family: var(--font-display);
  font-style: normal; font-weight: 900;
  text-transform: none; letter-spacing: 0;
  color: rgba(227, 205, 255, 0.60);
  font-size: 12px;
}
.ch2-chip-cta {
  display: inline-block; margin-top: 10px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(227, 205, 255, 0.35);
  padding-bottom: 2px;
  transition: border-color 200ms ease;
}
.ch2-chip-cta:hover { border-bottom-color: var(--accent-purple); }

.ch2-chip-conn {
  top: 0;
  right: -28px;
  transform: rotate(2deg);
  animation: ch2-bob-a 6.5s ease-in-out infinite;
}
.ch2-chip-var {
  bottom: 8px;
  left: -28px;
  transform: rotate(-1.8deg);
  animation: ch2-bob-b 7.5s ease-in-out infinite;
}
@keyframes ch2-bob-a {
  0%, 100% { transform: rotate(2deg)    translateY(0); }
  50%      { transform: rotate(2deg)    translateY(-10px); }
}
@keyframes ch2-bob-b {
  0%, 100% { transform: rotate(-1.8deg) translateY(0); }
  50%      { transform: rotate(-1.8deg) translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .ch2-chip-conn, .ch2-chip-var { animation: none; }
}

/* 3 hero stats below illustration */
.ch2-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.ch2-mocks > .ch2-stats {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(227, 205, 255, 0.16);
}
.ch2-stat-n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.028em;
  color: var(--white);
  margin-bottom: 10px;
}
.ch2-stat-l {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(227,205,255,0.60);
}

/* Mobile fallback for floating chips */
@media (max-width: 900px) {
  .ch2-mock-zone { padding: 0; }
  .ch2-chip {
    position: relative; top: auto; right: auto; bottom: auto; left: auto;
    width: 100%; transform: none !important; animation: none;
    margin-bottom: 16px;
  }
}

/* Settlements table — white card with lavender header */
.ch2-settlements {
  background: var(--white); color: var(--super-dark-purple);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.ch2-settlements-head {
  background: var(--super-light-purple);
  padding: 13px 22px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  color: var(--super-dark-purple);
  border-bottom: 1px solid rgba(46, 0, 69, 0.08);
}
.ch2-settlements-head em {
  font-family: var(--font-display);
  font-style: normal; font-weight: 900;
  color: var(--rebecca-purple);
  font-size: 12px;
  letter-spacing: -0.018em;
}
.ch2-set-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 8px;
  padding: 11px 22px;
  border-top: 1px solid rgba(46,0,69,0.08);
  align-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--super-dark-purple);
}
.ch2-set-row.ch2-set-thead {
  background: rgba(46,0,69,0.03);
  border-top: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--rebecca-purple);
  text-transform: uppercase;
  padding: 10px 22px;
}
.ch2-set-row span:not(.ch2-set-src):not(.ch2-dot):not(.ch2-match-ok):not(.ch2-match-gap):not(.ch2-match-flight):not(.ch2-match-pending) { text-align: right; }
.ch2-set-row.ch2-set-thead span:first-child { text-align: left; }
.ch2-set-row.ch2-set-thead span:not(:first-child) { text-align: right; }
.ch2-set-src {
  display: flex; align-items: center; gap: 10px;
}
.ch2-set-src strong { font-weight: 600; font-size: 14px; display: block; }
.ch2-set-src small {
  color: rgba(46,0,69,0.55); font-size: 11px;
  display: block; margin-top: 2px;
}
.ch2-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.ch2-dot-or { background: #FF8C42; }
.ch2-dot-rd { background: #E83A4A; }
.ch2-dot-bk { background: #1A1A1A; }
.ch2-dot-bl { background: #635BFF; }
.ch2-dot-gn { background: #5CB87A; }
.ch2-set-row strong { font-weight: 600; display: block; }
.ch2-match-ok {
  color: #5CB87A; font-size: 11px; display: block; font-weight: 600;
  margin-top: 2px;
}
.ch2-match-gap {
  background: rgba(255,107,140,0.18); color: #E83A4A;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 100px; margin-top: 4px;
  display: inline-block;
}
.ch2-match-flight {
  background: rgba(151,71,255,0.12); color: var(--rebecca-purple);
  font-size: 10px; font-weight: 600; letter-spacing: 0.02em;
  padding: 3px 8px; border-radius: 100px; margin-top: 4px;
  display: inline-block;
}
.ch2-match-pending {
  background: rgba(46,0,69,0.06); color: var(--super-dark-purple);
  font-size: 10px; font-weight: 600; padding: 3px 8px;
  border-radius: 100px; margin-top: 4px;
  display: inline-block;
}

@media (max-width: 1100px) {
  .ch2-grid { grid-template-columns: 1fr; gap: 56px; }
  .ch2-stats { grid-template-columns: 1fr; gap: 24px; }
  .ch2-grid > * { min-width: 0; }
}
@media (max-width: 700px) {
  .chapter-dark.ch2 { padding: 80px 0 72px; }
  .ch2-set-tbl { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
}

/* ============================================================================
   FOLD 6 · RECONCILE — 3-column reconciliation board (legacy, no longer used)
   ============================================================================ */
.recon-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.recon-col {
  background: rgba(227,205,255,.05);
  border: 1px solid var(--rule-dark);
  border-radius: 16px;
  padding: 22px 22px 18px;
}
.recon-col.ok   { border-color: rgba(42,157,75,.40); }
.recon-col.warn { border-color: rgba(255,152,224,.30); }
.recon-col.bad  { border-color: rgba(255,50,22,.40); }
.recon-col-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule-dark);
}
.recon-state {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--bright);
}
.recon-col.ok .recon-state   { color: #9bf0b3; }
.recon-col.warn .recon-state { color: var(--pink); }
.recon-col.bad .recon-state  { color: var(--rich-orange); }
.recon-count {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -.024em;
  color: var(--white);
  font-feature-settings: 'tnum' 1;
}
.recon-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.recon-col li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(227,205,255,.08);
}
.recon-col li:last-child { border-bottom: 0; }
.recon-src {
  font-family: var(--font-text);
  font-size: 13px;
  color: rgba(227,205,255,.85);
  line-height: 1.4;
}
.recon-amt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--bright);
  font-weight: 600;
  flex-shrink: 0;
}

/* ============================================================================
   FOLD 7 · FORECAST & CONTROL — chart card + stat row
   ============================================================================ */
.forecast-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.forecast-chart-card {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
  display: flex; flex-direction: column;
}
.forecast-chart-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.forecast-chart-label {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--rebecca-purple);
}
.forecast-chart-delta {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: .04em;
  color: #1F8C57;
  background: rgba(184,247,199,.5);
  padding: 4px 9px; border-radius: 999px;
}
.forecast-chart-svg {
  width: 100%; height: 220px;
  flex: 1;
}
.forecast-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.forecast-stat {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: 14px;
  padding: 22px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.forecast-stat-label {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rebecca-purple);
  opacity: .75;
  margin-bottom: 10px;
}
.forecast-stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 38px;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--super-dark-purple);
  font-feature-settings: 'tnum' 1;
}
.forecast-stat-num small {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-purple);
  letter-spacing: -.01em;
}
.forecast-stat-sub {
  margin-top: 8px;
  font-family: var(--font-text);
  font-size: 12.5px;
  color: var(--dark-purple-ui);
}

/* ============================================================================
   FOLD 8 · AGENTS — 6 cards + supervised payments slab (from index-k.html)
   ============================================================================ */
.agt-grid {
  display: grid;
  gap: 22px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.agt-grid-3 { grid-template-columns: repeat(3, 1fr); }
.agt-grid-2 { grid-template-columns: repeat(2, 1fr); }

.agt-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 26px 26px 28px;
  border: 1px solid rgba(46, 0, 69, 0.06);
  box-shadow: 0 18px 40px rgba(46, 0, 69, 0.08), 0 6px 16px rgba(46, 0, 69, 0.04);
  transition: transform 320ms cubic-bezier(.22, 1, .36, 1), box-shadow 320ms ease;
}
.agt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(46, 0, 69, 0.12), 0 10px 22px rgba(46, 0, 69, 0.06);
}
.agt-card-num {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 16px;
}
.agt-card-num-dark { color: var(--accent-purple); }
.agt-card-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--super-dark-purple);
  margin: 0 0 12px;
}
.agt-card-title-light { color: #FFFFFF; }
.agt-card-body {
  font-family: var(--font-text);
  font-size: 14.5px; line-height: 1.55;
  color: var(--rebecca-purple);
  margin: 0;
}
.agt-card-body-light { color: rgba(227, 205, 255, 0.85); }
.agt-card-body strong { font-weight: 700; color: var(--super-dark-purple); }
.agt-card-body-light strong { color: #FFFFFF; }

/* Glass-on-dark variant */
.agt-card-dark {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.020) 100%);
  border-color: rgba(151, 71, 255, 0.32);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Pink variant */
.agt-card-pink {
  background: var(--pink, #FF98E0);
  border-color: rgba(255, 152, 224, 0.30);
  box-shadow: 0 24px 48px rgba(255, 152, 224, 0.30), 0 10px 22px rgba(255, 152, 224, 0.16);
}
.agt-card-pink .agt-card-num { color: var(--super-dark-purple); }
.agt-card-pink .agt-card-title { color: var(--super-dark-purple); }
.agt-card-pink .agt-card-body { color: var(--super-dark-purple); opacity: 0.82; }

/* Custom Agents · accent-purple variant — stands out as the user-buildable slot */
.agt-card-custom {
  background: linear-gradient(160deg, var(--accent-purple) 0%, var(--rebecca-purple) 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 56px rgba(151, 71, 255, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  position: relative;
  overflow: hidden;
}
.agt-card-custom::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(300px 200px at 0% 100%, rgba(255,152,224,.14), transparent 60%);
  pointer-events: none;
}
.agt-card-custom > * { position: relative; }
.agt-card-custom .agt-card-num { color: rgba(255,255,255,.78); }
.agt-card-custom .agt-card-title { color: #FFFFFF; }
.agt-card-custom .agt-card-body { color: rgba(255,255,255,.85); }
.agt-card-custom .agt-card-body strong { color: #FFFFFF; }

/* Bottom slab — supervised payments */
.agt-bottom {
  background: linear-gradient(135deg, rgba(151, 71, 255, 0.22) 0%, rgba(46, 0, 69, 0.65) 60%, rgba(26, 0, 43, 0.85) 100%);
  border-radius: 20px;
  padding: 34px 38px;
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 32px;
  align-items: center;
  border: 1px solid rgba(151, 71, 255, 0.45);
  box-shadow: 0 36px 72px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative; z-index: 1;
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.agt-bottom-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 14px;
}
.agt-bottom-big {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 12px;
}
.agt-bottom-stat {
  font-family: var(--font-display);
  font-size: 64px; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1;
  color: #FFFFFF;
}
.agt-bottom-stat-cap {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(227, 205, 255, 0.70);
}

/* Guardrail card headline */
.agt-bottom-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -.022em;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 14px;
}
.agt-bottom-emph {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.018em;
  color: var(--accent-purple);
}

/* Bottom-line closer on the dark chapter */
.agt-closer {
  margin-top: 36px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  letter-spacing: -.012em;
  color: rgba(227, 205, 255, .75);
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.agt-closer em {
  font-style: normal;
  font-weight: 900;
  letter-spacing: -.018em;
  color: var(--white);
}
.agt-bottom-text {
  font-family: var(--font-text);
  font-size: 15px; line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 560px;
}
.agt-bottom-text strong { color: var(--accent-purple); font-weight: 700; }
.agt-bottom-right { text-align: right; }
.agt-bottom-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-purple);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 14.5px; font-weight: 700;
  letter-spacing: -0.005em;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 240ms ease;
  margin-bottom: 16px;
}
.agt-bottom-cta:hover { background: #B070FF; transform: translateY(-1px); }
.agt-bottom-cta .arrow { transition: transform 240ms ease; }
.agt-bottom-cta:hover .arrow { transform: translateX(3px); }
.agt-bottom-meta {
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(227, 205, 255, 0.50);
}

@media (max-width: 980px) {
  .agt-grid-3 { grid-template-columns: 1fr; }
  .agt-grid-2 { grid-template-columns: 1fr; }
  .agt-bottom { grid-template-columns: 1fr; padding: 28px; }
  .agt-bottom-right { text-align: left; }
  .agt-bottom-stat { font-size: 48px; }
}

/* ============================================================================
   FOLD 8 · AI AGENTS — 6 agent cards (legacy, no longer used)
   ============================================================================ */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.agent-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: 16px;
  padding: 26px 24px 22px;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.agent-card:hover {
  transform: translateY(-3px);
  border-color: var(--rule-mid);
  box-shadow: var(--shadow-card);
}
.agent-state {
  position: absolute;
  top: 18px; right: 18px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: #1F8C57;
}
.agent-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #28D27D;
  box-shadow: 0 0 0 3px rgba(184,247,199,.5);
}
.agent-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  color: var(--super-dark-purple);
  margin: 8px 0 8px;
}
.agent-card p {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark-purple-ui);
  margin: 0 0 16px;
}
.agent-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--rebecca-purple);
  padding-top: 14px;
  border-top: 1px dashed var(--rule-mid);
}

/* ============================================================================
   FOLD 9 · CONTROLS & COMPLIANCE — list + badges
   ============================================================================ */
.controls-duo {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.controls-list {
  list-style: none; padding: 0; margin: 0;
}
.controls-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--rule-light);
}
.controls-list li:last-child { border-bottom: 1px solid var(--rule-light); }
.controls-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.014em;
  color: var(--super-dark-purple);
  margin-bottom: 4px;
}
.controls-list p {
  font-family: var(--font-text);
  font-size: 13.5px;
  color: var(--dark-purple-ui);
  line-height: 1.5;
  margin: 0;
}

.controls-badges {
  background: var(--super-light-purple);
  border-radius: 18px;
  padding: 28px;
}
.controls-badge-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rebecca-purple);
  margin-bottom: 18px;
}
.controls-badge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.controls-badge {
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -.01em;
  color: var(--super-dark-purple);
  text-align: center;
}
.controls-badges-foot {
  font-family: var(--font-text);
  font-size: 12px;
  line-height: 1.5;
  color: var(--dark-purple-ui);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule-light);
}

/* ============================================================================
   FOLD 10 · CUSTOMER STORIES — featured + 2×2 grid
   ============================================================================ */
.cust-section { padding: 120px 0 100px; position: relative; overflow: hidden; }
.cust-head { text-align: center; margin: 0 auto 56px; max-width: 760px; }
.cust-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: var(--super-dark-purple);
  margin: 0 0 16px;
  text-wrap: balance;
}
.cust-headline .emph { font-weight: 900; color: var(--rebecca-purple); letter-spacing: -0.018em; }
.cust-sub {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(46, 0, 69, 0.62);
  max-width: 580px;
  margin: 0 auto;
}

/* Featured card */
.cust-featured {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto 28px;
  padding: 48px 56px 40px;
  background: linear-gradient(135deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,1.00) 100%);
  border: 1px solid rgba(151, 71, 255, 0.20);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(46, 0, 69, 0.10),
              0 4px 14px rgba(46, 0, 69, 0.05);
  overflow: hidden;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 280ms ease,
              border-color 280ms ease;
}
.cust-featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent-purple) 0%, var(--rebecca-purple) 50%, var(--pink) 100%);
  opacity: 0.85;
}
.cust-featured:hover {
  transform: translateY(-3px);
  border-color: rgba(151, 71, 255, 0.32);
  box-shadow: 0 28px 64px rgba(46, 0, 69, 0.13),
              0 6px 18px rgba(46, 0, 69, 0.07);
}
.cust-featured-mark {
  width: 44px; height: 44px;
  fill: var(--accent-purple);
  opacity: 0.32;
  display: block;
  margin-bottom: 20px;
}
.cust-featured-quote {
  margin: 0 0 36px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--super-dark-purple);
  text-wrap: pretty;
}
.cust-featured-quote em {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 900;
  color: var(--rebecca-purple);
  letter-spacing: -0.018em;
}
.cust-featured-attr {
  display: flex; align-items: center; gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(46, 0, 69, 0.10);
}
.cust-featured-avatar {
  width: 64px; height: 64px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(151, 71, 255, 0.10);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(46, 0, 69, 0.10);
}
.cust-featured-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cust-featured-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.012em;
  color: var(--super-dark-purple);
}
.cust-featured-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 14px;
  color: rgba(46, 0, 69, 0.62);
  line-height: 1.4;
}

/* 2×2 grid */
.cust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.cust-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(151, 71, 255, 0.14);
  border-radius: 18px;
  padding: 28px 28px 24px;
  box-shadow: 0 6px 22px rgba(46, 0, 69, 0.05);
  display: flex; flex-direction: column; gap: 20px;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 220ms ease,
              border-color 220ms ease;
}
.cust-card:hover {
  transform: translateY(-3px);
  border-color: rgba(151, 71, 255, 0.28);
  box-shadow: 0 16px 38px rgba(46, 0, 69, 0.10);
}
.cust-quote-mark {
  width: 26px; height: 26px;
  fill: var(--accent-purple);
  opacity: 0.55;
  flex-shrink: 0;
}
.cust-quote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--super-dark-purple);
  flex: 1;
}
.cust-attr {
  display: flex; align-items: center; gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(46, 0, 69, 0.08);
}
.cust-avatar {
  width: 46px; height: 46px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(151, 71, 255, 0.10);
  flex-shrink: 0;
}
.cust-name-block { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cust-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.010em;
  color: var(--super-dark-purple);
}
.cust-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 12.5px;
  color: rgba(46, 0, 69, 0.56);
  line-height: 1.35;
}
.cust-company { color: var(--rebecca-purple); font-weight: 600; }
.cust-dot { color: rgba(46, 0, 69, 0.30); margin: 0 2px; }

@media (max-width: 900px) {
  .cust-section { padding: 90px 0 70px; }
  .cust-featured { padding: 40px 32px 32px; margin-bottom: 22px; }
  .cust-featured-attr { padding-top: 20px; }
  .cust-grid { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 540px) {
  .cust-section { padding: 70px 0 50px; }
  .cust-featured { padding: 32px 24px 26px; }
  .cust-featured-mark { width: 36px; height: 36px; }
  .cust-featured-avatar { width: 52px; height: 52px; }
  .cust-head { margin-bottom: 40px; }
}

/* ============================================================================
   FOLD 10 · CUSTOMER PROOF — legacy (no longer used)
   ============================================================================ */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
}
.proof-card {
  background: rgba(227,205,255,.05);
  border: 1px solid var(--rule-dark);
  border-radius: 18px;
  padding: 28px 28px 26px;
}
.proof-vertical {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-purple);
  padding: 4px 10px;
  background: rgba(151,71,255,.12);
  border-radius: 999px;
  margin-bottom: 18px;
}
.proof-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -.012em;
  color: var(--white);
  margin: 0 0 16px;
}
.proof-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--light-purple-ui);
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--rule-dark);
}
.proof-stats {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 24px; flex-wrap: wrap;
}
.proof-stats li {
  font-family: var(--font-text);
  font-size: 12.5px;
  color: rgba(227,205,255,.7);
}
.proof-stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -.024em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
  font-feature-settings: 'tnum' 1;
}

/* ============================================================================
   FOLD 11 · FINAL CTA — dark slide master (index-k.html pattern)
   ============================================================================ */
.final-cta {
  background: var(--super-dark-purple);
  color: var(--super-light-purple);
  padding: 180px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.final-cta .blob.accent      { top: -240px; right: -160px; width: 720px; height: 720px; opacity: 0.55; }
.final-cta .blob.pink        { bottom: -260px; left: -160px; width: 600px; height: 600px; opacity: 0.40; }
.final-cta .blob.dark-purple { top: 30%; left: 50%; transform: translateX(-50%); width: 800px; height: 800px; opacity: 0.6; background: var(--darker-purple, #4B1478); border-radius: 50%; filter: blur(80px); position: absolute; pointer-events: none; }

.final-cta .container { position: relative; z-index: 1; max-width: 1240px; }
.final-cta-inner { position: relative; z-index: 1; text-align: center; }

.final-cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--super-light-purple);
  margin-bottom: 32px;
  font-weight: 600;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--white);
  margin: 0 auto 36px;
  max-width: 1100px;
  text-wrap: balance;
}
.final-cta h2 .emph {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 900;
  color: var(--super-light-purple);
  letter-spacing: -0.030em;
}
.final-cta-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.032em;
  color: var(--white);
  margin: 0 0 28px;
  text-wrap: balance;
}
.final-cta-headline .emph { font-weight: 900; color: var(--light-purple-ui); }
.final-cta-sub {
  font-family: var(--font-text);
  font-size: 20px;
  line-height: 1.45;
  color: rgba(227,205,255,.75);
  max-width: 600px;
  margin: 0 auto 48px;
}
.final-cta-buttons {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.final-cta .btn-outline-light {
  color: var(--super-light-purple);
  background: transparent;
  border: 1px solid rgba(227,205,255,.30);
}
.final-cta .btn-outline-light:hover {
  background: rgba(227,205,255,.10);
  color: var(--white);
}
.final-cta-mantra {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 auto 14px;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: normal;
  font-size: 18px;
  letter-spacing: -.005em;
  color: var(--bright);
}
.final-cta-mantra .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint-green);
  box-shadow: 0 0 12px rgba(184,247,199,.6);
}
.final-cta-foot {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  color: rgba(227,205,255,.45);
  margin: 0;
}

/* Trust rack — certifications + operating controls below CTA buttons (index-k pattern) */
.trust-rack {
  margin: 72px auto 0;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.trust-rack-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.trust-rack-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-purple);
  opacity: 0.85;
  font-weight: 700;
}
.trust-rack-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
  text-align: center;
}
.trust-rack-line .sep {
  color: var(--accent-purple);
  opacity: 0.55;
  font-weight: 400;
  font-family: var(--font-mono);
}
.trust-rack-em {
  font-family: var(--font-serif) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: var(--accent-purple) !important;
  font-size: 14px !important;
}

@media (max-width: 900px) {
  .trust-rack { margin-top: 48px; padding-top: 24px; gap: 14px; }
  .trust-rack-line { font-size: 12px; gap: 8px; }
  .trust-rack-em { font-size: 13px !important; }
}

/* ============================================================================
   RESPONSIVE — additional fold-specific breakpoints
   ============================================================================ */
@media (max-width: 980px) {
  .recon-board { grid-template-columns: 1fr; }
  .forecast-wrap { grid-template-columns: 1fr; }
  .forecast-stats { grid-template-columns: repeat(4, 1fr); }
  .agent-grid { grid-template-columns: repeat(2, 1fr); }
  .controls-duo { grid-template-columns: 1fr; gap: 32px; }
  .proof-grid { grid-template-columns: 1fr; }
  .move-runbox-rows li { grid-template-columns: 12px 1fr auto; gap: 10px; }
  .move-runbox-rows .ck { display: none; }
}
@media (max-width: 640px) {
  .forecast-stats { grid-template-columns: 1fr 1fr; }
  .agent-grid { grid-template-columns: 1fr; }
  .final-cta { padding: 96px 0; }
  .final-cta-buttons { flex-direction: column; align-items: stretch; }
  .final-cta-buttons .btn { width: 100%; justify-content: center; }
  .controls-badge-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   FOOTER (homepage variant)
   ============================================================================ */
.home-footer {
  background: var(--white);
  border-top: 1px solid var(--rule-light);
  padding: 56px 0;
}
.home-footer .container {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.home-footer img { height: 36px; width: auto; opacity: .85; }
.home-footer .small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--rebecca-purple);
  font-weight: 600;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1100px) {
  .hero-split { grid-template-columns: 1fr; gap: 56px; min-height: auto; }

  /* Stack the three mock cards vertically — prevents width-0 collapse
     when all children are absolute-positioned. */
  .hero-visual {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .hero-visual-main,
  .hero-visual-ping,
  .hero-visual-approve {
    position: static;
    width: 100%;
    max-width: 100%;
    transform: none;
    animation: none;
    margin: 0;
  }
  .hero-visual-ping { order: -1; }

  .prob-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .p-tile-featured { grid-column: span 2; }
  .duo, .duo.reverse { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 900px) {
  .nav-center { display: none; }
  .chapter { padding: 90px 0; }
  .chapter-headline { font-size: clamp(36px, 7.6vw, 60px); }
  .chapter-lead { font-size: 17px; margin-bottom: 40px; }
  .hero { padding: 56px 0 80px; }
  .hero h1 { font-size: clamp(34px, 7.6vw, 50px); max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .prob-grid { grid-template-columns: 1fr; }
  .bank-cloud { grid-template-columns: repeat(3, 1fr); }
  .inline-stats { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 1100px) {
  .hero-split > * { min-width: 0; }
  .hero-text, .hero-visual { min-width: 0; max-width: 100%; }
}
@media (max-width: 640px) {
  .container, .nav-inner { padding: 0 22px; }
  .platform-grid { grid-template-columns: 1fr; }
  .p-tile-featured { grid-column: span 1; grid-template-columns: 1fr; }
  .p-tile-featured-glyph { font-size: 56px; }
  .hero-visual { display: none; }
  .hero-m-card { max-width: 100%; }
  .rampish-ping { display: none; }
  .ch2-match-flight { display: none; }
  .hero h1 { word-break: break-word; overflow-wrap: anywhere; }
  .hero-sub, .hero-kicker { word-break: break-word; overflow-wrap: anywhere; }
  .hero-modules {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 12px 0;
    padding: 18px 0 0;
  }
  .hero-modules-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(102,51,153,.12);
    flex: 1 1 100%;
    white-space: normal;
  }
  .hero-modules-group:first-child { padding-left: 0; }
  .hero-modules-group:last-child  { border-bottom: 0; padding-bottom: 0; }
  .hero-modules dd { flex-wrap: wrap; white-space: normal; }
}

/* ============================================================================
   MOTION LAYER — subtle, scoped, respects prefers-reduced-motion
   ============================================================================ */

/* Scroll-reveal · auto-applied by script.js to content blocks */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1),
              transform .7s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Gentle blob drift — slow breathing motion on the violet glows */
.blob { animation: blob-drift 14s ease-in-out infinite; will-change: transform; }
.blob.accent      { animation-duration: 14s; animation-delay:  0s; }
.blob.pink        { animation-duration: 18s; animation-delay: -3s; }
.blob.super-light { animation-duration: 22s; animation-delay: -7s; }
.blob.dark-purple { animation-duration: 26s; animation-delay: -11s; }
.blob.tr, .blob.tr-sm { animation-name: blob-drift-tr; }
.blob.bl, .blob.bl-sm { animation-name: blob-drift-bl; }

@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-14px, 18px) scale(1.04); }
}
@keyframes blob-drift-tr {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-22px, 14px) scale(1.06); }
}
@keyframes blob-drift-bl {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -16px) scale(1.05); }
}
.final-cta .blob.dark-purple {
  animation: blob-center-drift 24s ease-in-out infinite;
}
@keyframes blob-center-drift {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translate(-50%, -18px) scale(1.05); }
}

/* Slim scroll-progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), var(--rebecca-purple));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(151, 71, 255, .5);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob { animation: none !important; }
  .scroll-progress { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   FLOATING WIDGETS — Accessibility FAB + Human/Agent view toggle
   ─────────────────────────────────────────────────────────── */

/* Human / Agent view toggle */
.open-view-fab {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 9100; display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 18px;
  background: rgba(46, 0, 69, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(227, 205, 255, .18); border-radius: 999px;
  box-shadow: 0 12px 32px rgba(46, 0, 69, .35), 0 2px 8px rgba(0,0,0,.18);
  opacity: 0; animation: openViewFabRise .6s cubic-bezier(.22,1,.36,1) 1.2s forwards;
}
@keyframes openViewFabRise { to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.open-view-fab-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(227, 205, 255, .72);
}
.open-view-fab-pill { display: inline-flex; background: rgba(0,0,0,.22); border-radius: 999px; padding: 3px; }
.open-view-fab-pill a,
.open-view-fab-pill span[role="radio"] {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(227, 205, 255, .78); text-decoration: none;
  transition: background .25s ease, color .25s ease;
}
.open-view-fab-pill a:hover { color: #fff; }
.open-view-fab-pill a.is-active,
.open-view-fab-pill span[role="radio"].is-active { background: #fff; color: var(--super-dark-purple, #2E0045); }
.open-view-fab-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint-green, #B8F7C7);
  box-shadow: 0 0 0 0 rgba(184, 247, 199, .55); animation: openViewFabPulse 2.4s ease-in-out infinite;
}
.open-view-fab-pill a:not(.is-active) .open-view-fab-dot,
.open-view-fab-pill span[role="radio"]:not(.is-active) .open-view-fab-dot { background: rgba(227, 205, 255, .35); animation: none; box-shadow: none; }
@keyframes openViewFabPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 247, 199, .55); }
  50%      { box-shadow: 0 0 0 6px rgba(184, 247, 199, 0); }
}

/* Accessibility FAB */
.open-a11y-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 9100;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--rebecca-purple, #663399); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(102, 51, 153, .35), 0 2px 6px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.open-a11y-fab:hover { transform: translateY(-2px); background: var(--accent-purple, #9747FF); box-shadow: 0 14px 30px rgba(151, 71, 255, .4); }
.open-a11y-fab svg { width: 24px; height: 24px; }
.open-a11y-fab:focus-visible { outline: 2px solid var(--accent-purple, #9747FF); outline-offset: 3px; }

/* A11y panel */
.open-a11y-panel {
  position: fixed; left: 20px; bottom: 80px; z-index: 9101;
  width: 340px; max-width: calc(100vw - 40px);
  background: #fff; border-radius: 16px;
  border: 1px solid rgba(75, 20, 120, .12);
  box-shadow: 0 24px 60px rgba(46, 0, 69, .22), 0 6px 18px rgba(46, 0, 69, .12);
  overflow: hidden; font-family: var(--font-sans, 'OPEN Text', system-ui, sans-serif);
}
.open-a11y-panel[hidden] { display: none; }
.open-a11y-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; background: var(--super-light-purple, #E3CDFF);
  border-bottom: 1px solid rgba(75, 20, 120, .08);
}
.open-a11y-panel__head h3 {
  margin: 0; font-family: var(--font-display, 'OPEN Display', serif);
  font-size: 16px; font-weight: 600; color: var(--super-dark-purple, #2E0045); letter-spacing: -.01em;
}
.open-a11y-panel__actions { display: inline-flex; gap: 4px; }
.open-a11y-panel__icon-btn {
  width: 28px; height: 28px; border: 0; background: transparent; border-radius: 8px; cursor: pointer;
  font-size: 16px; line-height: 1; color: var(--super-dark-purple, #2E0045);
  transition: background .15s ease;
}
.open-a11y-panel__icon-btn:hover { background: rgba(75, 20, 120, .1); }
.open-a11y-panel__body { padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.open-a11y-control { display: flex; flex-direction: column; gap: 8px; }
.open-a11y-control__label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600; color: var(--super-dark-purple, #2E0045);
  letter-spacing: .02em; text-transform: uppercase;
}
.open-a11y-control__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--super-light-purple, #E3CDFF); color: var(--super-dark-purple, #2E0045);
  font-size: 12px; font-weight: 700;
}
.open-a11y-control input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  background: rgba(75, 20, 120, .15); border-radius: 999px; outline: none;
}
.open-a11y-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px;
  background: var(--rebecca-purple, #663399); border-radius: 50%; cursor: pointer;
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(102, 51, 153, .4);
}
.open-a11y-control input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; background: var(--rebecca-purple, #663399); border-radius: 50%; cursor: pointer;
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(102, 51, 153, .4);
}
.open-a11y-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.open-a11y-color-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px; border: 1px solid rgba(75, 20, 120, .15); border-radius: 10px;
  background: #fff; cursor: pointer; font-size: 12px; font-weight: 500;
  color: var(--super-dark-purple, #2E0045);
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.open-a11y-color-btn:hover { background: rgba(227, 205, 255, .35); }
.open-a11y-color-btn.is-active {
  border-color: var(--rebecca-purple, #663399);
  background: var(--super-light-purple, #E3CDFF);
  box-shadow: 0 0 0 2px rgba(102, 51, 153, .15);
}
.open-a11y-color-btn .dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.open-a11y-color-btn[data-a11y-color="normal"]  .dot { background: #fff; }
.open-a11y-color-btn[data-a11y-color="dark"]    .dot { background: #1a0030; }
.open-a11y-color-btn[data-a11y-color="hc"]      .dot { background: #000; }
.open-a11y-color-btn[data-a11y-color="low-sat"] .dot { background: #c4c4c4; }

/* A11y color modes — applied on <html> */
html.a11y-dark { background: #0f0020; }
html.a11y-dark body { background: #0f0020; color: #f4ecff; }
html.a11y-dark .chapter-white,
html.a11y-dark .chapter-bright { background: #1a0034; color: #f4ecff; }
html.a11y-dark .chapter-headline,
html.a11y-dark .chapter-lead,
html.a11y-dark .chapter-closer,
html.a11y-dark .stats-wall-sub,
html.a11y-dark h1, html.a11y-dark h2, html.a11y-dark h3, html.a11y-dark h4 { color: #fff; }

html.a11y-hc { background: #fff; }
html.a11y-hc body { background: #fff !important; color: #000 !important; }
html.a11y-hc * { color: #000 !important; border-color: #000 !important; }
html.a11y-hc .chapter-dark { background: #000 !important; }
html.a11y-hc .chapter-dark * { color: #fff !important; }
html.a11y-hc a, html.a11y-hc .btn-primary, html.a11y-hc .btn-secondary { text-decoration: underline; }

html.a11y-low-sat { filter: saturate(.35); }

/* Responsive */
@media (max-width: 640px) {
  .open-a11y-panel { width: calc(100vw - 32px); left: 16px; right: 16px; bottom: 76px; }
  .open-a11y-fab { left: 16px; bottom: 16px; }
  .open-view-fab { bottom: 12px; padding: 6px 12px 6px 14px; }
  .open-view-fab-label { font-size: 9px; }
  .open-view-fab-pill a { padding: 5px 10px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .open-view-fab { animation: none; opacity: 1; transform: translateX(-50%) translateY(0); }
  .open-view-fab-dot { animation: none !important; }
}

/* ─────────────────────────  HERO · G2 rating line  ───────────────────────── */
.hero-g2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 22px;
  text-decoration: none;
  color: rgba(46, 0, 69, 0.80);
  font-family: var(--font-text, 'OPEN Text', system-ui, sans-serif);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: color .15s ease, opacity .15s ease;
}
.hero-g2:hover { color: var(--super-dark-purple, #2E0045); }
.hero-g2-logo {
  display: block;
  height: 17px;
  width: 17px;
  flex-shrink: 0;
}
.hero-g2-rating { font-weight: 600; }
.hero-g2-sep { opacity: 0.45; }
.hero-g2-label { color: rgba(46, 0, 69, 0.70); font-weight: 500; }
