/* Bits Core ERP - Editorial Operations-Telemetry Design System */
:root {
  --bg: #FFFFFF;
  --bg-2: #F4F6F8;
  --ink: #141824;
  --ink-2: #464E62;
  --muted: #687085;
  --line: #E2E6EC;
  --line-2: #CBD1DA;
  --accent: #1F8693;
  --accent-ink: #0E4D55;
  --accent-wash: #E3F2F1;
  --navy: #20254A;
  --deep: #11152B;
  --deep-2: #191F3D;
  --deep-card: rgba(255, 255, 255, .045);
  --deep-line: rgba(255, 255, 255, .11);
  --deep-ink: #F2F5FC;
  --deep-muted: #A7B0CE;
  --pulse: #7FE0C9;
  --orange: #FF5A00;
  --ok: #1E7E5A;
  --ok-wash: #E6F6EF;
  --warn: #B85200;
  --warn-wash: #FDF1E6;
  --danger: #D92D20;
  --danger-wash: #FEF3F2;
  --branch: var(--accent);
  --branch-ink: var(--accent-ink);
  --branch-wash: var(--accent-wash);
  --branch-rgb: 31, 134, 147;
  --f-text: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 14px;
  --wrap: 1180px;
  color-scheme: light;
}

body[data-branch="education"] {
  --branch: #2A579A;
  --branch-ink: #1A3A6B;
  --branch-wash: #EBF1FA;
  --branch-rgb: 42, 87, 154;
}

body[data-branch="ecommerce"] {
  --branch: #1F8693;
  --branch-ink: #0E4D55;
  --branch-wash: #E3F2F1;
  --branch-rgb: 31, 134, 147;
}

body[data-branch="manufacturing"] {
  --branch: #B85200;
  --branch-ink: #7A3400;
  --branch-wash: #FDF1E6;
  --branch-rgb: 184, 82, 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -.022em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--branch); }
:focus-visible { outline: 2px solid var(--branch); outline-offset: 2px; }
.tnum { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; position: relative; z-index: 2; }
section { padding-block: 84px; position: relative; overflow: clip; }
section.alt { background: var(--bg-2); }
.nw { white-space: nowrap; }

/* Editorial Typography */
.eyebrow {
  font: 600 12px/1.2 var(--f-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--branch);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.03em;
  max-width: 19ch;
}
.h2 {
  font-size: clamp(27px, 3.4vw, 42px);
  line-height: 1.13;
  font-weight: 700;
  letter-spacing: -.026em;
  max-width: 24ch;
}
.lead { font-size: 17.5px; line-height: 1.62; color: var(--ink-2); margin-top: 16px; max-width: 58ch; }
.p { color: var(--ink-2); max-width: 60ch; }
.two { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 44px; align-items: center; }

/* Deep Telemetry Band & Parallax Ambient Layers */
.band-deep {
  background: var(--deep);
  color: var(--deep-ink);
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.band-deep .eyebrow { color: var(--pulse); }
.band-deep .h2, .band-deep h3 { color: #fff; }
.band-deep .lead, .band-deep .p { color: var(--deep-muted); }
.band-deep .link { color: #DCE3F8; border-color: rgba(255, 255, 255, .28); }
.band-deep .link:hover { color: var(--pulse); border-color: var(--pulse); }

.px-layer {
  position: absolute;
  inset: -44px 0;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0);
}
.px-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 35%, transparent 100%);
}
.px-hero-mesh {
  background:
    radial-gradient(640px 380px at 82% 18%, rgba(var(--branch-rgb), .10), transparent 72%),
    radial-gradient(520px 320px at 14% 85%, rgba(32, 37, 74, .06), transparent 70%);
}
.px-deep-wash {
  background:
    radial-gradient(680px 380px at 78% 24%, rgba(var(--branch-rgb), .24), transparent 72%),
    radial-gradient(520px 340px at 16% 80%, rgba(127, 224, 201, .11), transparent 72%);
}

