/* ============================================================
   TRANXACT — Platform features page
   Animated, illustrative "screenshot" demos (pure CSS/HTML, no video files).
   Inherits the brand tokens from styles.css.
   ============================================================ */
.feat-hero { background: linear-gradient(180deg, #fbfcff 0%, #f0f2fb 100%); padding: 112px 0 26px; border-bottom: 1px solid var(--line); }
.feat-hero h1 { font-size: var(--fs-d1s); color: var(--brand-deep); max-width: 20ch; }
.feat-hero p { color: var(--muted); max-width: 62ch; margin: 12px 0 0; font-size: var(--fs-md); }
.feat-hero .feat-count { font-family: var(--mono); font-size: var(--fs-3xs); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; margin: 12px 0 0; }

/* The jump bar follows the reader instead of scrolling away with the hero. */
.feat-nav { position: sticky; top: 58px; z-index: 20; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.feat-nav-inner { padding-top: 9px; padding-bottom: 9px; display: flex; align-items: center; gap: 12px; }
/* the chips scroll sideways; the expand control sits outside that strip so it
   never scrolls out of reach */
.feat-jump { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.feat-jump::-webkit-scrollbar { display: none; }
/* a soft edge says "there is more, scroll me" without a scrollbar */
.feat-jump { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); }
[dir=rtl] .feat-jump { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 22px), transparent); }
.feat-jump a { flex: 0 0 auto; font-size: var(--fs-3xs); font-weight: 700; color: var(--brand-deep); background: var(--paper); border: 1px solid var(--line-strong); padding: 6px 13px; border-radius: 999px; transition: border-color .15s, color .15s, background .15s; white-space: nowrap; }
.feat-jump a:hover { border-color: var(--brand); color: var(--brand); }
.feat-jump a.here { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-deep); }
.feat-toggle-all { flex: 0 0 auto; font-family: var(--sans); font-size: var(--fs-3xs); font-weight: 700; color: var(--brand); background: none; border: 1px solid var(--brand-soft-2); border-radius: 999px; padding: 6px 13px; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.feat-toggle-all:hover { border-color: var(--brand); background: var(--brand-soft); }

.feat-group { padding: 40px 0; border-bottom: 1px solid var(--line); }
.feat-group:nth-child(even) { background: var(--paper-alt); }
.group-head { max-width: 62ch; margin-bottom: 18px; }
.group-head .eyebrow { margin-bottom: 8px; }
.group-head h2 { font-size: var(--fs-d3); }
.group-head p { color: var(--muted); font-size: var(--fs-md); margin: 10px 0 0; }
.group-count { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: var(--fs-4xs); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* ---- collapsible feature rows ----
   Closed, a feature is one line of headline plus one line of summary. Opened,
   it shows the rest of the prose, the checklist and the animated demo. */
.feat-list { border-top: 1px solid var(--line); }
.feat-item { border-bottom: 1px solid var(--line); }
.feat-sum { display: flex; align-items: flex-start; gap: 16px; padding: 14px 4px; cursor: pointer; list-style: none; transition: background .15s; }
.feat-sum::-webkit-details-marker { display: none; }
.feat-sum:hover { background: rgba(28,30,143,.035); }
.feat-sum:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: -2px; border-radius: 6px; }
.feat-sum-copy { display: block; min-width: 0; flex: 1; }
.feat-sum-t { display: block; font-family: var(--serif); font-size: var(--fs-d5); line-height: var(--lh-d4); color: var(--ink); }
/* clamped to two lines closed — several leads are a single long sentence,
   and an unclamped teaser would put the page straight back where it started */
.feat-sum-teaser { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 3px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.feat-chev { flex: 0 0 auto; width: 26px; height: 26px; margin-top: 3px; border-radius: 999px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--brand); transition: transform .2s ease, border-color .15s, background .15s; }
.feat-chev::before { content: "⌄"; font-size: 14px; line-height: 1; margin-top: -3px; }
.feat-sum:hover .feat-chev { border-color: var(--brand); background: var(--brand-soft); }
.feat-item[open] > .feat-sum .feat-chev { transform: rotate(180deg); }
.feat-item[open] > .feat-sum .feat-sum-t { color: var(--brand-deep); }
/* the opened body carries the lead in full, so the teaser would just repeat it */
.feat-item[open] > .feat-sum .feat-sum-teaser { display: none; }

.feat-open { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; padding: 4px 4px 26px; animation: featopen .22s ease; }
@keyframes featopen { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .feat-open { animation: none; } }
@media (max-width: 860px) { .feat-open { grid-template-columns: 1fr; gap: 20px; } }
.feat-copy h3 { font-size: var(--fs-d4); color: var(--ink); margin-bottom: 10px; }
.feat-copy .lead { color: var(--muted); font-size: var(--fs-sm); line-height: 1.62; margin: 0 0 14px; }
.feat-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feat-points li { position: relative; padding-inline-start: 28px; font-size: var(--fs-sm); color: var(--text); line-height: 1.5; }
.feat-points li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 1px; width: 19px; height: 19px; border-radius: 999px; background: var(--brand); color: #fff; font-size: var(--fs-4xs); display: grid; place-items: center; }

/* ---- demo window chrome ("screenshot") ---- */
.demo { background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--paper-alt-2); border-bottom: 1px solid var(--line); }
.demo-bar i { width: 10px; height: 10px; border-radius: 999px; background: var(--line-strong); display: inline-block; }
.demo-bar i:nth-child(1) { background: #e0687a; } .demo-bar i:nth-child(2) { background: #e6c46a; } .demo-bar i:nth-child(3) { background: #79c98f; }
.demo-bar span { margin-left: 8px; font-family: var(--mono); font-size: var(--fs-4xs); color: var(--faint); letter-spacing: .02em; }
.demo-body { padding: 16px; min-height: 200px; position: relative; }
.demo-illus { position: absolute; bottom: 8px; right: 12px; font-family: var(--mono); font-size: var(--fs-6xs); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.demo-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; font-size: var(--fs-2xs); padding: 7px 4px; border-bottom: 1px solid var(--line); }
.demo-row .n { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: end; min-width: 62px; color: var(--ink); }
.demo-h { font-family: var(--mono); font-size: var(--fs-4xs); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); border-bottom: 1px solid var(--line-strong); }
.demo-chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-3xs); font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.chip-ok { background: #e7f6ec; color: #1c7a41; }
.chip-brand { background: var(--brand-soft); color: var(--brand-deep); }
.chip-red { background: var(--red-soft); color: var(--red-deep); }

@media (prefers-reduced-motion: reduce) { .demo * { animation: none !important; } }

/* ---- shared keyframes ---- */
@keyframes typeIn { from { width: 0; } to { width: 100%; } }
@keyframes fadeUp { 0%,10% { opacity: 0; transform: translateY(6px); } 22%,100% { opacity: 1; transform: none; } }
@keyframes pop { 0%,60% { opacity: 0; transform: scale(.8); } 72%,100% { opacity: 1; transform: scale(1); } }
@keyframes slideDot { 0% { left: 4%; } 45% { left: 4%; } 55%,100% { left: 92%; } }
@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes streamUp { 0% { opacity: 0; transform: translateY(10px); } 12%,90% { opacity: 1; transform: none; } 100% { opacity: .3; } }
@keyframes flip { 0%,20% { opacity: 0; } 30% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(224,38,58,.4); } 70% { box-shadow: 0 0 0 12px rgba(224,38,58,0); } 100% { box-shadow: 0 0 0 0 rgba(224,38,58,0); } }
@keyframes handoff { 0%,40% { opacity: .35; } 55%,100% { opacity: 1; } }
@keyframes dim { 0%,40% { opacity: 1; } 55%,100% { opacity: .28; } }

