/* ============================================================
   ORTHANCIQ — composite components
   (inbox, pipeline, steps, charts, comparison, pricing)
   ============================================================ */

/* ---------- HERO ---------- */
.hero { padding-top: 150px; padding-bottom: clamp(60px, 9vw, 110px); position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(44px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 1040px) {
  .hero-grid { grid-template-columns: 0.95fr 1.22fr; }
}
.hero h1 { margin-top: 26px; }
.hero .lead { margin-top: 26px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; display: flex; align-items: center; gap: 14px 26px; flex-wrap: wrap; }
.hero-trust .stat { display: flex; flex-direction: column; gap: 2px; }
.hero-trust .stat b { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.03em; }
.hero-trust .stat span { font-size: 0.78rem; color: var(--muted-2); font-family: var(--font-mono); letter-spacing: 0.03em; }
.hero-trust .vr { width: 1px; height: 36px; background: var(--line); }

.hero-visual { position: relative; }
.hero-visual .float-card { position: absolute; z-index: 3; }
.hero-copy,
.hero-visual {
  min-width: 0;
}

/* ---------- INBOX MOCKUP ---------- */
.app {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 34px 90px -48px rgba(22, 37, 35, 0.62), 0 0 0 1px rgba(255,255,255,0.6) inset;
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
.app-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(101, 222, 241, 0.12), transparent);
}
.app-dots { display: flex; gap: 7px; }
.app-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(22, 37, 35, 0.18); }
.app-title { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); letter-spacing: 0.02em; }
.app-title b { color: var(--text); font-weight: 500; }
.app-chrome .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.inbox-summary {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.inbox-summary .cell { padding: 16px 20px; border-right: 1px solid var(--line); }
.inbox-summary .cell:last-child { border-right: none; }
.inbox-summary .lbl { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.inbox-summary .val { font-family: var(--font-display); font-size: 1.55rem; letter-spacing: -0.03em; margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.inbox-summary .val small { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; padding: 2px 6px; border-radius: 5px; }
.delta-up { color: #9e3100; background: var(--red-soft); }
.delta-down { color: #226c5d; background: var(--green-soft); }
.delta-neutral { color: var(--muted); background: rgba(22,37,35,0.06); }

.inbox-toolbar {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.tabs {
  display: flex; gap: 4px; background: rgba(22,37,35,0.065); padding: 4px; border-radius: 9px;
  border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em;
  padding: 6px 12px; border-radius: 6px; color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.tabs button:hover { color: var(--text); }
.tabs button:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: 0 8px 18px -14px rgba(22,37,35,0.55); }
.inbox-toolbar .sort { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); display: inline-flex; align-items: center; gap: 7px; }
.inbox-toolbar .sort b { color: var(--amber); font-weight: 500; }

/* table */
.inbox-head, .inbox-row {
  display: grid;
  grid-template-columns: 26px 1.45fr 1.05fr 0.72fr 1.4fr 1.05fr;
  align-items: center; gap: 12px;
  padding: 0 16px;
}
.inbox-head {
  height: 38px; border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2);
}
.inbox-row {
  min-height: 64px; border-bottom: 1px solid var(--line-2);
  cursor: pointer; transition: background 0.2s; position: relative; padding-block: 12px;
}
.inbox-row:hover { background: rgba(101, 222, 241, 0.1); }
.inbox-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent, transparent); opacity: 0; transition: opacity 0.2s;
}
.inbox-row:hover::before { opacity: 1; }
.inbox-row.critical    { --accent: var(--red); }
.inbox-row.recoverable { --accent: var(--amber); }
.inbox-row.futile      { --accent: var(--grey-state); }

.rank { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted-2); font-weight: 500; }
.rank.top { color: var(--amber); }
.acct { display: flex; align-items: center; gap: 11px; min-width: 0; }
.acct .avatar { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; background: var(--surface-3); border: 1px solid var(--line-3); color: var(--muted); }
.acct .meta { min-width: 0; }
.acct .name { font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct .sub { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted-2); }
.arr { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.arr small { font-family: var(--font-mono); font-size: 0.64rem; color: var(--muted-2); display: block; letter-spacing: 0.04em; }
.cause { font-size: 0.84rem; color: var(--muted); line-height: 1.35; }
.cause b { color: var(--text); font-weight: 600; }
.row-action { display: flex; justify-content: flex-end; }
.act-btn {
  font-family: var(--font-body); font-weight: 600; font-size: 0.78rem;
  padding: 8px 13px; border-radius: 8px; white-space: nowrap;
  background: var(--surface-3); border: 1px solid var(--line-3); color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.inbox-row:hover .act-btn { background: var(--elevated); border-color: rgba(31,55,55,0.26); }
.act-btn.primary { background: var(--amber-soft); border-color: rgba(249,105,0,0.38); color: #8e3d00; }
.inbox-list { min-height: 332px; }
.inbox-list.is-ready .inbox-row { animation: inboxRowIn 0.28s var(--ease) both; }
.inbox-list.is-ready .inbox-row:nth-child(2) { animation-delay: 0.04s; }
.inbox-list.is-ready .inbox-row:nth-child(3) { animation-delay: 0.08s; }
@keyframes inboxRowIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* expandable evidence */
.evidence { grid-column: 1 / -1; max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.evidence-inner { padding: 4px 0 18px 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ev-card { background: rgba(255,255,255,0.55); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; }
.ev-card .ev-lbl { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; display: flex; justify-content: space-between; }
.ev-card .ev-val { font-size: 0.85rem; color: var(--text); line-height: 1.4; }
.save-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.save-row .meter { flex: 1; }
.save-row .pct { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); min-width: 34px; text-align: right; }

@media (max-width: 720px) {
  .tabs button { font-size: 0.68rem; padding: 6px 9px; }
  .inbox-head { display: none; }
  .inbox-row { grid-template-columns: 1fr auto; grid-auto-rows: auto; gap: 8px 12px; padding: 14px 16px; }
  .inbox-row .rank { display: none; }
  .inbox-row .arr { grid-column: 2; grid-row: 1; text-align: right; }
  .inbox-row .acct { grid-column: 1; grid-row: 1; }
  .inbox-row .cause { grid-column: 1 / -1; grid-row: 2; }
  .inbox-row .state-cell { grid-column: 1; grid-row: 3; }
  .inbox-row .row-action { grid-column: 2; grid-row: 3; }
  .evidence-inner { padding-left: 0; }
}

/* floating callout cards on hero */
.float-card {
  background: var(--elevated); border: 1px solid var(--line-3);
  border-radius: 13px; padding: 13px 15px; box-shadow: 0 24px 50px -30px rgba(22,37,35,0.62);
  backdrop-filter: blur(6px);
}
.float-card .fc-lbl { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.float-card .fc-val { font-family: var(--font-display); letter-spacing: -0.02em; margin-top: 4px; }

/* ---------- PROBLEM punch lines ---------- */
.punch-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
.punch {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; background: var(--surface); position: relative; overflow: hidden;
}
.punch .pn { font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); }
.punch h3 { font-size: 1.45rem; margin: 22px 0 12px; letter-spacing: -0.025em; }
.punch h3 s { color: var(--muted-2); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.punch p { font-size: 0.93rem; color: var(--muted); }
.punch::after { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 120px at 100% 0, rgba(249,105,0,0.1), transparent 70%); pointer-events: none; }

/* ---------- SYSTEM / PERMISSION CARDS ---------- */
.evidence-lab {
  margin-top: 48px;
}
.lab-canvas {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line-3);
  border-radius: calc(var(--radius-lg) + 8px);
  background:
    radial-gradient(560px 310px at 15% 18%, rgba(101,222,241,0.27), transparent 70%),
    radial-gradient(560px 330px at 82% 14%, rgba(249,105,0,0.2), transparent 70%),
    linear-gradient(180deg, rgba(255,253,244,0.88), rgba(237,246,235,0.76));
  box-shadow: 0 42px 105px -68px rgba(22,37,35,0.82), inset 0 0 0 1px rgba(255,255,255,0.62);
  overflow: hidden;
}
.lab-grid,
.lab-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lab-grid {
  background-image:
    linear-gradient(rgba(31,55,55,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,55,55,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at 52% 44%, black 0 50%, transparent 86%);
  mask-image: radial-gradient(circle at 52% 44%, black 0 50%, transparent 86%);
  opacity: 0.78;
}
.lab-scan {
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.58), transparent);
  filter: blur(8px);
  opacity: 0.55;
  animation: labScan 8s var(--ease-in-out, ease-in-out) infinite;
}
.lab-routes {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.lab-route {
  fill: none;
  stroke: url(#routeHot);
  stroke-width: 2.3;
  stroke-dasharray: 10 14;
  opacity: 0.48;
  filter: url(#routeGlow);
  animation: routeDash 12s linear infinite;
}
.lab-route.route-b {
  stroke: url(#routeCool);
  opacity: 0.42;
  animation-duration: 14s;
  animation-direction: reverse;
}
.lab-route.route-c {
  opacity: 0.34;
  stroke-width: 1.6;
  animation-duration: 16s;
}
.lab-packet {
  filter: url(#routeGlow);
}
.packet-hot { fill: var(--amber); }
.packet-cool { fill: var(--teal); }
.lab-layer,
.lab-core,
.permission-rack,
.daily-decision-v2 {
  position: absolute;
  z-index: 2;
  transition: transform 0.42s var(--ease), opacity 0.42s var(--ease), border-color 0.42s var(--ease), box-shadow 0.42s var(--ease);
}
[data-lab-stage-card] {
  cursor: pointer;
}
[data-lab-stage-card]:focus-visible,
.signal-cloud button:focus-visible,
.lab-stagebar button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}
.raw-evidence,
.lab-core,
.daily-decision-v2 {
  border: 1px solid rgba(31,55,55,0.14);
  background: rgba(255,255,255,0.68);
  box-shadow: 0 28px 70px -54px rgba(22,37,35,0.72);
  backdrop-filter: blur(16px);
}
.raw-evidence {
  left: 34px;
  top: 92px;
  width: 245px;
  min-height: 368px;
  padding: 22px 20px;
  border-radius: 24px;
}
.raw-evidence h3,
.lab-core h3,
.daily-decision-v2 h3 {
  margin-top: 10px;
  letter-spacing: 0;
}
.raw-evidence h3 {
  font-size: 1.42rem;
  line-height: 1.05;
}
.signal-cloud {
  position: relative;
  min-height: 236px;
  margin-top: 22px;
}
.signal-cloud button {
  position: absolute;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(249,105,0,0.22);
  border-radius: 999px;
  background: rgba(255,253,244,0.84);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  box-shadow: 0 12px 28px -24px rgba(22,37,35,0.58);
  animation: signalFloat 5.4s ease-in-out infinite;
  transition: transform 0.22s, border-color 0.22s, background 0.22s, color 0.22s, box-shadow 0.22s;
}
.signal-cloud button:hover,
.signal-cloud button.active {
  border-color: rgba(249,105,0,0.58);
  background: rgba(255,255,255,0.94);
  color: var(--text);
  box-shadow: 0 18px 36px -24px rgba(249,105,0,0.44);
}
.signal-cloud button.active::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(249,105,0,0.12), 0 0 16px rgba(249,105,0,0.4);
}
.signal-cloud button:nth-child(1) { left: 4px; top: 0; }
.signal-cloud button:nth-child(2) { right: 2px; top: 44px; animation-delay: 0.4s; }
.signal-cloud button:nth-child(3) { left: 18px; top: 90px; animation-delay: 0.8s; }
.signal-cloud button:nth-child(4) { right: 14px; top: 132px; animation-delay: 1.2s; }
.signal-cloud button:nth-child(5) { left: 0; top: 176px; animation-delay: 1.6s; }
.signal-cloud button:nth-child(6) { right: 0; top: 208px; animation-delay: 2s; }
.lab-core {
  padding: 24px;
  border-radius: 26px;
  overflow: hidden;
}
.atlas-core-v2 {
  left: 305px;
  top: 70px;
  width: 240px;
  min-height: 388px;
}
.core-orbit {
  position: absolute;
  right: -48px;
  top: -48px;
  border-radius: 50%;
  border: 1px solid rgba(249,105,0,0.24);
  pointer-events: none;
}
.orbit-one {
  width: 156px;
  height: 156px;
  box-shadow: inset 0 0 0 18px rgba(249,105,0,0.06), 0 0 64px rgba(249,105,0,0.16);
  animation: orbitSpin 12s linear infinite;
}
.orbit-two {
  width: 220px;
  height: 220px;
  right: -82px;
  top: -82px;
  border-color: rgba(101,222,241,0.22);
  animation: orbitSpin 18s linear infinite reverse;
}
.lab-core p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.core-chip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 22px;
}
.core-chip-grid span,
.permission-rack span,
.brain-metrics span,
.decision-mini-row,
.decision-mini-value {
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.66);
}
.core-chip-grid span {
  padding: 10px 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}
.permission-rack {
  left: 552px;
  top: 224px;
  width: 108px;
  display: grid;
  gap: 8px;
  z-index: 4;
}
.permission-rack span {
  position: relative;
  padding: 9px 8px 9px 26px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  line-height: 1.2;
  box-shadow: 0 18px 42px -34px rgba(22,37,35,0.55);
}
.permission-rack span::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
  transform: translateY(-50%);
}
.brain-core-v2 {
  right: 205px;
  top: 62px;
  width: 225px;
  min-height: 404px;
  background:
    radial-gradient(140px 120px at 50% 18%, rgba(101,222,241,0.2), transparent 72%),
    rgba(255,255,255,0.7);
}
.neural-core {
  position: relative;
  height: 138px;
  margin-bottom: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(249,105,0,0.18) 0 13%, transparent 14%),
    conic-gradient(from 90deg, rgba(249,105,0,0.18), rgba(101,222,241,0.22), rgba(249,105,0,0.18));
  border: 1px solid rgba(31,55,55,0.11);
  overflow: hidden;
}
.neural-core::before,
.neural-core::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed rgba(31,55,55,0.22);
  animation: orbitSpin 14s linear infinite;
}
.neural-core::after {
  inset: 38px;
  animation-duration: 9s;
  animation-direction: reverse;
}
.neural-core i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(249,105,0,0.12), 0 0 22px rgba(249,105,0,0.44);
}
.neural-core i:nth-child(1) { left: 24%; top: 28%; }
.neural-core i:nth-child(2) { left: 64%; top: 22%; background: var(--teal); box-shadow: 0 0 0 6px rgba(101,222,241,0.16), 0 0 22px rgba(101,222,241,0.48); }
.neural-core i:nth-child(3) { left: 50%; top: 50%; width: 14px; height: 14px; }
.neural-core i:nth-child(4) { left: 26%; top: 70%; background: var(--teal); box-shadow: 0 0 0 6px rgba(101,222,241,0.16), 0 0 22px rgba(101,222,241,0.48); }
.neural-core i:nth-child(5) { left: 74%; top: 68%; }
.neural-core i:nth-child(6) { left: 84%; top: 42%; background: var(--teal); box-shadow: 0 0 0 6px rgba(101,222,241,0.16), 0 0 22px rgba(101,222,241,0.48); }
.brain-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.brain-metrics span {
  padding: 11px 8px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  line-height: 1.25;
}
.brain-metrics b {
  display: block;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1;
}
.daily-decision-v2 {
  right: 12px;
  top: 90px;
  width: 190px;
  min-height: 0;
  padding: 16px;
  border-radius: 24px;
}
.decision-window-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.decision-window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(31,55,55,0.16);
}
.daily-decision-v2 .eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.13em;
}
.daily-decision-v2 h3 {
  font-size: 1.52rem;
  line-height: 1.02;
}
.daily-decision-v2 p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.42;
}
.decision-mini-row {
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding: 9px 10px;
}
.decision-mini-row span,
.decision-mini-value span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.decision-mini-row b {
  font-size: 0.78rem;
}
.decision-mini-value {
  margin-top: 11px;
  padding: 11px 12px;
  background: linear-gradient(180deg, rgba(249,105,0,0.11), rgba(255,255,255,0.64));
}
.decision-mini-value b {
  display: block;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
}
.daily-decision-v2.is-updating,
.brain-core-v2.is-updating {
  animation: labUpdatePulse 0.42s var(--ease);
}
.evidence-lab[data-active-stage="sources"] [data-lab-layer]:not([data-lab-layer="sources"]),
.evidence-lab[data-active-stage="atlas"] [data-lab-layer]:not([data-lab-layer="atlas"]),
.evidence-lab[data-active-stage="brain"] [data-lab-layer]:not([data-lab-layer="brain"]),
.evidence-lab[data-active-stage="decision"] [data-lab-layer]:not([data-lab-layer="decision"]) {
  opacity: 0.78;
  transform: scale(0.985);
}
.evidence-lab[data-active-stage="sources"] [data-lab-layer="sources"],
.evidence-lab[data-active-stage="atlas"] [data-lab-layer="atlas"],
.evidence-lab[data-active-stage="brain"] [data-lab-layer="brain"],
.evidence-lab[data-active-stage="decision"] [data-lab-layer="decision"] {
  border-color: rgba(249,105,0,0.46);
  box-shadow: 0 34px 78px -50px rgba(249,105,0,0.5), 0 0 0 1px rgba(249,105,0,0.08) inset;
}
.lab-stagebar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.lab-stagebar button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(31,55,55,0.13);
  border-radius: 15px;
  background: rgba(255,255,255,0.5);
  color: var(--muted);
  font-weight: 700;
  transition: background 0.24s, border-color 0.24s, color 0.24s, transform 0.24s;
}
.lab-stagebar button:hover,
.lab-stagebar button.active {
  background: rgba(255,255,255,0.82);
  border-color: rgba(249,105,0,0.35);
  color: var(--text);
  transform: translateY(-1px);
}
.lab-stagebar button span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--amber-soft);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}
.lab-stage-copy {
  max-width: 780px;
  min-height: 28px;
  margin: 14px auto 0;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
}
.lab-inspector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.lab-inspector div {
  position: relative;
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.66), rgba(255,255,255,0.42)),
    radial-gradient(180px 70px at 88% 12%, rgba(101,222,241,0.14), transparent 72%);
  box-shadow: 0 22px 54px -46px rgba(22,37,35,0.55);
  overflow: hidden;
}
.lab-inspector div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--amber), var(--teal));
  opacity: 0.72;
}
.lab-inspector span {
  display: block;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lab-inspector b {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.lab-proofbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.lab-proofbar span {
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.48);
  padding: 15px 16px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.45;
}
.lab-proofbar b {
  display: block;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.25;
}
@keyframes labScan {
  0%, 100% { transform: translateX(-65%); opacity: 0; }
  18%, 72% { opacity: 0.56; }
  100% { transform: translateX(240%); }
}
@keyframes routeDash {
  to { stroke-dashoffset: -240; }
}
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
@keyframes signalFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes labUpdatePulse {
  0% { transform: scale(0.99); }
  48% { transform: scale(1.018); }
  100% { transform: none; }
}
@media (max-width: 1080px) {
  .lab-canvas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-height: 0;
    padding: 18px;
  }
  .lab-routes {
    display: none;
  }
  .lab-layer,
  .lab-core,
  .permission-rack,
  .daily-decision-v2 {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    min-height: 0;
  }
  .raw-evidence {
    min-height: 280px;
  }
  .signal-cloud {
    min-height: 174px;
  }
  .signal-cloud button:nth-child(1) { left: 0; top: 0; }
  .signal-cloud button:nth-child(2) { right: 0; top: 34px; }
  .signal-cloud button:nth-child(3) { left: 8px; top: 70px; }
  .signal-cloud button:nth-child(4) { right: 6px; top: 104px; }
  .signal-cloud button:nth-child(5) { left: 0; top: 140px; }
  .signal-cloud button:nth-child(6) { right: 0; top: 172px; }
  .permission-rack {
    align-content: start;
  }
  .daily-decision-v2 {
    min-height: 0;
  }
}
@media (max-width: 760px) {
  .lab-canvas,
  .lab-stagebar,
  .lab-inspector,
  .lab-proofbar {
    grid-template-columns: 1fr;
  }
  .lab-canvas {
    padding: 14px;
    border-radius: 22px;
  }
  .raw-evidence,
  .lab-core,
  .daily-decision-v2 {
    border-radius: 18px;
    padding: 18px;
  }
  .raw-evidence {
    min-height: 0;
  }
  .signal-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
  }
  .signal-cloud button {
    position: static;
    min-height: 32px;
  }
  .core-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .permission-rack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .permission-rack span {
    padding: 9px 8px 9px 25px;
  }
  .neural-core {
    height: 112px;
  }
  .brain-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lab-stagebar button {
    justify-content: flex-start;
  }
  .lab-inspector div {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lab-scan,
  .lab-route,
  .core-orbit,
  .neural-core::before,
  .neural-core::after,
  .signal-cloud button,
  .daily-decision-v2.is-updating,
  .brain-core-v2.is-updating {
    animation: none;
  }
}