/* Native CSS Scroll-Driven Parallax on Supporting Desktop Browsers */
@keyframes erp-px-slow {
  from { transform: translate3d(0, -28px, 0); }
  to { transform: translate3d(0, 28px, 0); }
}
@keyframes erp-px-med {
  from { transform: translate3d(0, 22px, 0); }
  to { transform: translate3d(0, -22px, 0); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 961px) {
    [data-px="slow"] {
      animation: erp-px-slow linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    [data-px="med"] {
      animation: erp-px-med linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}

/* Motion-Gated Staggered Reveals (No-JS & Reduced-Motion Always Visible) */
html.motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .36s cubic-bezier(.22, 1, .36, 1), transform .36s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i, 0) * 50ms);
}
html.motion [data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* SVG Flow Pulses */
@keyframes erp-flow {
  from { stroke-dashoffset: 48; }
  to { stroke-dashoffset: 0; }
}
@keyframes erp-beacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.86); }
}
.flow-pulse {
  stroke-dasharray: 6 10;
  animation: erp-flow 1.8s linear infinite;
}
.flow-pulse.slow { animation-duration: 2.6s; }
.anim-paused .flow-pulse,
.anim-paused .live-dot { animation-play-state: paused !important; }
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pulse);
  transform-origin: center;
  animation: erp-beacon 2.1s ease-in-out infinite;
}

/* Header & Branch Navigation */
.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding-block: 8px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  flex-shrink: 0;
}
.logo img { width: 28px; height: 28px; border-radius: 6px; }
.logo span small { font: 500 11.5px/1 var(--f-mono); color: var(--muted); margin-left: 5px; }

