/* ============================================================
   Cylentra — Guided, click-by-click "watch AI do the work" demo.
   Visitor picks a job, then steps through the automation scene
   by scene. Fixed stage, one scene visible at a time.
   Tokens from ../../styles.css.
   ============================================================ */
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:var(--font-body);color:var(--ink);background:#0a1628;-webkit-font-smoothing:antialiased;line-height:1.6;overflow:hidden}
h1,h2,h3,h4{font-family:var(--font-heading);color:#fff;letter-spacing:-.01em}

/* shared squiggle */
.u{position:relative;white-space:nowrap}
.u svg{position:absolute;left:-2px;right:-2px;bottom:-.14em;width:calc(100% + 4px);height:.4em;overflow:visible}
.u svg path{fill:none;stroke:url(#sg);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}

/* brand button */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;font-family:var(--font-heading);font-weight:700;font-size:15px;line-height:1;padding:15px 30px;border-radius:var(--radius-md);cursor:pointer;border:1.5px solid transparent;text-decoration:none;transition:transform .15s var(--ease),box-shadow .15s var(--ease),background .15s,opacity .2s}
.btn svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.btn--primary{background:var(--blue);color:#fff;box-shadow:var(--shadow-cta)}
.btn--primary:hover{transform:translateY(-2px);box-shadow:var(--shadow-cta-hover)}
.btn--light{background:#fff;color:var(--navy)}
.btn--light:hover{transform:translateY(-2px)}
.btn--ghostDark{background:transparent;color:#dbe3f0;border-color:rgba(255,255,255,.28)}
.btn--ghostDark:hover{border-color:#fff;color:#fff}
.btn[disabled]{opacity:.45;cursor:default;pointer-events:none;box-shadow:none}

.eyebrow{display:inline-flex;align-items:center;gap:10px;font-family:var(--font-heading);font-weight:700;font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:var(--teal-soft)}
.eyebrow::before{content:"";width:24px;height:2px;background:var(--grad);border-radius:2px}
.honesty{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-heading);font-weight:700;font-size:10.5px;letter-spacing:.13em;text-transform:uppercase;color:#8fa0bd;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);border-radius:var(--radius-pill);padding:6px 13px}
.honesty .dot{width:7px;height:7px;border-radius:50%;background:#5fd6b8;flex:none}

/* ---- top brand bar ---- */
.topbar{position:fixed;top:0;left:0;right:0;z-index:80;height:62px;display:flex;align-items:center;justify-content:space-between;padding:0 26px;pointer-events:none}
.topbar a{pointer-events:auto;display:flex;align-items:center}
.topbar img{height:23px;width:auto;opacity:.92}
.topbar .restart{pointer-events:auto;display:none;align-items:center;gap:7px;font-family:var(--font-heading);font-weight:600;font-size:12.5px;color:#9fb0cc;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:var(--radius-pill);padding:7px 14px;cursor:pointer;transition:color .15s,background .15s}
.topbar .restart.show{display:inline-flex}
.topbar .restart:hover{color:#fff;background:rgba(255,255,255,.12)}
.topbar .restart svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2.2}

/* ---- stage + scenes ---- */
.stage{position:fixed;inset:0}
.scene{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:safe center;padding:72px 26px 92px;opacity:1;overflow-y:auto}
.scene.active{display:flex;animation:sceneIn .5s var(--ease)}
@keyframes sceneIn{from{transform:translateY(14px)}to{transform:none}}
.glow{position:absolute;left:50%;top:46%;width:120%;height:90%;transform:translate(-50%,-50%);background:radial-gradient(ellipse at center,rgba(69,178,154,.13),rgba(3,119,232,.06) 44%,transparent 68%);z-index:0;pointer-events:none}

/* ===== SCENE: role picker ===== */
.role .inner{position:relative;z-index:2;text-align:center;max-width:1000px}
.role h1{font-weight:800;font-size:54px;line-height:1.05}
.role p.sub{margin:20px auto 40px;font-size:19px;font-weight:300;color:var(--on-dark);max-width:560px;line-height:1.5}
.role-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.role-card{position:relative;text-align:left;background:linear-gradient(165deg,#13294e,#0c1a35);border:1px solid rgba(120,160,220,.2);border-radius:18px;padding:24px 22px;cursor:pointer;transition:transform .18s var(--ease),box-shadow .18s var(--ease),border-color .18s;overflow:hidden}
.role-card:hover{transform:translateY(-4px);border-color:rgba(95,214,184,.55);box-shadow:0 26px 56px rgba(4,12,28,.5)}
.role-card .ic{width:46px;height:46px;border-radius:12px;background:var(--grad);display:grid;place-items:center;margin-bottom:16px}
.role-card .ic svg{width:23px;height:23px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.role-card .tag{font-family:var(--font-heading);font-weight:700;font-size:10.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--teal-soft);margin-bottom:6px}
.role-card h3{font-weight:800;font-size:20px;color:#fff;line-height:1.15}
.role-card p{font-size:13px;color:var(--on-dark-mut);margin-top:8px;line-height:1.45}
.role-card .go{margin-top:18px;display:inline-flex;align-items:center;gap:8px;font-family:var(--font-heading);font-weight:700;font-size:13px;color:#9cd0ff}
.role-card .go svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2.4;transition:transform .18s}
.role-card:hover .go svg{transform:translateX(4px)}
.role .pick-note{margin-top:26px;font-size:13px;color:var(--on-dark-mut)}

/* ===== SCENE: run (workspace) ===== */
.run .inner{position:relative;z-index:2;width:100%;max-width:760px}
.scene-head{text-align:center;margin-bottom:14px}
.scene-head .eyebrow{margin-bottom:10px}
.scene-head h2{font-weight:800;font-size:27px}
.scene-head p{margin-top:6px;color:var(--on-dark);font-weight:300;font-size:15px}
.workspace{background:#0e1f3d;border-radius:16px;border:1px solid rgba(120,160,220,.2);box-shadow:0 40px 90px rgba(4,12,28,.55);overflow:hidden}
.ws-bar{display:flex;align-items:center;gap:8px;padding:12px 16px;background:#0a1830;border-bottom:1px solid rgba(255,255,255,.07)}
.ws-bar i{width:10px;height:10px;border-radius:50%}
.ws-bar .r{background:#ff5f57}.ws-bar .y{background:#febc2e}.ws-bar .g{background:#28c840}
.ws-bar .t{margin-left:8px;color:rgba(255,255,255,.66);font-family:var(--font-heading);font-weight:600;font-size:12px}
.ws-bar .rec{margin-left:auto;display:flex;align-items:center;gap:7px;color:#ff8a8a;font-family:var(--font-heading);font-weight:700;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase}
.ws-bar .rec .rdot{width:8px;height:8px;border-radius:50%;background:#ff5f57}
.ws-body{display:grid;grid-template-columns:1fr 1fr}
.ws-steps{padding:13px 13px;display:flex;flex-direction:column;gap:8px;border-right:1px solid rgba(255,255,255,.07)}

/* ---- agent activity pane ---- */
.ws-activity{padding:13px 13px;min-height:250px;display:flex;flex-direction:column}
.act-head{display:flex;align-items:center;gap:8px;font-family:var(--font-heading);font-weight:700;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:#8fa0bd;margin-bottom:11px}
.act-head .act-agent{width:22px;height:22px;border-radius:6px;background:var(--grad);display:grid;place-items:center;flex:none}
.act-head .act-agent svg{width:13px;height:13px;stroke:#fff;fill:none;stroke-width:2}
.src-list{display:flex;flex-direction:column;gap:7px}
.src{position:relative;display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:11px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);overflow:hidden;transition:border-color .3s,background .3s,opacity .3s}
.src.pending{opacity:.5}
.src.scanning{border-color:rgba(3,119,232,.5);background:rgba(3,119,232,.08)}
.src.read{border-color:rgba(69,178,154,.32);background:rgba(69,178,154,.06)}
.src.scanning::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,rgba(95,214,184,.22) 50%,transparent 80%);transform:translateX(-100%);animation:scan 1s var(--ease) infinite}
@keyframes scan{to{transform:translateX(100%)}}
.src-ic{width:30px;height:30px;border-radius:8px;background:rgba(255,255,255,.08);display:grid;place-items:center;flex:none;transition:background .3s}
.src-ic svg{width:16px;height:16px;stroke:#9cd0ff;fill:none;stroke-width:2}
.src.read .src-ic{background:rgba(69,178,154,.18)}
.src.read .src-ic svg{stroke:#7fd9c4}
.src-main{flex:1;min-width:0}
.src-main b{display:block;font-family:var(--font-heading);font-weight:700;font-size:12.5px;color:#fff;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.src-main span{display:block;font-size:10.5px;color:var(--on-dark-mut);margin-top:1px}
.src-stat{flex:none;display:flex;align-items:center}
.src-chip{font-family:var(--font-heading);font-weight:600;font-size:10.5px;color:#7fd9c4;background:rgba(69,178,154,.12);border-radius:var(--radius-pill);padding:3px 9px;opacity:0;transform:translateX(6px);transition:opacity .3s,transform .3s}
.src.read .src-chip{opacity:1;transform:none}
.src-check{width:18px;height:18px;border-radius:50%;background:#45B29A;display:none;place-items:center;margin-left:8px}
.src-check svg{width:10px;height:10px;stroke:#08331f;fill:none;stroke-width:3.4}
.src.read .src-check{display:grid}

/* ---- the report document being drafted ---- */
.act-doc{display:flex;flex-direction:column;height:100%}
.act-doc[hidden]{display:none}
.doc-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.doc-file{font-family:var(--font-heading);font-weight:700;font-size:12.5px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.doc-badge{flex:none;font-family:var(--font-heading);font-weight:700;font-size:9.5px;letter-spacing:.06em;text-transform:uppercase;color:#7fd9c4;background:rgba(69,178,154,.14);border-radius:var(--radius-pill);padding:4px 9px}
.doc-badge.warn{color:#ffd9a0;background:rgba(201,130,27,.18)}
.doc-scroll{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);border-radius:11px;padding:14px 14px;flex:1}
.doc-sum-h{font-family:var(--font-heading);font-weight:700;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#8fa0bd;margin-bottom:8px}
.doc-sum{font-size:12px;line-height:1.5;color:var(--on-dark);margin:0 0 7px;opacity:0;transform:translateY(5px);transition:opacity .5s var(--ease),transform .5s var(--ease)}
.doc-sum.in{opacity:1;transform:none}
.doc-table{margin-top:14px;display:flex;flex-direction:column;gap:5px}
.doc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 10px;border-radius:7px;background:rgba(255,255,255,.04);opacity:0;transform:translateY(6px);transition:opacity .35s,transform .35s,background .3s,box-shadow .3s}
.doc-row.in{opacity:1;transform:none}
.doc-row .dr-k{flex:1;min-width:0;font-size:11.5px;color:var(--on-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.doc-row .dr-v{flex:none;font-family:var(--font-heading);font-weight:700;font-size:10.5px;color:#7fd9c4}
.doc-row.flagged{background:rgba(201,130,27,.16);box-shadow:0 0 0 1px rgba(231,164,72,.5)}
.doc-row.flagged .dr-v{color:#ffd9a0}
.doc-row.flagged::after{content:"!";flex:none;width:15px;height:15px;border-radius:50%;background:linear-gradient(135deg,#e7a448,#c9821b);color:#fff;font-family:var(--font-heading);font-weight:800;font-size:10px;display:grid;place-items:center;margin-left:2px}
.step{display:flex;gap:14px;align-items:flex-start;padding:12px 14px;border-radius:13px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.03);transition:background .35s,border-color .35s,opacity .35s,transform .35s}
.step.pending{opacity:.4}
.step.active{background:rgba(3,119,232,.1);border-color:rgba(3,119,232,.45)}
.step.done{background:rgba(69,178,154,.08);border-color:rgba(69,178,154,.32)}
.step.done,.step.active{cursor:pointer}
.step.done:hover{border-color:rgba(95,214,184,.6)}
.step.sel{box-shadow:0 0 0 1px rgba(156,208,255,.6);border-color:rgba(156,208,255,.6)}
.step:focus-visible{outline:2px solid #9cd0ff;outline-offset:2px}
.step.flag.active,.step.flag.done{background:rgba(201,130,27,.12);border-color:rgba(231,164,72,.5)}
.step .ic{width:38px;height:38px;border-radius:10px;flex:none;display:grid;place-items:center;background:rgba(255,255,255,.08);transition:background .35s}
.step.active .ic{background:var(--grad)}
.step.flag.active .ic,.step.flag.done .ic{background:linear-gradient(135deg,#e7a448,#c9821b)}
.step.done:not(.flag) .ic{background:#45B29A}
.step .ic svg{width:19px;height:19px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.step .scopy{flex:1;min-width:0}
.step .scopy b{display:block;font-family:var(--font-heading);font-weight:700;font-size:15px;color:#fff;line-height:1.2}
.step .scopy span{display:block;font-size:12.5px;color:var(--on-dark-mut);margin-top:4px;line-height:1.4}
.step .prog{margin-top:9px;height:3px;background:rgba(255,255,255,.12);border-radius:2px;overflow:hidden}
.step .prog i{display:block;height:100%;width:0;background:var(--grad);border-radius:2px}
.step.flag.active .prog i,.step.flag.done .prog i{background:linear-gradient(90deg,#e7a448,#c9821b)}
.step .tick{margin-left:auto;flex:none;width:22px;height:22px;border-radius:50%;border:2px solid rgba(255,255,255,.2);display:grid;place-items:center;transition:background .3s,border-color .3s}
.step .tick svg{width:11px;height:11px;stroke:#0a1830;fill:none;stroke-width:3.4;opacity:0;transition:opacity .2s}
.step.done:not(.flag) .tick{background:#45B29A;border-color:#45B29A}
.step.done:not(.flag) .tick svg{opacity:1}
.step.flag.done .tick{background:#e7a448;border-color:#e7a448}
.step.flag.done .tick svg{opacity:1;stroke:#0a1830}
.run .progress-line{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:14px;font-family:var(--font-heading);font-weight:700;font-size:12.5px;letter-spacing:.08em;text-transform:uppercase;color:#9fb0cc}
.run .run-action{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:13px;min-height:50px}
.run .replay{display:inline-flex;align-items:center;gap:7px;font-family:var(--font-heading);font-weight:600;font-size:13px;color:#9fb0cc;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);border-radius:var(--radius-pill);padding:11px 18px;cursor:pointer;transition:color .15s,background .15s}
.run .replay:hover{color:#fff;background:rgba(255,255,255,.12)}
.run .replay svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2.2}
.run .replay:focus-visible{outline:2px solid #9cd0ff;outline-offset:3px}
.run .run-note{display:flex;justify-content:center;margin-top:12px}
.run .run-note .honesty{background:none;border:none;padding:0;color:#7e8ca6;font-weight:600;letter-spacing:.02em;text-transform:none;font-size:12px}
.run .run-note .honesty .dot{background:#5fd6b8}

/* ===== SCENE: review / approve ===== */
.review .inner{position:relative;z-index:2;width:100%;max-width:620px;text-align:center}
.actors{display:flex;align-items:flex-start;justify-content:center;margin-bottom:18px}
.actor{display:flex;flex-direction:column;align-items:center;gap:9px;width:132px}
.actor .av{width:60px;height:60px;border-radius:16px;display:grid;place-items:center}
.actor.ai .av{background:linear-gradient(135deg,#1b3a66,#102a4d);border:1px solid rgba(120,160,220,.3)}
.actor.ai .av svg{width:30px;height:30px;stroke:#9cd0ff;fill:none;stroke-width:1.8}
.actor.human .av{background:var(--grad);box-shadow:0 16px 36px rgba(3,119,232,.4)}
.actor.human .av svg{width:32px;height:32px;stroke:#fff;fill:none;stroke-width:2}
.actor .badge{font-family:var(--font-heading);font-weight:800;font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;padding:5px 12px;border-radius:var(--radius-pill)}
.actor.ai .badge{background:rgba(156,208,255,.14);color:#9cd0ff}
.actor.human .badge{background:rgba(69,178,154,.18);color:#7fd9c4}
.actor .role-lbl{font-size:11px;color:var(--on-dark-mut)}
.actors .arrow{width:72px;height:2px;background:linear-gradient(90deg,rgba(156,208,255,.3),#5fd6b8);margin:30px 4px 0;position:relative}
.actors .arrow::after{content:"";position:absolute;right:-2px;top:-4px;width:9px;height:9px;border-top:2px solid #5fd6b8;border-right:2px solid #5fd6b8;transform:rotate(45deg)}
.review h2{font-weight:800;font-size:28px}
.review p.sign{margin-top:9px;font-size:15px;color:var(--on-dark);font-weight:300}
.exception{margin:20px auto 0;text-align:left;background:rgba(201,130,27,.12);border:1px solid rgba(231,164,72,.45);border-radius:14px;padding:14px 16px;display:flex;gap:13px}
.exception .fic{width:34px;height:34px;border-radius:9px;background:linear-gradient(135deg,#e7a448,#c9821b);display:grid;place-items:center;flex:none}
.exception .fic svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2.2}
.exception b{font-family:var(--font-heading);font-weight:700;font-size:14.5px;color:#ffd9a0;display:block}
.exception span{font-size:13px;color:#e8c89a;line-height:1.5;display:block;margin-top:4px}
.decision{margin:16px auto 0;width:100%;max-width:460px;text-align:left}
.dec-q{font-family:var(--font-heading);font-weight:700;font-size:11.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--on-dark-mut);display:block;margin-bottom:9px}
.dec-opts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.opt{position:relative;display:flex;flex-direction:column;gap:3px;text-align:left;background:rgba(255,255,255,.04);border:1.5px solid rgba(255,255,255,.15);border-radius:11px;padding:12px 13px;cursor:pointer;transition:border-color .15s,background .15s,transform .15s}
.opt:hover{border-color:rgba(95,214,184,.6);transform:translateY(-1px)}
.opt.sel{border-color:#45B29A;background:rgba(69,178,154,.13)}
.opt b{font-family:var(--font-heading);font-weight:700;font-size:13.5px;color:#fff;line-height:1.2}
.opt span{font-size:11.5px;color:var(--on-dark-mut)}
.opt .dot-sel{position:absolute;top:11px;right:11px;width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.25);display:grid;place-items:center;transition:background .2s,border-color .2s}
.opt .dot-sel svg{width:9px;height:9px;stroke:#0a1830;fill:none;stroke-width:3.4;opacity:0;transition:opacity .15s}
.opt.sel .dot-sel{background:#45B29A;border-color:#45B29A}
.opt.sel .dot-sel svg{opacity:1}
.approve-btn.locked{opacity:.4;pointer-events:none;border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.05)}
.escalate{position:relative;width:100%;margin-top:10px;display:flex;align-items:center;gap:10px;text-align:left;background:rgba(255,255,255,.03);border:1.5px solid rgba(255,255,255,.13);border-radius:11px;padding:11px 13px;cursor:pointer;font-family:var(--font-heading);font-weight:600;font-size:13px;color:var(--on-dark);transition:border-color .15s,background .15s}
.escalate:hover{border-color:rgba(156,208,255,.5);color:#fff}
.escalate.sel{border-color:#9cd0ff;background:rgba(3,119,232,.12);color:#fff}
.escalate svg{width:16px;height:16px;stroke:#9cd0ff;fill:none;stroke-width:2;flex:none}
.escalate .esc-lbl{flex:1}
.escalate .dot-sel{position:relative;top:auto;right:auto;width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.25);display:grid;place-items:center;flex:none;transition:background .2s,border-color .2s}
.escalate .dot-sel svg{width:9px;height:9px;stroke:#0a1830;fill:none;stroke-width:3.4;opacity:0;transition:opacity .15s}
.escalate.sel .dot-sel{background:#9cd0ff;border-color:#9cd0ff}
.escalate.sel .dot-sel svg{opacity:1}
.approve-card{margin:16px auto 0;width:100%;max-width:460px;background:#0e1f3d;border:1px solid rgba(120,160,220,.22);border-radius:14px;padding:14px 16px;display:flex;align-items:center;gap:14px;box-shadow:0 26px 60px rgba(4,12,28,.5)}
.approve-card .doc-ic{width:42px;height:42px;border-radius:10px;background:rgba(255,255,255,.07);display:grid;place-items:center;flex:none}
.approve-card .doc-ic svg{width:20px;height:20px;stroke:#9cd0ff;fill:none;stroke-width:2}
.approve-card .ac-main{flex:1;min-width:0;text-align:left}
.approve-card .ac-main b{font-family:var(--font-heading);font-weight:700;font-size:14px;color:#fff;display:block}
.approve-card .ac-main span{font-size:12px;color:var(--on-dark-mut)}
.approve-btn{position:relative;font-family:var(--font-heading);font-weight:700;font-size:13.5px;color:#fff;border-radius:var(--radius-md);padding:12px 18px;flex:none;overflow:hidden;background:rgba(69,178,154,.2);border:1px solid rgba(95,214,184,.5);min-width:128px;text-align:center;cursor:pointer;transition:border-color .2s,background .2s,transform .15s}
.approve-btn:hover{background:rgba(69,178,154,.32);transform:translateY(-1px)}
.approve-btn .fill{position:absolute;inset:0;background:#45B29A;transform-origin:left;transform:scaleX(0);z-index:0;transition:transform .55s var(--ease)}
.approve-btn .lbl{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:7px}
.approve-btn .lbl svg{width:15px;height:15px;stroke:#fff;fill:none;stroke-width:2.6;opacity:0;transition:opacity .2s}
.approve-btn.done{border-color:#45B29A;cursor:default;transform:none}

/* ===== SCENE: result (payoff) ===== */
.result .inner{position:relative;z-index:2;text-align:center}
.result .label{font-family:var(--font-heading);font-weight:700;font-size:13px;letter-spacing:.2em;text-transform:uppercase;color:#7e8ca6;margin-bottom:26px}
.result .ba{display:flex;align-items:center;justify-content:center;gap:26px}
.result .ba-was,.result .ba-now{display:flex;flex-direction:column;align-items:center;gap:8px}
.result .ba-k{font-family:var(--font-heading);font-weight:700;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#7e8ca6}
.result .ba-now .ba-k{color:var(--teal-soft)}
.result .ba-was .ba-v{font-family:var(--font-heading);font-weight:800;font-size:34px;color:var(--on-dark-mut);letter-spacing:-.01em}
.result .ba-arrow{width:22px;height:22px;stroke:var(--teal-soft);stroke-width:1.6;flex:none;margin-top:22px;opacity:.7}
.count{font-family:var(--font-heading);font-weight:800;line-height:.95;color:#fff;font-size:96px;letter-spacing:-.03em;display:flex;align-items:baseline;justify-content:center;gap:11px}
.count .num{font-variant-numeric:tabular-nums;min-width:1.5ch;text-align:right;color:var(--teal-bright)}
.count .unit{font-size:30px;font-weight:700;color:var(--on-dark-mut)}
.result .cap{margin:30px auto 0;font-size:17px;color:var(--on-dark);font-weight:300;max-width:500px;line-height:1.5}
.result .adopt{margin:14px auto 0;font-family:var(--font-heading);font-weight:700;font-size:15.5px;color:var(--teal-bright);max-width:520px;line-height:1.4}
.result .result-action{margin-top:26px;display:flex;justify-content:center}
.result .honesty{margin-top:20px}

/* ===== SCENE: value (ROI calculator) ===== */
.value .inner{position:relative;z-index:2;width:100%;max-width:720px}
.calc{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:stretch}
.calc-controls{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.09);border-radius:16px;padding:22px 22px;display:flex;flex-direction:column;gap:22px}
.ctrl-top{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:11px}
.ctrl-top label{font-family:var(--font-heading);font-weight:600;font-size:13.5px;color:var(--on-dark)}
.ctrl-val{font-family:var(--font-heading);font-weight:800;font-size:19px;color:#fff;font-variant-numeric:tabular-nums}
.ctrl input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:3px;background:rgba(255,255,255,.14);outline:none}
.ctrl input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:22px;height:22px;border-radius:50%;background:var(--grad);cursor:pointer;border:3px solid #0c1a35;box-shadow:0 2px 8px rgba(3,119,232,.5)}
.ctrl input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:#0377E8;cursor:pointer;border:3px solid #0c1a35}
.ctrl input[type=range]:focus-visible{outline:2px solid #9cd0ff;outline-offset:4px}
.ctrl-note{font-size:12.5px;color:var(--on-dark-mut);line-height:1.45;padding-top:2px;border-top:1px dashed rgba(255,255,255,.12);margin-top:2px;padding-top:16px}
.calc-out{background:linear-gradient(165deg,#15294f,#0c1a35);border:1px solid rgba(120,160,220,.22);border-radius:16px;padding:24px 22px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;box-shadow:0 26px 60px rgba(4,12,28,.45)}
.calc-year{display:flex;align-items:baseline;justify-content:center;gap:4px;font-family:var(--font-heading);font-weight:800;color:#fff;letter-spacing:-.02em;line-height:1}
.calc-year .calc-cur{font-size:32px;color:var(--teal-bright)}
.calc-year #calcYear{font-size:56px;font-variant-numeric:tabular-nums;color:var(--teal-bright)}
.calc-year .calc-per{font-size:17px;font-weight:700;color:var(--on-dark-mut);margin-left:5px}
.calc-sub{display:flex;gap:14px;margin-top:20px;width:100%}
.calc-cell{flex:1;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.09);border-radius:11px;padding:12px 10px}
.calc-cell b{display:block;font-family:var(--font-heading);font-weight:800;font-size:19px;color:#fff;font-variant-numeric:tabular-nums}
.calc-cell span{display:block;font-size:10.5px;color:var(--on-dark-mut);margin-top:4px}
.calc-honesty{margin-top:18px}
.calc-scale{margin-top:18px;width:100%;padding-top:16px;border-top:1px dashed rgba(255,255,255,.16)}
.scale-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.scale-top label{font-family:var(--font-body);font-size:12.5px;color:var(--on-dark)}
.calc-scale input[type=range]{width:100%;accent-color:#5fd6b8}
.calc-scale input[type=range]:focus-visible{outline:2px solid #9cd0ff;outline-offset:4px}
.scale-out{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:11px}
.scale-k{font-size:12.5px;color:var(--on-dark-mut)}
.scale-k b{color:#fff;font-family:var(--font-heading);font-weight:800}
.scale-v{font-family:var(--font-heading);font-weight:800;font-size:20px;color:var(--teal-bright);font-variant-numeric:tabular-nums;white-space:nowrap}
.result .result-action,.value .result-action{display:flex;justify-content:center}
.value .result-action{margin-top:22px}

/* ===== SCENE: proof + CTA ===== */
.proof .inner{position:relative;z-index:2;text-align:center;max-width:780px}
.proof .eyebrow{margin-bottom:24px}
.proof .quote{font-weight:800;font-size:40px;line-height:1.16}
.proof .quote .hl{color:var(--teal-bright)}
.proof .body{margin:28px auto 0;max-width:600px;font-size:16px;line-height:1.65;color:var(--on-dark);font-weight:300}
.proof .firm{margin-top:22px;display:flex;width:max-content;margin-left:auto;margin-right:auto;align-items:center;gap:11px;font-family:var(--font-heading);font-weight:700;font-size:13.5px;color:#fff}
.proof .firm .tick{width:32px;height:1px;background:rgba(255,255,255,.3)}
.proof .more-cases{display:flex;width:max-content;align-items:center;gap:7px;margin:26px auto 0;font-family:var(--font-heading);font-weight:700;font-size:13.5px;color:#9cd0ff;text-decoration:none;transition:color .15s}
.proof .more-cases:hover{color:#fff}
.proof .more-cases svg{width:15px;height:15px;flex:none;transition:transform .18s}
.proof .more-cases:hover svg{transform:translateX(3px)}
.proof .cta-row{margin-top:40px;display:flex;flex-direction:column;align-items:center;gap:16px}
.proof .cta-sub{font-size:15px;color:var(--on-dark-mut);font-weight:300;max-width:460px}
.proof .again{display:inline-flex;align-items:center;gap:7px;font-family:var(--font-heading);font-weight:600;font-size:13px;color:#9fb0cc;cursor:pointer;background:none;border:none;transition:color .15s}
.proof .again:hover{color:#fff}
.proof .again svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2.2}

/* ---- keyboard focus (visible only for keyboard users) ---- */
.role-card:focus-visible,.opt:focus-visible,.escalate:focus-visible,.approve-btn:focus-visible,
.btn:focus-visible,.restart:focus-visible,.again:focus-visible,#toProof:focus-visible{
  outline:2px solid #9cd0ff;outline-offset:3px;border-radius:12px}
.approve-btn:focus-visible{outline-offset:2px}

/* ---- action bar (result CTA) + labeled stepper ---- */
.actionbar{position:fixed;left:0;right:0;bottom:0;z-index:70;display:flex;flex-direction:column;align-items:center;gap:12px;padding:18px 0 22px;background:linear-gradient(0deg,#0a1628 34%,transparent);pointer-events:none}
.actionbar .inner-bar{pointer-events:auto;display:flex;flex-direction:column;align-items:center;gap:12px}
.stepper{display:none;align-items:center;gap:8px}
.stepper.show{display:flex}
.stepper .st{display:flex;align-items:center;gap:8px}
.stepper .st .lbl{font-family:var(--font-heading);font-weight:700;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:rgba(255,255,255,.32);transition:color .3s}
.stepper .st.on .lbl{color:#fff}
.stepper .st.done .lbl{color:var(--teal-soft)}
.stepper .st.done{cursor:pointer}
.stepper .st.done:hover .lbl{color:#fff}
.stepper .st.done:focus-visible{outline:2px solid #9cd0ff;outline-offset:3px;border-radius:6px}
.stepper .sep{width:16px;height:1px;background:rgba(255,255,255,.16)}
.stepper .st.done + .sep{background:rgba(95,214,184,.4)}

/* ---- reduced motion: scenes still switch; just no internal animation ---- */
body.no-fx .scene{animation:none}
body.no-fx .step{transition:none}
body.no-fx .approve-btn .fill{transition:none}

/* ---- responsive ---- */
@media(max-width:760px){
  .role h1{font-size:34px}
  .role p.sub{font-size:16px;margin:16px auto 28px}
  .role-grid{grid-template-columns:1fr;gap:12px;max-width:420px;margin:0 auto}
  .role-card{padding:16px 18px}
  .role-card .ic{width:40px;height:40px;margin-bottom:12px}
  .scene{padding:66px 18px 96px}
  .scene-head h2{font-size:22px}
  .scene-head p{font-size:14px}
  .count{font-size:64px}.count .unit{font-size:22px}
  .result .ba{gap:16px}
  .result .ba-was .ba-v{font-size:24px}
  .result .ba-arrow{width:18px;height:18px;margin-top:14px}
  .review h2,.proof .quote{font-size:24px}
  .actors .arrow{width:36px}
  .actor{width:100px}
  .exception{padding:13px 14px}
  .stepper .sep{width:10px}
  .stepper .st .lbl{font-size:10px}
  /* before -> after stacks vertically so it never overflows */
  .result .ba{flex-direction:column;gap:8px}
  .result .ba-arrow{transform:rotate(90deg);margin-top:0}
  .result .ba-was .ba-v{font-size:26px}
  /* decision + approve controls go full width */
  .dec-opts{grid-template-columns:1fr}
  .approve-card{flex-wrap:wrap;gap:12px}
  .approve-card .ac-main{flex:1 1 auto}
  .approve-btn{flex:1 1 100%;order:3}
  .btn{width:100%;justify-content:center}
  .topbar .restart{padding:6px 12px;font-size:12px}
  /* calculator stacks on mobile */
  .calc{grid-template-columns:1fr}
  /* workspace stacks: agent activity below the steps */
  .ws-body{grid-template-columns:1fr}
  .ws-steps{border-right:none;border-bottom:1px solid rgba(255,255,255,.07)}
  .ws-activity{min-height:0}
}
/* short viewports: trim so the primary action stays in view */
@media(max-height:680px){
  .scene{justify-content:safe center;padding-top:58px;padding-bottom:80px}
  .role h1{font-size:38px}
  .role .pick-note{margin-top:16px}
  .scene-head{margin-bottom:10px}
  .scene-head h2{font-size:23px}
  .scene-head p{font-size:14px}
  .ws-steps{padding:10px 11px;gap:7px}
  .ws-activity{min-height:0}
  .step{padding:10px 13px}
  .step .scopy b{font-size:14px}
  .count{font-size:74px}
  .result .ba-was .ba-v{font-size:28px}
}