/* ---------- SUBSCRIBER PRODUCT TOUR ---------- */
.trust-strip {
  padding-block: clamp(34px, 5vw, 62px);
}
.trust-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.source-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.source-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(31,55,55,0.09);
  border-radius: 999px;
  background: rgba(255,255,255,0.48);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.product-system {
  margin-top: 48px;
  border: 1px solid var(--line-3);
  border-radius: 30px;
  background:
    radial-gradient(760px 420px at 8% 8%, rgba(101,222,241,0.2), transparent 72%),
    radial-gradient(720px 400px at 94% 4%, rgba(249,105,0,0.16), transparent 72%),
    linear-gradient(180deg, rgba(255,253,244,0.92), rgba(237,246,235,0.72));
  box-shadow: 0 42px 110px -76px rgba(22,37,35,0.82), inset 0 0 0 1px rgba(255,255,255,0.62);
  overflow: hidden;
}
.system-products {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.5fr) minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  border-bottom: 1px solid var(--line);
}
.system-card {
  min-width: 0;
  padding: clamp(24px, 3.4vw, 40px);
  text-align: left;
  border: 0;
  background:
    radial-gradient(360px 220px at 100% 0%, rgba(255,255,255,0.62), transparent 74%),
    rgba(255,255,255,0.34);
  transition: background 0.22s, box-shadow 0.22s, transform 0.22s;
}
.brain-card {
  background:
    radial-gradient(380px 220px at 0% 0%, rgba(249,105,0,0.11), transparent 74%),
    rgba(255,255,255,0.34);
}
.system-card:hover,
.system-card.active {
  background: rgba(255,255,255,0.72);
  box-shadow: inset 0 0 0 1px rgba(249,105,0,0.24);
}
.system-card:hover {
  transform: translateY(-1px);
}
.system-card span,
.system-bridge span,
.trace-controls button,
.trace-window-bar span,
.trace-primary > span,
.trace-metrics span,
.trace-explainer > span,
.trace-answer span,
.system-deliverables span {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.system-card h3 {
  margin-top: 14px;
  font-size: clamp(2.15rem, 4.2vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.system-card p {
  max-width: 540px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.48;
}
.system-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.system-tags b {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 10px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.64);
  color: var(--text);
  font-size: 0.78rem;
}
.system-bridge {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  padding: 26px 16px;
  border-inline: 1px solid var(--line);
  background:
    linear-gradient(rgba(31,55,55,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,55,55,0.045) 1px, transparent 1px),
    rgba(255,255,255,0.2);
  background-size: 34px 34px;
  text-align: center;
}
.bridge-flow {
  position: relative;
  width: min(100%, 180px);
  height: 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(249,105,0,0.2), rgba(101,222,241,0.5), rgba(249,105,0,0.22));
  overflow: hidden;
}
.bridge-flow i {
  position: absolute;
  top: 2px;
  left: -20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(249,105,0,0.1), 0 0 18px rgba(249,105,0,0.4);
  animation: bridgePacket 3.6s linear infinite;
}
.bridge-flow i:nth-child(2) {
  animation-delay: 1.2s;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(101,222,241,0.12), 0 0 18px rgba(101,222,241,0.46);
}
.bridge-flow i:nth-child(3) {
  animation-delay: 2.4s;
}
.system-bridge p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
@keyframes bridgePacket {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateX(210px); opacity: 0; }
}
.system-trace {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-width: 0;
}
.trace-controls {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.32);
}
.trace-controls button {
  min-width: 0;
  padding: 13px 14px;
  text-align: left;
  border: 1px solid rgba(31,55,55,0.09);
  border-radius: 15px;
  background: rgba(255,255,255,0.54);
  color: var(--muted);
  font-weight: 800;
  line-height: 1.2;
  transition: transform 0.22s, border-color 0.22s, background 0.22s, color 0.22s;
}
.trace-controls button:hover,
.trace-controls button.active {
  transform: translateX(3px);
  border-color: rgba(249,105,0,0.36);
  background: rgba(255,255,255,0.9);
  color: var(--amber);
}
.trace-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.66fr);
  min-width: 0;
}
.trace-window {
  min-width: 0;
  padding: clamp(18px, 2.8vw, 32px);
  border-right: 1px solid var(--line);
}
.trace-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(31,55,55,0.1);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  background: rgba(255,255,255,0.68);
}
.trace-window-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(31,55,55,0.16);
}
.trace-window-bar i:nth-child(2) { background: rgba(249,105,0,0.38); }
.trace-window-bar i:nth-child(3) { background: rgba(36,121,103,0.34); }
.trace-window-bar b {
  min-width: 0;
  margin-left: 8px;
  font-size: 0.9rem;
}
.trace-window-bar span {
  margin-left: auto;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}
.trace-screen {
  min-width: 0;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 0 0 22px 22px;
  background:
    linear-gradient(rgba(31,55,55,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,55,55,0.045) 1px, transparent 1px),
    rgba(255,255,255,0.72);
  background-size: 38px 38px;
  overflow: hidden;
}
.trace-primary {
  padding: clamp(22px, 3vw, 32px);
  border-bottom: 1px solid rgba(31,55,55,0.09);
  background:
    radial-gradient(340px 170px at 92% 0%, rgba(249,105,0,0.14), transparent 72%),
    rgba(255,255,255,0.44);
}
.trace-primary h3 {
  margin-top: 10px;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.trace-primary p {
  max-width: 640px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}
.trace-list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}
.trace-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.65fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.68);
}
.trace-list b,
.trace-list span {
  min-width: 0;
}
.trace-list span {
  color: var(--muted);
}
.trace-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.trace-metrics div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid rgba(31,55,55,0.09);
  background: rgba(255,255,255,0.48);
}
.trace-metrics div:last-child {
  border-right: none;
}
.trace-metrics span {
  display: block;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}
.trace-metrics b {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.trace-explainer {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(24px, 3.4vw, 42px);
  background:
    radial-gradient(300px 220px at 100% 10%, rgba(249,105,0,0.1), transparent 70%),
    rgba(255,255,255,0.36);
}
.trace-explainer h3 {
  margin-top: 13px;
  font-size: clamp(1.85rem, 3.2vw, 2.85rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.trace-explainer p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}
.trace-answer {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
.trace-answer div {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.58);
}
.trace-answer span {
  display: block;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}
.trace-answer b {
  display: block;
  margin-top: 8px;
  line-height: 1.22;
}
.system-deliverables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}
.system-deliverables div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(31,55,55,0.11);
  border-radius: 16px;
  background: rgba(255,255,255,0.54);
}
.system-deliverables span {
  display: block;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}
.system-deliverables b {
  display: block;
  margin-top: 7px;
  line-height: 1.2;
}
.product-system.is-updating .trace-screen,
.product-system.is-updating .trace-explainer,
.product-system.is-updating .system-card.active {
  animation: labUpdatePulse 0.42s var(--ease);
}

@media (max-width: 1120px) {
  .system-products {
    grid-template-columns: 1fr;
  }
  .system-bridge {
    border-inline: none;
    border-block: 1px solid var(--line);
  }
  .bridge-flow {
    width: 220px;
  }
  .system-trace {
    grid-template-columns: 1fr;
  }
  .trace-controls {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .trace-controls button:hover,
  .trace-controls button.active {
    transform: translateY(-1px);
  }
}
@media (max-width: 900px) {
  .trace-body,
  .system-deliverables {
    grid-template-columns: 1fr;
  }
  .trace-window {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 620px) {
  .trace-controls,
  .trace-metrics,
  .trace-list div {
    grid-template-columns: 1fr;
  }
  .trace-window-bar span {
    display: none;
  }
  .system-card h3 {
    font-size: clamp(2rem, 13vw, 3.15rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bridge-flow i,
  .product-system.is-updating .trace-screen,
  .product-system.is-updating .trace-explainer,
  .product-system.is-updating .system-card.active {
    animation: none;
  }
}

.product-tour {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--line-3);
  border-radius: 30px;
  background:
    radial-gradient(760px 420px at 8% 8%, rgba(101,222,241,0.2), transparent 72%),
    radial-gradient(720px 400px at 94% 4%, rgba(249,105,0,0.16), transparent 72%),
    linear-gradient(180deg, rgba(255,253,244,0.92), rgba(237,246,235,0.72));
  box-shadow: 0 42px 110px -76px rgba(22,37,35,0.82), inset 0 0 0 1px rgba(255,255,255,0.62);
  overflow: hidden;
}
.tour-rail {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(255,255,255,0.34);
}
.tour-rail button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  text-align: left;
  border: 1px solid rgba(31,55,55,0.08);
  border-radius: 17px;
  background: rgba(255,255,255,0.5);
  transition: transform 0.22s var(--ease), border-color 0.22s, background 0.22s, box-shadow 0.22s;
}
.tour-rail button:hover,
.tour-rail button.active {
  transform: translateX(3px);
  border-color: rgba(249,105,0,0.38);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 26px 60px -48px rgba(249,105,0,0.62);
}
.tour-rail button span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
}
.tour-rail button b {
  min-width: 0;
  font-size: 0.94rem;
  line-height: 1.08;
}
.tour-rail button em {
  min-width: 0;
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.2;
}
.tour-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.68fr);
  min-width: 0;
  min-height: 620px;
}
.tour-window {
  min-width: 0;
  padding: clamp(18px, 2.8vw, 32px);
  border-right: 1px solid var(--line);
}
.tour-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(31,55,55,0.1);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  background: rgba(255,255,255,0.68);
}
.tour-window-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(31,55,55,0.16);
}
.tour-window-bar i:nth-child(2) { background: rgba(249,105,0,0.38); }
.tour-window-bar i:nth-child(3) { background: rgba(36,121,103,0.34); }
.tour-window-bar b {
  min-width: 0;
  margin-left: 8px;
  font-size: 0.9rem;
}
.tour-window-bar span {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tour-app {
  min-width: 0;
  min-height: 510px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 0 0 22px 22px;
  background:
    linear-gradient(rgba(31,55,55,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,55,55,0.045) 1px, transparent 1px),
    rgba(255,255,255,0.72);
  background-size: 38px 38px;
  box-shadow: 0 32px 86px -64px rgba(22,37,35,0.7);
  overflow: hidden;
}
.tour-app-head {
  padding: clamp(20px, 3vw, 30px);
  border-bottom: 1px solid rgba(31,55,55,0.09);
  background:
    radial-gradient(340px 170px at 92% 0%, rgba(249,105,0,0.14), transparent 72%),
    rgba(255,255,255,0.44);
}
.tour-app-head span,
.tour-explain > span,
.tour-answer-grid span,
.tour-metrics span,
.compare-board span,
.operating-loop article > span {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tour-app-head h3 {
  margin-top: 10px;
  font-size: clamp(1.65rem, 3.1vw, 2.65rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.tour-app-head p {
  max-width: 640px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}
.tour-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(31,55,55,0.09);
}
.tour-metrics div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid rgba(31,55,55,0.09);
  background: rgba(255,255,255,0.48);
}
.tour-metrics div:last-child {
  border-right: none;
}
.tour-metrics span {
  display: block;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}
.tour-metrics b {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.tour-preview {
  display: grid;
  gap: 10px;
  padding: clamp(16px, 2.3vw, 24px);
}
.tour-risk-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(120px, 1fr) max-content;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.68);
  box-shadow: 0 18px 46px -44px rgba(22,37,35,0.58);
}
.tour-risk-row.hot {
  border-color: rgba(249,105,0,0.36);
  background:
    radial-gradient(260px 120px at 100% 0%, rgba(249,105,0,0.13), transparent 72%),
    rgba(255,255,255,0.82);
}
.tour-risk-row.low {
  opacity: 0.72;
}
.tour-risk-row b,
.tour-risk-row span,
.tour-risk-row em {
  min-width: 0;
}
.tour-risk-row b {
  font-size: 0.98rem;
}
.tour-risk-row span {
  color: var(--muted);
  font-size: 0.88rem;
}
.tour-risk-row em {
  justify-self: end;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(249,105,0,0.1);
  color: var(--amber);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.tour-explain {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(24px, 3.4vw, 42px);
  background:
    radial-gradient(300px 220px at 100% 10%, rgba(249,105,0,0.1), transparent 70%),
    rgba(255,255,255,0.36);
}
.tour-explain h3 {
  margin-top: 13px;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.tour-explain p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}
.tour-answer-grid {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
.tour-answer-grid div {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.58);
}
.tour-answer-grid span {
  display: block;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}
.tour-answer-grid b {
  display: block;
  margin-top: 8px;
  line-height: 1.22;
}
.product-tour.is-updating .tour-app,
.product-tour.is-updating .tour-explain {
  animation: labUpdatePulse 0.42s var(--ease);
}

.decision-compare {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: center;
}
.compare-board {
  display: grid;
  gap: 14px;
}
.compare-board article {
  min-width: 0;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid rgba(31,55,55,0.11);
  border-radius: 22px;
  background: rgba(255,255,255,0.56);
  box-shadow: 0 24px 66px -56px rgba(22,37,35,0.66);
}
.compare-board article.featured {
  border-color: rgba(249,105,0,0.34);
  background:
    radial-gradient(280px 180px at 100% 0%, rgba(249,105,0,0.13), transparent 72%),
    rgba(255,255,255,0.78);
}
.compare-board span {
  display: block;
  margin-bottom: 12px;
}
.compare-board b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.compare-board p {
  margin-top: 12px;
  color: var(--muted);
}

.decision-dossier-section {
  overflow: hidden;
}
.decision-dossier-head .lead {
  max-width: 520px;
}
.decision-dossier {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.9fr);
  gap: 16px;
  align-items: stretch;
  margin-top: clamp(34px, 5vw, 56px);
}
.decision-file,
.decision-questions article,
.decision-output-strip {
  min-width: 0;
  border: 1px solid rgba(31,55,55,0.12);
  background: rgba(255,255,255,0.68);
  box-shadow: 0 30px 78px -62px rgba(22,37,35,0.7);
}
.decision-file {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  border-color: rgba(249,105,0,0.24);
  border-radius: 26px;
  background:
    radial-gradient(420px 230px at 100% 0%, rgba(249,105,0,0.12), transparent 72%),
    radial-gradient(420px 260px at 0% 100%, rgba(101,222,241,0.16), transparent 72%),
    rgba(255,255,255,0.78);
  overflow: hidden;
}
.decision-file::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(31,55,55,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,55,55,0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}
.decision-file::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -18%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.64), transparent);
  filter: blur(14px);
  opacity: 0.55;
  transform: rotate(10deg);
  animation: dossierScan 7.5s var(--ease) infinite;
  pointer-events: none;
}
.decision-file > * {
  position: relative;
  z-index: 1;
}
.decision-file-top,
.decision-account-line,
.decision-metrics,
.decision-evidence div,
.decision-output-strip {
  display: grid;
}
.decision-file-top {
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(31,55,55,0.1);
}
.decision-file-top span,
.decision-diagnosis span,
.decision-evidence span,
.decision-action span,
.decision-questions span,
.decision-output-strip span {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.decision-file-top b {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.decision-file-top em {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
}
.decision-account-line {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.acct-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(36,121,103,0.28);
  border-radius: 14px;
  background: rgba(168,220,209,0.34);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
}
.decision-account-line h3 {
  font-size: clamp(1.4rem, 2.1vw, 1.95rem);
  line-height: 1;
}
.decision-account-line p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.93rem;
}
.decision-account-line strong {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(249,105,0,0.1);
  color: var(--amber);
  font-size: 0.78rem;
  white-space: nowrap;
}
.decision-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 18px;
  background: rgba(255,255,255,0.54);
  overflow: hidden;
}
.decision-metrics div {
  min-width: 0;
  padding: 15px 14px;
  border-right: 1px solid rgba(31,55,55,0.09);
}
.decision-metrics div:last-child {
  border-right: none;
}
.decision-metrics span {
  display: block;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.decision-metrics b {
  display: block;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.decision-diagnosis,
.decision-action {
  padding: 17px;
  border-radius: 18px;
  border: 1px solid rgba(31,55,55,0.1);
  background: rgba(255,255,255,0.58);
}
.decision-diagnosis {
  border-color: rgba(36,121,103,0.18);
  background: rgba(168,220,209,0.22);
}
.decision-diagnosis p,
.decision-action p {
  margin-top: 8px;
  color: var(--text);
  line-height: 1.42;
  font-weight: 600;
}
.decision-evidence {
  display: grid;
  gap: 10px;
}
.decision-evidence div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.decision-evidence b {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.62);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.25;
}
.decision-action {
  border-color: rgba(249,105,0,0.3);
  background:
    radial-gradient(230px 120px at 100% 0%, rgba(249,105,0,0.14), transparent 70%),
    rgba(255,255,255,0.72);
}
.decision-questions {
  display: grid;
  gap: 12px;
}
.decision-questions article {
  position: relative;
  padding: clamp(18px, 2.2vw, 22px);
  border-radius: 20px;
  overflow: hidden;
}
.decision-questions article::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 7px rgba(101,222,241,0.16);
  opacity: 0.7;
}
.decision-questions article:nth-child(2)::after,
.decision-questions article:nth-child(4)::after {
  background: var(--amber);
  box-shadow: 0 0 0 7px rgba(249,105,0,0.12);
}
.decision-questions b {
  display: block;
  max-width: 88%;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.14rem, 1.6vw, 1.42rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.decision-questions p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.42;
  font-size: 0.96rem;
}
.decision-output-strip {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(168,220,209,0.24), rgba(255,255,255,0.74), rgba(249,105,0,0.1));
  overflow: hidden;
}
.decision-output-strip div {
  position: relative;
  min-width: 0;
  padding: 18px 18px 18px 28px;
  border-right: 1px solid rgba(31,55,55,0.09);
}
.decision-output-strip div:last-child {
  border-right: none;
}
.decision-output-strip div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -6px;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-top: 1px solid rgba(249,105,0,0.4);
  border-right: 1px solid rgba(249,105,0,0.4);
  background: rgba(255,255,255,0.9);
  transform: rotate(45deg);
  z-index: 1;
}
.decision-output-strip span {
  display: block;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}
.decision-output-strip b {
  display: block;
  margin-top: 7px;
  font-size: 0.92rem;
  line-height: 1.22;
}

@keyframes dossierScan {
  0%, 38% { transform: translateX(0) rotate(10deg); opacity: 0; }
  52% { opacity: 0.55; }
  78%, 100% { transform: translateX(390%) rotate(10deg); opacity: 0; }
}

@media (max-width: 980px) {
  .decision-dossier {
    grid-template-columns: 1fr;
  }
  .decision-questions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .decision-file {
    border-radius: 22px;
  }
  .decision-file::after {
    display: none;
  }
  .decision-account-line {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .decision-account-line strong {
    grid-column: 2;
    justify-self: start;
  }
  .decision-questions,
  .decision-output-strip {
    grid-template-columns: 1fr;
  }
  .decision-output-strip div:not(:last-child)::after {
    display: none;
  }
}
@media (max-width: 520px) {
  .decision-file {
    padding: 18px;
  }
  .decision-file-top {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .decision-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .decision-metrics div {
    padding: 12px 9px;
    border-right: 1px solid rgba(31,55,55,0.09);
    border-bottom: none;
  }
  .decision-metrics div:last-child {
    border-right: none;
  }
  .decision-metrics span {
    font-size: 0.5rem;
  }
  .decision-metrics b {
    font-size: 1.42rem;
  }
  .decision-evidence div {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .decision-file::after {
    display: none;
    animation: none;
  }
}

.operating-loop {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}
.operating-loop article {
  position: relative;
  min-width: 0;
  min-height: 280px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(31,55,55,0.11);
  border-radius: 24px;
  background:
    radial-gradient(260px 160px at 100% 0%, rgba(101,222,241,0.12), transparent 72%),
    rgba(255,255,255,0.64);
  box-shadow: 0 30px 78px -62px rgba(22,37,35,0.68);
  overflow: hidden;
}
.operating-loop article::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -58px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(249,105,0,0.16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,105,0,0.12), transparent 62%);
}
.operating-loop article:nth-child(2)::after {
  border-color: rgba(36,121,103,0.18);
  background: radial-gradient(circle, rgba(101,222,241,0.13), transparent 62%);
}
.operating-loop article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 900;
  letter-spacing: 0;
}
.operating-loop h3 {
  margin-top: 34px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.02;
}
.operating-loop p {
  margin-top: 13px;
  color: var(--muted);
  line-height: 1.48;
}
.operating-loop b {
  display: inline-flex;
  margin-top: 22px;
  padding: 9px 11px;
  border: 1px solid rgba(249,105,0,0.18);
  border-radius: 999px;
  background: rgba(249,105,0,0.08);
  color: var(--amber);
  font-size: 0.82rem;
}

@media (max-width: 1120px) {
  .product-tour {
    grid-template-columns: 1fr;
  }
  .tour-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .tour-rail button {
    grid-template-columns: 1fr;
  }
  .tour-rail button span {
    grid-row: auto;
  }
}
@media (max-width: 900px) {
  .tour-stage,
  .decision-compare,
  .operating-loop {
    grid-template-columns: 1fr;
  }
  .tour-stage {
    min-height: 0;
  }
  .tour-window {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .tour-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tour-rail button:hover,
  .tour-rail button.active {
    transform: translateY(-1px);
  }
}
@media (max-width: 620px) {
  .tour-metrics,
  .tour-risk-row {
    grid-template-columns: 1fr;
  }
  .tour-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tour-rail button {
    min-height: 96px;
    padding: 12px;
  }
  .tour-rail button b {
    font-size: 0.86rem;
  }
  .tour-rail button em {
    font-size: 0.72rem;
  }
  .tour-window-bar span {
    display: none;
  }
  .tour-app {
    min-height: 0;
  }
  .tour-risk-row em {
    justify-self: start;
    white-space: normal;
  }
  .operating-loop article {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-tour.is-updating .tour-app,
  .product-tour.is-updating .tour-explain {
    animation: none;
  }
}

/* ---------- PRODUCT MAP EXPLAINER ---------- */
.product-map {
  margin-top: 48px;
  border: 1px solid var(--line-3);
  border-radius: 30px;
  background:
    radial-gradient(760px 380px at 12% 4%, rgba(101,222,241,0.22), transparent 70%),
    radial-gradient(700px 360px at 90% 0%, rgba(249,105,0,0.16), transparent 70%),
    linear-gradient(180deg, rgba(255,253,244,0.9), rgba(237,246,235,0.72));
  box-shadow: 0 42px 110px -76px rgba(22,37,35,0.82), inset 0 0 0 1px rgba(255,255,255,0.62);
  overflow: hidden;
}
.product-map-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
}
.product-map-top span,
.product-explainer > span,
.product-output span,
.product-deliverables span,
.source-stack > span,
.product-node span,
.proof-card > span,
.proof-output span,
.setup-preview > span,
.setup-artifact span {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.product-map-top b {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.product-map-top strong {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}
.product-map-top strong i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft), 0 0 18px rgba(36,121,103,0.42);
}
.product-map-body {
  display: grid;
  grid-template-columns: 220px minmax(520px, 1.1fr) minmax(300px, 0.76fr);
  min-height: 560px;
}
.product-nav {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(255,253,244,0.32);
}
.product-nav button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 10px;
  align-items: center;
  min-width: 0;
  padding: 13px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255,255,255,0.48);
  transition: transform 0.22s var(--ease), border-color 0.22s, background 0.22s, box-shadow 0.22s;
}
.product-nav button:hover,
.product-nav button.active {
  transform: translateX(3px);
  border-color: rgba(249,105,0,0.36);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 24px 52px -44px rgba(249,105,0,0.58);
}
.product-nav button span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
}
.product-nav b {
  font-size: 0.96rem;
  line-height: 1.08;
}
.product-nav em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}
.product-diagram {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.12fr 1.12fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-width: 0;
  padding: clamp(18px, 2.5vw, 28px);
  overflow: hidden;
}
.diagram-grid,
.diagram-line {
  position: absolute;
  pointer-events: none;
}
.diagram-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(31,55,55,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,55,55,0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at 54% 48%, #000 0 48%, transparent 84%);
  mask-image: radial-gradient(circle at 54% 48%, #000 0 48%, transparent 84%);
  opacity: 0.72;
}
.diagram-line {
  left: 17%;
  right: 10%;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(249,105,0,0), rgba(249,105,0,0.62), rgba(101,222,241,0.7), rgba(249,105,0,0.52), transparent);
  transform: translateY(-50%);
  opacity: 0.62;
}
.diagram-line i {
  position: absolute;
  top: -4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 7px rgba(249,105,0,0.12), 0 0 22px rgba(249,105,0,0.42);
  animation: studioPacket 4.8s linear infinite;
}
.diagram-line i:nth-child(2) {
  background: var(--teal);
  box-shadow: 0 0 0 7px rgba(101,222,241,0.14), 0 0 22px rgba(101,222,241,0.48);
  animation-delay: 2.2s;
}
.source-stack,
.product-node {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 1px solid rgba(31,55,55,0.13);
  border-radius: 20px;
  background: rgba(255,255,255,0.68);
  box-shadow: 0 28px 72px -58px rgba(22,37,35,0.7);
  backdrop-filter: blur(15px);
}
.source-stack {
  grid-row: 1 / 3;
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 18px;
}
.source-stack div {
  padding: 10px 11px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.56);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}