.branch-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.branch-nav a {
  font: 600 13px/1 var(--f-text);
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 7px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.branch-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .75); }
.branch-nav a[aria-current="page"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 24, 36, .10);
}
.branch-nav .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.dot.hub { background: var(--navy); }
.dot.edu { background: #2A579A; }
.dot.ecom { background: #1F8693; }
.dot.mfg { background: #B85200; }

.bar-r { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang { display: inline-flex; align-items: center; gap: 8px; }
.lang button {
  font: 700 12.5px/1 var(--f-text);
  padding: 5px 3px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: .02em;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

/* Breadcrumb */
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 12.5px/1 var(--f-mono);
  color: var(--muted);
  margin-bottom: 18px;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--branch); }

/* Buttons & Badges */
.btns { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 15px/1 var(--f-text);
  padding: 13px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .16s, transform .16s, opacity .16s;
}
.btn:hover { background: var(--navy); transform: translateY(-1px); }
.btn:disabled { opacity: .65; cursor: progress; transform: none; }
.btn.brand { background: var(--branch); }
.btn.brand:hover { background: var(--branch-ink); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: var(--bg-2); }
.btn.sm { padding: 9px 14px; font-size: 13.5px; }
.link {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.link:hover { color: var(--branch); border-color: var(--branch); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 11px/1 var(--f-mono);
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--branch-wash);
  color: var(--branch-ink);
  white-space: nowrap;
}
.badge.live { background: var(--ok-wash); color: var(--ok); }
.badge.ready { background: var(--accent-wash); color: var(--accent-ink); }
.badge.pilot { background: var(--warn-wash); color: var(--warn); }
.badge.neutral { background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }
.badge.dark { background: rgba(255, 255, 255, .08); color: var(--pulse); border: 1px solid rgba(127, 224, 201, .26); }

/* Sample / Concept Model Tag */
.viz-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 11px/1 var(--f-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.band-deep .viz-tag,
.viz-panel-dark .viz-tag {
  background: rgba(255, 255, 255, .07);
  color: #D2DAF0;
  border-color: var(--deep-line);
}

/* Media Frames */
.shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 20px 44px -26px rgba(20, 24, 36, .32);
}
.shot img { width: 100%; }
.shot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transition: opacity .3s;
}
.shot video.ready { opacity: 1; }
.cap { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Hero */
.hero { padding-block: 56px 76px; }
.hero-hub { padding-block: 56px 72px; }
.proof-bar {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: var(--ink-2);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.proof-bar span { display: inline-flex; align-items: center; gap: 7px; }
.proof-bar span::before { content: "✓"; font-family: var(--f-mono); font-weight: 700; color: var(--branch); }

/* Hero Telemetry Frame (Light & Dark Variants) */
.viz-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 52px -30px rgba(20, 24, 36, .28);
  position: relative;
}
.viz-panel-dark {
  background: var(--deep-2);
  border: 1px solid var(--deep-line);
  border-radius: 16px;
  padding: 20px;
  color: var(--deep-ink);
  box-shadow: 0 28px 60px -32px rgba(4, 7, 20, .75);
}
.viz-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.viz-title {
  font: 600 12px/1.2 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-2);
}
.band-deep .viz-title,
.viz-panel-dark .viz-title { color: #D7DFF5; }
.viz-svg { width: 100%; height: auto; display: block; }

/* Asymmetric Industry Bento (Hub) */
.bento-branches {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}
.bcard {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: opacity .36s cubic-bezier(.22, 1, .36, 1), transform .24s ease, border-color .2s ease, box-shadow .2s ease;
}
.bcard.featured {
  grid-column: span 6;
  grid-row: span 2;
}
.bcard::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--branch-rgb), .08), transparent 65%);
  transition: opacity .22s ease;
}
@media (hover: hover) and (pointer: fine) {
  .bcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 44px -26px rgba(20, 24, 36, .32);
  }
  .bcard:hover::after { opacity: 1; }
}
.bcard.edu { --branch-rgb: 42, 87, 154; }
.bcard.ecom { --branch-rgb: 31, 134, 147; }
.bcard.mfg { --branch-rgb: 184, 82, 0; }
.bcard.edu:hover { border-color: #2A579A; }
.bcard.ecom:hover { border-color: #1F8693; }
.bcard.mfg:hover { border-color: #B85200; }

.bcard-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.bcard.featured .bcard-media { aspect-ratio: 16 / 10; }
.bcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.bcard-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}
.bcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bcard-stack { font: 600 11.5px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bcard.edu .bcard-stack { color: #2A579A; }
.bcard.ecom .bcard-stack { color: #1F8693; }
.bcard.mfg .bcard-stack { color: #B85200; }
.bcard h2 { font-size: 22px; line-height: 1.2; margin-top: 10px; }
.bcard.featured h2 { font-size: 26px; }
.bcard .desc { font-size: 14.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.55; }

/* 3-Node Mini Flow Strip inside Branch Cards */
.mini-flow {
  margin-top: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font: 600 11.5px/1.2 var(--f-mono);
}
.mf-node {
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--ink);
}
.mf-arr { color: var(--muted); }
.bcard.edu .mf-node:last-child { background: #EBF1FA; border-color: #2A579A; color: #1A3A6B; }
.bcard.ecom .mf-node:last-child { background: #E3F2F1; border-color: #1F8693; color: #0E4D55; }
.bcard.mfg .mf-node:last-child { background: #FDF1E6; border-color: #B85200; color: #7A3400; }

.bcard-go {
  margin-top: auto;
  padding-top: 18px;
  font: 600 14px/1 var(--f-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bcard.edu .bcard-go { color: #2A579A; }
.bcard.ecom .bcard-go { color: #1F8693; }
.bcard.mfg .bcard-go { color: #B85200; }

.other-ind {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
  color: var(--ink-2);
}
.other-ind b { color: var(--ink); }

/* Sticky Scrollytelling Story Grid */
.story-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, .44fr) minmax(0, .56fr);
  gap: 36px;
  align-items: start;
}
.story-steps { display: grid; gap: 14px; }
.story-step {
  text-align: left;
  width: 100%;
  font: inherit;
  cursor: pointer;
  padding: 20px 20px 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, background .2s, transform .2s;
}
.story-step:hover { border-left-color: var(--branch); }
.story-step[aria-current="step"] {
  border-color: var(--branch);
  border-left-color: var(--branch);
  box-shadow: 0 14px 32px -22px rgba(20, 24, 36, .28);
}
.story-step .step-idx {
  display: inline-block;
  font: 700 11.5px/1 var(--f-mono);
  color: var(--branch);
  margin-bottom: 8px;
}
.story-step h3 { font-size: 18px; line-height: 1.3; }
.story-step p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.story-step .step-chip {
  display: inline-block;
  margin-top: 10px;
  font: 600 11.5px/1.2 var(--f-mono);
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--branch-wash);
  color: var(--branch-ink);
}

.band-deep .story-step {
  background: var(--deep-card);
  border-color: var(--deep-line);
  border-left-color: rgba(255, 255, 255, .18);
  color: var(--deep-ink);
}
.band-deep .story-step p { color: var(--deep-muted); }
.band-deep .story-step .step-idx { color: var(--pulse); }
.band-deep .story-step .step-chip { background: rgba(127, 224, 201, .12); color: var(--pulse); }
.band-deep .story-step[aria-current="step"] {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(127, 224, 201, .5);
  border-left-color: var(--pulse);
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .55);
}

.story-stage {
  position: sticky;
  top: 86px;
}

/* Telemetry Ledger Rows inside Story Stage */
.ledger-feed {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font: 500 12.5px/1.35 var(--f-mono);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: var(--deep-muted);
  transition: background .24s, border-color .24s, color .24s, transform .24s;
}
.ledger-row b { color: #fff; font-weight: 600; }
.ledger-row .l-val { white-space: nowrap; color: var(--pulse); }
.ledger-row.is-active {
  background: rgba(127, 224, 201, .12);
  border-color: rgba(127, 224, 201, .45);
  color: #fff;
  transform: translateX(3px);
}
.ledger-row.is-done {
  border-color: rgba(127, 224, 201, .22);
  color: #DCE3F8;
}
.light-stage .ledger-row {
  background: var(--bg-2);
  border-color: var(--line);
  color: var(--ink-2);
}
.light-stage .ledger-row b { color: var(--ink); }
.light-stage .ledger-row .l-val { color: var(--branch-ink); }
.light-stage .ledger-row.is-active {
  background: var(--branch-wash);
  border-color: var(--branch);
  color: var(--ink);
}

/* Interactive Simulators (eCommerce Stock Sync, Education Tuition, Manufacturing BOM) */
.sim-shell {
  margin-top: 28px;
  background: var(--deep-2);
  border: 1px solid var(--deep-line);
  border-radius: 18px;
  padding: 24px;
  color: var(--deep-ink);
  box-shadow: 0 28px 60px -32px rgba(4, 7, 20, .75);
}
.sim-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--deep-line);
}
.sim-modes {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--deep-line);
  gap: 3px;
}
.sim-mode {
  font: 600 12.5px/1 var(--f-text);
  padding: 8px 13px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--deep-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sim-mode[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
}
.sim-mode.warn-mode[aria-pressed="true"] {
  background: #FEF3F2;
  color: var(--danger);
}
.sim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.sim-btn {
  font: 600 12.5px/1 var(--f-mono);
  padding: 9px 13px;
  border-radius: 9px;
  border: 1px solid rgba(127, 224, 201, .35);
  background: rgba(127, 224, 201, .10);
  color: var(--pulse);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.sim-btn:hover { background: rgba(127, 224, 201, .20); transform: translateY(-1px); }
.sim-btn.ghost-dark {
  border-color: var(--deep-line);
  background: rgba(255, 255, 255, .05);
  color: #D2DAF0;
}
.sim-btn.ghost-dark:hover { background: rgba(255, 255, 255, .12); }

.sim-board {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 20px;
  align-items: stretch;
}
.sim-box {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--deep-line);
  border-radius: 13px;
  padding: 16px;
}
.sim-box-h {
  font: 600 11px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--deep-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sim-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.sim-tile {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
  padding: 12px;
  transition: border-color .22s, background .22s;
}
.sim-tile.flash {
  border-color: var(--pulse);
  background: rgba(127, 224, 201, .14);
}
.sim-tile.danger {
  border-color: rgba(249, 112, 102, .7);
  background: rgba(217, 45, 32, .18);
}
.sim-tile small {
  display: block;
  font: 500 11px/1.2 var(--f-mono);
  color: var(--deep-muted);
}
.sim-tile .num {
  display: block;
  margin-top: 6px;
  font: 700 26px/1 var(--f-mono);
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.sim-tile .sub {
  display: block;
  margin-top: 5px;
  font: 500 11.5px/1.25 var(--f-text);
  color: var(--pulse);
}
.sim-tile.danger .sub { color: #FDA29B; }

.sim-bins {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.sim-status-bar {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  font: 500 13px/1.45 var(--f-text);
  background: rgba(127, 224, 201, .10);
  border: 1px solid rgba(127, 224, 201, .28);
  color: #E2F8F2;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sim-status-bar.is-danger {
  background: rgba(217, 45, 32, .20);
  border-color: rgba(249, 112, 102, .55);
  color: #FEE4E2;
}

/* Education Tuition Bar & Cohort Heatmap */
.prog-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  overflow: hidden;
  margin-top: 12px;
}
.prog-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--pulse);
  transition: width .42s cubic-bezier(.22, 1, .36, 1), background .25s;
}
.prog-fill.warn { background: #F79009; }

.heatmap-wrap {
  margin-top: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.heatmap {
  width: 100%;
  min-width: 460px;
  border-collapse: separate;
  border-spacing: 5px;
  font: 500 12px/1 var(--f-mono);
}
.heatmap th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 6px;
}
.heatmap td.hm-name { color: var(--ink); font-family: var(--f-text); font-weight: 600; white-space: nowrap; padding-right: 10px; }
.heatmap td.hm-cell {
  height: 26px;
  border-radius: 6px;
  text-align: center;
  font-size: 11px;
}
.hm-ok { background: #D1F2E4; color: #126144; }
.hm-mid { background: #EBF1FA; color: #1A3A6B; }
.hm-miss { background: #FEE4E2; color: #B42318; font-weight: 700; }
.hm-flag {
  font: 600 11px/1 var(--f-mono);
  padding: 4px 7px;
  border-radius: 999px;
  background: #FEF3F2;
  color: #B42318;
  white-space: nowrap;
}
.hm-good {
  font: 600 11px/1 var(--f-mono);
  padding: 4px 7px;
  border-radius: 999px;
  background: #E6F6EF;
  color: #1E7E5A;
  white-space: nowrap;
}

/* Manufacturing BOM Waterfall & Sliders */
.wf-bars { display: grid; gap: 12px; margin-top: 14px; }
.wf-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 96px; gap: 12px; align-items: center; font-size: 13px; }
.wf-label { color: #DCE3F8; font-weight: 500; }
.wf-track { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.wf-fill { height: 100%; border-radius: 999px; background: #FF9A66; transition: width .3s ease; }
.wf-fill.margin { background: var(--pulse); }
.wf-val { text-align: right; font: 600 12.5px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: #fff; }
.slider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--deep-line);
}
.slider-box label {
  display: flex;
  justify-content: space-between;
  font: 600 12px/1.2 var(--f-mono);
  color: #D7DFF5;
  margin-bottom: 8px;
}
.slider-box input[type="range"] {
  width: 100%;
  accent-color: var(--pulse);
  cursor: pointer;
}

/* Proof-to-Floor & Export Dossier Ring (Manufacturing) */
.dual-viz {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 24px;
  align-items: stretch;
}
.dossier-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
}
.dossier-list { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); flex: 1; }
.dossier-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.dossier-list b { color: var(--ink); font-size: 13.5px; }

/* Asymmetric Real Screens Bento & Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tab {
  font: 600 14px/1 var(--f-text);
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.tab:hover { border-color: var(--ink-2); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.panel {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.45fr);
  gap: 32px;
  align-items: center;
}
.panel[hidden] { display: none; }
.panel h3 { font-size: 22px; line-height: 1.25; }
.panel p { color: var(--ink-2); margin-top: 10px; font-size: 15px; }
.panel .pts { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.panel .pts li { padding-left: 16px; position: relative; }
.panel .pts li::before { content: "✓"; position: absolute; left: 0; color: var(--branch); font-family: var(--f-mono); font-weight: 700; }

/* Compact Month-End / Accountant Strip */
.acct-strip {
  margin-top: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
}
.acct-strip-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
}
.acct-strip h3 { font-size: 21px; line-height: 1.25; }
.acct-strip .sub { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; max-width: 62ch; }
.acct-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.acct-chip {
  font: 600 12px/1.2 var(--f-mono);
  padding: 7px 11px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.acct-disclosures {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.acct-disclosures.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.acct-disclosures details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.acct-disclosures summary {
  cursor: pointer;
  font: 600 12.5px/1.3 var(--f-mono);
  color: var(--branch-ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.acct-disclosures summary::-webkit-details-marker { display: none; }
.acct-disclosures summary::after { content: "+"; font-family: var(--f-mono); }
.acct-disclosures details[open] summary::after { content: "−"; }
.acct-disclosures details p { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* 5-Tools-to-1-Record Convergence (Education) */
.converge-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) auto minmax(0, 1.05fr);
  gap: 24px;
  align-items: center;
}
.tool-stack { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.tool-pill {
  font: 600 12.5px/1 var(--f-mono);
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--muted);
  border: 1px solid var(--line);
  text-decoration: line-through;
  text-decoration-color: rgba(217, 45, 32, .5);
}
.converge-arrow {
  font: 700 24px/1 var(--f-mono);
  color: var(--branch);
  text-align: center;
}
.record-card {
  background: #fff;
  border: 1.5px solid var(--branch);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 20px 44px -28px rgba(var(--branch-rgb), .35);
}

/* Proof Callout Band */
.proof-callout {
  margin-top: 24px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--branch);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  font-size: 15px;
  color: var(--ink-2);
}
.proof-callout b { color: var(--ink); }

/* Ownership Strip */
.ownership-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.own-item {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 12px;
  padding: 20px;
}
.own-item h3 { font-size: 17px; line-height: 1.3; }
.own-item p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }

/* Mock UI Tables (Kept for Fulfilment / Returns / BOM) */
.mock-ui {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px -24px rgba(20, 24, 36, .32);
}
.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--deep);
  color: #fff;
  font: 600 11.5px/1 var(--f-mono);
}
.mock-dots { display: inline-flex; gap: 5px; }
.mock-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .28); display: block; }
.mock-body { padding: 16px; background: #FAFBFD; }
.mock-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mock-table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: 12.5px; }
.mock-table th, .mock-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.mock-table th { font: 600 10.5px/1 var(--f-mono); text-transform: uppercase; color: var(--muted); background: #F5F7FA; }
.mock-table tr:last-child td { border-bottom: 0; }
.mock-table .num { text-align: right; font-family: var(--f-mono); font-weight: 600; white-space: nowrap; }
.mock-pill {
  display: inline-block;
  font: 600 10.5px/1 var(--f-mono);
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--ok-wash);
  color: var(--ok);
}
.mock-pill.warn { background: var(--warn-wash); color: var(--warn); }

/* Segmented Track Switch (eCommerce) */
.seg-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  gap: 4px;
  margin-top: 20px;
}
.seg-btn {
  font: 600 13px/1 var(--f-text);
  padding: 9px 14px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.seg-btn[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(20, 24, 36, .10);
}

/* CTA & Inline Lead Form */
.cta { background: var(--navy); color: #fff; }
.cta .h2, .cta h3 { color: #fff; }
.cta .lead, .cta .p { color: #C9CDE6; }
.cta .eyebrow { color: var(--pulse); }
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: start;
}
.proc { list-style: none; padding: 0; display: grid; gap: 16px; margin-top: 28px; }
.proc li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 14px;
}
.proc .d { font: 600 14px/1.3 var(--f-mono); color: var(--pulse); }
.proc b { display: block; font-size: 16px; color: #fff; }
.proc span { display: block; margin-top: 2px; color: #C9CDE6; font-size: 14.5px; }
.quote-note {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  font-size: 14px;
  color: #DCE0F5;
}
.alt-ctas { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 22px; }
.cta .btn-light { background: #fff; color: var(--ink); }
.cta .btn-light:hover { background: var(--accent-wash); }
.cta .link { color: #E3E6F6; border-color: #6B72A3; }
.cta .link:hover { color: var(--pulse); border-color: var(--pulse); }

/* White Elevated Lead Card */
.lead-card {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: 26px 26px 24px;
  box-shadow: 0 24px 48px -24px rgba(10, 14, 30, .55);
}
.lead-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.lead-card-head h3 { color: var(--ink); font-size: 19px; }
.lead-form { display: grid; gap: 14px; }
.lead-form[hidden] { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field label, .field-label { display: block; font: 600 12.5px/1.3 var(--f-text); color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font: 400 14.5px/1.4 var(--f-text);
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--branch);
  box-shadow: 0 0 0 3px var(--branch-wash);
}
.field textarea { resize: vertical; min-height: 68px; }
.pill-group { display: flex; flex-wrap: wrap; gap: 7px; }
.choice-pill {
  font: 500 12.5px/1.2 var(--f-text);
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.choice-pill:hover { border-color: var(--branch); color: var(--ink); }
.choice-pill[aria-pressed="true"] {
  background: var(--branch-wash);
  border-color: var(--branch);
  color: var(--branch-ink);
  font-weight: 600;
}
.form-err {
  font-size: 13px;
  color: var(--danger);
  background: var(--danger-wash);
  border: 1px solid #FECDCA;
  padding: 8px 11px;
  border-radius: 8px;
}
.form-err[hidden] { display: none; }
.lead-submit { width: 100%; padding: 13px 18px; font-size: 15px; }
.form-foot { font-size: 12px; color: var(--muted); text-align: center; margin-top: 2px; }

.lead-ok { display: grid; gap: 12px; outline: none; }
.lead-ok[hidden] { display: none; }
.lead-ok .ok-head { display: flex; align-items: center; gap: 10px; color: var(--ok); font-weight: 700; font-size: 17px; }
.lead-ok p { font-size: 14.5px; color: var(--ink-2); }

/* FAQ */
.faq { margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, .16); max-width: 780px; }
.faq details { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.faq summary {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: #A9AFD0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: #C9CDE6; padding-bottom: 15px; max-width: 68ch; font-size: 15px; }

/* Footer */
footer { padding-block: 30px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--branch); }

/* Reduced Motion Guardrail */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.motion [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .px-layer { animation: none !important; transform: none !important; }
  .flow-pulse, .live-dot { animation: none !important; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 960px) {
  html { scroll-padding-top: 128px; }
  section { padding-block: 58px; }
  .bar .wrap { flex-wrap: wrap; }
  .branch-nav { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; }
  .two, .panel, .cta-grid, .story-grid, .sim-board, .dual-viz { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .story-stage { position: static; order: -1; }
  .bento-branches { grid-template-columns: minmax(0, 1fr); }
  .bcard, .bcard.featured { grid-column: auto; grid-row: auto; }
  .converge-grid { grid-template-columns: minmax(0, 1fr); }
  .converge-arrow { transform: rotate(90deg); }
  .ownership-grid, .acct-disclosures, .acct-disclosures.three { grid-template-columns: minmax(0, 1fr); }
  .dossier-wrap { flex-direction: column; align-items: stretch; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .branch-nav { justify-content: space-between; gap: 2px; padding: 3px; }
  .branch-nav a { padding: 7px 6px; font-size: 11.2px; }
  .branch-nav .dot { margin-right: 3px; width: 5px; height: 5px; }
  .field-row, .sim-bins, .slider-grid { grid-template-columns: minmax(0, 1fr); }
  .wf-row { grid-template-columns: 112px minmax(0, 1fr) 78px; gap: 8px; font-size: 12px; }
  .logo span small { display: none; }
  .bar .btn.sm { padding: 8px 12px; font-size: 13px; }
  .sim-shell { padding: 16px; }
  .lead-card { padding: 20px 18px; }
  .proc li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
