/* The AI Playbook – page tour v1 (playbook-guide-v1.js). Self-contained: every rule is scoped to .pbg-*,
   nothing here touches the page's own elements. Pairs with playbook-site-v10.css (Inter, dark glass bubbles). */
.pbg-root{position:fixed;inset:0;z-index:2147483000;pointer-events:none;--c:34,211,238;
 font:400 16px/1.55 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#F4F6F9;-webkit-font-smoothing:antialiased;
 opacity:0;transition:opacity .35s ease}
.pbg-root[data-tone=you]{--c:244,114,182}
.pbg-root.pbg-on{opacity:1}
.pbg-root[hidden]{display:none}
.pbg-root *,.pbg-chip *{box-sizing:border-box}

/* spotlight: one rounded hole in the dim, a glowing ring and a pulse travelling outward */
.pbg-spot{position:absolute;left:0;top:0;width:10px;height:10px;border-radius:24px;will-change:transform,width,height;
 box-shadow:0 0 0 1.5px rgba(var(--c),.95),0 0 30px 3px rgba(var(--c),.42),0 0 0 200vmax rgba(4,7,12,.64);
 transition:box-shadow .45s ease,opacity .3s ease,border-radius .3s}
.pbg-spot::before,.pbg-spot::after{content:"";position:absolute;inset:-3px;border-radius:inherit;border:2px solid rgba(var(--c),.85);
 animation:pbg-pulse 2.1s cubic-bezier(.2,.7,.3,1) infinite;opacity:0}
.pbg-spot::after{animation-delay:1.05s}
@keyframes pbg-pulse{0%{inset:-3px;opacity:.9}100%{inset:-22px;opacity:0;border-radius:34px}}
.pbg-free .pbg-spot{box-shadow:0 0 0 1.5px rgba(var(--c),.55),0 0 18px 2px rgba(var(--c),.18),0 0 0 200vmax rgba(4,7,12,0)}
.pbg-free .pbg-spot::before,.pbg-free .pbg-spot::after{animation:none}
.pbg-spot.pbg-off{opacity:0}

/* caption: the site's speech bubble – dark glass, one outline with the tail, glow in the speaker's colour */
.pbg-card{position:absolute;left:0;top:0;width:min(410px,calc(100vw - 32px));will-change:transform;opacity:0;transition:opacity .3s ease}
.pbg-card.pbg-show{opacity:1}
.pbg-pop{position:relative}
.pbg-pop.pbg-anim{animation:pbg-arrive .62s cubic-bezier(.18,1.3,.4,1) both}
@keyframes pbg-arrive{0%{opacity:0;transform:translateY(var(--pbg-dy,14px)) scale(.9);filter:blur(6px)}60%{opacity:1;filter:none}100%{opacity:1;transform:none;filter:none}}
.pbg-shape{position:absolute;left:0;top:0;overflow:visible;pointer-events:none;
 filter:drop-shadow(0 0 20px rgba(var(--c),.34)) drop-shadow(0 18px 38px rgba(0,0,0,.5))}