.product-node {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  text-align: left;
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s, opacity 0.28s;
}
.product-node:hover {
  transform: translateY(-3px);
}
.product-node b {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.product-map[data-active-product="atlas"] .product-node:not(.node-atlas),
.product-map[data-active-product="brain"] .product-node:not(.node-brain),
.product-map[data-active-product="inbox"] .product-node:not(.node-inbox),
.product-map[data-active-product="learning"] .product-node:not(.node-learning) {
  opacity: 0.64;
  transform: scale(0.985);
}
.product-map[data-active-product="atlas"] .node-atlas,
.product-map[data-active-product="brain"] .node-brain,
.product-map[data-active-product="inbox"] .node-inbox,
.product-map[data-active-product="learning"] .node-learning {
  border-color: rgba(249,105,0,0.48);
  box-shadow: 0 38px 86px -58px rgba(249,105,0,0.6), 0 0 0 1px rgba(249,105,0,0.08) inset;
}
.node-atlas { grid-column: 2; grid-row: 1; }
.node-brain { grid-column: 3; grid-row: 1; }
.node-inbox { grid-column: 2; grid-row: 2; }
.node-learning { grid-column: 3; grid-row: 2; }
.product-explainer {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border-left: 1px solid var(--line);
  background:
    radial-gradient(260px 180px at 100% 0%, rgba(249,105,0,0.11), transparent 72%),
    rgba(255,255,255,0.42);
}
.product-explainer h3 {
  margin-top: 13px;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.product-explainer p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.48;
}
.product-output {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.product-output div {
  padding: 13px 14px;
  border: 1px solid rgba(31,55,55,0.11);
  border-radius: 14px;
  background: rgba(255,255,255,0.62);
}
.product-output b {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.22;
}
.product-map.is-updating .product-explainer,
.product-map.is-updating .product-node {
  animation: labUpdatePulse 0.42s var(--ease);
}
.product-deliverables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}
.product-deliverables div {
  padding: 15px;
  border: 1px solid rgba(31,55,55,0.11);
  border-radius: 16px;
  background: rgba(255,255,255,0.52);
}
.product-deliverables b {
  display: block;
  margin-top: 7px;
  line-height: 1.2;
}

.product-proof {
  margin-top: 38px;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line-3);
  border-radius: 26px;
  background:
    radial-gradient(480px 230px at 14% 12%, rgba(101,222,241,0.18), transparent 70%),
    radial-gradient(420px 220px at 86% 4%, rgba(249,105,0,0.15), transparent 70%),
    rgba(255,253,244,0.66);
  box-shadow: 0 30px 86px -70px rgba(22,37,35,0.66);
}
.proof-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.proof-tabs button {
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.54);
  color: var(--muted);
  font-weight: 800;
  transition: transform 0.22s, border-color 0.22s, background 0.22s, color 0.22s;
}
.proof-tabs button:hover,
.proof-tabs button.active {
  transform: translateY(-1px);
  border-color: rgba(249,105,0,0.38);
  background: rgba(255,255,255,0.88);
  color: var(--text);
}
.proof-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-top: 14px;
}
.proof-card {
  min-width: 0;
  min-height: 280px;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 21px;
  background: rgba(255,255,255,0.66);
  box-shadow: 0 22px 58px -50px rgba(22,37,35,0.6);
}
.strong-proof {
  border-color: rgba(249,105,0,0.28);
  background:
    radial-gradient(240px 160px at 100% 0%, rgba(249,105,0,0.12), transparent 70%),
    rgba(255,255,255,0.72);
}
.proof-card h3 {
  margin-top: 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.02;
}
.proof-card p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 560px;
}
.proof-meter {
  position: relative;
  height: 12px;
  margin-top: 32px;
  border-radius: 999px;
  background: rgba(31,55,55,0.1);
  overflow: hidden;
}
.proof-meter i {
  display: block;
  height: 100%;
  width: var(--w, 70%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}
.proof-output {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 24px;
}
.proof-output div {
  padding: 11px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 13px;
  background: rgba(255,255,255,0.62);
}
.proof-output span {
  color: var(--muted-2);
  letter-spacing: 0.08em;
}
.proof-output b {
  display: block;
  margin-top: 5px;
  font-size: 0.86rem;
  line-height: 1.16;
}
.product-proof.is-updating .proof-card {
  animation: labUpdatePulse 0.42s var(--ease);
}

.product-setup-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: 14px;
  margin-top: 48px;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line-3);
  border-radius: 28px;
  background:
    radial-gradient(520px 300px at 12% 0%, rgba(101,222,241,0.18), transparent 72%),
    radial-gradient(480px 260px at 88% 12%, rgba(249,105,0,0.13), transparent 68%),
    rgba(255,253,244,0.7);
}
.product-setup-flow > button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 11px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  text-align: left;
  border: 1px solid rgba(31,55,55,0.11);
  border-radius: 17px;
  background: rgba(255,255,255,0.56);
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}
.product-setup-flow > button:hover,
.product-setup-flow > button.active {
  transform: translateX(3px);
  border-color: rgba(249,105,0,0.38);
  background: rgba(255,255,255,0.88);
}
.product-setup-flow > button span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
}
.product-setup-flow > button b {
  line-height: 1.1;
}
.product-setup-flow > button em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.8rem;
}
.setup-preview {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: grid;
  align-content: center;
  min-width: 0;
  padding: clamp(22px, 3.4vw, 42px);
  border: 1px solid rgba(249,105,0,0.22);
  border-radius: 22px;
  background:
    radial-gradient(260px 180px at 100% 0%, rgba(249,105,0,0.12), transparent 70%),
    rgba(255,255,255,0.72);
}
.setup-preview h3 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1;
}
.setup-preview p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 560px;
}
.setup-artifact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.setup-artifact div {
  padding: 14px;
  border: 1px solid rgba(31,55,55,0.11);
  border-radius: 14px;
  background: rgba(255,255,255,0.62);
}
.setup-artifact span {
  color: var(--muted-2);
  letter-spacing: 0.08em;
}
.setup-artifact b {
  display: block;
  margin-top: 7px;
  line-height: 1.22;
}
.product-setup-flow.is-updating .setup-preview {
  animation: labUpdatePulse 0.42s var(--ease);
}

@media (max-width: 1100px) {
  .product-map-body {
    grid-template-columns: 1fr;
  }
  .product-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .product-explainer {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 820px) {
  .product-map-top {
    align-items: flex-start;
  }
  .product-map-top strong {
    display: none;
  }
  .product-nav,
  .product-diagram,
  .product-deliverables,
  .proof-tabs,
  .proof-columns,
  .proof-output,
  .product-setup-flow,
  .setup-artifact {
    grid-template-columns: 1fr;
  }
  .source-stack,
  .node-atlas,
  .node-brain,
  .node-inbox,
  .node-learning {
    grid-column: auto;
    grid-row: auto;
  }
  .diagram-line {
    display: none;
  }
  .setup-preview {
    grid-column: auto;
    grid-row: auto;
  }
  .product-setup-flow > button:hover,
  .product-setup-flow > button.active,
  .product-nav button:hover,
  .product-nav button.active {
    transform: translateY(-1px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .diagram-line i {
    animation: none !important;
  }
}

/* ---------- INTERACTIVE SYSTEM STUDIO ---------- */
.decision-studio {
  margin-top: 48px;
  border: 1px solid var(--line-3);
  border-radius: 30px;
  background:
    radial-gradient(720px 420px at 18% 8%, rgba(101, 222, 241, 0.24), transparent 70%),
    radial-gradient(680px 420px at 88% 0%, rgba(249, 105, 0, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(255, 253, 244, 0.88), rgba(237, 246, 235, 0.72));
  box-shadow: 0 42px 110px -76px rgba(22, 37, 35, 0.82), inset 0 0 0 1px rgba(255,255,255,0.62);
  overflow: hidden;
}
.studio-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.52);
  backdrop-filter: blur(14px);
}
.studio-dots {
  display: flex;
  gap: 7px;
  flex: none;
}
.studio-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(31,55,55,0.16);
}
.studio-topbar b {
  display: block;
  font-size: 0.92rem;
  line-height: 1.15;
}
.studio-topbar span {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  overflow-wrap: anywhere;
}
.studio-topbar strong {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}
.studio-topbar strong i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft), 0 0 18px rgba(36,121,103,0.42);
}
.studio-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 590px;
}
.studio-rail {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.2)),
    rgba(255,253,244,0.26);
}
.rail-label,
.studio-eyebrow {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.studio-rail button {
  display: grid;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255,255,255,0.46);
  color: var(--text);
  transition: transform 0.22s var(--ease), border-color 0.22s, background 0.22s, box-shadow 0.22s;
}
.studio-rail button:hover,
.studio-rail button.active {
  transform: translateX(3px);
  border-color: rgba(249,105,0,0.35);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 24px 52px -44px rgba(249,105,0,0.58);
}
.studio-rail small {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.studio-rail b {
  font-size: 0.92rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.studio-rail em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.78rem;
}
.studio-canvas {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.95fr) minmax(0, 1.08fr) minmax(0, 0.86fr);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
  padding: clamp(18px, 2.7vw, 28px);
  overflow: hidden;
}
.studio-grid,
.studio-beam {
  position: absolute;
  pointer-events: none;
}
.studio-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(31,55,55,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,55,55,0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(circle at 55% 42%, #000 0 52%, transparent 86%);
  mask-image: radial-gradient(circle at 55% 42%, #000 0 52%, transparent 86%);
  opacity: 0.78;
}
.studio-beam {
  left: 7%;
  right: 7%;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(249,105,0,0.66), rgba(101,222,241,0.7), rgba(249,105,0,0.5), transparent);
  box-shadow: 0 0 26px rgba(249,105,0,0.2);
  transform: translateY(-50%);
  opacity: 0.66;
}
.studio-beam i {
  position: absolute;
  top: -4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 7px rgba(249,105,0,0.12), 0 0 22px rgba(249,105,0,0.42);
  animation: studioPacket 4.8s linear infinite;
}
.studio-beam i:nth-child(2) {
  background: var(--teal);
  box-shadow: 0 0 0 7px rgba(101,222,241,0.14), 0 0 22px rgba(101,222,241,0.48);
  animation-delay: 1.5s;
}
.studio-beam i:nth-child(3) {
  animation-delay: 3s;
}
.studio-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 390px;
  padding: clamp(17px, 2vw, 22px);
  text-align: left;
  border: 1px solid rgba(31,55,55,0.13);
  border-radius: 22px;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 28px 72px -56px rgba(22,37,35,0.74);
  backdrop-filter: blur(16px);
  transition: transform 0.32s var(--ease), opacity 0.32s var(--ease), border-color 0.32s, box-shadow 0.32s;
}
.studio-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249,105,0,0.34);
}
.decision-studio[data-stage="evidence"] .studio-card:not(.evidence-card),
.decision-studio[data-stage="atlas"] .studio-card:not(.atlas-card),
.decision-studio[data-stage="brain"] .studio-card:not(.brain-card-mini),
.decision-studio[data-stage="decision"] .studio-card:not(.decision-card-mini) {
  opacity: 0.72;
  transform: scale(0.985);
}
.decision-studio[data-stage="evidence"] .evidence-card,
.decision-studio[data-stage="atlas"] .atlas-card,
.decision-studio[data-stage="brain"] .brain-card-mini,
.decision-studio[data-stage="decision"] .decision-card-mini {
  border-color: rgba(249,105,0,0.48);
  box-shadow: 0 38px 86px -58px rgba(249,105,0,0.58), 0 0 0 1px rgba(249,105,0,0.08) inset;
}
.studio-card.is-updating {
  animation: labUpdatePulse 0.42s var(--ease);
}
.studio-card h3 {
  margin-top: 12px;
  font-size: clamp(1.22rem, 1.7vw, 1.65rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.studio-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}
.evidence-source-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
}
.evidence-source-grid span {
  padding: 7px 9px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}
.evidence-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--amber) 0 13%, transparent 14%),
    repeating-radial-gradient(circle at 50% 50%, rgba(249,105,0,0.16) 0 2px, transparent 3px 14px);
  opacity: 0.72;
  animation: studioPulse 2.8s ease-in-out infinite;
}
.record-stack {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}
.record-stack div,
.studio-note,
.mini-metrics span {
  border: 1px solid rgba(31,55,55,0.11);
  border-radius: 13px;
  background: rgba(255,255,255,0.62);
}
.record-stack div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
}
.record-stack span,
.mini-metrics span,
.studio-note,
.decision-mini-row span,
.decision-mini-value span {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.record-stack b {
  font-size: 0.82rem;
}
.studio-note {
  margin-top: 13px;
  padding: 11px;
  color: var(--teal);
  text-transform: none;
  letter-spacing: 0;
}
.studio-orb {
  position: relative;
  height: 145px;
  margin-bottom: 16px;
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 50%, rgba(249,105,0,0.22) 0 12%, transparent 13%),
    conic-gradient(from 30deg, rgba(249,105,0,0.18), rgba(101,222,241,0.24), rgba(168,220,209,0.2), rgba(249,105,0,0.18));
  overflow: hidden;
}
.studio-orb::before,
.studio-orb::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(31,55,55,0.24);
  border-radius: 50%;
  animation: orbitSpin 12s linear infinite;
}
.studio-orb::after {
  inset: 43px;
  animation-duration: 8s;
  animation-direction: reverse;
}
.studio-orb i {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(249,105,0,0.12), 0 0 22px rgba(249,105,0,0.44);
}
.studio-orb i:nth-child(1) { left: 23%; top: 28%; }
.studio-orb i:nth-child(2) { left: 66%; top: 22%; background: var(--teal); box-shadow: 0 0 0 6px rgba(101,222,241,0.16), 0 0 22px rgba(101,222,241,0.48); }
.studio-orb i:nth-child(3) { left: 49%; top: 50%; width: 15px; height: 15px; }
.studio-orb i:nth-child(4) { left: 24%; top: 70%; background: var(--teal); box-shadow: 0 0 0 6px rgba(101,222,241,0.16), 0 0 22px rgba(101,222,241,0.48); }
.studio-orb i:nth-child(5) { left: 74%; top: 70%; }
.studio-orb i:nth-child(6) { left: 84%; top: 43%; background: var(--green); box-shadow: 0 0 0 6px var(--green-soft), 0 0 22px rgba(36,121,103,0.42); }
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}
.mini-metrics span {
  padding: 10px 8px;
  line-height: 1.2;
}
.mini-metrics b {
  display: block;
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.decision-card-mini {
  border-color: rgba(249,105,0,0.24);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,253,244,0.62)),
    radial-gradient(190px 120px at 100% 100%, rgba(249,105,0,0.16), transparent 70%);
}
.run-intervention {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--text);
  color: var(--surface);
  font-weight: 700;
  font-size: 0.86rem;
  transition: transform 0.22s, background 0.22s;
}
.run-intervention:hover {
  transform: translateY(-1px);
  background: var(--amber);
}
.studio-stagebar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 18px 0;
}
.studio-stagebar button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 15px;
  background: rgba(255,255,255,0.52);
  color: var(--muted);
  font-weight: 700;
  transition: transform 0.22s, border-color 0.22s, background 0.22s, color 0.22s;
}
.studio-stagebar button:hover,
.studio-stagebar button.active {
  transform: translateY(-1px);
  border-color: rgba(249,105,0,0.36);
  background: rgba(255,255,255,0.86);
  color: var(--text);
}
.studio-stagebar span {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--amber-soft);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}
.studio-readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 18px 18px;
}
.studio-readout div {
  min-width: 0;
  min-height: 76px;
  padding: 14px 15px;
  border: 1px solid rgba(31,55,55,0.11);
  border-radius: 16px;
  background: rgba(255,255,255,0.5);
}
.studio-readout span {
  display: block;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.studio-readout b {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.22;
}

.blindspot-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.62fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 38px;
  padding: clamp(16px, 2.2vw, 24px);
  border: 1px solid var(--line-3);
  border-radius: 26px;
  background:
    radial-gradient(480px 230px at 14% 12%, rgba(101,222,241,0.18), transparent 70%),
    radial-gradient(420px 220px at 86% 4%, rgba(249,105,0,0.15), transparent 70%),
    rgba(255,253,244,0.66);
  box-shadow: 0 30px 86px -70px rgba(22,37,35,0.66);
}
.truth-panel {
  min-width: 0;
  min-height: 280px;
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 21px;
  background: rgba(255,255,255,0.66);
  box-shadow: 0 22px 58px -50px rgba(22,37,35,0.6);
}
.truth-panel > span,
.truth-selector span,
.truth-result span,
.loop-detail > span {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.truth-panel h3 {
  margin-top: 12px;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}
.truth-meters {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.truth-meters div {
  display: grid;
  grid-template-columns: 80px 1fr 70px;
  gap: 10px;
  align-items: center;
}
.truth-meters b,
.truth-meters em {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-style: normal;
}
.truth-meters i {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(31,55,55,0.1);
  overflow: hidden;
}
.truth-meters i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}
.truth-selector {
  display: grid;
  gap: 10px;
  align-content: center;
}
.truth-selector button {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 12px;
  text-align: left;
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.54);
  font-weight: 700;
  line-height: 1.12;
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}
.truth-selector button:hover,
.truth-selector button.active {
  transform: translateY(-1px);
  border-color: rgba(249,105,0,0.38);
  background: rgba(255,255,255,0.88);
}
.truth-selector span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--amber-soft);
  letter-spacing: 0;
}
.orthanc-side {
  border-color: rgba(249,105,0,0.28);
  background:
    radial-gradient(240px 160px at 100% 0%, rgba(249,105,0,0.12), transparent 70%),
    rgba(255,255,255,0.72);
}
.orthanc-side p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 420px;
}
.truth-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 24px;
}
.truth-result div {
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 13px;
  background: rgba(255,255,255,0.62);
}
.truth-result span {
  color: var(--muted-2);
  letter-spacing: 0.08em;
}
.truth-result b {
  display: block;
  margin-top: 5px;
  font-size: 0.84rem;
  line-height: 1.16;
}
.blindspot-console.is-updating .orthanc-side,
.blindspot-console.is-updating .dashboard-side {
  animation: labUpdatePulse 0.42s var(--ease);
}

.operating-loop {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 14px;
  margin-top: 48px;
  padding: clamp(18px, 2.6vw, 30px);
  border: 1px solid var(--line-3);
  border-radius: 28px;
  background:
    radial-gradient(440px 260px at 50% 32%, rgba(249,105,0,0.14), transparent 68%),
    radial-gradient(520px 300px at 16% 0%, rgba(101,222,241,0.18), transparent 72%),
    rgba(255,253,244,0.68);
  overflow: hidden;
}
.operating-loop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31,55,55,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,55,55,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.loop-orbit {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(480px, 62vw);
  aspect-ratio: 1;
  border: 1px dashed rgba(31,55,55,0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbitSpin 24s linear infinite;
  pointer-events: none;
}
.loop-core,
.loop-step,
.loop-detail {
  position: relative;
  z-index: 1;
}
.loop-core {
  grid-column: 2 / 4;
  justify-self: center;
  display: grid;
  place-items: center;
  width: min(260px, 100%);
  min-height: 142px;
  padding: 22px;
  text-align: center;
  border: 1px solid rgba(249,105,0,0.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(249,105,0,0.14), transparent 58%),
    rgba(255,255,255,0.74);
  box-shadow: 0 28px 70px -56px rgba(249,105,0,0.7);
}
.loop-core span {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.loop-core b {
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.05;
}
.loop-step {
  display: grid;
  gap: 5px;
  min-height: 132px;
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.58);
  transition: transform 0.22s, border-color 0.22s, background 0.22s, box-shadow 0.22s;
}
.loop-step:hover,
.loop-step.active {
  transform: translateY(-2px);
  border-color: rgba(249,105,0,0.36);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 24px 58px -48px rgba(249,105,0,0.58);
}
.loop-step span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}
.loop-step b {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.05;
}
.loop-step em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.84rem;
}
.loop-detail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.56fr 1fr auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(31,55,55,0.11);
  border-radius: 19px;
  background: rgba(255,255,255,0.64);
}
.loop-detail h3 {
  font-size: clamp(1.24rem, 2vw, 1.7rem);
}
.loop-detail p {
  color: var(--muted);
}
.loop-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.loop-tags span {
  padding: 7px 9px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.68);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}
.operating-loop.is-updating .loop-detail {
  animation: labUpdatePulse 0.42s var(--ease);
}