/* rows appearing in sequence */
.seq > * { opacity: 0; animation: fadeUp 5s ease infinite; }
.seq > *:nth-child(1) { animation-delay: .0s; } .seq > *:nth-child(2) { animation-delay: .5s; }
.seq > *:nth-child(3) { animation-delay: 1.0s; } .seq > *:nth-child(4) { animation-delay: 1.5s; }
.seq > *:nth-child(5) { animation-delay: 2.0s; } .seq > *:nth-child(6) { animation-delay: 2.5s; }

/* balance check pops last */
.balance { margin-top: 10px; display: flex; justify-content: flex-end; }
.balance .demo-chip { opacity: 0; animation: pop 5s ease infinite; }

/* pipeline / flow scene */
.flow { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 26px; }
.flow .stage { flex: 1; text-align: center; font-size: var(--fs-3xs); font-weight: 700; color: var(--brand-deep); background: var(--brand-soft); border-radius: 8px; padding: 12px 6px; opacity: 0; animation: fadeUp 5s ease infinite; }
.flow .stage:nth-child(1) { animation-delay: 0s; } .flow .stage:nth-child(3) { animation-delay: .5s; }
.flow .stage:nth-child(5) { animation-delay: 1s; } .flow .stage:nth-child(7) { animation-delay: 1.5s; }
.flow .stage:nth-child(9) { animation-delay: 2s; }
.flow .arw { color: var(--faint); font-weight: 700; flex: 0 0 auto; }
.flow-note { margin-top: 20px; text-align: center; }
.flow-note .demo-chip { opacity: 0; animation: pop 5s ease infinite; }