.pbg-shape .s0{fill:rgba(13,20,33,.9)}
.pbg-shape .s1{fill:url(#pbg-grad);stroke:rgba(var(--c),.78);stroke-width:1.2;stroke-linejoin:round}
.pbg-g0{stop-color:rgba(var(--c),.24)}
.pbg-g1{stop-color:rgba(var(--c),.07)}
.pbg-in{position:relative;padding:15px 20px 17px;border-radius:22px;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.pbg-eb{display:flex;align-items:center;gap:9px;margin:0 0 9px;font:700 10.5px/1.2 Inter,system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;color:rgba(var(--c),.98)}
.pbg-lab{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:.3em 0;margin:-.3em 0}
.pbg-n{margin-left:auto;flex:none;color:#9DA8B7;letter-spacing:.14em}
.pbg-tx{margin:0;font:400 17px/1.5 Inter,system-ui,sans-serif;color:#F4F6F9;letter-spacing:-.003em}
.pbg-w{transition:opacity .28s ease,text-shadow .4s ease}
.pbg-w.pbg-b{font-weight:500;color:#fff}
.pbg-playing .pbg-w{opacity:.4}
.pbg-playing .pbg-w.pbg-said{opacity:1}
.pbg-playing .pbg-w.pbg-now{text-shadow:0 0 14px rgba(var(--c),.75)}

/* narrator equaliser in the eyebrow: moves while the voice speaks */
.pbg-eq{display:inline-flex;align-items:flex-end;gap:2px;height:12px;flex:none}
.pbg-eq i{display:block;width:3px;height:4px;border-radius:2px;background:rgb(var(--c))}
.pbg-speaking .pbg-eq i{animation:pbg-eq .9s ease-in-out infinite alternate}
.pbg-speaking .pbg-eq i:nth-child(2){animation-duration:.62s;animation-delay:-.2s}
.pbg-speaking .pbg-eq i:nth-child(3){animation-duration:.78s;animation-delay:-.45s}
.pbg-speaking .pbg-eq i:nth-child(4){animation-duration:.55s;animation-delay:-.1s}
@keyframes pbg-eq{0%{height:3px}100%{height:12px}}

/* control bar */
.pbg-bar{position:absolute;left:50%;bottom:18px;transform:translateX(-50%);pointer-events:auto;
 display:flex;align-items:center;gap:4px;padding:6px;border-radius:999px;background:rgba(11,15,20,.74);
 -webkit-backdrop-filter:blur(16px) saturate(140%);backdrop-filter:blur(16px) saturate(140%);
 border:1px solid rgba(255,255,255,.1);box-shadow:0 18px 50px rgba(0,0,0,.5),0 0 0 1px rgba(var(--c),.14),0 0 40px rgba(var(--c),.12);
 transition:box-shadow .45s ease}
.pbg-btn{flex:none;display:grid;place-items:center;width:40px;height:40px;padding:0;margin:0;border:0;border-radius:50%;background:transparent;
 color:#C3CAD4;cursor:pointer;transition:background .2s,color .2s,transform .15s}
.pbg-btn:hover{background:rgba(255,255,255,.09);color:#fff}
.pbg-btn:active{transform:scale(.94)}
.pbg-btn:disabled{opacity:.32;cursor:default;background:transparent}
.pbg-btn:focus-visible,.pbg-seg:focus-visible,.pbg-chip button:focus-visible,.pbg-launch:focus-visible{outline:2px solid rgba(var(--c),.95);outline-offset:2px}
.pbg-btn svg{width:18px;height:18px;display:block}
.pbg-play{width:48px;height:48px;background:rgb(var(--c));color:#0B0F14;box-shadow:0 0 0 1px rgba(255,255,255,.25) inset,0 6px 26px rgba(var(--c),.5)}
.pbg-play:hover{background:rgb(var(--c));color:#0B0F14;filter:brightness(1.08)}
.pbg-play svg{width:20px;height:20px}
.pbg-mid{display:flex;flex-direction:column;justify-content:center;gap:7px;padding:0 10px 0 8px;min-width:150px}
.pbg-ct{display:flex;align-items:baseline;gap:8px;font:700 11px/1 Inter,system-ui,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#7F8A99}
.pbg-ct b{font-weight:700;color:#F4F6F9;letter-spacing:.06em;font-size:12.5px}
.pbg-segs{display:flex;gap:3px}
.pbg-seg{position:relative;flex:1;min-width:9px;height:14px;margin:0;padding:0;border:0;background:transparent;cursor:pointer}
.pbg-seg::before{content:"";position:absolute;left:0;right:0;top:5px;height:4px;border-radius:2px;background:rgba(255,255,255,.15)}
.pbg-seg i{position:absolute;left:0;right:0;top:5px;height:4px;border-radius:2px;background:rgb(var(--c));transform-origin:left center;transform:scaleX(var(--p,0))}
.pbg-seg:hover::before{background:rgba(255,255,255,.3)}
.pbg-sep{width:1px;height:26px;background:rgba(255,255,255,.1);margin:0 2px}
.pbg-mute[aria-pressed=true]{color:rgba(var(--c),.95)}

/* invitation chip + quiet launcher (never over the reading column, never modal) */
.pbg-chip{position:fixed;left:18px;bottom:calc(18px + var(--pbg-lift,0px));z-index:2147483001;display:flex;align-items:center;gap:2px;padding:5px;border-radius:999px;
 background:rgba(11,15,20,.76);-webkit-backdrop-filter:blur(14px) saturate(140%);backdrop-filter:blur(14px) saturate(140%);
 border:1px solid rgba(255,255,255,.12);box-shadow:0 14px 40px rgba(0,0,0,.45),0 0 32px rgba(244,114,182,.16);
 font:500 14px/1 Inter,system-ui,sans-serif;color:#F4F6F9;opacity:0;transform:translateY(16px);transition:opacity .45s ease,transform .6s cubic-bezier(.18,1.3,.4,1);pointer-events:none}
.pbg-chip.pbg-show{opacity:1;transform:none;pointer-events:auto}
.pbg-chip button{font:inherit;color:inherit;background:transparent;border:0;margin:0;cursor:pointer}
.pbg-go{display:flex;align-items:center;gap:11px;padding:4px 14px 4px 4px;border-radius:999px;transition:background .2s}
.pbg-go:hover{background:rgba(255,255,255,.07)}
.pbg-go .pbg-ico{position:relative;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#F472B6;color:#0B0F14;box-shadow:0 4px 18px rgba(244,114,182,.55)}
.pbg-go .pbg-ico::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:2px solid rgba(244,114,182,.7);animation:pbg-ping 2.4s ease-out infinite}
@keyframes pbg-ping{0%{transform:scale(.9);opacity:.9}70%,100%{transform:scale(1.35);opacity:0}}
.pbg-go .pbg-ico svg{width:15px;height:15px;margin-left:2px}
.pbg-go span{white-space:nowrap}
.pbg-go .pbg-short{display:none}
.pbg-go>span{text-align:left}
.pbg-go small{display:block;margin-top:4px;font:500 11px/1 Inter,system-ui,sans-serif;color:#9DA8B7;letter-spacing:.02em}
.pbg-x{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:#9DA8B7!important}
.pbg-x:hover{background:rgba(255,255,255,.08);color:#fff!important}
.pbg-x svg{width:14px;height:14px}
.pbg-launch{position:fixed;left:18px;bottom:calc(18px + var(--pbg-lift,0px));z-index:2147483001;display:flex;align-items:center;gap:8px;height:40px;padding:0 14px 0 11px;border-radius:999px;
 border:1px solid rgba(255,255,255,.12);background:rgba(11,15,20,.66);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
 color:#C3CAD4;font:500 13px/1 Inter,system-ui,sans-serif;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .4s,color .2s,border-color .2s}
.pbg-launch.pbg-show{opacity:.82;pointer-events:auto}
.pbg-launch:hover{opacity:1;color:#fff;border-color:rgba(255,255,255,.3)}
.pbg-launch svg{width:16px;height:16px;color:#F472B6}

.pbg-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* phones: caption docks above the bar, bar spans the width */
@media (max-width:759px){
 .pbg-card{width:calc(100vw - 20px)}
 .pbg-tx{font-size:15.5px;line-height:1.48}
 .pbg-in{padding:13px 16px 15px}
 .pbg-eb{margin-bottom:7px;font-size:10px}
 .pbg-bar{left:10px;right:10px;transform:none;bottom:10px;justify-content:space-between;gap:2px;padding:5px}
 .pbg-mid{flex:1;min-width:0;padding:0 6px}
 .pbg-btn{width:38px;height:38px}
 .pbg-play{width:46px;height:46px}
 .pbg-sep{display:none}
 .pbg-chip{left:10px;bottom:calc(10px + var(--pbg-lift,0px))}
 .pbg-go .pbg-long{display:none}
 .pbg-go .pbg-short{display:block;font-size:13.5px}
 .pbg-go{gap:9px;padding-right:8px}
 .pbg-go .pbg-ico{width:32px;height:32px}
 .pbg-x{width:28px;height:28px}
 .pbg-launch{left:10px;bottom:calc(10px + var(--pbg-lift,0px));width:42px;height:42px;padding:0;justify-content:center}
 .pbg-launch span{display:none}
 .pbg-chip.pbg-inline{position:absolute;bottom:auto;z-index:80}
}
@media (prefers-reduced-motion:reduce){
 .pbg-spot::before,.pbg-spot::after,.pbg-go .pbg-ico::after{animation:none!important;opacity:0}
 .pbg-pop.pbg-anim{animation:none}
 .pbg-speaking .pbg-eq i{animation:none;height:8px}
 .pbg-root,.pbg-card,.pbg-chip,.pbg-w{transition:none}
}