@keyframes studioPacket {
  from { left: 0; opacity: 0; }
  10%, 90% { opacity: 1; }
  to { left: 100%; opacity: 0; }
}
@keyframes studioPulse {
  0%, 100% { transform: scale(0.96); opacity: 0.58; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

@media (max-width: 1100px) {
  .studio-body {
    grid-template-columns: 1fr;
  }
  .studio-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .rail-label {
    grid-column: 1 / -1;
  }
  .studio-canvas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }
  .studio-card {
    min-height: 0;
  }
  .studio-beam {
    display: none;
  }
  .blindspot-console {
    grid-template-columns: 1fr;
  }
  .truth-selector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .studio-topbar {
    align-items: flex-start;
  }
  .studio-topbar strong {
    display: none;
  }
  .studio-rail,
  .studio-canvas,
  .studio-stagebar,
  .studio-readout,
  .truth-selector,
  .truth-result,
  .operating-loop,
  .loop-detail {
    grid-template-columns: 1fr;
  }
  .studio-rail {
    padding: 14px;
  }
  .studio-canvas {
    padding: 14px;
  }
  .studio-card {
    border-radius: 18px;
  }
  .mini-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .blindspot-console,
  .operating-loop {
    border-radius: 22px;
  }
  .truth-panel {
    min-height: 0;
  }
  .truth-meters div {
    grid-template-columns: 72px 1fr 62px;
  }
  .loop-core {
    grid-column: auto;
    justify-self: stretch;
  }
  .loop-detail {
    align-items: start;
  }
  .loop-tags {
    justify-content: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-beam i,
  .studio-orb::before,
  .studio-orb::after,
  .evidence-card::after,
  .loop-orbit {
    animation: none !important;
  }
}

.system-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(42px, 0.28fr) minmax(180px, 1fr) minmax(140px, 0.74fr) minmax(42px, 0.28fr) minmax(190px, 1.05fr) minmax(170px, 0.9fr);
  gap: clamp(10px, 1.3vw, 16px);
  align-items: center;
  margin-top: 46px;
  padding: clamp(20px, 3.2vw, 34px);
  border: 1px solid var(--line-3);
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    radial-gradient(460px 260px at 22% 12%, rgba(101, 222, 241, 0.24), transparent 70%),
    radial-gradient(460px 260px at 78% 6%, rgba(249, 105, 0, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(255, 253, 244, 0.84), rgba(237, 246, 235, 0.7));
  box-shadow: 0 34px 90px -62px rgba(22, 37, 35, 0.7), inset 0 0 0 1px rgba(255,255,255,0.54);
  overflow: hidden;
}
.system-map > *:not(.system-map-bg) {
  position: relative;
  z-index: 1;
}
.system-map-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31,55,55,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,55,55,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 45%, black 0 48%, transparent 88%);
  pointer-events: none;
}
.system-column,
.system-core,
.decision-card {
  border: 1px solid rgba(31,55,55,0.13);
  border-radius: 20px;
  background: rgba(255,255,255,0.64);
  box-shadow: 0 22px 60px -48px rgba(22,37,35,0.62);
  backdrop-filter: blur(12px);
}
.system-column {
  padding: 18px;
}
.source-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.source-cloud span {
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  animation: sourcePulse 4.8s ease-in-out infinite;
}
.source-cloud span:nth-child(2) { animation-delay: 0.35s; }
.source-cloud span:nth-child(3) { animation-delay: 0.7s; }
.source-cloud span:nth-child(4) { animation-delay: 1.05s; }
.source-cloud span:nth-child(5) { animation-delay: 1.4s; }
.source-cloud span:nth-child(6) { animation-delay: 1.75s; }
.system-stream {
  position: relative;
  height: 52px;
  min-width: 42px;
}
.system-stream::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,105,0,0.58), rgba(36,121,103,0.46), transparent);
}
.system-stream i {
  position: absolute;
  top: calc(50% - 4px);
  left: -8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(249,105,0,0.12), 0 0 20px rgba(249,105,0,0.48);
  animation: packetMove 2.6s linear infinite;
  animation-delay: var(--d);
}
.stream-b i {
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(101,222,241,0.13), 0 0 20px rgba(101,222,241,0.5);
}
.system-core {
  min-height: 246px;
  padding: clamp(18px, 2.2vw, 24px);
  overflow: hidden;
}
.system-core h3,
.decision-card h3 {
  margin-top: 10px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: 0;
}
.system-core p,
.decision-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}
.core-ring {
  position: absolute;
  right: -42px;
  top: -42px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 1px solid rgba(249,105,0,0.18);
  box-shadow: inset 0 0 0 16px rgba(249,105,0,0.05), 0 0 70px rgba(249,105,0,0.13);
  animation: systemSpin 12s linear infinite;
}
.brain-system-core .core-ring {
  border-color: rgba(101,222,241,0.2);
  box-shadow: inset 0 0 0 16px rgba(101,222,241,0.08), 0 0 76px rgba(101,222,241,0.18);
}
.core-tags {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.core-tags span,
.approval-stack span {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.62);
  padding: 9px 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.25;
}
.approval-stack {
  display: grid;
  gap: 9px;
}
.approval-stack span {
  position: relative;
  padding-left: 28px;
}
.approval-stack span::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-soft);
  transform: translateY(-50%);
}
.brain-mini-readouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.brain-mini-readouts div,
.decision-metric {
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.42));
  padding: 12px;
}
.brain-mini-readouts b,
.decision-metric b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--amber);
}
.brain-mini-readouts span,
.decision-metric span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1.25;
}
.decision-card {
  padding: clamp(18px, 2vw, 24px);
}
.decision-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 50%, var(--amber) 0 18%, transparent 19%),
    linear-gradient(135deg, rgba(249,105,0,0.2), rgba(101,222,241,0.16));
  border: 1px solid rgba(249,105,0,0.26);
}
.decision-metric {
  margin-top: 16px;
}
.system-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.system-proof-strip div {
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.45);
  padding: 16px;
}
.system-proof-strip b {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}
.system-proof-strip span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.4;
}
@keyframes packetMove {
  0% { opacity: 0; transform: translateX(0) scale(0.8); }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(100% + 28px)) scale(1); }
}
@keyframes packetMoveY {
  0% { opacity: 0; transform: translate(-50%, -2px) scale(0.8); }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 46px) scale(1); }
}
@keyframes sourcePulse {
  0%, 100% { transform: translateY(0); border-color: rgba(31,55,55,0.12); }
  50% { transform: translateY(-2px); border-color: rgba(249,105,0,0.32); }
}
@keyframes systemSpin {
  to { transform: rotate(360deg); }
}
.system-grid,
.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}
.permission-grid {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
}
.system-card,
.permission-card {
  padding: clamp(24px, 3vw, 34px);
}
.system-card h3,
.permission-card h3 {
  margin-top: 10px;
  font-size: clamp(1.28rem, 1.8vw, 1.7rem);
  letter-spacing: -0.025em;
}
.system-card p,
.permission-card p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
}
.check-list,
.honest-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}
.check-list li,
.honest-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}
.check-list li::before,
.honest-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
}
.honest-list li::before {
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.system-line {
  margin-top: 26px;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}
.steps-seven {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  overflow-x: visible;
  padding-bottom: 10px;
}
.learning-grid .cap {
  min-height: 210px;
}
@media (max-width: 1180px) {
  .system-map {
    grid-template-columns: 1fr;
  }
  .system-stream {
    width: 100%;
    height: 44px;
  }
  .system-stream::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(249,105,0,0.58), rgba(36,121,103,0.46), transparent);
  }
  .system-stream i {
    left: 50%;
    top: 0;
    animation-name: packetMoveY;
  }
  .system-core {
    min-height: 0;
  }
  .permission-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .system-grid,
  .permission-grid { grid-template-columns: 1fr; }
  .steps-seven {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
  .system-proof-strip {
    grid-template-columns: 1fr;
  }
  .brain-mini-readouts {
    grid-template-columns: 1fr;
  }
  .system-map {
    gap: 10px;
    padding: 18px;
  }
  .system-column,
  .system-core,
  .decision-card {
    border-radius: 16px;
  }
  .system-core,
  .decision-card,
  .system-column {
    padding: 16px;
  }
  .source-cloud {
    gap: 6px;
  }
  .source-cloud span {
    padding: 7px 8px;
    font-size: 0.64rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .source-cloud span,
  .system-stream i,
  .core-ring {
    animation: none;
  }
}

/* ---------- STEPS (how it works) ---------- */
.decision-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 56px;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line-3);
  border-radius: calc(var(--radius-lg) + 6px);
  background:
    radial-gradient(520px 220px at 8% 10%, rgba(101,222,241,0.22), transparent 72%),
    radial-gradient(480px 220px at 88% 2%, rgba(249,105,0,0.16), transparent 72%),
    linear-gradient(180deg, rgba(255,253,244,0.78), rgba(237,246,235,0.62));
  box-shadow: 0 36px 96px -70px rgba(22,37,35,0.72), inset 0 0 0 1px rgba(255,255,255,0.6);
  overflow: hidden;
}
.decision-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31,55,55,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,55,55,0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 35%, black 0 52%, transparent 88%);
  pointer-events: none;
}
.flow-beam {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(249,105,0,0), rgba(249,105,0,0.76), rgba(101,222,241,0.76), rgba(249,105,0,0));
  box-shadow: 0 0 26px rgba(249,105,0,0.18);
  transform: translateY(-50%);
  animation: flowBeam 4.8s linear infinite;
  pointer-events: none;
}
.flow-node {
  position: relative;
  z-index: 1;
  min-height: 280px;
  padding: 22px 20px;
  border: 1px solid rgba(31,55,55,0.13);
  border-radius: 20px;
  background: rgba(255,255,255,0.68);
  box-shadow: 0 24px 64px -50px rgba(22,37,35,0.64);
  backdrop-filter: blur(14px);
}
.flow-node::after {
  content: "";
  position: absolute;
  right: -17px;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 7px rgba(249,105,0,0.11), 0 0 22px rgba(249,105,0,0.36);
  transform: translateY(-50%);
}
.flow-node:last-of-type::after {
  display: none;
}
.flow-no {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--amber);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}
.flow-icon {
  width: 34px;
  height: 34px;
  margin-top: 24px;
  color: var(--amber);
}
.flow-node h3 {
  margin-top: 24px;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  letter-spacing: -0.02em;
}
.flow-node p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.35;
}
.flow-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}
.flow-tags span {
  padding: 6px 8px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}
.decision-ticket {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(249,105,0,0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(249,105,0,0.1), rgba(255,255,255,0.62));
}
.decision-ticket b,
.decision-ticket span {
  display: block;
}
.decision-ticket b {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.decision-ticket span {
  margin-top: 2px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}
.flow-side {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.48);
}
.flow-side span {
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.flow-side b {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.25;
}
.flow-gap {
  grid-column: 1 / 3;
}
.flow-loop {
  grid-column: 3 / 5;
}
@keyframes flowBeam {
  to { filter: hue-rotate(18deg); background-position: 220px 0; }
}

.steps { display: grid; gap: 20px; grid-template-columns: repeat(5, 1fr); margin-top: 56px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; position: relative; min-height: 230px; display: flex; flex-direction: column;
  z-index: 1;
}
.step .stepno {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--bg);
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--amber); font-weight: 600; margin-bottom: 20px;
}
.step h4 { font-size: 1.06rem; letter-spacing: -0.015em; margin-bottom: 10px; }
.step p { font-size: 0.86rem; color: var(--muted); margin-top: auto; }
.step .step-ico { color: var(--amber); margin-bottom: 18px; }
.step .step-ico svg { width: 26px; height: 26px; }
.step::before {
  content: "";
  position: absolute;
  right: -26px;
  top: 50%;
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(249,105,0,0.18), rgba(249,105,0,0.92), rgba(101,222,241,0.86), rgba(249,105,0,0.18));
  background-size: 220% 100%;
  box-shadow: 0 0 12px rgba(249,105,0,0.24);
  opacity: 0.9;
  transform: translateY(-50%);
  z-index: 3;
  animation: stepConnectorFlow 2.2s linear infinite;
}
.step::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  transform: translateY(-50%) rotate(45deg);
  z-index: 4;
  filter: drop-shadow(0 0 7px rgba(249,105,0,0.32));
  animation: stepArrowLead 2.2s ease-in-out infinite;
}
.step:hover { z-index: 3; }
.step:hover::before,
.step:hover::after { animation-duration: 1.15s; }
.step:nth-child(2)::before,
.step:nth-child(2)::after { animation-delay: 0.12s; }
.step:nth-child(3)::before,
.step:nth-child(3)::after { animation-delay: 0.24s; }
.step:nth-child(4)::before,
.step:nth-child(4)::after { animation-delay: 0.36s; }
.step:last-child::before,
.step:last-child::after { display: none; }
@keyframes stepConnectorFlow {
  0% { opacity: 0.34; background-position: -30px 0; }
  42% { opacity: 0.9; }
  100% { opacity: 0.34; background-position: 30px 0; }
}
@keyframes stepArrowLead {
  0%, 100% { opacity: 0.58; transform: translate(-3px, -50%) rotate(45deg); }
  50% { opacity: 1; transform: translate(2px, -50%) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
  .step::before,
  .step::after { animation: none; }
  .flow-beam {
    animation: none;
  }
  .brain-orbit,
  .brain-signal,
  .brain-phase i {
    animation: none !important;
  }
}

@media (max-width: 1040px) {
  .decision-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flow-beam {
    display: none;
  }
  .flow-node::after {
    display: none;
  }
  .flow-gap,
  .flow-loop {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .decision-flow {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
  }
  .flow-node {
    min-height: 0;
    padding: 18px;
  }
  .flow-icon,
  .flow-node h3 {
    margin-top: 16px;
  }
  .flow-tags {
    margin-top: 16px;
  }
}

/* ---------- BRAIN ENGINE pipeline ---------- */
.brain-forge {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: stretch;
  margin-top: 52px;
  min-height: clamp(500px, 58vw, 680px);
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 58% 49%, rgba(255,255,255,0.86), transparent 22%),
    radial-gradient(circle at 78% 34%, rgba(101, 222, 241, 0.22), transparent 31%),
    radial-gradient(circle at 58% 78%, rgba(34,108,93,0.12), transparent 35%),
    radial-gradient(circle at 18% 12%, rgba(249, 105, 0, 0.13), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,0.82), rgba(168,220,209,0.22) 48%, rgba(255,255,255,0.58));
  overflow: hidden;
  box-shadow: 0 36px 90px -64px rgba(22,37,35,0.64), inset 0 0 0 1px rgba(255,255,255,0.55);
  isolation: isolate;
}
.brain-forge::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31,55,55,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,55,55,0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 72% 48%, black 0 42%, transparent 72%);
  pointer-events: none;
  z-index: -1;
}
.brain-forge::after {
  content: "";
  position: absolute;
  inset: auto 10% -35% 38%;
  height: 48%;
  background: radial-gradient(ellipse, rgba(249,105,0,0.18), transparent 64%);
  filter: blur(28px);
  pointer-events: none;
  z-index: -1;
}
.brain-copy {
  align-self: center;
  max-width: 420px;
  min-width: 0;
}
.brain-copy .h3 {
  margin-top: 12px;
  font-size: clamp(1.45rem, 2.4vw, 2.12rem);
  line-height: 1.08;
}
.brain-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.68;
}
.brain-readouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.brain-readouts div {
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid rgba(31,55,55,0.13);
  border-radius: 12px;
  background: rgba(255,255,255,0.58);
}
.brain-readouts b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.brain-readouts span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.35;
  color: var(--muted-2);
  overflow-wrap: anywhere;
}
.brain-stage {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 8px);
  --brain-formed: 0;
  --brain-exit: 0;
}
.brain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.brain-stage::before {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  width: min(42vw, 380px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(calc(0.78 + var(--brain-formed) * 0.2));
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(249,105,0,0.2), transparent 26%),
    conic-gradient(from 90deg, rgba(101,222,241,0), rgba(101,222,241,0.3), rgba(249,105,0,0.24), rgba(101,222,241,0));
  opacity: calc(0.08 + var(--brain-formed) * 0.42);
  filter: blur(8px);
  mix-blend-mode: multiply;
  pointer-events: none;
  animation: coreSpin 13s linear infinite;
}
.brain-stage::after {
  content: "";
  position: absolute;
  inset: 11% 4% 10% 9%;
  border-radius: 50%;
  border: 1px solid rgba(101,222,241,0.16);
  opacity: calc(0.24 + var(--brain-formed) * 0.4);
  transform: rotate(-8deg) scaleX(1.18);
  pointer-events: none;
}
@keyframes coreSpin {
  to { rotate: 360deg; }
}
.brain-core-label {
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 9px 13px;
  border: 1px solid rgba(249,105,0,0.34);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  color: var(--text);
  box-shadow: 0 18px 44px -28px rgba(249,105,0,0.82), 0 0 0 1px rgba(255,255,255,0.46) inset;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  opacity: calc(0.64 + var(--brain-formed) * 0.36);
}
.brain-core-readout {
  position: absolute;
  left: 54%;
  top: calc(50% + 48px);
  z-index: 3;
  display: grid;
  gap: 4px;
  min-width: 142px;
  padding: 9px 12px;
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.66);
  box-shadow: 0 16px 42px -30px rgba(22,37,35,0.64), inset 0 0 0 1px rgba(255,255,255,0.44);
  transform: translate(-50%, calc(var(--brain-lift, 10px) * 0.32));
  opacity: calc(0.08 + var(--brain-formed) * 0.82);
  pointer-events: none;
  backdrop-filter: blur(10px);
}
.brain-core-readout span,
.brain-core-readout b {
  display: block;
  text-align: center;
}
.brain-core-readout span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.brain-core-readout b {
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.1;
}
.brain-orbit {
  position: absolute;
  left: 54%;
  top: 50%;
  width: min(48vw, 430px);
  aspect-ratio: 1;
  border-radius: 44% 56% 48% 52%;
  border: 1px solid rgba(101,222,241,0.18);
  opacity: calc(0.06 + var(--brain-formed) * 0.36);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--orbit-angle, 0deg)) scale(var(--orbit-scale, 1));
  animation: brainOrbit 18s linear infinite;
}
.brain-orbit::before,
.brain-orbit::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(249,105,0,0.45);
}
.brain-orbit::before { left: 11%; top: 28%; }
.brain-orbit::after { right: 16%; bottom: 20%; background: var(--aqua); box-shadow: 0 0 18px rgba(101,222,241,0.5); }
.brain-orbit-b {
  --orbit-angle: 68deg;
  --orbit-scale: 0.82;
  animation-duration: 24s;
  animation-direction: reverse;
}
.brain-orbit-c {
  --orbit-angle: -42deg;
  --orbit-scale: 0.58;
  border-color: rgba(249,105,0,0.2);
  animation-duration: 15s;
}
@keyframes brainOrbit {
  to { rotate: 360deg; }
}
.brain-lattice {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: calc(0.02 + var(--brain-formed) * 0.96);
}
.brain-lattice::before,
.brain-lattice::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  width: min(34vw, 286px);
  height: min(20vw, 170px);
  border: 1px solid rgba(31,55,55,0.11);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
}
.brain-lattice::after {
  width: min(26vw, 220px);
  height: min(30vw, 252px);
  transform: translate(-50%, -50%) rotate(18deg);
  border-color: rgba(101,222,241,0.18);
}
.brain-node {
  position: absolute;
  z-index: 4;
  display: grid;
  min-width: 78px;
  gap: 1px;
  padding: 8px 10px;
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 13px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 18px 42px -32px rgba(22,37,35,0.7);
  color: var(--text);
  transform: translate3d(0, calc(var(--brain-lift, 10px) * 0.42), 0);
  backdrop-filter: blur(10px);
}
.brain-node::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 16px rgba(249,105,0,0.5);
}
.brain-node b,
.brain-node em {
  display: block;
  padding-left: 14px;
  font-style: normal;
  line-height: 1.1;
}
.brain-node b {
  font-size: 0.76rem;
}
.brain-node em {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.node-value { left: 36%; top: 30%; }
.node-state { right: 23%; top: 32%; }
.node-risk { left: 35%; bottom: 31%; }
.node-action { right: 22%; bottom: 29%; }
.node-state::before,
.node-action::before { background: var(--aqua); box-shadow: 0 0 16px rgba(101,222,241,0.5); }
.brain-microgrid {
  position: absolute;
  left: 54%;
  top: 50%;
  z-index: 1;
  width: min(42vw, 358px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: calc(0.04 + var(--brain-formed) * 0.36);
  pointer-events: none;
}
.brain-microgrid i {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(31,55,55,0.15), transparent);
  left: calc(18% + var(--i, 0) * 12%);
  transform: rotate(calc(-26deg + var(--i, 0) * 10deg));
}
.brain-microgrid i:nth-child(1) { --i: 0; }
.brain-microgrid i:nth-child(2) { --i: 1; }
.brain-microgrid i:nth-child(3) { --i: 2; }
.brain-microgrid i:nth-child(4) { --i: 3; }
.brain-microgrid i:nth-child(5) { --i: 4; }
.brain-microgrid i:nth-child(6) { --i: 5; }
.brain-hud,
.brain-phase {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(31,55,55,0.13);
  border-radius: 12px;
  background: rgba(255,255,255,0.68);
  box-shadow: 0 20px 46px -34px rgba(22,37,35,0.72), inset 0 0 0 1px rgba(255,255,255,0.42);
  color: var(--muted);
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.brain-hud {
  flex-direction: column;
  align-items: flex-start;
  min-width: 124px;
  padding: 10px 12px;
  opacity: calc(0.2 + var(--brain-formed) * 0.78);
  transform: translateY(var(--brain-lift, 10px));
}
.brain-hud span,
.brain-phase span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.brain-hud b {
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}
.brain-hud-a { left: 4%; top: 37%; }
.brain-hud-b { right: 4%; top: 35%; }
.brain-hud-c { left: 8%; bottom: 25%; }
.brain-hud-d { right: 8%; bottom: 24%; }
.brain-hud-e { left: 42%; top: 8%; }
.brain-phase {
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  min-height: 34px;
  padding: 8px 12px;
  opacity: calc(0.3 + var(--brain-formed) * 0.7);
  white-space: nowrap;
}
.brain-phase i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(249,105,0,0.42);
  animation: brainPulse 1.6s ease-out infinite;
}
@keyframes brainPulse {
  70% { box-shadow: 0 0 0 9px rgba(249,105,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(249,105,0,0); }
}
.brain-signal {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 30px;
  padding: 7px 12px;
  border: 1px solid rgba(31,55,55,0.13);
  border-radius: 999px;
  background: rgba(255,255,255,0.74);
  color: var(--muted);
  box-shadow: 0 16px 38px -28px rgba(22,37,35,0.7);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  pointer-events: none;
  animation: signalFloat 5.5s ease-in-out infinite;
}
.sig-usage { left: 5%; top: 14%; animation-delay: -0.7s; }
.sig-billing { right: 5%; top: 15%; animation-delay: -2.1s; }
.sig-support { left: 7%; bottom: 12%; animation-delay: -3.2s; }
.sig-crm { right: 9%; bottom: 13%; animation-delay: -1.2s; }
.sig-docs { left: 31%; top: 5%; animation-delay: -4.4s; }
.sig-founder { left: 20%; top: 67%; animation-delay: -5.1s; }
.sig-renewal { right: 28%; top: 6%; animation-delay: -2.8s; }
.sig-events { left: 22%; top: 18%; animation-delay: -1.7s; }
.sig-outcomes { right: 28%; bottom: 8%; animation-delay: -4.8s; }
@keyframes signalFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

.pipeline {
  display: flex; align-items: stretch; gap: 0; margin-top: 44px;
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); overflow-x: auto;
  position: relative;
}
.pnode { flex: 1 1 0; min-width: 120px; text-align: center; position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 6px; }
.pnode .orb {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid var(--line-3); background: var(--surface-2); color: var(--muted-2);
  transition: all 0.5s var(--ease); position: relative; z-index: 2;
}
.pnode .orb svg { width: 24px; height: 24px; }
.pnode .ptitle { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--muted-2); transition: color 0.5s; line-height: 1.3; }
.pnode .psub { font-size: 0.74rem; color: var(--faint); transition: color 0.5s; }
.pnode .connector {
  position: absolute;
  top: 26px;
  left: calc(50% + 36px);
  z-index: 1;
  width: calc(100% - 72px);
  height: 18px;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(22,37,35,0.18), rgba(22,37,35,0.07))
    left 50% / calc(100% - 9px) 2px no-repeat;
}
.pnode .connector::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: calc(100% - 9px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--teal), var(--amber));
  background-size: 180% 100%;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease);
}
.pnode .connector::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1px;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgba(22,37,35,0.22);
  border-right: 2px solid rgba(22,37,35,0.22);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.55;
  transition:
    border-color 0.35s var(--ease),
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.pnode:last-child .connector { display: none; }
.pnode.lit .orb { border-color: rgba(249,105,0,0.45); background: var(--amber-soft); color: var(--amber); box-shadow: 0 0 24px -10px rgba(249,105,0,0.72); transform: translateY(-2px); }
.pnode.lit .ptitle { color: var(--text); }
.pnode.lit .psub { color: var(--muted); }
.pnode.lit .connector::before {
  transform: translateY(-50%) scaleX(1);
  animation: connectorFlow 1.8s linear infinite;
}
.pnode.lit .connector::after {
  border-color: var(--teal);
  opacity: 1;
  transform: translate(2px, -50%) rotate(45deg);
  animation: arrowLead 1.8s ease-in-out infinite;
}

