/* Companion: visitor + guide that walk along the page */
.duo{--dh:150px;position:fixed;left:0;bottom:0;z-index:55;pointer-events:none;opacity:0;transition:opacity .45s;will-change:transform}
.duo.on{opacity:1}
.duo-chars{position:relative;height:var(--dh);width:calc(var(--dh) * 1.02)}
.duo-v,.duo-g{position:absolute;bottom:0;height:var(--dh);width:calc(var(--dh) * .54)}
.duo-v{left:0}
.duo-g{left:calc(var(--dh) * .48)}
.duo-v svg,.duo-g svg{width:100%;height:100%;overflow:visible;transition:transform .3s ease}
.duo .left svg{transform:scaleX(-1)}

.duo-bubble{position:absolute;bottom:calc(var(--dh) + 12px);left:calc(var(--dh) * .25);width:max-content;max-width:290px;
  background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 34px -12px rgba(23,35,90,.38);
  padding:12px 32px 12px 16px;font-weight:700;font-size:14px;line-height:1.45;
  opacity:0;transform:translateY(8px) scale(.94);transform-origin:20px 100%;transition:opacity .25s,transform .3s cubic-bezier(.2,1.4,.4,1);pointer-events:none}
.duo-bubble::after{content:"";position:absolute;left:calc(var(--dh) * .38);bottom:-7px;width:14px;height:14px;background:#fff;border-right:1px solid var(--line);border-bottom:1px solid var(--line);transform:rotate(45deg)}
.duo-bubble.show{opacity:1;transform:none}
.duo-bubble.show .duo-x,.duo-bubble.show .duo-choices a{pointer-events:auto}
.duo.at-right .duo-bubble{left:auto;right:calc(var(--dh) * .25);transform-origin:calc(100% - 20px) 100%}
.duo.at-right .duo-bubble::after{left:auto;right:calc(var(--dh) * .38)}
.duo-text{margin:0}
.duo-x{position:absolute;top:5px;right:6px;width:24px;height:24px;border-radius:50%;color:var(--muted);font-size:18px;line-height:24px;text-align:center}
.duo-x:hover{background:var(--bg-2);color:var(--ink)}
.duo-choices{display:none;flex-wrap:wrap;gap:6px;margin-top:10px}
.duo.ask .duo-choices{display:flex}
.duo.ask .duo-bubble{max-width:340px}
.duo-choices a{padding:7px 12px;border-radius:999px;background:#eef3ff;color:var(--blue);font-size:13px;font-weight:700;white-space:nowrap}
.duo-choices a:hover{background:var(--grad);color:#fff}

@media (max-width:1180px) and (min-width:761px){.duo{--dh:120px}}
@media (max-width:760px){
  .duo{--dh:84px;bottom:calc(86px + env(safe-area-inset-bottom))}
  .duo-bubble{font-size:12.5px;max-width:min(68vw,250px);padding:9px 28px 9px 12px;border-radius:13px;bottom:calc(var(--dh) + 8px)}
  .duo.ask .duo-bubble{max-width:min(86vw,320px)}
  .duo-choices a{font-size:12px;padding:6px 10px}
}
@media print{.duo{display:none}}
