/* JeriBot 2.0 / V11 — mission control, expressive mascot and contextual guided discovery */
:root{--jeri-night:#141830;--jeri-ink:#f8f8ff;--jeri-mint:#83f4e0;--jeri-violet:#a995ff;--jeri-pink:#ff96cc;--jeri-gold:#ffdb91}
.v11-hero-tip{display:flex;align-items:flex-start;gap:9px;color:#bfc6e9;font-size:12px;line-height:1.6;margin:14px 0 0;max-width:550px}
.v11-tip-dot,.v11-online-dot{display:inline-block;flex:none;width:8px;height:8px;border-radius:99px;background:var(--jeri-mint);box-shadow:0 0 13px rgba(133,244,221,.9);margin-top:5px}
.v6-hero-stage{background:radial-gradient(circle at 51% 43%,#5554ac 0%,#302b6e 40%,#1b2254 78%,#141c42 100%)!important;border-color:#c2a7ff88!important;box-shadow:0 30px 100px #0809219c,0 0 52px #6f6dff38,inset 0 0 42px #a7a0ff2c!important}
.v6-status{background:#111837d9!important;border:1px solid #9584e76c!important;box-shadow:0 0 22px #7264e12c}
.v6-hero-stage .v6-stage-actions button{border-color:#b6aaffb2;background:#2e2c69;color:#fff;font-weight:750;box-shadow:inset 0 1px 0 #fff2}
.v6-hero-stage .v6-stage-actions button:hover,.v6-hero-stage .v6-stage-actions button:focus-visible{background:#5944a7;border-color:#e2d3ff;box-shadow:0 0 15px #8f79dd44}
.v6-hero-stage .v6-stage-actions{bottom:18px;left:3%;right:3%;gap:6px}
.v6-hero-stage .v6-speech{bottom:83px}
.v11-presence-note{font:650 12px/1.6 'Space Grotesk',sans-serif;color:#bdb9ec;text-align:center;margin:15px auto 2px;max-width:600px;padding:9px 14px;border:1px solid #7777b142;background:#2f316c39;border-radius:13px}
.v11-context{position:relative;isolation:isolate;background:linear-gradient(100deg,#211e48 0%,#232750 47%,#1f3c4c 100%);border-block:1px solid #a58eff55;box-shadow:inset 0 1px 0 #f1eaff15;color:#fff}
.v11-context:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 13% 24%,#8e77f138,transparent 32%),radial-gradient(circle at 89% 82%,#70ead033,transparent 29%);pointer-events:none;z-index:-1}
.v11-context-layout{display:flex;align-items:center;gap:20px;min-height:158px;padding-block:22px}
.v11-context-orb{width:95px;height:95px;flex:none;border-radius:26px;border:1px solid #d1c2ff6e;background:radial-gradient(circle at 50% 45%,#4d65a0,#25264a 72%);display:grid;place-items:center;box-shadow:0 10px 31px #080d3080,0 0 20px #86edeb3b;transform:rotate(-4deg)}
.v11-context-orb img{width:76px;height:79px;object-fit:contain;animation:v11-float 4s ease-in-out infinite}
.v11-context-text{flex:1;min-width:0}.v11-context-text>span{display:block;font:750 10px/1.4 monospace;letter-spacing:2px;color:#a9f5e4}.v11-context-text h2{font:700 clamp(19px,2.1vw,29px)/1.2 'Space Grotesk',sans-serif;color:#fff;margin:7px 0 7px;letter-spacing:-.03em}.v11-context-text p{color:#cad2ec;margin:0;font:500 13px/1.7 'DM Sans',sans-serif;max-width:720px}
.v11-context-actions{display:flex;flex:none;gap:9px}.v11-context-actions button{border:1px solid #beaaff8f;border-radius:13px;padding:12px 17px;background:#463a8f;color:#fff;font:750 12px 'Space Grotesk',sans-serif;cursor:pointer;transition:transform .2s,background .2s}.v11-context-actions button:hover{background:#6854c2;transform:translateY(-2px)}.v11-context-actions .v11-context-chat{background:#142c41;border-color:#77cde3a8;color:#aefbef}
/* Expressive SVG character in both the homepage stage and the companion dock. */
.v11-thinking .bot-eye-group{transform:translateY(3px) scaleY(.48)!important;transform-origin:150px 137px;transition:transform .16s}
.v11-thinking .bot-arm-right{animation:v11-think-arm 1s ease-in-out 1;transform-origin:205px 212px}
.v6-stage-bot.v11-thinking{animation:v11-think-rock 1.1s ease-in-out 1!important}
.v11-celebrating .bot-eye-group{filter:drop-shadow(0 0 10px #87fff6)}
.v11-celebrating .bot-arm-right{animation:v11-arm-hurray .2s ease-in-out 6 alternate;transform-origin:200px 218px}
.v11-celebrating .bot-arm-left{animation:v11-arm-hurray .21s ease-in-out 6 alternate-reverse;transform-origin:95px 215px}
.v6-stage-bot.v11-celebrating{animation:v11-cheer 1s ease-in-out 1!important}
.v11-smiling .bot-eye-group{filter:drop-shadow(0 0 9px #80ffc4)}
.v11-confetti{position:absolute;z-index:20;pointer-events:none;width:9px;height:15px;border-radius:3px;animation:v11-confetti-fly 1.25s cubic-bezier(.23,.7,.2,1) forwards;box-shadow:0 0 10px #fff3}
@keyframes v11-confetti-fly{0%{transform:translate(0,0) rotate(0) scale(1);opacity:1}100%{transform:translate(var(--dx),var(--dy)) rotate(var(--dr)) scale(.5);opacity:0}}
@keyframes v11-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes v11-think-rock{0%,100%{transform:translateX(-50%) rotate(0deg)}50%{transform:translateX(-50%) rotate(-7deg)}}
@keyframes v11-think-arm{0%,100%{transform:rotate(0)}50%{transform:rotate(-25deg)}}
@keyframes v11-arm-hurray{from{transform:rotate(-20deg)}to{transform:rotate(22deg)}}
@keyframes v11-cheer{0%,100%{transform:translateX(-50%) translateY(0) rotate(0)}30%{transform:translateX(-50%) translateY(-20px) rotate(-8deg)}70%{transform:translateX(-50%) translateY(-22px) rotate(8deg)}}
/* Context-sensitive, dismissible welcome nudge. Does not trap focus or block the page. */
.v11-nudge{position:fixed;z-index:119;right:24px;bottom:130px;display:grid;grid-template-columns:61px minmax(0,1fr);gap:11px;width:min(395px,calc(100vw - 32px));padding:15px 32px 15px 12px;border:1px solid #bba5ff9e;background:linear-gradient(130deg,#242149f5,#202c58f5);border-radius:22px;box-shadow:0 18px 65px #050a29db,0 0 42px #775afa48;color:white;animation:v11-nudge-in .4s cubic-bezier(.2,.9,.3,1.1) both;backdrop-filter:blur(16px)}
.v11-nudge.v11-vanish{opacity:0;transform:translateY(18px);transition:opacity .25s,transform .25s}
.v11-nudge-avatar{width:61px;height:65px;border-radius:18px;background:radial-gradient(circle,#586db1,#293562);display:grid;place-items:center;border:1px solid #d5c6ff6b;box-shadow:0 0 17px #86fbdf33}.v11-nudge-avatar img{height:57px;max-width:58px;object-fit:contain;animation:v11-float 4s ease-in-out infinite}
.v11-nudge-body{min-width:0}.v11-nudge-body strong{color:#c6bcff;font:800 10px 'Space Grotesk',sans-serif;letter-spacing:1.4px;display:flex;gap:8px;align-items:center}.v11-nudge-body .v11-online-dot{height:6px;width:6px;margin:0}.v11-nudge-body p{margin:6px 0 12px;color:#f2f0ff;font:600 13px/1.55 'DM Sans',sans-serif}
.v11-nudge-buttons{display:flex;gap:7px;flex-wrap:wrap}.v11-nudge-buttons button{cursor:pointer;border-radius:10px;font:700 11px 'Space Grotesk',sans-serif;padding:9px 11px;border:1px solid #b5a5eb6b;color:#eee6ff;background:#3c3d65}.v11-nudge-buttons .v11-nudge-go{background:linear-gradient(115deg,#8f72ee,#7e60cd);border-color:#a28ff7;color:white}.v11-nudge-x{position:absolute;right:9px;top:7px;background:transparent;border:0;color:#e4dcff;font-size:24px;cursor:pointer}
@keyframes v11-nudge-in{0%{opacity:0;transform:translateY(22px) scale(.97)}100%{opacity:1;transform:translateY(0) scale(1)}}
/* V11 guided site tour: unique mission-control panel, not the old plain notification. */
.v11-tour{position:fixed;left:24px;bottom:22px;z-index:118;width:min(755px,calc(100vw - 168px));padding:21px 23px 18px;background:linear-gradient(125deg,rgba(33,30,75,.98),rgba(21,31,66,.98) 66%,rgba(23,53,70,.98));border:1px solid #b8a3ffb0;border-radius:27px;color:#fff;box-shadow:0 24px 90px #03051fe6,0 0 45px #8e69fd49,inset 0 1px #ffffff26;backdrop-filter:blur(20px);animation:v11-tour-rise .45s cubic-bezier(.17,.84,.22,1.14) both}
.v11-tour:before{content:"";position:absolute;left:18px;right:18px;top:0;height:2px;background:linear-gradient(90deg,transparent,#92f4e3 38%,#ce9cff 73%,transparent);opacity:.95}
.v11-tour-top{display:flex;align-items:center;justify-content:space-between;gap:14px}.v11-tour-kicker{font:800 10px/1.5 monospace;letter-spacing:1.3px;color:#acefe8;display:inline-flex;align-items:center;gap:9px}.v11-tour-kicker i{width:8px;height:8px;border-radius:50%;background:#7bffce;box-shadow:0 0 15px #7bffce;animation:v11-beacon 1.7s ease-in-out infinite}.v11-tour-count{color:#b7bfdd;font:700 10px monospace;white-space:nowrap;letter-spacing:.3px}.v11-tour-count b{color:#fff;font-size:16px}
.v11-tour-main{display:grid;grid-template-columns:79px 1fr;gap:19px;align-items:center;margin-top:15px}
.v11-tour-face{width:75px;height:83px;border-radius:21px;background:radial-gradient(circle at 50% 45%,#5264ac,#272955);display:grid;place-items:center;border:1px solid #bba7ff9a;box-shadow:0 10px 30px #0508248c,0 0 23px #97c0ff2b}.v11-tour-face img{height:78px;width:70px;object-fit:contain;animation:v11-float 4s ease-in-out infinite}
.v11-tour-copy h3{font:800 clamp(16px,2vw,23px)/1.18 'Space Grotesk',sans-serif;letter-spacing:-.03em;margin:0 0 7px;color:#fff}.v11-tour-copy p{color:#cbd4ee;font:500 12px/1.65 'DM Sans',sans-serif;margin:0;max-width:605px}
.v11-tour-route{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;align-items:stretch;margin-top:20px;padding:3px 0}
.v11-tour-route:before{content:"";position:absolute;left:5%;right:5%;top:19px;border-top:1px dashed #a99df76d;pointer-events:none}
.v11-route-dot{position:relative;z-index:1;display:grid;align-content:start;justify-items:center;gap:7px;border:1px solid transparent;border-radius:12px;background:transparent;padding:4px 2px 6px;cursor:pointer;color:#9eaace;font:700 10px/1.3 'Space Grotesk',sans-serif}
.v11-route-dot>span{display:grid;place-items:center;width:29px;height:29px;background:#33315f;border:1px solid #9286d794;border-radius:10px;color:#b4acfa;font:700 16px/1 monospace;transition:background .2s,transform .2s}.v11-route-dot:hover>span,.v11-route-dot:focus-visible>span{background:#6851ba;transform:translateY(-3px)}
.v11-route-dot small{font-size:9px;color:#c9c8e8;letter-spacing:.03em;text-align:center}.v11-route-dot.is-current>span{background:linear-gradient(140deg,#a895ff,#6d65cf);border-color:#f7e9ff;color:white;box-shadow:0 0 15px #ae91ff88}.v11-route-dot.is-current small{color:#fff}.v11-route-dot.is-done>span{background:#214b53;color:#95f7e5;border-color:#66d9cd}
.v11-tour-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:15px;padding-top:14px;border-top:1px solid #ffffff21}.v11-tour-bottom button{cursor:pointer;border:1px solid #827cbb8c;border-radius:11px;padding:10px 14px;font:750 11px 'Space Grotesk',sans-serif;color:#e8e7ff;background:#31345e;transition:background .2s,transform .2s}.v11-tour-bottom button:hover:not(:disabled){background:#554c91;transform:translateY(-1px)}.v11-tour-bottom button:disabled{opacity:.38;cursor:not-allowed}.v11-tour-subactions,.v11-tour-moves{display:flex;gap:8px}.v11-tour-end{background:transparent!important;border-color:transparent!important;color:#aeb6d4!important}.v11-tour-next{background:linear-gradient(110deg,#8e77f3,#6955c7)!important;color:white!important;border-color:#af99ff!important;box-shadow:0 4px 18px #a48bff44}
.v11-resume{position:fixed;z-index:119;left:24px;bottom:22px;cursor:pointer;border:1px solid #b8a0f3;border-radius:22px;padding:13px 19px;background:linear-gradient(125deg,#7654ce,#46359c);color:#fff;font:750 12px 'Space Grotesk',sans-serif;box-shadow:0 15px 40px #100a43ba}
.v11-chat-tour-button{background:#312c5b;color:#c6b5ff;border:1px solid #8672bb;border-radius:9px;padding:8px 9px;font:700 10px monospace;white-space:nowrap;cursor:pointer}.v11-chat-tour-button:hover{background:#4a3b85}
.v11-tour-active .v5-dock-label{opacity:0!important;pointer-events:none}
@keyframes v11-tour-rise{0%{transform:translateY(26px) scale(.98);opacity:0}100%{transform:none;opacity:1}}
@keyframes v11-beacon{0%,100%{box-shadow:0 0 2px #7bffce}50%{box-shadow:0 0 18px #7bffce}}
/* Accessibility: visible focus, predictable sizes and respects reduced motion. */
.v11-site button:focus-visible,.v11-tour button:focus-visible,.v11-nudge button:focus-visible,.v11-context button:focus-visible,.v11-resume:focus-visible,.v11-chat-tour-button:focus-visible{outline:3px solid #aaf7ef;outline-offset:3px}
@media(max-width:1120px){.v11-context-layout{flex-wrap:wrap}.v11-context-actions{margin-left:114px}.v11-tour{width:min(680px,calc(100vw - 145px))}}
@media(max-width:740px){.v6-hero-stage .v6-stage-actions{gap:5px}.v6-hero-stage .v6-stage-actions button{font-size:10px;padding:7px 9px}.v6-hero-stage .v6-speech{bottom:95px}.v11-context-layout{gap:14px;padding:18px 0}.v11-context-orb{height:74px;width:73px;border-radius:20px}.v11-context-orb img{height:66px;width:65px}.v11-context-text{flex:1;min-width:180px}.v11-context-actions{margin-left:0;width:100%}.v11-context-actions button{flex:1;padding:10px 8px}.v11-tour{left:10px;right:10px;bottom:112px;width:auto;padding:14px;border-radius:19px;max-height:min(66dvh,560px);overflow:auto;overscroll-behavior:contain}.v11-tour-main{grid-template-columns:59px 1fr;gap:11px;margin-top:10px}.v11-tour-face{width:57px;height:65px;border-radius:15px}.v11-tour-face img{width:52px;height:60px}.v11-tour-copy h3{font-size:17px}.v11-tour-copy p{font-size:11px;line-height:1.5}.v11-tour-route{gap:3px;margin-top:12px}.v11-route-dot{gap:4px}.v11-route-dot>span{width:25px;height:26px;font-size:14px}.v11-route-dot small{font-size:8px}.v11-tour-route:before{top:16px}.v11-tour-bottom{margin-top:12px}.v11-tour-bottom button{padding:8px 9px;font-size:10px}.v11-resume{left:14px;bottom:112px}.v11-nudge{right:12px;bottom:120px;width:min(360px,calc(100vw - 24px))}.v11-presence-note{font-size:11px}}
@media(max-width:450px){.v6-hero-stage{height:510px}.v6-hero-stage .v6-speech{bottom:112px}.v6-hero-stage .v6-stage-actions{bottom:16px}.v6-hero-stage .v6-stage-actions button{padding:7px 11px;min-width:27%}.v11-tour-route small{font-size:7px;line-height:1.15}.v11-tour-bottom{flex-wrap:wrap;justify-content:space-between}.v11-tour-bottom button{padding:8px 10px}.v11-nudge{grid-template-columns:48px minmax(0,1fr);padding:13px 27px 13px 10px}.v11-nudge-avatar{width:48px;height:54px}.v11-nudge-avatar img{width:46px;height:50px}.v11-nudge-body p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.v11-context-orb img,.v11-nudge-avatar img,.v11-tour-face img,.v11-tour-kicker i{animation:none!important}.v11-nudge,.v11-tour{animation:none!important}.v11-thinking,.v11-celebrating,.v11-smiling,.v11-confetti{animation:none!important}.v11-nudge *,.v11-tour *{transition:none!important}.v6-stage-bot.v11-thinking,.v6-stage-bot.v11-celebrating{animation:none!important}}
/* V11 polish: reserve adequate space for longer JeriBot speech in the five-action stage. */
@media(min-width:741px){.v6-hero-stage .v6-speech{bottom:131px!important;min-height:90px}.v6-hero-stage .v6-stage-actions{bottom:22px!important;gap:6px!important}.v6-hero-stage .v6-stage-actions button{padding:9px 12px!important;font-size:10px!important}}
@media(max-width:740px){.v11-tour-bottom{display:grid;grid-template-columns:1fr;gap:8px}.v11-tour-moves{grid-row:1;grid-column:1;display:flex;justify-content:space-between}.v11-tour-subactions{grid-row:2;grid-column:1;justify-content:flex-start}.v11-tour-bottom .v11-tour-end{margin-left:auto}.v6-hero-stage .v6-speech{bottom:120px!important}.v6-hero-stage .v6-stage-actions{bottom:15px!important;gap:6px}.v6-hero-stage .v6-stage-actions button{font-size:10px!important;min-width:28%;padding:7px 8px!important}}
@media(max-width:450px){.v6-hero-stage{height:530px!important}.v6-hero-stage .v6-stage-bot{top:26px}.v6-hero-stage .v6-speech{bottom:122px!important;min-height:87px}.v6-hero-stage .v6-stage-actions button{min-width:27%;padding:7px 8px!important}}