@keyframes connectorFlow {
  to { background-position: -180% 0; }
}

@keyframes arrowLead {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 8px rgba(101,222,241,0.8)); }
}

/* brain capability grid */
.cap-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.cap {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  background: var(--surface); transition: border-color 0.3s, transform 0.3s;
}
.cap:hover { border-color: var(--line-3); transform: translateY(-2px); }
.cap .cap-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); margin-bottom: 16px; }
.cap .cap-ico svg { width: 19px; height: 19px; }
.cap h4 { font-size: 1.02rem; margin-bottom: 8px; letter-spacing: -0.015em; }
.cap p { font-size: 0.86rem; color: var(--muted); }

/* charts panel */
.chart-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 28px; }
.chart-panel .ch-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.chart-legend i { width: 10px; height: 3px; border-radius: 2px; }
.svg-chart { width: 100%; height: auto; overflow: visible; }
.svg-chart .axis { stroke: var(--line); stroke-width: 1; }
.svg-chart .gl { stroke: var(--line-2); stroke-width: 1; }
.svg-chart text { font-family: var(--font-mono); font-size: 10px; fill: var(--muted-2); }
.svg-chart .gap-arrow {
  stroke: var(--amber);
  stroke-width: 1.7;
  stroke-dasharray: 2 3;
  opacity: 0.95;
}
.svg-chart .gap-cap {
  stroke: var(--amber);
  stroke-width: 1.3;
  opacity: 0.8;
}
.svg-chart .gap-label {
  fill: var(--amber);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.svg-chart .gap-sub {
  fill: var(--muted);
  font-size: 8px;
}
.chart-explain {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(249,105,0,0.24);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--amber-soft), rgba(255,255,255,0.42));
}
.chart-explain b {
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.chart-explain span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* latent state viz */
.latent { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 28px; position: relative; overflow: hidden; }
.latent .poles { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; }
.latent .pole-churn { color: #9e3100; }
.latent .pole-value { color: #226c5d; }
.latent .track { position: relative; height: 4px; border-radius: 100px; margin: 38px 0 18px; background: linear-gradient(90deg, var(--red), var(--surface-3) 45%, var(--surface-3) 55%, var(--green)); }
.latent .tick { position: absolute; top: -7px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--bg); transform: translateX(-50%); transition: left 1.2s var(--ease); }
.latent .acctline { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 0.84rem; }
.latent .acctline .nm { display: flex; align-items: center; gap: 10px; }
.latent .trend { font-family: var(--font-mono); font-size: 0.72rem; }
.trend.down { color: #9e3100; }
.trend.up { color: #226c5d; }

/* ---------- OPERATIONS FEED ---------- */
.ops-section {
  overflow: hidden;
}
.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}
.ops-copy .h2 {
  margin-top: 18px;
  max-width: 720px;
}
.ops-copy .lead {
  margin-top: 20px;
  max-width: 610px;
}
.ops-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
}
.ops-stats div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.64), rgba(237,246,235,0.44));
}
.ops-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 2.3rem);
  line-height: 1;
  letter-spacing: 0;
}
.ops-stats span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--muted-2);
}
.operations-feed {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-3);
  border-radius: calc(var(--radius-lg) + 2px);
  background:
    radial-gradient(380px 220px at 92% 0%, rgba(249,105,0,0.14), transparent 70%),
    radial-gradient(420px 240px at 8% 4%, rgba(101,222,241,0.16), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,253,244,0.7));
  box-shadow: 0 34px 86px -56px rgba(22,37,35,0.7), inset 0 0 0 1px rgba(255,255,255,0.48);
}
.operations-feed::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31,55,55,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,55,55,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}
.ops-feed-head,
.ops-list {
  position: relative;
}
.ops-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.ops-feed-head span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.ops-feed-head b {
  display: block;
  margin-top: 4px;
  font-size: 1.02rem;
}
.ops-live {
  flex: none;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.66);
  color: var(--text) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-family: var(--font-body) !important;
  font-size: 0.82rem !important;
}
.ops-live i,
.ops-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}
.ops-live i {
  box-shadow: 0 0 0 0 rgba(36,121,103,0.44);
  animation: opsPulse 1.8s ease-out infinite;
}
.ops-list {
  display: grid;
  overflow: hidden;
  padding: 8px 24px 20px;
}
.ops-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 66px;
  max-height: 124px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
  overflow: hidden;
  transform-origin: top center;
  transition:
    opacity 0.52s var(--ease-out),
    transform 0.52s var(--ease-out),
    max-height 0.52s var(--ease-out),
    min-height 0.52s var(--ease-out),
    padding 0.52s var(--ease-out),
    border-color 0.52s var(--ease-out);
  will-change: opacity, transform, max-height;
}
.ops-item:last-child {
  border-bottom: none;
}
.ops-item b {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
}
.ops-item span:not(.ops-dot) {
  display: block;
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.35;
}
.ops-item strong {
  justify-self: end;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.ops-item.is-new {
  animation: opsSoftGlow 1.3s ease-out both;
}
.ops-item.entering {
  opacity: 0;
  min-height: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
  transform: translateY(-18px) scale(0.992);
}
.ops-item.exiting {
  opacity: 0;
  min-height: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
  transform: translateY(14px) scale(0.992);
}
.ops-item.tone-green .ops-dot,
.ops-item.tone-green strong { color: #226c5d; background: #37a07b; }
.ops-item.tone-green strong { background: transparent; }
.ops-item.tone-blue .ops-dot,
.ops-item.tone-blue strong { color: var(--teal); background: var(--aqua); }
.ops-item.tone-blue strong { background: transparent; }
.ops-item.tone-amber .ops-dot,
.ops-item.tone-amber strong { color: var(--amber); background: var(--amber); }
.ops-item.tone-amber strong { background: transparent; }
.ops-item.tone-red .ops-dot,
.ops-item.tone-red strong { color: #9e3100; background: var(--red); }
.ops-item.tone-red strong { background: transparent; }
@keyframes opsPulse {
  70% { box-shadow: 0 0 0 10px rgba(36,121,103,0); }
  100% { box-shadow: 0 0 0 0 rgba(36,121,103,0); }
}
@keyframes opsSoftGlow {
  0% { background: rgba(249,105,0,0.14); }
  58% { background: rgba(101,222,241,0.07); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .ops-item {
    transition: none;
    animation: none;
  }
}

/* ---------- COMPARISON ---------- */
.compare { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 48px; background: var(--surface); }
.compare-head { display: grid; grid-template-columns: 1.3fr 1fr 1fr; }
.compare-head > div { padding: 22px 24px; }
.compare-head .col-them { border-left: 1px solid var(--line); }
.compare-head .col-us { border-left: 1px solid var(--line); background: linear-gradient(180deg, var(--amber-soft), transparent); position: relative; }
.compare-head h4 { font-size: 1.05rem; }
.compare-head .col-us h4 { color: var(--amber); }
.compare-head .lbl { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.compare-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; border-top: 1px solid var(--line); }
.compare-row > div { padding: 17px 24px; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.compare-row .col-feat { color: var(--muted); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; }
.compare-row .col-them { border-left: 1px solid var(--line); color: var(--muted-2); }
.compare-row .col-us { border-left: 1px solid var(--line); background: rgba(249,105,0,0.06); color: var(--text); font-weight: 500; }
.compare-row svg { width: 16px; height: 16px; flex: none; }
.ic-x { color: var(--muted-2); }
.ic-check { color: var(--amber); }

@media (max-width: 760px) {
  .chart-explain {
    grid-template-columns: 1fr;
  }
  .compare-head, .compare-row { grid-template-columns: 1fr; }
  .compare-head .col-them, .compare-head .col-us, .compare-row .col-them, .compare-row .col-us { border-left: none; border-top: 1px solid var(--line); }
  .compare-row .col-feat { font-size: 0.82rem; }
}

@media (max-width: 980px) {
  .ops-grid {
    grid-template-columns: 1fr;
  }
  .operations-feed {
    max-width: 760px;
  }
}
@media (max-width: 600px) {
  .ops-stats {
    grid-template-columns: 1fr;
  }
  .ops-feed-head {
    align-items: center;
    flex-direction: row;
  }
  .ops-list {
    padding-inline: 18px;
  }
  .ops-item {
    grid-template-columns: 12px minmax(0, 1fr);
  }
  .ops-item strong {
    grid-column: 2;
    justify-self: start;
  }
}

/* ---------- USE CASES ---------- */
.usecase-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.usecase { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); transition: border-color 0.3s, transform 0.3s; }
.usecase:hover { border-color: var(--line-3); transform: translateY(-3px); }
.usecase .uc-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 18px; background: var(--surface-3); color: var(--amber); border: 1px solid var(--line-3); }
.usecase .uc-ico svg { width: 20px; height: 20px; }
.usecase h4 { font-size: 1.05rem; margin-bottom: 9px; letter-spacing: -0.015em; }
.usecase p { font-size: 0.88rem; color: var(--muted); }

/* ---------- SECURITY ---------- */
.sec-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.sec-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); display: flex; gap: 14px; }
.sec-item .si-ico { width: 36px; height: 36px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.sec-item .si-ico svg { width: 18px; height: 18px; }
.sec-item h4 { font-size: 0.97rem; margin-bottom: 6px; }
.sec-item p { font-size: 0.84rem; color: var(--muted); }
.sec-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.cert {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); flex: 1 1 200px;
}
.cert .cert-mark { width: 38px; height: 38px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-3); color: var(--amber); font-family: var(--font-mono); font-size: 0.58rem; font-weight: 600; text-align: center; line-height: 1.15; }
.cert .cert-t { font-size: 0.86rem; font-weight: 600; }
.cert .cert-s { font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted-2); }

/* ---------- PRICING ---------- */
.pricing-calculator {
  --calc-progress: 10%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-3);
  border-radius: calc(var(--radius-lg) + 4px);
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(420px 220px at 12% 4%, rgba(101,222,241,0.2), transparent 68%),
    radial-gradient(420px 220px at 88% 0%, rgba(249,105,0,0.16), transparent 66%),
    linear-gradient(135deg, rgba(255,253,244,0.92), rgba(237,246,235,0.82));
  box-shadow: 0 34px 90px -62px rgba(22,37,35,0.72), inset 0 0 0 1px rgba(255,255,255,0.56);
}
.pricing-calculator::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31,55,55,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,55,55,0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 24%, black 0 42%, transparent 82%);
  pointer-events: none;
}
.pricing-calculator > * {
  position: relative;
}
.pc-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: clamp(18px, 4vw, 42px);
  align-items: end;
}
.pc-copy {
  max-width: 700px;
}
.pc-copy h2 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 3.2vw, 2.72rem);
  line-height: 1.04;
  letter-spacing: 0;
}
.pc-copy p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.62;
}
.pc-verdict {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 20px;
  border: 1px solid rgba(249,105,0,0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(249,105,0,0.08));
  box-shadow: 0 22px 58px -42px rgba(249,105,0,0.7);
}
.pc-verdict span,
.pc-verdict small,
.pc-metrics span,
.pc-scale,
.pc-tier-rail small {
  font-family: var(--font-mono);
}
.pc-verdict span {
  color: var(--amber);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pc-verdict strong {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.02;
  letter-spacing: 0;
}
.pc-verdict small {
  color: var(--muted-2);
  font-size: 0.74rem;
}
.pc-control {
  margin-top: clamp(26px, 4vw, 42px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.54);
}
.pc-range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.pc-range-head label {
  font-weight: 700;
}
.pc-range-head output {
  min-width: 96px;
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
  color: var(--amber);
}
.pc-control input[type="range"] {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(90deg, var(--amber) 0 var(--calc-progress), rgba(31,55,55,0.12) var(--calc-progress) 100%);
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(31,55,55,0.08);
}
.pc-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: var(--amber);
  box-shadow: 0 10px 24px -12px rgba(249,105,0,0.9), 0 0 0 1px rgba(31,55,55,0.1);
}
.pc-control input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  background: var(--amber);
  box-shadow: 0 10px 24px -12px rgba(249,105,0,0.9), 0 0 0 1px rgba(31,55,55,0.1);
}
.pc-control input[type="range"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(249,105,0,0.16), inset 0 0 0 1px rgba(31,55,55,0.08);
}
.pc-scale {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 0.7rem;
}
.pc-tier-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.pc-tier-rail span {
  min-width: 0;
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.46);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pc-tier-rail b {
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.pc-tier-rail small {
  color: var(--muted-2);
  font-size: 0.66rem;
}
.pc-tier-rail span.active {
  border-color: rgba(249,105,0,0.42);
  background: linear-gradient(180deg, rgba(249,105,0,0.14), rgba(255,255,255,0.64));
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -34px rgba(249,105,0,0.74);
}
.pc-result {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  margin-top: 18px;
}
.pc-plan,
.pc-metrics {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.58);
}
.pc-plan {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}
.pc-plan p {
  color: var(--muted);
  line-height: 1.55;
}
.pc-plan .btn {
  align-self: flex-start;
}
.pc-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}
.pc-metrics div {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.pc-metrics div:nth-child(3n) {
  border-right: none;
}
.pc-metrics div:nth-last-child(-n + 3) {
  border-bottom: none;
}
.pc-metrics span {
  color: var(--muted-2);
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.35;
}
.pc-metrics strong {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.5rem);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.billing-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}
.billing-head h2 {
  margin-top: 12px;
}
.billing-head p {
  max-width: 560px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}
.billing-toggle {
  display: inline-flex;
  flex: none;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line-3);
  border-radius: 14px;
  background: rgba(255,253,244,0.72);
  box-shadow: 0 18px 42px -34px rgba(22,37,35,0.55);
}
.billing-toggle button {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  transition: background 0.22s var(--ease), color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.billing-toggle button span {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}
.billing-toggle button.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 12px 28px -22px rgba(22,37,35,0.72), inset 0 0 0 1px rgba(249,105,0,0.16);
}
.price-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 48px; align-items: stretch; }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  background: var(--surface); position: relative; display: flex; flex-direction: column;
  height: 100%;
}
.plan.featured { border-color: rgba(249,105,0,0.45); background: linear-gradient(180deg, rgba(249,105,0,0.08), var(--surface) 40%); box-shadow: 0 30px 70px -42px rgba(249,105,0,0.48); }
.plan .plan-tag { position: absolute; top: -11px; left: 30px; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; background: var(--amber); color: #2a1c05; font-weight: 600; }
.plan .plan-name { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: -0.02em; }
.plan .plan-for { font-size: 0.84rem; color: var(--muted-2); margin-top: 6px; min-height: 38px; }
.plan .plan-price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 4px; }
.plan .plan-price .amt { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: -0.03em; }
.plan .plan-price .per { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted-2); }
.plan .billing-note {
  min-height: 1.25em;
  margin: 0 0 7px;
  color: var(--amber-strong);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.plan .plan-note { font-size: 0.8rem; color: var(--muted-2); margin-bottom: 24px; }
.plan .divider { margin: 4px 0 22px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }
.plan li { display: block; position: relative; padding-left: 28px; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.plan li svg { position: absolute; left: 0; top: 2px; width: 17px; height: 17px; color: var(--amber); }
.plan li b { color: var(--text); font-weight: 600; }
.plan .btn { margin-top: auto; }
.term-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  border-bottom: 1px dotted rgba(249, 105, 0, 0.54);
  cursor: help;
  outline: none;
}
.plan-note .term-tip {
  color: var(--muted-2);
}
.term-tip::after {
  content: "i";
  width: 15px;
  height: 15px;
  border: 1px solid rgba(249, 105, 0, 0.5);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  background: rgba(249, 105, 0, 0.08);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  line-height: 1;
  font-weight: 700;
  transform: translateY(-1px);
}
.term-tip::before {
  content: attr(data-info);
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(248px, calc(100vw - 48px));
  padding: 10px 12px;
  border: 1px solid rgba(249, 105, 0, 0.34);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--muted);
  box-shadow: 0 20px 48px -30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.term-tip:hover::before,
.term-tip:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}
.term-tip:focus-visible::after {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(249, 105, 0, 0.16);
}
.plan:nth-child(3n) .term-tip::before {
  left: auto;
  right: 0;
  transform: translate(0, 8px);
}
.plan:nth-child(3n) .term-tip:hover::before,
.plan:nth-child(3n) .term-tip:focus-visible::before {
  transform: translate(0, 0);
}
.plan:nth-child(3n+1) .term-tip::before {
  left: 0;
  transform: translate(0, 8px);
}
.plan:nth-child(3n+1) .term-tip:hover::before,
.plan:nth-child(3n+1) .term-tip:focus-visible::before {
  transform: translate(0, 0);
}

@media (max-width: 980px) {
  .punch-grid, .cap-grid, .usecase-grid, .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .brain-forge {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .brain-copy {
    max-width: 680px;
  }
  .brain-stage {
    min-height: clamp(390px, 64vw, 520px);
  }
  .brain-hud-e {
    left: 34%;
  }
  .node-value { left: 31%; }
  .node-state { right: 17%; }
  .node-risk { left: 30%; }
  .node-action { right: 16%; }
  .sig-founder,
  .sig-outcomes {
    display: none;
  }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .billing-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .billing-toggle {
    width: 100%;
    max-width: 460px;
  }
  .billing-toggle button {
    flex: 1;
  }
  .pc-header,
  .pc-result {
    grid-template-columns: 1fr;
  }
  .pc-verdict {
    min-height: 0;
  }
  .pc-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pc-metrics div:nth-child(3n) {
    border-right: 1px solid var(--line-2);
  }
  .pc-metrics div:nth-child(2n) {
    border-right: none;
  }
  .pc-metrics div:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--line-2);
  }
  .pc-metrics div:nth-last-child(-n + 2) {
    border-bottom: none;
  }
  .plan .term-tip::before {
    width: min(210px, calc(100vw - 56px));
    left: 50%;
    right: auto;
    transform: translate(-50%, 8px);
  }
  .plan .term-tip:hover::before,
  .plan .term-tip:focus-visible::before {
    transform: translate(-50%, 0);
  }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::before,
  .step::after { display: none; }
}
@media (max-width: 600px) {
  .punch-grid, .cap-grid, .usecase-grid, .sec-grid, .steps { grid-template-columns: 1fr; }
  .pricing-calculator {
    padding: 20px;
  }
  .pc-range-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .pc-range-head output {
    min-width: 0;
    text-align: left;
  }
  .pc-scale {
    font-size: 0.62rem;
  }
  .pc-tier-rail {
    grid-template-columns: 1fr;
  }
  .pc-tier-rail span {
    min-height: 0;
  }
  .pc-metrics {
    grid-template-columns: 1fr;
  }
  .pc-metrics div,
  .pc-metrics div:nth-child(2n),
  .pc-metrics div:nth-child(3n),
  .pc-metrics div:nth-last-child(-n + 2),
  .pc-metrics div:nth-last-child(-n + 3) {
    border-right: none;
    border-bottom: 1px solid var(--line-2);
  }
  .pc-metrics div:last-child {
    border-bottom: none;
  }
  .pc-plan .btn {
    width: 100%;
  }
  .brain-forge {
    padding: 22px;
  }
  .brain-readouts {
    grid-template-columns: 1fr;
  }
  .brain-stage {
    min-height: 330px;
  }
  .brain-core-label {
    font-size: 0.64rem;
  }
  .brain-hud {
    min-width: 0;
    padding: 8px 9px;
  }
  .brain-hud span,
  .brain-phase span {
    font-size: 0.55rem;
  }
  .brain-hud b {
    font-size: 0.7rem;
  }
  .brain-hud-a { left: 4%; top: 44%; }
  .brain-hud-b { right: 4%; top: 44%; }
  .brain-hud-c,
  .brain-hud-d,
  .brain-hud-e,
  .brain-core-readout,
  .brain-lattice,
  .brain-microgrid,
  .brain-orbit,
  .sig-founder,
  .sig-renewal,
  .sig-events,
  .sig-outcomes {
    display: none;
  }
  .brain-phase {
    bottom: 4%;
    max-width: calc(100% - 24px);
  }
  .brain-signal {
    min-width: 0;
    font-size: 0.62rem;
    padding: 6px 9px;
  }
  .inbox-summary { grid-template-columns: 1fr; }
  .inbox-summary .cell { border-right: none; border-bottom: 1px solid var(--line); }
  .hero {
    padding-top: 132px;
  }
  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-cta .btn {
    width: 100%;
    white-space: normal;
  }
  .hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-block: 14px;
  }
  .hero-trust .stat {
    min-width: 0;
    padding-inline: 10px;
  }
  .hero-trust .stat b {
    font-size: 1.2rem;
  }
  .hero-trust .stat span {
    overflow-wrap: anywhere;
    font-size: 0.68rem;
    line-height: 1.4;
  }
  .hero-trust .vr {
    display: none;
  }
  .hero-visual {
    width: 100%;
    overflow: hidden;
  }
  .hero-visual .float-card {
    display: none;
  }
  .app {
    width: 100%;
    min-width: 0;
  }
  .app-title,
  .inbox-toolbar .sort {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .pipeline {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
  }
  .pnode {
    min-width: 0;
  }
  .pnode .connector {
    display: none;
  }
  .row[style*="flex-wrap:wrap"] {
    align-items: stretch !important;
  }
  .row[style*="flex-wrap:wrap"] > * {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    max-width: 100%;
  }
  .chart-panel,
  .latent,
  .surface-panel {
    max-width: 100%;
  }
  .sec-grid[style] {
    grid-template-columns: 1fr !important;
  }
  .cert {
    min-width: 0;
  }
}