/* three-way match */
.match3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 10px; }
.match3 .doc { border: 1px solid var(--line); border-radius: 9px; padding: 12px; text-align: center; opacity: 0; animation: fadeUp 5s ease infinite; }
.match3 .doc:nth-child(2) { animation-delay: .5s; } .match3 .doc:nth-child(3) { animation-delay: 1s; }
.match3 .doc .t { font-family: var(--mono); font-size: var(--fs-6xs); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.match3 .doc .v { font-family: var(--mono); font-size: var(--fs-lg); color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; }
.match-line { margin-top: 16px; text-align: center; }
.match-line .demo-chip { opacity: 0; animation: pop 5s ease infinite; animation-delay: .2s; }

/* numbering counter */
.numscene { margin-top: 12px; }
.numscene .track { display: flex; gap: 5px; flex-wrap: wrap; }
.numscene .tk { font-family: var(--mono); font-size: var(--fs-4xs); padding: 5px 8px; border-radius: 6px; background: var(--paper-alt-2); color: var(--muted); }
.numscene .tk.exist { background: var(--brand-soft); color: var(--brand-deep); }
.numscene .cursor { margin-top: 16px; font-family: var(--mono); font-size: var(--fs-2xs); color: var(--ink); position: relative; }
.numscene .cursor b { color: var(--red-deep); }
.numscene .ptr { display: inline-block; animation: fadeUp 5s ease infinite; opacity: 0; }

/* ask chat */
.askscene { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.askscene .q { align-self: flex-end; max-width: 88%; background: linear-gradient(180deg,var(--brand),var(--brand-deep)); color: #fff; padding: 10px 13px; border-radius: 13px 13px 4px 13px; font-size: var(--fs-2xs); overflow: hidden; white-space: nowrap; animation: fadeUp 5s ease infinite; }
.askscene .a { align-self: flex-start; max-width: 90%; background: var(--paper-alt); border: 1px solid var(--line); padding: 10px 13px; border-radius: 13px 13px 13px 4px; font-size: var(--fs-2xs); color: var(--text); opacity: 0; animation: fadeUp 5s ease infinite; animation-delay: 1.4s; }
.askscene .a .tag { font-family: var(--mono); font-size: var(--fs-6xs); color: var(--red); letter-spacing: .08em; margin-right: 6px; }
.askscene .a .audit { display: block; margin-top: 7px; font-size: var(--fs-4xs); color: var(--faint); }

/* audit stream */
.audit-stream { margin-top: 6px; display: flex; flex-direction: column; gap: 7px; }
.audit-stream .ln { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; font-size: var(--fs-3xs); align-items: center; opacity: 0; animation: streamUp 5s ease infinite; }
.audit-stream .ln:nth-child(2) { animation-delay: .7s; } .audit-stream .ln:nth-child(3) { animation-delay: 1.4s; }
.audit-stream .ln:nth-child(4) { animation-delay: 2.1s; } .audit-stream .ln:nth-child(5) { animation-delay: 2.8s; }
.audit-stream .who { font-weight: 700; color: var(--brand-deep); }
.audit-stream .ts { font-family: var(--mono); font-size: var(--fs-4xs); color: var(--faint); }
.audit-stream .act { color: var(--muted); }

/* inventory bar */
.inv { margin-top: 18px; }
.inv .bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.inv .bar { flex: 1; background: var(--brand-soft); border-radius: 6px 6px 0 0; transform-origin: bottom; animation: barGrow 5s ease infinite; position: relative; }
.inv .bar.fefo { background: linear-gradient(180deg,var(--brand),var(--brand-deep)); }
.inv .bar:nth-child(2){animation-delay:.2s}.inv .bar:nth-child(3){animation-delay:.4s}.inv .bar:nth-child(4){animation-delay:.6s}.inv .bar:nth-child(5){animation-delay:.8s}.inv .bar:nth-child(6){animation-delay:1s}
.inv .cap { margin-top: 8px; font-size: var(--fs-3xs); color: var(--muted); text-align: center; }

/* genealogy tree */
.tree { margin-top: 10px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.tree .col { display: flex; flex-direction: column; gap: 7px; }
.tree .node { font-family: var(--mono); font-size: var(--fs-4xs); padding: 7px 9px; border-radius: 7px; background: var(--paper-alt-2); color: var(--muted); text-align: center; opacity: 0; animation: fadeUp 5s ease infinite; }
.tree .mid { text-align: center; }
.tree .mid .u { font-family: var(--mono); font-size: var(--fs-3xs); font-weight: 700; padding: 10px; border-radius: 9px; background: var(--brand); color: #fff; animation: pulseRing 5s ease infinite; }
.tree .col.out .node { animation-delay: 1.4s; }

/* dr failover */
.dr2 { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 22px; }
.dr2 .reg { border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 16px; text-align: center; }
.dr2 .reg .lbl { font-family: var(--mono); font-size: var(--fs-4xs); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.dr2 .reg .name { font-weight: 700; color: var(--ink); margin-top: 6px; font-size: var(--fs-xs); }
.dr2 .reg.primary { animation: dim 5s ease infinite; border-color: var(--brand); }
.dr2 .reg.primary .st { color: var(--red-deep); }
.dr2 .reg.dr { animation: handoff 5s ease infinite; }
.dr2 .reg.dr .st { color: #1c7a41; }
.dr2 .reg .st { margin-top: 8px; font-size: var(--fs-3xs); font-weight: 700; }
.dr2 .arrow { font-size: var(--fs-d5); color: var(--red); animation: pulseRing 5s ease infinite; border-radius: 999px; }

/* multicloud */
.mc { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.mc .cnode { flex: 1; text-align: center; border: 1px solid var(--line-strong); border-radius: 10px; padding: 18px 8px; background: var(--paper); opacity: 0; animation: fadeUp 5s ease infinite; }
.mc .cnode:nth-child(2){animation-delay:.4s}.mc .cnode:nth-child(3){animation-delay:.8s}
.mc .cnode .icn { font-size: var(--fs-d5); }
.mc .cnode .cn { font-size: var(--fs-3xs); font-weight: 700; color: var(--brand-deep); margin-top: 6px; }
.mc .cnode .rg { font-family: var(--mono); font-size: var(--fs-6xs); color: var(--faint); margin-top: 3px; }
.mc-note { text-align: center; margin-top: 20px; }
.mc-note .demo-chip { opacity: 0; animation: pop 5s ease infinite; }

/* security roles */
.sec { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sec .role { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; font-size: var(--fs-2xs); opacity: 0; animation: fadeUp 5s ease infinite; }
.sec .role:nth-child(2){animation-delay:.5s}.sec .role:nth-child(3){animation-delay:1s}
.sec .role .r { font-weight: 700; color: var(--brand-deep); }
.sec .role .perms { display: flex; gap: 6px; flex-wrap: wrap; }
.sec .perm { font-size: var(--fs-4xs); padding: 3px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); }
.sec .perm.deny { background: var(--red-soft); color: var(--red-deep); text-decoration: line-through; }

/* i18n — the same phrase surfacing at different spots around the frame */
.i18n { position: relative; height: 176px; overflow: hidden; }
.i18n .w { position: absolute; font-family: var(--serif); font-size: var(--fs-d5); line-height: 1; color: var(--brand-deep); white-space: nowrap; opacity: 0; animation: wordpop 9s ease-in-out infinite; }
.i18n .w[dir=rtl] { direction: rtl; }
@keyframes wordpop { 0% { opacity: 0; transform: translateY(8px) scale(.9); } 4% { opacity: 1; transform: none; } 9% { opacity: 1; } 13% { opacity: 0; transform: scale(1.02); } 100% { opacity: 0; } }
.i18n .w:nth-child(1) { top: 8%;  left: 5%;  animation-delay: 0s; }
.i18n .w:nth-child(2) { top: 55%; left: 55%; animation-delay: 1s; color: var(--red-deep); }
.i18n .w:nth-child(3) { top: 74%; left: 8%;  animation-delay: 2s; }
.i18n .w:nth-child(4) { top: 22%; left: 50%; animation-delay: 3s; color: var(--red-deep); }
.i18n .w:nth-child(5) { top: 42%; left: 20%; animation-delay: 4s; }
.i18n .w:nth-child(6) { top: 82%; left: 52%; animation-delay: 5s; color: var(--red-deep); }
.i18n .w:nth-child(7) { top: 10%; left: 32%; animation-delay: 6s; }
.i18n .w:nth-child(8) { top: 60%; left: 3%;  animation-delay: 7s; color: var(--red-deep); }
.i18n .w:nth-child(9) { top: 36%; left: 62%; animation-delay: 8s; }
.i18n-cap { margin-top: 12px; font-size: var(--fs-3xs); color: var(--muted); text-align: center; }

/* proactive: role attention radar */
.radar { margin-top: 2px; }
.radar-head { font-size: var(--fs-3xs); color: var(--muted); margin-bottom: 12px; }
.radar-stage { position: relative; height: 122px; }
.rolepanel { position: absolute; inset: 0; opacity: 0; animation: roleshow 18s ease-in-out infinite; }
.rolepanel:nth-child(1) { animation-delay: 0s; } .rolepanel:nth-child(2) { animation-delay: 3s; }
.rolepanel:nth-child(3) { animation-delay: 6s; } .rolepanel:nth-child(4) { animation-delay: 9s; }
.rolepanel:nth-child(5) { animation-delay: 12s; } .rolepanel:nth-child(6) { animation-delay: 15s; }
@keyframes roleshow { 0% { opacity: 0; transform: translateY(6px); } 2% { opacity: 1; transform: none; } 15% { opacity: 1; } 17% { opacity: 0; } 100% { opacity: 0; } }
.role-chip { display: inline-block; font-family: var(--mono); font-size: var(--fs-3xs); font-weight: 700; color: #fff; background: var(--brand); padding: 4px 12px; border-radius: 999px; margin-bottom: 11px; }
.alert { font-size: var(--fs-2xs); line-height: 1.35; padding: 9px 12px; border-radius: 8px; margin-bottom: 8px; border-inline-start: 3px solid; }
.alert.a-red { background: var(--red-soft); border-color: var(--red); color: #7a1420; }
.alert.a-amb { background: #fdf4e3; border-color: #e0a83a; color: #7a5410; }
.alert.a-brand { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-deep); }

/* proactive: graphical org chart */
.orgwrap { margin-top: 8px; text-align: center; }
.orgsvg { width: 100%; height: auto; max-height: 150px; animation: orgfade 6s ease infinite; }
@keyframes orgfade { 0% { opacity: .3; } 20% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: .3; } }
.orgsvg .onode rect { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 1.5; }
.orgsvg .onode:first-of-type rect { fill: var(--brand); }
.orgsvg .onode text { font-family: var(--sans); font-size: var(--fs-3xs); font-weight: 700; fill: var(--brand-deep); text-anchor: middle; }
.orgsvg .onode:first-of-type text { fill: #fff; }
.cc-legend { margin-top: 10px; font-size: var(--fs-3xs); color: var(--muted); }

/* capture: OCR */
.ocr { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; min-width: 0; }
@media (max-width: 560px) { .ocr { grid-template-columns: 1fr; } }
.ocr-doc { font-size: var(--fs-2xs); font-weight: 700; color: var(--brand-deep); background: var(--brand-soft); border: 1px solid var(--line); border-radius: 10px; padding: 18px 14px; text-align: center; line-height: 1.5; }
.ocr-fields { min-width: 0; }

/* innovation: GAN / 3D cube */
.innovate { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; min-height: 190px; }
@media (max-width: 560px) { .innovate { grid-template-columns: 1fr; } }
.scene { perspective: 620px; display: grid; place-items: center; height: 160px; }
.cube { position: relative; width: 78px; height: 78px; transform-style: preserve-3d; animation: spin 9s linear infinite; }
.cube .face { position: absolute; width: 78px; height: 78px; border: 1.5px solid var(--brand); background: rgba(28, 30, 143, .08); }
.cube .f1 { transform: translateZ(39px); }
.cube .f2 { transform: rotateY(180deg) translateZ(39px); }
.cube .f3 { transform: rotateY(90deg) translateZ(39px); }
.cube .f4 { transform: rotateY(-90deg) translateZ(39px); }
.cube .f5 { transform: rotateX(90deg) translateZ(39px); }
.cube .f6 { transform: rotateX(-90deg) translateZ(39px); }
@keyframes spin { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }
.scenarios { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.scenarios .demo-chip { opacity: 0; animation: fadeUp 5s ease infinite; }
.scenarios .demo-chip:nth-child(2) { animation-delay: .5s; } .scenarios .demo-chip:nth-child(3) { animation-delay: 1s; }

/* budgeting: budget vs commitment */
.bud { margin-top: 4px; display: flex; flex-direction: column; gap: 16px; }
.budrow .budhead { display: flex; justify-content: space-between; font-size: var(--fs-2xs); color: var(--ink); margin-bottom: 7px; }
.budrow .budhead .n { font-family: var(--mono); color: var(--brand-deep); }
.bud .track { position: relative; height: 16px; border-radius: 999px; background: var(--paper-alt-2); overflow: hidden; }
.bud .track .fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px; transform-origin: left; animation: growX 1.4s ease both; }
.bud .track .fill.committed { background: var(--brand-soft-2); z-index: 1; }
.bud .track .fill.actual { background: linear-gradient(90deg, var(--brand), var(--brand-deep)); z-index: 2; }
.budlegend { display: flex; gap: 16px; font-size: var(--fs-4xs); font-weight: 700; }
.budlegend .lg-b { color: var(--faint); } .budlegend .lg-c { color: var(--brand); } .budlegend .lg-a { color: var(--brand-deep); }

/* reporting: live dashboard */
.dash { margin-top: 2px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 9px; padding: 12px; }
.kpi .kk { font-family: var(--mono); font-size: var(--fs-6xs); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.kpi .kv { font-family: var(--serif); font-size: var(--fs-d4); color: var(--brand-deep); line-height: 1; margin-top: 4px; }
.kpi .kd { font-size: var(--fs-4xs); font-weight: 700; margin-top: 5px; color: #1c7a41; }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 68px; margin-top: 16px; }
.spark .sb { flex: 1; background: var(--brand-soft); border-radius: 5px 5px 0 0; transform-origin: bottom; animation: barGrow 4s ease infinite; }
.spark .sb:nth-child(even) { background: linear-gradient(180deg, var(--brand), var(--brand-deep)); }
.spark .sb:nth-child(2){animation-delay:.15s}.spark .sb:nth-child(3){animation-delay:.3s}.spark .sb:nth-child(4){animation-delay:.45s}.spark .sb:nth-child(5){animation-delay:.6s}.spark .sb:nth-child(6){animation-delay:.75s}.spark .sb:nth-child(7){animation-delay:.9s}
.live { margin-top: 12px; font-size: var(--fs-3xs); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.livedot { width: 8px; height: 8px; border-radius: 999px; background: #2fae5f; animation: blink 1.6s ease infinite; flex: 0 0 auto; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* CRM: social sentiment */
.senti { margin-top: 6px; }
.gauge { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--paper-alt-2); }
.gauge .g { display: block; height: 100%; transform-origin: left; animation: growX 1.2s ease both; }
.gauge .g.pos { background: #3aa564; } .gauge .g.neu { background: #e0a83a; } .gauge .g.neg { background: var(--red); }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.glabel { display: flex; gap: 16px; margin-top: 10px; font-size: var(--fs-3xs); font-weight: 700; }
.glabel .lp { color: #1c7a41; } .glabel .ln { color: #7a5410; } .glabel .lg { color: var(--red-deep); }
.feed { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.mention { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-2xs); border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.msrc { color: var(--muted); font-family: var(--mono); font-size: var(--fs-3xs); }
.mtag { font-size: var(--fs-4xs); font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.mtag.pos { background: #e7f6ec; color: #1c7a41; } .mtag.neu { background: #fdf4e3; color: #7a5410; } .mtag.neg { background: var(--red-soft); color: var(--red-deep); }

/* integration fabric — connector chips */
.fabric { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fabric .demo-chip { opacity: 0; animation: pop 5s ease infinite; }
.fabric .demo-chip:nth-child(1){animation-delay:0s}.fabric .demo-chip:nth-child(2){animation-delay:.15s}.fabric .demo-chip:nth-child(3){animation-delay:.3s}.fabric .demo-chip:nth-child(4){animation-delay:.45s}.fabric .demo-chip:nth-child(5){animation-delay:.6s}.fabric .demo-chip:nth-child(6){animation-delay:.75s}.fabric .demo-chip:nth-child(7){animation-delay:.9s}.fabric .demo-chip:nth-child(8){animation-delay:1.05s}.fabric .demo-chip:nth-child(9){animation-delay:1.2s}

/* roles determination */
.roles { margin-top: 10px; }
.roles .rrow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; font-size: var(--fs-2xs); padding: 8px 0; opacity: 0; animation: fadeUp 5s ease infinite; }
.roles .rrow:nth-child(2){animation-delay:.5s}.roles .rrow:nth-child(3){animation-delay:1s}.roles .rrow:nth-child(4){animation-delay:1.5s}
.roles .src { font-family: var(--mono); color: var(--muted); }
.roles .tgt { font-weight: 700; color: var(--brand-deep); }
.roles .to { color: var(--faint); text-align: center; }