/* ---------- HOMEPAGE PRODUCT DASHBOARD ---------- */
.hero-product {
  padding-top: clamp(96px, 7.4vw, 116px);
  padding-bottom: clamp(44px, 6vw, 84px);
  overflow: hidden;
}
.hero-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}
.hero-copy-center {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-copy-center .lead {
  max-width: 760px;
}
.hero-product .display {
  font-size: clamp(2.45rem, 5vw, 4rem);
}
.hero-product .hero-copy-center .lead {
  margin-top: 18px;
}
.hero-product .hero-copy-center .hero-cta {
  margin-top: 24px;
}
.hero-product .hero-cta .btn-lg {
  padding: 14px 23px;
}
.hero-copy-center .hero-cta,
.hero-copy-center .hero-trust {
  justify-content: center;
}
.hero-product .hero-trust {
  display: none;
}
.hero-proofbar {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.hero-proofbar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.54);
  color: var(--muted);
  box-shadow: 0 14px 34px -30px rgba(22,37,35,0.58);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.hero-proofbar button:hover,
.hero-proofbar button.active {
  transform: translateY(-2px);
  border-color: rgba(249,105,0,0.34);
  background: rgba(255,255,255,0.78);
}
.hero-proofbar b {
  font-family: var(--font-display);
  color: var(--text);
  font-size: 0.98rem;
  letter-spacing: -0.03em;
}
.hero-proofbar span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted-2);
}
.hero-copy-center .hero-trust .stat {
  align-items: center;
}
.hero-dashboard-wrap {
  position: relative;
  width: min(100%, 1180px);
  margin-top: 0;
  margin-inline: auto;
  overflow: visible;
}
.hero-dashboard-wrap::before {
  content: "";
  position: absolute;
  inset: 8% -6% -12%;
  background:
    radial-gradient(680px 360px at 30% 15%, rgba(101, 222, 241, 0.34), transparent 68%),
    radial-gradient(620px 280px at 82% 4%, rgba(249, 105, 0, 0.18), transparent 70%);
  filter: blur(4px);
  z-index: -1;
}
.dashboard-callout {
  position: absolute;
  z-index: 5;
  padding: 14px 18px;
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.84);
  box-shadow: 0 22px 60px -38px rgba(22,37,35,0.66);
  backdrop-filter: blur(14px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.dashboard-callout span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.dashboard-callout b {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.dashboard-callout-left {
  left: 28px;
  top: -28px;
  animation: floaty 7s ease-in-out infinite;
}
.dashboard-callout-right {
  right: 28px;
  top: -28px;
  animation: floaty 7.6s ease-in-out infinite 0.5s;
}
.hero-dashboard-wrap.drawer-mode .dashboard-callout {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.product-dashboard {
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,253,244,0.9) 48%, rgba(237,246,235,0.78)),
    radial-gradient(900px 420px at 80% -10%, rgba(101,222,241,0.22), transparent 62%);
  box-shadow:
    0 34px 100px -62px rgba(22,37,35,0.72),
    0 16px 36px -28px rgba(249,105,0,0.34),
    inset 0 0 0 1px rgba(255,255,255,0.68);
  overflow: hidden;
}
.product-chrome {
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(12px);
}
.product-sync {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted-2);
}
.dashboard-command {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
  gap: 18px;
  align-items: end;
  padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 30px) 16px;
  border-bottom: 1px solid var(--line);
}
.dashboard-command .kicker {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}
.dashboard-command h2 {
  margin-top: 6px;
  font-size: clamp(1.42rem, 2.6vw, 2.12rem);
  letter-spacing: -0.04em;
}
.dashboard-command p {
  color: var(--muted);
  max-width: 460px;
  justify-self: end;
  line-height: 1.45;
  font-size: 0.98rem;
}
.product-dashboard .dashboard-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgba(255,255,255,0.42);
}
.product-dashboard .dashboard-kpis .cell {
  min-width: 0;
}
.product-dashboard .dashboard-kpis .val {
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
}
.product-dashboard .inbox-toolbar {
  padding: 9px clamp(16px, 2.6vw, 26px);
  background: rgba(255,255,255,0.34);
}
.console-browserbar {
  display: grid;
  grid-template-columns: minmax(190px, 0.82fr) auto minmax(190px, 0.8fr);
  gap: 10px;
  align-items: center;
  padding: 10px clamp(16px, 2.6vw, 26px);
  border-top: 1px solid rgba(31,55,55,0.08);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(101,222,241,0.12), rgba(255,255,255,0.22) 42%, rgba(249,105,0,0.08)),
    rgba(255,255,255,0.36);
}
.console-address,
.console-toast {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.console-address span:last-child,
.console-toast {
  overflow: hidden;
  text-overflow: ellipsis;
}
.console-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(28,156,108,0.12);
}
.console-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.54);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}
.console-tabs button {
  height: 31px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.76rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.console-tabs button:hover {
  color: var(--text);
  transform: translateY(-1px);
}
.console-tabs button.active {
  color: #fff;
  background: #0f56cf;
  box-shadow: 0 12px 22px -17px rgba(15,86,207,0.9);
}
.console-toast {
  justify-content: flex-end;
  color: #23645d;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), background 0.24s var(--ease);
}
.console-toast.is-active {
  transform: translateY(-1px);
  border-color: rgba(101,222,241,0.4);
  background: rgba(101,222,241,0.16);
}
.dashboard-body {
  position: relative;
  display: block;
  min-height: 0;
  overflow: hidden;
}
.dashboard-list-panel {
  min-width: 0;
}
.console-panel {
  display: none;
}
.console-panel.is-active {
  display: block;
  animation: consolePanelIn 0.28s var(--ease) both;
}
.product-dashboard .inbox-head,
.product-dashboard .inbox-row {
  grid-template-columns: 38px minmax(190px, 1.16fr) minmax(120px, 0.72fr) minmax(78px, 0.46fr) minmax(220px, 1.22fr) minmax(140px, 0.64fr);
  padding-inline: clamp(16px, 2.4vw, 28px);
}
.product-dashboard .inbox-head {
  height: 36px;
  background: rgba(255,255,255,0.32);
}
.product-dashboard .inbox-row {
  min-height: 62px;
  padding-block: 9px;
  transition: background 0.24s var(--ease), box-shadow 0.24s var(--ease), transform 0.24s var(--ease);
}
.product-dashboard .inbox-row:hover {
  background: rgba(101,222,241,0.12);
  transform: translateY(-1px);
}
.product-dashboard .inbox-row.selected {
  background: linear-gradient(90deg, rgba(101,222,241,0.18), rgba(255,255,255,0.56));
  box-shadow: inset 3px 0 0 var(--teal);
}
.product-dashboard .inbox-row.selected::before {
  opacity: 0;
}
.product-dashboard .acct .avatar,
.dashboard-detail .avatar {
  border-radius: 999px;
  color: #0f56cf;
  background: rgba(101,222,241,0.18);
  border-color: rgba(15,86,207,0.18);
}
.product-dashboard .act-btn.primary {
  background: #0f56cf;
  border-color: #0f56cf;
  color: #fff;
  box-shadow: 0 12px 26px -18px rgba(15,86,207,0.9);
}
.product-dashboard .act-btn {
  background: rgba(255,255,255,0.68);
}
.product-dashboard .inbox-list {
  min-height: 0;
}
.product-dashboard .evidence {
  display: none;
}
.dashboard-insights {
  padding: 12px clamp(16px, 2.4vw, 28px) 14px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(101,222,241,0.12), transparent 52%),
    rgba(255,255,255,0.24);
}
.insight-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.insight-tabs button,
.action-tabs button {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.58);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.insight-tabs button:hover,
.action-tabs button:hover {
  color: var(--text);
  transform: translateY(-1px);
}
.insight-tabs button.active,
.action-tabs button.active {
  color: #8e3d00;
  background: rgba(249,105,0,0.12);
  border-color: rgba(249,105,0,0.32);
}
.insight-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 10px;
}
.insight-panel span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.insight-panel h3 {
  margin-top: 5px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.insight-panel p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.insight-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 8px;
}
.insight-stats div {
  min-width: 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(31,55,55,0.1);
  background: rgba(255,255,255,0.58);
}
.insight-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1;
}
.insight-stats span {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.workbench-grid,
.forecast-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr) minmax(220px, 0.82fr);
  gap: 12px;
  padding: clamp(16px, 2.4vw, 26px);
  min-height: 318px;
}
.workbench-card,
.forecast-card {
  min-width: 0;
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255,255,255,0.58);
  box-shadow: 0 22px 58px -42px rgba(22,37,35,0.58);
}
.workbench-card.span-2,
.forecast-main {
  grid-row: span 2;
}
.forecast-calibration {
  grid-column: span 2;
  min-height: 118px;
}
.workbench-card .kicker,
.forecast-card .kicker,
.workbench-card > span,
.forecast-card > span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.workbench-card h3,
.forecast-card h3 {
  margin-top: 7px;
  font-size: clamp(1.32rem, 2.2vw, 1.85rem);
  letter-spacing: -0.04em;
}
.workbench-card b,
.forecast-card b {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.42rem;
  letter-spacing: -0.04em;
}
.workbench-card p,
.forecast-card p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}
.signal-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
  align-items: center;
  margin-top: 22px;
  position: relative;
}
.signal-map i {
  display: none;
}
.signal-map button {
  min-width: 0;
  min-height: 62px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 15px;
  background: rgba(255,255,255,0.62);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease);
}
.signal-map button::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(101,222,241,0.15);
}
.signal-map button:hover,
.signal-map button.active {
  color: var(--text);
  border-color: rgba(249,105,0,0.26);
  background: rgba(255,247,230,0.86);
  transform: translateY(-2px);
}
.forecast-lanes {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.forecast-lanes div {
  display: grid;
  gap: 7px;
}
.forecast-lanes div span {
  display: block;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(31,55,55,0.09);
}
.forecast-lanes div span::after {
  content: "";
  display: block;
  height: 100%;
  width: calc(var(--p) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pumpkin), var(--teal));
  transform-origin: left;
  animation: barGrow 0.55s var(--ease) both;
}
.forecast-lanes b {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.forecast-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 12px;
}
.forecast-actions button {
  min-width: 0;
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 999px;
  padding: 8px 9px;
  background: rgba(255,255,255,0.6);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.72rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.forecast-actions button:hover,
.forecast-actions button.active {
  color: #8e3d00;
  background: rgba(249,105,0,0.12);
  border-color: rgba(249,105,0,0.3);
  transform: translateY(-1px);
}
.dashboard-detail {
  min-width: 0;
  position: absolute;
  z-index: 9;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: min(388px, calc(100% - 28px));
  overflow: auto;
  padding: 15px;
  border: 1px solid rgba(31,55,55,0.14);
  border-radius: 20px;
  background:
    radial-gradient(460px 240px at 100% 0, rgba(168,220,209,0.28), transparent 72%),
    rgba(255,255,255,0.88);
  box-shadow: 0 24px 70px -38px rgba(22,37,35,0.7);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 22px));
  transition: opacity 0.28s var(--ease), transform 0.32s var(--ease);
}
.product-dashboard.drawer-open .dashboard-detail {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.detail-top {
  display: grid;
  gap: 10px;
}
.detail-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.detail-top .kicker {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
}
.drawer-close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.66);
  color: var(--muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.drawer-close svg {
  width: 15px;
  height: 15px;
}
.drawer-close:hover {
  color: var(--text);
  background: #fff;
  transform: rotate(8deg);
}
.detail-account {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.detail-account h3 {
  font-size: 1.34rem;
  letter-spacing: -0.035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.detail-account p {
  color: var(--muted);
  font-size: 0.9rem;
}
.detail-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
}
.detail-risk,
.detail-card,
.detail-action,
.detail-metrics > div {
  border: 1px solid rgba(31,55,55,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.58);
  box-shadow: 0 18px 44px -36px rgba(22,37,35,0.54);
}
.detail-risk {
  margin-top: 12px;
  padding: 13px;
}
.detail-risk-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.detail-risk-head span,
.detail-metrics span,
.detail-card-head span,
.detail-action span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted-2);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.detail-risk-head b {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
}
.detail-risk-head em {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-style: normal;
  color: #0f56cf;
  background: rgba(101,222,241,0.18);
  border: 1px solid rgba(15,86,207,0.16);
  border-radius: 999px;
  padding: 5px 9px;
  white-space: nowrap;
}
.detail-risk p {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}
.detail-chart {
  width: 100%;
  max-height: 116px;
  margin: 6px 0 3px;
}
.chart-grid {
  stroke: rgba(31,55,55,0.08);
  stroke-width: 1;
}
.chart-axis {
  stroke: rgba(31,55,55,0.16);
  stroke-width: 1.1;
}
.chart-line {
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
  transition: d 0.42s var(--ease), opacity 0.24s;
}
.chart-line.baseline {
  stroke: rgba(8,127,144,0.58);
}
.chart-line.risk {
  stroke: var(--pumpkin);
  filter: drop-shadow(0 7px 10px rgba(249,105,0,0.18));
}
.chart-gap,
.chart-bracket {
  stroke: rgba(249,105,0,0.74);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 3 4;
  animation: dashboardPulse 2.2s ease-in-out infinite;
}
.chart-dot.risk-dot {
  fill: var(--pumpkin);
}
.chart-dot.base-dot {
  fill: var(--teal);
}
.detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.detail-metrics > div {
  padding: 12px;
}
.detail-metrics b {
  display: block;
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1;
}
.detail-meter {
  height: 7px;
}
.detail-card {
  margin-top: 10px;
  padding: 13px;
}
.detail-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.detail-card-head b {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  white-space: nowrap;
}
.detail-card ul {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-top: 9px;
}
.detail-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}
.detail-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.detail-action {
  margin-top: 10px;
  padding: 13px;
  background: linear-gradient(135deg, rgba(249,105,0,0.11), rgba(255,255,255,0.66));
}
.detail-action p {
  margin-top: 9px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.34;
}
.action-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.action-impact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
}
.action-impact span {
  font-size: 0.58rem;
}
.action-impact b {
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  color: var(--green);
}
.detail-action button {
  margin-top: 10px;
  width: 100%;
  border-radius: 11px;
  padding: 10px 14px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.detail-action button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -22px rgba(22,37,35,0.74);
}
.dashboard-explain {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(16px, 2.6vw, 26px);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.44);
}
.dashboard-explain span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted-2);
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.dashboard-explain p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}
.evidence-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(31,55,55,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.62);
  white-space: nowrap;
}
.evidence-flow span,
.evidence-flow b {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  text-transform: none;
}
.evidence-flow b {
  color: var(--text);
}
.evidence-flow i {
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, rgba(31,55,55,0.14), var(--amber));
  position: relative;
}
.evidence-flow i::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--amber);
  border-right: 1px solid var(--amber);
  transform: rotate(45deg);
}
@keyframes dashboardPulse {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 1; }
}
@keyframes consolePanelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (max-width: 1180px) {
  .dashboard-callout {
    display: none;
  }
  .dashboard-list-panel {
    border-bottom: 1px solid var(--line);
  }
  .console-browserbar {
    grid-template-columns: 1fr;
  }
  .console-tabs {
    justify-content: flex-start;
    overflow-x: auto;
  }
  .console-toast {
    justify-content: flex-start;
  }
  .workbench-grid,
  .forecast-grid {
    grid-template-columns: 1fr 1fr;
  }
  .workbench-card.span-2,
  .forecast-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}
@media (max-width: 820px) {
  .hero-copy-center .hero-trust .stat {
    align-items: flex-start;
    text-align: left;
  }
  .dashboard-command,
  .dashboard-explain,
  .insight-panel {
    grid-template-columns: 1fr;
  }
  .dashboard-command p {
    justify-self: start;
  }
  .product-dashboard .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-dashboard .dashboard-kpis .cell:nth-child(2n) {
    border-right: none;
  }
  .product-sync,
  .dashboard-explain .evidence-flow {
    display: none;
  }
  .dashboard-body {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  .console-panel {
    order: 1;
  }
  .dashboard-detail {
    order: 0;
    position: relative;
    inset: auto;
    width: auto;
    display: none;
    margin: 12px;
    max-height: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .product-dashboard.drawer-open .dashboard-detail {
    display: block;
  }
  .workbench-grid,
  .forecast-grid,
  .signal-map {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .product-dashboard .inbox-row {
    grid-template-columns: 1fr auto;
  }
  .product-dashboard .inbox-row .rank {
    display: none;
  }
  .product-dashboard .inbox-list {
    min-height: 0;
  }
  .hero-proofbar {
    display: none;
  }
}
@media (max-width: 540px) {
  .product-dashboard .dashboard-kpis {
    grid-template-columns: 1fr;
  }
  .product-dashboard .dashboard-kpis .cell {
    border-right: none;
  }
  .detail-metrics {
    grid-template-columns: 1fr;
  }
  .product-dashboard {
    border-radius: 18px;
  }
  .dashboard-command,
  .dashboard-detail {
    padding-inline: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-callout,
  .chart-gap,
  .chart-bracket {
    animation: none !important;
  }
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; border: 1px solid var(--line-3); border-radius: 26px; padding: clamp(44px, 7vw, 80px); text-align: center; overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--bg-2)); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(249,105,0,0.18), transparent 70%); pointer-events: none; }
.cta-band .h2 { position: relative; }
.cta-band .lead { position: relative; margin: 20px auto 34px; max-width: 540px; }
.cta-band .hero-cta { position: relative; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; margin-top: 44px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.faq summary { padding: 20px 24px; font-weight: 600; font-size: 1.02rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 20px; height: 20px; flex: none; transition: transform 0.3s; color: var(--muted-2); }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); font-size: 0.94rem; line-height: 1.6; }

/* section labels */
.sec-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); letter-spacing: 0.1em; }


/* ============================================================
   ATLAS + BRAIN ENGINE SYSTEM INTRO (ab-)
   One evidence path: Sources -> Atlas -> Brain Engine -> Inbox,
   plus an outcome loop returning into Brain Engine.
   Appended 2026-06-12; all selectors prefixed ab- to avoid
   collisions with the retired .product-system styles above.
   ============================================================ */

.ab-trustline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin-top: 30px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2);
}
.ab-trustline i { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); opacity: 0.7; }

/* ---- shell ---- */
.ab-system {
  margin-top: 44px;
  border: 1px solid var(--line-3);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(101, 222, 241, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

/* ---- flow rail ---- */
.ab-rail-wrap { padding: clamp(18px, 3vw, 30px) clamp(18px, 3vw, 30px) 0; }
.ab-rail {
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr;
  align-items: stretch;
}
.ab-node {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 14px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  text-align: left;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.ab-node:hover { border-color: var(--line-3); transform: translateY(-1px); }
.ab-node:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.ab-node.is-active {
  border-color: rgba(249, 105, 0, 0.5);
  background: var(--elevated);
  box-shadow: 0 14px 30px -22px rgba(249, 105, 0, 0.55), inset 0 0 0 1px rgba(249, 105, 0, 0.16);
}
.ab-num { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.16em; color: var(--muted-2); }
.ab-node.is-active .ab-num { color: var(--amber); }
.ab-node b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.015em; line-height: 1.12; }
.ab-sub { font-family: var(--font-mono); font-size: 0.64rem; color: var(--muted-2); letter-spacing: 0.05em; }

.ab-link { position: relative; align-self: center; height: 2px; margin-inline: 5px; background: var(--line-3); border-radius: 2px; }
.ab-link::after {
  content: ""; position: absolute; right: -2px; top: 50%; margin-top: -3.5px;
  border-left: 6px solid var(--line-3);
  border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
}
.ab-link i {
  position: absolute; top: 50%; left: -3px; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--amber); opacity: 0;
  animation: abToken 2.8s linear infinite;
}
.ab-rail .ab-link:nth-of-type(2) i { animation-delay: 0.9s; }
.ab-rail .ab-link:nth-of-type(3) i { animation-delay: 1.8s; }
@keyframes abToken {
  0% { left: -3px; opacity: 0; }
  14% { opacity: 1; }
  84% { opacity: 1; }
  100% { left: calc(100% - 4px); opacity: 0; }
}

/* return loop under the rail */
.ab-loop-row { position: relative; height: 96px; }
.ab-loop-arc {
  position: absolute; top: -12px; left: 57.5%; right: 6.2%; height: 56px;
  border: 1.5px dashed rgba(8, 127, 144, 0.5);
  border-top: none;
  border-radius: 0 0 20px 20px;
}
.ab-loop-arc::before {
  content: ""; position: absolute; left: -7px; top: -5px;
  border-left: 5.5px solid transparent; border-right: 5.5px solid transparent;
  border-bottom: 8px solid var(--teal);
}
.ab-node-loop {
  position: absolute; top: 20px; left: 75.6%; transform: translateX(-50%);
  flex-direction: row; align-items: center; gap: 10px; padding: 11px 16px;
  border-style: dashed; border-color: rgba(8, 127, 144, 0.42);
}
.ab-node-loop:hover { transform: translateX(-50%) translateY(-1px); border-color: rgba(8, 127, 144, 0.6); }
.ab-node-loop.is-active {
  border-style: solid; border-color: rgba(8, 127, 144, 0.6);
  background: var(--elevated);
  box-shadow: 0 14px 30px -22px rgba(8, 127, 144, 0.6), inset 0 0 0 1px rgba(8, 127, 144, 0.18);
}
.ab-node-loop .ab-num, .ab-node-loop.is-active .ab-num { color: var(--teal); }
.ab-node-loop b { font-size: 0.92rem; }

/* ---- stage panels ---- */
.ab-stage { margin-top: clamp(18px, 3vw, 28px); border-top: 1px solid var(--line); background: var(--surface); }
.ab-panel { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); min-width: 0; }
.ab-panel[hidden] { display: none; }
.ab-panel.is-active { animation: abPanelIn 0.5s var(--ease-out); }
@keyframes abPanelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ab-visual {
  position: relative; min-height: 340px;
  padding: clamp(22px, 3vw, 36px);
  display: grid; align-content: center;
  background: linear-gradient(135deg, rgba(168, 220, 209, 0.16), transparent 55%);
}
.ab-explain {
  border-left: 1px solid var(--line);
  padding: clamp(22px, 3vw, 34px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.ab-step { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.ab-explain h3 { font-size: clamp(1.3rem, 1.9vw, 1.62rem); letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
.ab-explain > p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; text-wrap: pretty; }
.ab-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.ab-badges span {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
}
.ab-note { font-size: 0.8rem; color: var(--muted); line-height: 1.5; text-wrap: pretty; }
.ab-note b {
  display: block; margin-bottom: 3px;
  color: var(--teal); font-family: var(--font-mono); font-weight: 500;
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.ab-trace {
  margin-top: auto; width: 100%;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px;
}
.ab-trace > span { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }
.ab-trace ul { list-style: none; margin-top: 9px; display: flex; flex-direction: column; gap: 6px; }
.ab-trace li { font-size: 0.83rem; color: var(--text); line-height: 1.4; display: flex; gap: 9px; }
.ab-trace li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); margin-top: 7px; opacity: 0.75; }

/* shared chip */
.ab-chip {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 7px 12px; border-radius: 9px;
  border: 1px solid var(--line-3); background: var(--elevated); color: var(--text);
  white-space: nowrap;
}

/* ---- stage 01 · sources ---- */
.ab-v-sources { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr); gap: clamp(14px, 2vw, 26px); align-items: center; }
.ab-srcchips { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ab-srcchips .ab-chip { animation: abNudge 3.6s var(--ease) infinite; animation-delay: calc(var(--d, 0) * 0.45s); }
@keyframes abNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.ab-gate { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ab-gate i { width: 3px; height: 52px; border-radius: 3px; background: var(--line-3); }
.ab-gate-ring {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--teal);
  animation: abGate 2.8s var(--ease) infinite;
}
@keyframes abGate { 0%, 100% { box-shadow: 0 0 0 0 rgba(8, 127, 144, 0.32); } 50% { box-shadow: 0 0 0 9px rgba(8, 127, 144, 0); } }
.ab-gate em {
  font-style: normal; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); white-space: nowrap;
}
.ab-boundary {
  border: 1px solid rgba(249, 105, 0, 0.4); background: var(--elevated); border-radius: 14px;
  padding: 18px 20px; box-shadow: 0 18px 40px -30px rgba(249, 105, 0, 0.5);
}
.ab-boundary span { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); }
.ab-boundary b { display: block; font-family: var(--font-display); font-size: 1.18rem; margin-top: 5px; letter-spacing: -0.02em; }
.ab-boundary p { margin-top: 8px; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }

/* ---- stage 02 · atlas ---- */
.ab-v-atlas { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.35fr); gap: clamp(14px, 2vw, 24px); align-items: center; }
.ab-raw { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.ab-raw .ab-chip { transform: rotate(var(--r, 0deg)); border-style: dashed; color: var(--muted); background: var(--surface); }
.ab-raw .ab-chip.flag { border-color: rgba(200, 71, 0, 0.5); color: #9e3100; background: var(--red-soft); }
.ab-mid {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-2); text-align: center; max-width: 86px;
}
.ab-mid i { position: relative; width: 34px; height: 2px; background: var(--line-3); border-radius: 2px; }
.ab-mid i::after {
  content: ""; position: absolute; right: -2px; top: 50%; margin-top: -3.5px;
  border-left: 6px solid var(--line-3);
  border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
}
.ab-contract {
  border: 1px solid var(--line-3); background: var(--elevated); border-radius: 14px;
  overflow: hidden; box-shadow: 0 22px 50px -36px rgba(22, 37, 35, 0.5);
}
.ab-contract-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.ab-contract-head b { font-family: var(--font-display); font-size: 0.98rem; letter-spacing: -0.015em; }
.ab-contract-head span { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.ab-contract-row {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px;
  align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line-2);
}
.ab-contract-row:last-child { border-bottom: none; }
.ab-contract-row > span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.ab-contract-row b { font-size: 0.84rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.ab-contract-row em {
  font-style: normal; font-family: var(--font-mono); font-size: 0.62rem;
  padding: 3px 8px; border-radius: 100px; white-space: nowrap;
  background: var(--green-soft); color: #226c5d;
}
.ab-contract-row.gap em { background: var(--amber-soft); color: #9a4c00; }

/* ---- stage 03 · brain ---- */
.ab-v-brain { grid-template-columns: minmax(0, 0.95fr) auto minmax(0, 1.25fr); gap: clamp(14px, 2vw, 26px); align-items: center; }
.ab-signals { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ab-core { position: relative; width: 110px; height: 110px; display: grid; place-items: center; }
.ab-core b {
  position: relative; z-index: 2; width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); font-size: 0.82rem; line-height: 1.15; letter-spacing: -0.01em;
  color: #231000;
  background: linear-gradient(180deg, var(--harvest), var(--pumpkin));
  box-shadow: 0 16px 36px -18px rgba(249, 105, 0, 0.8);
}
.ab-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(249, 105, 0, 0.4); animation: abRing 3.2s var(--ease) infinite; }
.ab-ring.r2 { animation-delay: 1.6s; }
@keyframes abRing { 0% { transform: scale(0.76); opacity: 0.9; } 100% { transform: scale(1.24); opacity: 0; } }
.ab-readout {
  border: 1px solid var(--line-3); background: var(--elevated); border-radius: 14px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 22px 50px -36px rgba(22, 37, 35, 0.5);
}
.ab-meterline { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: baseline; }
.ab-meterline > span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.ab-meterline b { font-family: var(--font-display); font-size: 1rem; letter-spacing: -0.02em; }
.ab-meterline .meter { grid-column: 1 / -1; height: 5px; }
.ab-cause { border-top: 1px solid var(--line); padding-top: 11px; font-size: 0.82rem; line-height: 1.45; }
.ab-cause span { display: block; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 3px; }

/* ---- stage 04 · inbox ---- */
.ab-v-inbox { gap: 14px; align-content: center; justify-items: stretch; }
.ab-v-inbox > * { max-width: 560px; width: 100%; margin-inline: auto; }
.ab-inboxcard {
  border: 1px solid var(--line-3); border-radius: 14px; background: var(--elevated);
  overflow: hidden; box-shadow: 0 26px 60px -40px rgba(22, 37, 35, 0.55);
}
.ab-inbox-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ab-inbox-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(22, 37, 35, 0.16); }
.ab-inbox-bar b { margin-left: 6px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; }
.ab-inbox-bar > span { margin-left: auto; font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted-2); }
.ab-inbox-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.ab-rank { font-family: var(--font-mono); font-size: 0.78rem; color: var(--amber); font-weight: 500; }
.ab-avatar {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  background: var(--surface-3); border: 1px solid var(--line-3); color: var(--muted);
}
.ab-inbox-meta { min-width: 0; margin-right: auto; }
.ab-inbox-meta b { display: block; font-size: 0.93rem; letter-spacing: -0.01em; }
.ab-inbox-meta span { font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted-2); }
.ab-inbox-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.ab-inbox-stats div { padding: 12px 14px; border-right: 1px solid var(--line-2); }
.ab-inbox-stats div:last-child { border-right: none; }
.ab-inbox-stats b { display: block; font-family: var(--font-display); font-size: 1.14rem; letter-spacing: -0.02em; }
.ab-inbox-stats span { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.ab-action {
  border: 1px solid rgba(249, 105, 0, 0.38); border-radius: 14px; padding: 15px 18px;
  background: linear-gradient(180deg, rgba(249, 105, 0, 0.09), rgba(249, 105, 0, 0.03)), var(--elevated);
}
.ab-action > span { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.ab-action p { margin-top: 6px; font-size: 0.88rem; line-height: 1.5; }
.ab-action em { display: block; margin-top: 8px; font-style: normal; font-family: var(--font-mono); font-size: 0.62rem; color: var(--muted-2); }

/* ---- stage 05 · loop ---- */
.ab-v-loop { gap: 22px; justify-items: center; align-content: center; }
.ab-loopviz { display: grid; grid-template-columns: auto minmax(50px, 200px) auto; gap: 14px; align-items: center; width: 100%; max-width: 580px; }
.ab-loopnode {
  border: 1px solid var(--line-3); background: var(--elevated); border-radius: 13px;
  padding: 13px 17px; box-shadow: 0 18px 44px -34px rgba(22, 37, 35, 0.5);
}
.ab-loopnode span { display: block; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.ab-loopnode b { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: -0.015em; }
.ab-loopnode.in { border-color: rgba(8, 127, 144, 0.45); }
.ab-loopnode.in span { color: var(--teal); }
.ab-looppath { position: relative; height: 2px; background: repeating-linear-gradient(90deg, rgba(8, 127, 144, 0.55) 0 6px, transparent 6px 12px); }
.ab-looppath::before {
  content: ""; position: absolute; left: -2px; top: 50%; margin-top: -4px;
  border-right: 7px solid var(--teal);
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.ab-looppath i {
  position: absolute; top: 50%; right: -3px; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--teal);
  animation: abTokenBack 2.4s linear infinite;
}
@keyframes abTokenBack {
  0% { right: -3px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { right: calc(100% - 4px); opacity: 0; }
}
.ab-loopchips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ab-loopchips .ab-chip.t-green { border-color: rgba(36, 121, 103, 0.4); color: #226c5d; background: var(--green-soft); }
.ab-loopchips .ab-chip.t-amber { border-color: rgba(249, 105, 0, 0.4); color: #9e3100; background: var(--amber-soft); }
.ab-loopchips .ab-chip.t-teal { border-color: rgba(8, 127, 144, 0.4); color: var(--teal); background: var(--teal-soft); }

/* ---- footer strip ---- */
.ab-foot {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px clamp(18px, 3vw, 30px);
  border-top: 1px solid var(--line); background: var(--surface-2);
}
.ab-demo-tag {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber);
  border: 1px solid rgba(249, 105, 0, 0.35); border-radius: 100px;
  padding: 3px 9px; background: var(--elevated); white-space: nowrap;
}
.ab-foot p { font-size: 0.78rem; color: var(--muted); }

/* ---- deliverables + explore ---- */
.ab-deliverables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.ab-deliverables > div { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 16px 18px; }
.ab-deliverables span { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.ab-deliverables b { display: block; margin-top: 6px; font-weight: 600; font-size: 0.92rem; letter-spacing: -0.01em; line-height: 1.35; }

.ab-explore { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.ab-explore-card {
  display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: 13px; background: var(--surface);
  padding: 16px 18px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ab-explore-card:hover { border-color: rgba(249, 105, 0, 0.45); transform: translateY(-2px); box-shadow: 0 18px 40px -30px rgba(249, 105, 0, 0.45); }
.ab-explore-card:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.ab-explore-card b { font-family: var(--font-display); font-size: 1rem; letter-spacing: -0.015em; }
.ab-explore-card p { margin-top: 4px; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.ab-explore-card svg { width: 18px; height: 18px; flex: none; margin-left: auto; color: var(--amber); transition: transform 0.25s var(--ease); }
.ab-explore-card:hover svg { transform: translateX(4px); }

/* ---- responsive ---- */
@media (max-width: 1020px) {
  .ab-panel { grid-template-columns: 1fr; }
  .ab-explain { border-left: none; border-top: 1px solid var(--line); }
  .ab-visual { min-height: 0; }
}
@media (max-width: 860px) {
  .ab-rail-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: 8px; padding: 16px 16px 0; }
  .ab-rail, .ab-loop-row { display: contents; }
  .ab-link, .ab-loop-arc { display: none; }
  .ab-node-loop { position: static; transform: none; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 16px 12px; }
  .ab-node-loop:hover { transform: translateY(-1px); }
  .ab-stage { margin-top: 16px; }
}
@media (max-width: 640px) {
  .ab-v-sources, .ab-v-atlas, .ab-v-brain { grid-template-columns: 1fr; justify-items: flex-start; }
  .ab-srcchips, .ab-raw, .ab-signals { flex-direction: row; flex-wrap: wrap; }
  .ab-raw .ab-chip { transform: none; }
  .ab-gate { flex-direction: row; justify-self: stretch; }
  .ab-gate i { width: 36px; height: 3px; flex: 1; }
  .ab-mid { flex-direction: row; max-width: none; }
  .ab-core { justify-self: center; }
  .ab-loopviz { grid-template-columns: 1fr; }
  .ab-looppath { display: none; }
  .ab-inbox-stats { grid-template-columns: repeat(2, 1fr); }
  .ab-inbox-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .ab-inbox-stats div:nth-child(2) { border-right: none; }
  .ab-deliverables, .ab-explore { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-link i, .ab-looppath i { display: none; }
  .ab-srcchips .ab-chip, .ab-gate-ring, .ab-ring, .ab-panel.is-active { animation: none; }
}


/* ============================================================
   AB3 — LIVE SYSTEM WALKTHROUGH (v2: richer motion)
   Self-playing story: Atlas -> handshake -> Brain Engine ->
   morning report. ph-N = current beat, ge-N = beats reached.
   Reuses .ab-trustline, .ab-foot, .ab-demo-tag, .ab-explore*.
   ============================================================ */

.ab3 {
  --ab3-progress: 0%;
  margin-top: 44px;
  border: 1px solid var(--line-3);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(101, 222, 241, 0.07), transparent 36%),
    rgba(255, 255, 255, 0.55);
  overflow: hidden;
}
.ab3.no-anim *, .ab3.no-anim *::before, .ab3.no-anim *::after {
  transition: none !important; animation: none !important;
}

.ab3-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 58px minmax(0, 1.05fr) 58px minmax(0, 0.95fr);
  align-items: stretch;
  padding: clamp(18px, 2.6vw, 30px);
  gap: 0;
}
/* ambient evidence motes drifting upward */
.ab3-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle 2px at 12% 80%, rgba(249, 105, 0, 0.25), transparent 100%),
    radial-gradient(circle 2px at 38% 65%, rgba(8, 127, 144, 0.22), transparent 100%),
    radial-gradient(circle 2px at 64% 85%, rgba(249, 105, 0, 0.18), transparent 100%),
    radial-gradient(circle 2px at 88% 70%, rgba(8, 127, 144, 0.2), transparent 100%);
  background-size: 100% 200%;
  animation: ab3Motes 16s linear infinite;
  opacity: 0.8;
}
@keyframes ab3Motes { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* ---- chambers ---- */
.ab3-chamber {
  position: relative; z-index: 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease), transform 0.5s var(--ease);
}
.ab3.ph-1 .ab3-atlas, .ab3.ph-2 .ab3-atlas, .ab3.ph-3 .ab3-atlas {
  border-color: rgba(8, 127, 144, 0.55);
  box-shadow: 0 22px 48px -34px rgba(8, 127, 144, 0.65);
  background: var(--elevated);
  transform: translateY(-3px);
}
.ab3.ph-3 .ab3-brain, .ab3.ph-4 .ab3-brain {
  border-color: rgba(249, 105, 0, 0.55);
  box-shadow: 0 22px 48px -34px rgba(249, 105, 0, 0.65);
  background: var(--elevated);
  transform: translateY(-3px);
}

.ab3-chead { display: flex; align-items: center; gap: 12px; }
.ab3-chead div { min-width: 0; display: grid; gap: 2px; }
.ab3-chead div b,
.ab3-chead div span { display: block; }
.ab3-chead div b { font-size: 0.98rem; line-height: 1.1; }
.ab3-chead div span { font-size: 0.9rem; line-height: 1.3; color: var(--muted); }
.ab3-mark {
  position: relative; width: 38px; height: 38px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  isolation: isolate;
  overflow: visible;
  transform: translateZ(0);
}
.ab3-mark.m-a {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.72), transparent 31%),
    linear-gradient(145deg, rgba(101, 222, 241, 0.28), rgba(168, 220, 209, 0.58));
  color: var(--teal);
  border: 1px solid rgba(8, 127, 144, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 24px -18px rgba(8, 127, 144, 0.8);
}
.ab3-mark.m-b {
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.75), transparent 31%),
    linear-gradient(145deg, rgba(249, 105, 0, 0.12), rgba(255, 191, 137, 0.52));
  color: #9e3100;
  border: 1px solid rgba(249, 105, 0, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 24px -18px rgba(249, 105, 0, 0.85);
}
.ab3-mark.m-a::before,
.ab3-mark.m-b::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 16px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  z-index: -1;
}
.ab3-mark.m-a::before {
  background: conic-gradient(from 0turn, rgba(8, 127, 144, 0), rgba(8, 127, 144, 0.58), rgba(101, 222, 241, 0.2), rgba(8, 127, 144, 0));
}
.ab3-mark.m-b::before {
  background: conic-gradient(from 0turn, rgba(249, 105, 0, 0), rgba(249, 105, 0, 0.6), rgba(241, 127, 41, 0.22), rgba(249, 105, 0, 0));
}
.ab3-mark.m-a::after,
.ab3-mark.m-b::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.ab3-mark.m-a::after {
  right: -4px;
  top: 7px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(101, 222, 241, 0.17), 0 0 14px rgba(8, 127, 144, 0.55);
}
.ab3-mark.m-b::after {
  left: 50%;
  top: 50%;
  margin: -3px 0 0 -3px;
  background: var(--pumpkin);
  box-shadow: 0 0 0 4px rgba(249, 105, 0, 0.13), 0 0 14px rgba(249, 105, 0, 0.58);
}
.ab3.ph-1 .m-a, .ab3.ph-2 .m-a, .ab3.ph-3 .m-a { animation: ab3MarkA 2.2s var(--ease) infinite; }
.ab3.ph-3 .m-b, .ab3.ph-4 .m-b { animation: ab3MarkB 2.2s var(--ease) infinite; }
.ab3.ph-1 .m-a::before, .ab3.ph-2 .m-a::before, .ab3.ph-3 .m-a::before,
.ab3.ph-3 .m-b::before, .ab3.ph-4 .m-b::before {
  opacity: 1;
  transform: scale(1);
}
.ab3.ph-1 .m-a::before, .ab3.ph-2 .m-a::before, .ab3.ph-3 .m-a::before {
  animation: ab3RingA 2.6s linear infinite;
}
.ab3.ph-3 .m-b::before, .ab3.ph-4 .m-b::before {
  animation: ab3RingB 2.4s linear infinite;
}
.ab3.ph-1 .m-a::after, .ab3.ph-2 .m-a::after, .ab3.ph-3 .m-a::after {
  opacity: 1;
  animation: ab3AtlasDot 1.7s var(--ease) infinite;
}
.ab3.ph-3 .m-b::after, .ab3.ph-4 .m-b::after {
  opacity: 1;
  animation: ab3Orbit 1.65s linear infinite;
}
@keyframes ab3MarkA {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 24px -18px rgba(8, 127, 144, 0.8); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 18px 34px -20px rgba(8, 127, 144, 1); }
}
@keyframes ab3MarkB {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 24px -18px rgba(249, 105, 0, 0.85); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 18px 34px -20px rgba(249, 105, 0, 1); }
}
@keyframes ab3RingA {
  from { transform: scale(1) rotate(0turn); }
  to { transform: scale(1) rotate(1turn); }
}
@keyframes ab3RingB {
  from { transform: scale(1) rotate(0turn); }
  to { transform: scale(1) rotate(-1turn); }
}
@keyframes ab3AtlasDot {
  0%, 100% { transform: translate(0, 0) scale(0.9); }
  45% { transform: translate(-3px, 18px) scale(1.08); }
  70% { transform: translate(-9px, 13px) scale(0.92); }
}
@keyframes ab3Orbit {
  from { transform: rotate(0turn) translateX(27px); }
  to { transform: rotate(1turn) translateX(27px); }
}

.ab3-cnote {
  margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 0.72rem; color: var(--muted-2); line-height: 1.45; text-wrap: pretty;
}

/* ---- atlas: sources strip ---- */
.ab3-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ab3-src {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.05em;
  padding: 4px 9px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted-2);
  opacity: 0.4; transform: translateY(6px) scale(0.92);
  transition:
    opacity 0.5s var(--ease-out) calc(var(--i) * 0.13s),
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--i) * 0.13s),
    border-color 0.5s var(--ease) calc(var(--i) * 0.13s),
    color 0.5s var(--ease) calc(var(--i) * 0.13s),
    background 0.5s var(--ease) calc(var(--i) * 0.13s);
}
.ab3.ge-1 .ab3-src {
  opacity: 1; transform: none;
  border-color: rgba(8, 127, 144, 0.4); color: var(--text); background: var(--elevated);
}
.ab3-gate {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto;
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal);
}
.ab3-gate i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--teal); }
.ab3.ph-1 .ab3-gate i { animation: ab3Gate 1.6s var(--ease) infinite; }
@keyframes ab3Gate {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8, 127, 144, 0.4); }
  50% { box-shadow: 0 0 0 7px rgba(8, 127, 144, 0); }
}

/* ---- atlas: messy -> clean rows ---- */
.ab3-evrows { position: relative; display: flex; flex-direction: column; gap: 8px; }
/* cleaning sweep passes over the rows during beat 2 */
.ab3-evrows::after {
  content: ""; position: absolute; left: -6px; right: -6px; top: -10%; height: 30%;
  border-radius: 10px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(101, 222, 241, 0.28), transparent);
}
.ab3.ph-2 .ab3-evrows::after { animation: ab3Sweep 1.6s var(--ease) 1 both; }
@keyframes ab3Sweep {
  0% { top: -12%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 92%; opacity: 0; }
}
.ab3-ev {
  position: relative;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px;
  border: 1px dashed var(--line-3); background: var(--surface-2);
  transform: rotate(var(--r, 0deg));
  transition:
    transform 0.7s cubic-bezier(0.34, 1.3, 0.64, 1) calc(var(--i) * 0.16s),
    border-color 0.6s var(--ease) calc(var(--i) * 0.16s),
    background 0.6s var(--ease) calc(var(--i) * 0.16s),
    box-shadow 0.6s var(--ease) calc(var(--i) * 0.16s);
}
.ab3.ge-2 .ab3-ev {
  transform: none; border-style: solid; border-color: rgba(36, 121, 103, 0.35);
  background: var(--elevated);
  box-shadow: 0 8px 18px -14px rgba(36, 121, 103, 0.6);
}
.ab3.ge-2 .ab3-ev.is-gap { border-color: rgba(249, 105, 0, 0.45); box-shadow: 0 8px 18px -14px rgba(249, 105, 0, 0.6); }
/* glint as each row is cleaned */
.ab3-ev::after {
  content: ""; position: absolute; inset: 0; border-radius: 10px; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.75) 50%, transparent 65%);
  background-size: 250% 100%; background-position: 120% 0; opacity: 0;
}
.ab3.ph-2 .ab3-ev::after { animation: ab3Glint 0.9s var(--ease) calc(var(--i) * 0.16s + 0.35s) 1 both; }
@keyframes ab3Glint {
  0% { background-position: 120% 0; opacity: 0; }
  20% { opacity: 1; }
  100% { background-position: -30% 0; opacity: 0; }
}
.ab3-ev > span { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.ab3-swap { position: relative; min-width: 0; }
.ab3-swap b {
  display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: -0.005em;
  line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ab3-swap .raw { color: var(--muted); font-weight: 500; transition: opacity 0.45s var(--ease) calc(var(--i) * 0.16s), filter 0.45s var(--ease) calc(var(--i) * 0.16s); }
.ab3-swap .fix { position: absolute; inset: 0; opacity: 0; transform: translateY(3px); transition: opacity 0.45s var(--ease) calc(var(--i) * 0.16s + 0.18s), transform 0.45s var(--ease) calc(var(--i) * 0.16s + 0.18s); }
.ab3.ge-2 .ab3-swap .raw { opacity: 0; filter: blur(2px); }
.ab3.ge-2 .ab3-swap .fix { opacity: 1; transform: none; }
.ab3-ev em {
  font-style: normal; font-family: var(--font-mono); font-size: 0.58rem;
  padding: 2px 8px; border-radius: 100px; white-space: nowrap;
  opacity: 0; transform: scale(0.6);
  transition:
    opacity 0.35s var(--ease) calc(var(--i) * 0.16s + 0.34s),
    transform 0.5s cubic-bezier(0.34, 1.8, 0.64, 1) calc(var(--i) * 0.16s + 0.34s);
}
.ab3-ev em.ok { background: var(--green-soft); color: #226c5d; }
.ab3-ev em.task { background: var(--amber-soft); color: #9a4c00; }
.ab3.ge-2 .ab3-ev em { opacity: 1; transform: none; }

/* ---- links / handshake ---- */
.ab3-link {
  position: relative; z-index: 1; align-self: center; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding-inline: 7px;
}
.ab3-link > span {
  font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2); white-space: nowrap;
  transition: color 0.4s var(--ease);
}
.ab3-track {
  position: relative; width: 100%; height: 2px; border-radius: 2px;
  background: var(--line-3);
  transition: background 0.5s var(--ease);
}
.ab3-track::after {
  content: ""; position: absolute; right: -1px; top: 50%; margin-top: -3.5px;
  border-left: 6px solid var(--line-3);
  border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
  transition: border-left-color 0.5s var(--ease);
}
/* traveling spark along an active track */
.ab3-track::before {
  content: ""; position: absolute; top: 50%; left: 0; width: 7px; height: 7px;
  margin-top: -3.5px; border-radius: 50%; opacity: 0;
}
.ab3.ge-3 .l1 > span { color: var(--teal); }
.ab3.ge-3 .l1 .ab3-track { background: rgba(8, 127, 144, 0.55); }
.ab3.ge-3 .l1 .ab3-track::after { border-left-color: var(--teal); }
.ab3.ph-3 .l1 .ab3-track::before {
  background: var(--teal); box-shadow: 0 0 10px 2px rgba(8, 127, 144, 0.5);
  animation: ab3Spark 1.4s linear infinite;
}
.ab3.ge-5 .l2 > span { color: var(--amber); }
.ab3.ge-5 .l2 .ab3-track { background: rgba(249, 105, 0, 0.55); }
.ab3.ge-5 .l2 .ab3-track::after { border-left-color: var(--amber); }
.ab3.ph-5 .l2 .ab3-track::before {
  background: var(--pumpkin); box-shadow: 0 0 10px 2px rgba(249, 105, 0, 0.5);
  animation: ab3Spark 1.4s linear infinite;
}
@keyframes ab3Spark {
  0% { left: -2px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 5px); opacity: 0; }
}

.ab3-token {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(4px) scale(0.9);
  font-family: var(--font-mono); font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.04em; white-space: nowrap;
  padding: 4px 9px; border-radius: 7px;
  border: 1px solid rgba(8, 127, 144, 0.45); background: var(--elevated); color: var(--teal);
  box-shadow: 0 10px 22px -14px rgba(8, 127, 144, 0.7);
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.ab3.ge-3 .ab3-token { opacity: 1; transform: translateX(-50%) scale(1); }
.ab3.ph-3 .ab3-token { animation: ab3TokenHop 0.9s var(--ease-out); }
@keyframes ab3TokenHop {
  0% { transform: translateX(-160%) translateY(-2px) scale(0.85); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* ---- brain ---- */
.ab3-wait {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted-2);
}
.ab3-wait::after { content: ""; display: inline-block; width: 1.2em; text-align: left; }
.ab3.ph-3 .ab3-wait::after { animation: ab3Dots 1.2s steps(4) infinite; content: ""; }
@keyframes ab3Dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.ab3.ge-4 .ab3-wait { display: none; }
.ab3-meters { display: flex; flex-direction: column; gap: 11px; }
.ab3-meter { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: baseline; }
.ab3-meter > span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.ab3-meter b {
  font-family: var(--font-display); font-size: 0.98rem; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  opacity: 0.25; transition: opacity 0.6s var(--ease) calc(var(--i) * 0.22s + 0.3s);
}
.ab3-meter i {
  grid-column: 1 / -1; display: block; height: 5px; border-radius: 100px;
  background: var(--line-2); overflow: hidden; position: relative;
}
.ab3-meter u {
  position: relative; display: block; height: 100%; width: 100%; border-radius: 100px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 0.22s);
}
.ab3-meter u::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  background-size: 220% 100%; background-position: 130% 0; opacity: 0;
}
.ab3.ph-4 .ab3-meter u::after { animation: ab3Shine 1.4s var(--ease) calc(var(--i) * 0.22s + 0.8s) 1 both; }
@keyframes ab3Shine {
  0% { background-position: 130% 0; opacity: 0; }
  25% { opacity: 1; }
  100% { background-position: -40% 0; opacity: 0; }
}
.ab3-meter .t-amber u { background: var(--pumpkin); }
.ab3-meter .t-green u { background: var(--green); }
.ab3-meter .t-teal u { background: var(--teal); }
.ab3.ge-4 .ab3-meter u { transform: scaleX(var(--v)); }
.ab3.ge-4 .ab3-meter b { opacity: 1; }
.ab3-cause {
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: 0.78rem; line-height: 1.45; text-wrap: pretty;
  opacity: 0; transform: translateY(5px);
  transition: opacity 0.5s var(--ease) 0.85s, transform 0.5s var(--ease) 0.85s;
}
.ab3.ge-4 .ab3-cause { opacity: 1; transform: none; }
.ab3-cause span {
  display: block; margin-bottom: 2px;
  font-family: var(--font-mono); font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber);
}

/* ---- report ---- */
.ab3-report {
  position: relative; z-index: 1;
  border: 1px solid var(--line);
  border-radius: 16px; background: var(--surface);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease), transform 0.5s var(--ease);
}
.ab3.ph-5 .ab3-report {
  border-color: rgba(249, 105, 0, 0.5);
  box-shadow: 0 26px 56px -36px rgba(249, 105, 0, 0.6);
  background: var(--elevated);
  transform: translateY(-3px);
}
/* sheen across the report when it lands */
.ab3-report::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.5) 50%, transparent 62%);
  background-size: 260% 100%; background-position: 130% 0; opacity: 0;
}
.ab3.ph-5 .ab3-report::after { animation: ab3Shine 1.6s var(--ease) 0.7s 1 both; }
.ab3-rhead {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 15px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.ab3-rhead b { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.06em; }
.ab3-rhead span { font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted-2); }
.ab3-rrow, .ab3-loopline {
  opacity: 0; transform: translateY(9px);
  transition:
    opacity 0.55s var(--ease) calc(var(--i) * 0.2s),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--i) * 0.2s);
}
.ab3.ge-5 .ab3-rrow, .ab3.ge-5 .ab3-loopline { opacity: 1; transform: none; }
.ab3-racct { display: flex; align-items: center; gap: 10px; padding: 12px 15px 10px; }
.ab3-avatar {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 0.8rem;
  background: var(--surface-3); border: 1px solid var(--line-3); color: var(--muted);
}
.ab3-rwho { min-width: 0; margin-right: auto; }
.ab3-rwho b { display: block; font-size: 0.9rem; letter-spacing: -0.01em; }
.ab3-rwho span { font-family: var(--font-mono); font-size: 0.6rem; color: var(--muted-2); white-space: nowrap; }
.ab3-racct .state { font-size: 0.62rem; padding: 3px 8px 3px 6px; flex: none; }
/* the verdict stamps in */
.ab3.ph-5 .ab3-racct .state { animation: ab3Stamp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s both; }
@keyframes ab3Stamp {
  0% { transform: scale(1.9) rotate(-7deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.ab3-rstats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line-2); }
.ab3-rstats div { padding: 9px 12px; border-right: 1px solid var(--line-2); }
.ab3-rstats div:last-child { border-right: none; }
.ab3-rstats b { display: block; font-family: var(--font-display); font-size: 1.04rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ab3-rstats span { font-family: var(--font-mono); font-size: 0.52rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.ab3-ract { padding: 11px 15px; }
.ab3-ract > span {
  display: block; margin-bottom: 3px;
  font-family: var(--font-mono); font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber);
}
.ab3-ract p { font-size: 0.79rem; line-height: 1.45; text-wrap: pretty; }
.ab3-loopline {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-top: 1px dashed rgba(8, 127, 144, 0.4);
  font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.04em; color: var(--teal);
}
.ab3-loopline i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--teal); }
.ab3.ge-5 .ab3-loopline i { animation: ab3LoopDot 1.8s var(--ease) infinite; }
@keyframes ab3LoopDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8, 127, 144, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(8, 127, 144, 0); }
}

/* ---- beats / narration ---- */
.ab3-beats {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 16px clamp(18px, 2.6vw, 30px) 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.ab3-say {
  font-family: var(--font-display); font-size: clamp(1rem, 1.5vw, 1.18rem);
  letter-spacing: -0.015em; line-height: 1.3; text-wrap: balance; min-height: 1.5em;
}
.ab3-say.is-swap { animation: ab3Say 0.5s var(--ease-out); }
@keyframes ab3Say { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ab3-player {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(237, 246, 235, 0.72));
}
.ab3-now {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}
.ab3.is-paused .ab3-now { color: var(--amber); }
.ab3-playrail {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: rgba(31, 55, 55, 0.11);
  box-shadow: inset 0 0 0 1px rgba(31, 55, 55, 0.06);
}
.ab3-playrail i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--ab3-progress);
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--pumpkin));
  box-shadow: 0 0 18px rgba(249, 105, 0, 0.24);
  transition: width 0.12s linear;
}
.ab3-playrail b {
  position: absolute;
  left: var(--ab3-progress);
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 999px;
  background: var(--pumpkin);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px rgba(249, 105, 0, 0.35), 0 10px 22px -12px rgba(249, 105, 0, 0.9);
  transition: left 0.12s linear;
}
.ab3.is-running .ab3-playrail b { animation: ab3Playhead 1.1s var(--ease) infinite; }
@keyframes ab3Playhead {
  0%, 100% { box-shadow: 0 0 0 1px rgba(249, 105, 0, 0.35), 0 0 0 0 rgba(249, 105, 0, 0.28), 0 10px 22px -12px rgba(249, 105, 0, 0.9); }
  50% { box-shadow: 0 0 0 1px rgba(249, 105, 0, 0.35), 0 0 0 8px rgba(249, 105, 0, 0), 0 10px 22px -12px rgba(249, 105, 0, 0.9); }
}
.ab3-toggle {
  align-self: stretch;
  flex: 0 0 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 16px;
  min-height: 51px;
  border-radius: 12px;
  color: #fffaf0;
  border: 1px solid rgba(249, 105, 0, 0.7);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #ff7a1a, var(--pumpkin));
  box-shadow: 0 18px 34px -22px rgba(249, 105, 0, 0.95);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.ab3-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px -24px rgba(249, 105, 0, 1);
}
.ab3-toggle:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.ab3-toggle-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  line-height: 1;
  letter-spacing: -0.08em;
}
.ab3.is-paused .ab3-toggle {
  color: #0f3432;
  border-color: rgba(8, 127, 144, 0.45);
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.35), transparent 28%),
    linear-gradient(135deg, #d8fbf2, #b8eadf);
  box-shadow: 0 18px 34px -24px rgba(8, 127, 144, 0.75);
}
.ab3.is-paused .ab3-toggle-icon {
  background: rgba(8, 127, 144, 0.13);
}

.ab3-beatrow { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.ab3-beat {
  position: relative; flex: 1 1 0; min-width: 118px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 9px 12px 12px; border-radius: 10px; text-align: left;
  border: 1px solid var(--line); background: var(--surface-2);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.ab3-beat:hover { border-color: var(--line-3); transform: translateY(-1px); }
.ab3-beat:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.ab3-beat.is-on { border-color: rgba(249, 105, 0, 0.5); background: var(--elevated); }
.ab3-beat i { font-style: normal; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.14em; color: var(--muted-2); }
.ab3-beat.is-on i { color: var(--amber); }
.ab3-beat span { font-size: 0.78rem; font-weight: 600; letter-spacing: -0.01em; }
.ab3-beat u {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--pumpkin); transform: scaleX(0); transform-origin: left center;
}
.ab3-beat.is-done u { transform: scaleX(1); }
.ab3-beat.is-on u { animation: ab3Fill var(--beat-ms, 3200ms) linear forwards; }
.ab3.is-paused .ab3-beat.is-on u { animation-play-state: paused; }
@keyframes ab3Fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* ---- responsive ---- */
@media (max-width: 1020px) {
  .ab3-stage { grid-template-columns: 1fr; gap: 10px; }
  .ab3-link { flex-direction: row; justify-content: center; gap: 10px; padding-block: 2px; }
  .ab3-link > span { order: 2; }
  .ab3-track { width: 2px; height: 30px; flex: none; }
  .ab3-track::before { display: none; }
  .ab3-track::after {
    right: auto; top: auto; left: 50%; bottom: -1px; margin: 0 0 0 -3.5px;
    border-left: 3.5px solid transparent; border-right: 3.5px solid transparent;
    border-top: 6px solid var(--line-3); border-bottom: none;
  }
  .ab3.ge-3 .l1 .ab3-track::after { border-top-color: var(--teal); border-left-color: transparent; }
  .ab3.ge-5 .l2 .ab3-track::after { border-top-color: var(--amber); border-left-color: transparent; }
  .ab3-token { top: 50%; left: calc(50% + 14px); transform: translateY(-50%) scale(0.9); }
  .ab3.ge-3 .ab3-token { transform: translateY(-50%) scale(1); }
  .ab3.ph-3 .ab3-token { animation: none; }
}
@media (max-width: 640px) {
  .ab3-beat { min-width: 30%; }
  .ab3-beat span { font-size: 0.7rem; }
  .ab3-swap b { white-space: normal; }
  .ab3-ev { grid-template-columns: 46px minmax(0, 1fr); }
  .ab3-ev em { grid-column: 2; justify-self: start; }
  .ab3-stage::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ab3 *, .ab3 *::before, .ab3 *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .ab3-beat.is-on u { transform: scaleX(1); }
}


/* ============================================================
   AB3 v3 additions — seamless loop cross-fade + paused hint
   ============================================================ */
.ab3-stage, .ab3-say {
  transition: opacity 0.38s var(--ease), filter 0.38s var(--ease);
}
.ab3.is-cycling .ab3-stage {
  opacity: 0.18; filter: blur(2px) saturate(0.85);
}
.ab3.is-cycling .ab3-say { opacity: 0; }
.ab3-say::after {
  content: ""; font-family: var(--font-mono); font-size: 0.6em;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2);
  vertical-align: middle;
}
.ab3.is-paused .ab3-say::after { content: "\00a0\00a0· paused"; color: var(--amber); }
@media (prefers-reduced-motion: reduce) {
  .ab3.is-cycling .ab3-stage { opacity: 1; filter: none; }
}

/* ---------- Mobile-only compression for the homepage demos ---------- */
@media (max-width: 720px) {
  .hero-product {
    padding-top: 102px;
    padding-bottom: 42px;
  }
  .hero-product .display {
    font-size: clamp(2.05rem, 10vw, 2.85rem);
  }
  .hero-product .hero-copy-center .lead {
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.45;
  }
  .hero-product .hero-copy-center .hero-cta {
    margin-top: 18px;
  }
  .hero-dashboard-wrap {
    width: min(100%, 430px);
    margin-top: 4px;
    overflow: hidden;
    border-radius: 22px;
  }
  .hero-dashboard-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,253,244,0), rgba(255,253,244,0.88));
    z-index: 12;
  }
  .product-dashboard {
    max-height: min(560px, 68vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-radius: 22px;
  }
  .product-dashboard::-webkit-scrollbar {
    width: 4px;
  }
  .product-dashboard::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(31,55,55,0.22);
  }
  .product-chrome {
    min-height: 42px;
    padding-inline: 12px;
  }
  .product-chrome .right,
  .dashboard-command p,
  .inbox-toolbar .sort,
  .console-address,
  .console-toast {
    display: none;
  }
  .dashboard-command {
    padding: 14px 14px 10px;
  }
  .dashboard-command h2 {
    font-size: 1.36rem;
  }
  .product-dashboard .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-dashboard .dashboard-kpis .cell {
    min-height: 72px;
    padding: 12px;
    border-right: 1px solid var(--line);
  }
  .product-dashboard .dashboard-kpis .cell:nth-child(2n) {
    border-right: none;
  }
  .product-dashboard .dashboard-kpis .val {
    font-size: 1.16rem;
  }
  .product-dashboard .inbox-toolbar,
  .console-browserbar {
    padding: 8px 12px;
  }
  .product-dashboard .inbox-toolbar .tabs,
  .console-tabs,
  .insight-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .product-dashboard .inbox-toolbar .tabs::-webkit-scrollbar,
  .console-tabs::-webkit-scrollbar,
  .insight-tabs::-webkit-scrollbar {
    display: none;
  }
  .product-dashboard .inbox-toolbar .tabs button,
  .console-tabs button,
  .insight-tabs button {
    flex: 0 0 auto;
  }
  .dashboard-body {
    overflow: visible;
  }
  .product-dashboard .inbox-head {
    display: none;
  }
  .product-dashboard .inbox-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    min-height: 0;
    margin: 8px 12px;
    padding: 12px;
    border: 1px solid rgba(31,55,55,0.1);
    border-radius: 14px;
    background: rgba(255,255,255,0.58);
  }
  .product-dashboard .inbox-row .rank,
  .product-dashboard .inbox-row .row-action {
    display: none;
  }
  .product-dashboard .inbox-row .acct {
    grid-column: 1;
    grid-row: 1;
  }
  .product-dashboard .inbox-row .state-cell {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .product-dashboard .inbox-row .arr {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    font-size: 0.9rem;
  }
  .product-dashboard .inbox-row .cause {
    grid-column: 1 / -1;
    grid-row: 3;
    font-size: 0.8rem;
  }
  .dashboard-insights {
    padding: 10px 12px 12px;
  }
  .insight-panel {
    gap: 10px;
  }
  .insight-panel p {
    display: none;
  }
  .insight-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .insight-stats div {
    padding: 9px;
  }
  .dashboard-detail {
    margin: 10px 12px 12px;
    max-height: 430px;
    overflow-y: auto;
  }
  .detail-chart {
    max-height: 88px;
  }
  .dashboard-explain {
    padding: 10px 12px 14px;
  }
  .dashboard-explain p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .ab3 {
    margin-top: 28px;
    border-radius: 22px;
  }
  .ab3-stage {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ab3-stage::-webkit-scrollbar {
    display: none;
  }
  .ab3-stage::before,
  .ab3-link {
    display: none;
  }
  .ab3-chamber,
  .ab3-report {
    flex: 0 0 min(84vw, 320px);
    min-height: 300px;
    scroll-snap-align: start;
  }
  .ab3-chamber {
    padding: 15px;
  }
  .ab3-chead div b,
  .ab3-chead div span {
    display: block;
  }
  .ab3-chead div span {
    margin-top: 2px;
    line-height: 1.25;
  }
  .ab3-cnote {
    display: none;
  }
  .ab3-evrows {
    gap: 7px;
  }
  .ab3-ev {
    padding: 8px 10px;
  }
  .ab3-beats {
    padding: 13px 14px 14px;
  }
  .ab3-say {
    min-height: 2.35em;
    font-size: 1rem;
  }
  .ab3-beatrow {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ab3-beatrow::-webkit-scrollbar {
    display: none;
  }
  .ab3-beat {
    flex: 0 0 126px;
    min-width: 126px;
    scroll-snap-align: start;
  }
  .ab3-toggle {
    flex: 0 0 108px;
    min-height: 52px;
    padding-inline: 12px;
  }
  .ab-foot {
    padding: 9px 14px;
  }
  .ab-foot p {
    display: none;
  }
}

@media (max-width: 540px) {
  .product-dashboard .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-dashboard .dashboard-kpis .cell {
    border-right: 1px solid var(--line);
  }
  .product-dashboard .dashboard-kpis .cell:nth-child(2n) {
    border-right: none;
  }
  .detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .ab3-chamber,
  .ab3-report {
    flex-basis: calc(100vw - 64px);
  }
}
