/* The Presenting page (features.ts presentingPageHtml). Its demo is a stage
   drawn at 1120 by 620 (600 by 960 on a phone) and scaled to the column
   (presenting.js). On it, three devices hold the real pages in frames, each
   drawn at its own size and scaled to the device: the big screen (the deck,
   or Lisa's page), the laptop (the notes window) and the phone (your notes,
   or Tom's page). The stage never pans or zooms: the device that acts lifts
   and lights up, the others step back, and a pulse runs from what you press
   to what changes. Between layouts the devices fade out and back in place. */

.pd-l{display:block}
.pd{padding:8px 0 0; scroll-margin-top:150px}

.pd-box{position:relative; overflow:hidden; border-radius:22px; aspect-ratio:1120 / 620; container-type:inline-size;
  background:radial-gradient(120% 90% at 80% 0%, color-mix(in srgb, var(--deck-primary) 22%, transparent), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--deck-secondary) 12%, transparent), transparent 60%), #0d0f24;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.pd-stage{position:absolute; left:0; top:0; width:1120px; height:620px; transform-origin:0 0}
.pd-stage[data-narrow]{width:600px; height:960px}

.pd-dev{position:absolute; transition:opacity .42s ease, transform .42s cubic-bezier(.3,0,.2,1), filter .42s ease}
.pd-lbl{position:absolute; left:2px; bottom:calc(100% + 9px); margin:0; font-size:13px; font-weight:600; color:var(--deck-inverse-muted); white-space:nowrap; transition:color .3s}
.pd-lbl:empty{opacity:0}
.pd-shell{position:relative; overflow:hidden; transition:box-shadow .42s ease}
.pd-fit{position:relative; overflow:hidden; pointer-events:none}
.pd-fit iframe{position:absolute; left:0; top:0; border:0; transform-origin:0 0; background:#0a0c1f; transition:opacity .5s ease}

/* The big screen: a projector's black edge in the room, a browser on a call. */
.pd-big .pd-shell{padding:6px; border-radius:10px; background:#000; box-shadow:0 0 0 1px rgba(255,255,255,.14), 0 34px 70px -30px rgba(0,0,0,.95)}
.pd-big .pd-fit{aspect-ratio:1280 / 720; border-radius:4px}
.pd-url,.pd-win{display:flex; align-items:center; gap:6px; height:30px; padding:0 10px; overflow:hidden; background:#1b1d36}
.pd-url i,.pd-win i{flex:none; width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.22)}
.pd-url span{flex:1; min-width:0; margin-left:8px; padding:5px 10px; border-radius:6px; background:rgba(255,255,255,.07); font-family:var(--deck-font-mono); font-size:11px; color:var(--deck-inverse-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.pd-win span{margin:0 auto; padding-right:40px; font-size:12px; color:var(--deck-inverse-muted)}
.pd-big .pd-url{display:none}
.pd-stage[data-layout="call"] .pd-big .pd-url{display:flex}
.pd-stage[data-layout="call"] .pd-big .pd-shell{padding:0}

/* The laptop: the notes window, with its title bar. */
.pd-laptop .pd-shell{border-radius:10px; background:#0a0c1f; box-shadow:0 0 0 1px rgba(255,255,255,.14), 0 34px 70px -30px rgba(0,0,0,.95)}
.pd-laptop .pd-fit{aspect-ratio:1200 / 750}

/* The phone. */
.pd-phone .pd-shell{padding:7px; border-radius:30px; background:#05061a; box-shadow:0 0 0 2px #2b2e55, 0 34px 60px -24px rgba(0,0,0,.95)}
.pd-phone .pd-fit{aspect-ratio:390 / 800; border-radius:23px}
.pd-stage[data-layout="call"] .pd-phone .pd-shell{padding:5px; border-radius:22px}
.pd-stage[data-layout="call"] .pd-phone .pd-fit{border-radius:17px}

/* The phone scanning the notes window's code: a camera view of that same
   code with a sweep across it, then Connected, then your notes load. */
.pd-scan{position:absolute; inset:7px; z-index:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; border-radius:23px;
  background:radial-gradient(80% 60% at 50% 40%, #1a1c3a, #05061a); opacity:0; pointer-events:none; transition:opacity .35s ease}
.pd-scan.on{opacity:1}
.pd-cam{position:relative; width:62%; aspect-ratio:1; padding:8%; border-radius:14px; background:#fff; transition:transform .35s ease, opacity .35s ease}
.pd-cam::before{content:""; position:absolute; inset:-10px; border-radius:20px; border:3px solid #fff;
  -webkit-mask:linear-gradient(#000 0 0) top left / 30% 30% no-repeat, linear-gradient(#000 0 0) top right / 30% 30% no-repeat, linear-gradient(#000 0 0) bottom left / 30% 30% no-repeat, linear-gradient(#000 0 0) bottom right / 30% 30% no-repeat;
  mask:linear-gradient(#000 0 0) top left / 30% 30% no-repeat, linear-gradient(#000 0 0) top right / 30% 30% no-repeat, linear-gradient(#000 0 0) bottom left / 30% 30% no-repeat, linear-gradient(#000 0 0) bottom right / 30% 30% no-repeat}
.pd-qr,.pd-qr svg{display:block; width:100%; height:100%}
.pd-sweep{position:absolute; left:4%; right:4%; top:6%; height:3px; border-radius:3px; background:var(--deck-primary); box-shadow:0 0 14px 3px color-mix(in srgb, var(--deck-primary) 70%, transparent); opacity:0}
.pd-scan.scanning .pd-sweep{opacity:1; animation:pd-sweep 1.1s ease-in-out 2 alternate}
@keyframes pd-sweep{from{top:6%}to{top:92%}}
.pd-scan-t{margin:0; font-size:15px; font-weight:600; color:var(--deck-inverse-muted)}
.pd-scan-ok{position:absolute; margin:0; display:flex; flex-direction:column; align-items:center; gap:14px; font-size:16px; font-weight:700; color:#fff; opacity:0; transition:opacity .3s ease}
.pd-scan-ok span{display:grid; place-items:center; width:72px; height:72px; border-radius:50%; background:rgba(74,222,128,.16); color:#4ade80}
.pd-scan-ok svg{width:34px; height:34px}
.pd-scan.ok .pd-cam,.pd-scan.ok .pd-scan-t{opacity:0; transform:scale(.9)}
.pd-scan.ok .pd-scan-t{transform:none}
.pd-scan.ok .pd-scan-ok{opacity:1}

/* Which page each device shows. */
.pd-stage:not([data-layout="call"]) iframe[data-as],
.pd-stage[data-layout="call"] iframe[data-view="deck"],
.pd-stage[data-layout="call"] iframe[data-view="phone"]{opacity:0}

/* Where each device sits, in the stage's own pixels. A device the layout
   doesn't use waits, faded, where it would stand. */
.pd-big{left:40px; top:64px; width:700px}
.pd-laptop{left:40px; top:64px; width:640px}
.pd-phone{left:830px; top:46px; width:220px}
.pd-stage[data-layout="pair"] .pd-big,
.pd-stage[data-layout="room"] .pd-laptop{opacity:0; pointer-events:none}
.pd-stage[data-layout="call"] .pd-laptop{left:30px; top:100px; width:520px}
.pd-stage[data-layout="call"] .pd-big{left:584px; top:130px; width:356px}
.pd-stage[data-layout="call"] .pd-phone{left:972px; top:92px; width:128px}
/* On a phone the same devices stack. */
.pd-stage[data-narrow] .pd-big{left:20px; top:50px; width:560px}
.pd-stage[data-narrow] .pd-laptop{left:20px; top:50px; width:560px}
.pd-stage[data-narrow] .pd-phone{left:190px; top:470px; width:220px}
.pd-stage[data-narrow][data-layout="call"] .pd-laptop{left:20px; top:50px; width:560px}
.pd-stage[data-narrow][data-layout="call"] .pd-big{left:20px; top:500px; width:340px}
.pd-stage[data-narrow][data-layout="call"] .pd-phone{left:390px; top:480px; width:190px}

/* Between layouts: out upwards, in from below, never across. */
.pd-stage.pd-out .pd-dev{opacity:0 !important; transform:translateY(-16px) scale(.98)}
.pd-stage.pd-in .pd-dev{opacity:0 !important; transform:translateY(18px) scale(.98); transition:none}

/* The spotlight. */
.pd-dev.focus{transform:translateY(-6px) scale(1.02); z-index:2}
.pd-dev.focus .pd-lbl{color:#fff}
.pd-dev.dim{opacity:.42; filter:saturate(.55)}
.pd-big.focus .pd-shell,.pd-laptop.focus .pd-shell{box-shadow:0 0 0 1px rgba(255,255,255,.14), 0 0 0 4px color-mix(in srgb, var(--deck-primary) 75%, transparent), 0 34px 80px -24px color-mix(in srgb, var(--deck-primary) 55%, transparent)}
.pd-phone.focus .pd-shell{box-shadow:0 0 0 2px #2b2e55, 0 0 0 5px color-mix(in srgb, var(--deck-primary) 75%, transparent), 0 34px 80px -24px color-mix(in srgb, var(--deck-primary) 55%, transparent)}

/* What you press, and what it reaches: a pulse along a faint wire, then a
   ring on the device it lands on. */
.pd-wires{position:absolute; left:0; top:0; width:100%; height:100%; overflow:visible; pointer-events:none; z-index:4}
.pd-wires path{fill:none; stroke:color-mix(in srgb, var(--deck-secondary) 80%, #fff); stroke-width:2.5; stroke-dasharray:6 8; opacity:0; transition:opacity .3s}
.pd-wires path.on{opacity:.8}
.pd-pulse{position:absolute; left:0; top:0; z-index:5; width:16px; height:16px; border-radius:50%; background:#fff; pointer-events:none; offset-anchor:center; offset-rotate:0deg;
  box-shadow:0 0 0 5px color-mix(in srgb, var(--deck-primary) 50%, transparent), 0 0 28px 8px color-mix(in srgb, var(--deck-secondary) 60%, transparent)}
.pd-ring{position:absolute; z-index:3; border-radius:14px; pointer-events:none; box-shadow:0 0 0 3px var(--deck-secondary); animation:pd-ring .7s ease-out both}
@keyframes pd-ring{from{opacity:.95}to{opacity:0; transform:scale(1.04)}}

/* The presenter's hand: a fingertip on the phone, a pointer on the laptop.
   It goes where the next press lands, then presses. */
.pd-hand{position:absolute; left:0; top:0; z-index:6; width:34px; height:34px; margin:-17px 0 0 -17px; border-radius:50%; opacity:0; pointer-events:none;
  background:rgba(255,255,255,.28); box-shadow:0 0 0 2px rgba(255,255,255,.85), 0 6px 16px rgba(0,0,0,.4);
  transition:left .55s cubic-bezier(.3,.7,.2,1), top .55s cubic-bezier(.3,.7,.2,1), opacity .3s}
.pd-hand.on{opacity:1}
.pd-hand.mouse{width:20px; height:24px; margin:-2px 0 0 -3px; border-radius:0; background:#fff; box-shadow:none;
  clip-path:polygon(0 0, 0 82%, 24% 64%, 42% 100%, 58% 93%, 41% 58%, 74% 58%); filter:drop-shadow(0 2px 3px rgba(0,0,0,.6))}
.pd-hand.tap::after{content:""; position:absolute; left:50%; top:50%; width:44px; height:44px; margin:-22px; border-radius:50%; background:rgba(255,255,255,.5); animation:pd-tap .6s ease-out both}
.pd-hand.mouse.tap::after{left:3px; top:2px}
@keyframes pd-tap{from{transform:scale(.2); opacity:1}to{transform:scale(1.6); opacity:0}}

/* The caption, in its own band at the foot of the stage. */
.pd-cap{position:absolute; left:50%; bottom:2.2cqw; transform:translateX(-50%); width:min(640px, calc(100% - 32px)); display:grid; gap:4px; justify-items:center; text-align:center;
  padding:10px 18px; border-radius:14px; background:rgba(10,11,28,.86); box-shadow:0 0 0 1px rgba(255,255,255,.08); transition:opacity .25s}
.pd-cap.swap{opacity:0}
.pd-ch{font-family:var(--deck-font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:#b9a6ff}
.pd-tx{margin:0; font-size:clamp(13px, 1.45cqw, 16px); line-height:1.4; font-weight:500; color:#fff}

/* One scrubber, two chapters. */
.pd-scrub{display:grid; grid-template-columns:auto 1fr; gap:16px; align-items:end; margin-top:14px}
.pd-pp{display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:50%; cursor:pointer; background:linear-gradient(100deg, var(--deck-primary), var(--deck-secondary))}
.pd-pp:hover{filter:brightness(1.1)}
.pd-pause{display:block; width:12px; height:14px; border-left:4px solid #fff; border-right:4px solid #fff}
.pd-pp.paused .pd-pause{width:0; height:0; border:0; border-left:12px solid #fff; border-top:7px solid transparent; border-bottom:7px solid transparent; margin-left:3px}
.pd-track{display:flex; gap:10px; min-width:0}
.pd-chap{display:grid; gap:10px; min-width:0}
.pd-chap[data-scene="room"]{flex:5}
.pd-chap[data-scene="call"]{flex:3}
.pd-cn{display:flex; align-items:center; gap:8px; font-family:var(--deck-font-mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--deck-inverse-muted); white-space:nowrap}
.pd-chap.on .pd-cn{color:#fff}
.pd-segs{display:flex; gap:4px}
.pd-segs button{position:relative; flex:1; height:8px; padding:0; border:0; border-radius:8px; overflow:visible; background:rgba(255,255,255,.12); cursor:pointer}
.pd-segs button::before{content:""; position:absolute; inset:-10px 0}
.pd-segs button i{position:absolute; inset:0; border-radius:8px; background:linear-gradient(100deg, var(--deck-primary), var(--deck-secondary)); transform-origin:left; transform:scaleX(0)}
.pd-segs button.done i{transform:none}
.pd-segs button.now i{animation:pd-fill var(--dwell, 4s) linear both}
.pd-segs button.now.still i{animation:none; transform:scaleX(.06)}
@keyframes pd-fill{from{transform:scaleX(.06)}to{transform:scaleX(1)}}

@media (max-width: 640px){
  .pd-box{aspect-ratio:600 / 1120; border-radius:14px}
  .pd-cap{bottom:10px; width:calc(100% - 20px); padding:8px 12px}
  .pd-tx{font-size:14px}
}

/* Kicker, heading, one line: every section on the page. */
.pd-sec{padding:88px 0 0; scroll-margin-top:150px}
.pd-sec h2{font-size:clamp(28px, 3.4vw, 42px); line-height:1.05}
.pd-sec .fx-line{max-width:640px; margin-top:12px}
.pd-sec .label{margin-bottom:12px}

/* The tools: the demo's chapters, right under it. */
.pd-tiles{display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:12px; margin-top:26px}
.pd-tile{display:flex; flex-direction:column; gap:8px; min-width:0; padding:18px; border:1.5px solid transparent; border-radius:16px; text-align:left; font:inherit; color:inherit;
  background:rgba(255,255,255,.035); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); transition:background .2s, box-shadow .2s}
button.pd-tile{cursor:pointer}
button.pd-tile:hover{background:rgba(255,255,255,.06)}
.pd-tile.playing{background:linear-gradient(#15163a, #15163a) padding-box, linear-gradient(135deg, var(--deck-primary), var(--deck-secondary)) border-box; box-shadow:none}
.pd-tile h3{margin:0; font-size:17px}
.pd-tile p{margin:0; font-size:14px; line-height:1.5; color:var(--deck-inverse-muted)}
.pd-keys{display:flex; align-items:center; gap:6px; margin-top:auto; padding-top:4px}
.pd-show{margin-left:auto; font-size:12px; font-weight:600; color:#b9a6ff}
.pd-tile.playing .pd-show{color:#fff}
.pd-note{font-family:var(--deck-font-mono); font-size:11px; letter-spacing:.06em; color:var(--deck-inverse-faint)}
.pd .kbd,.pd-tile .kbd,.pd-ref .kbd{display:inline-grid; place-items:center; min-width:26px; height:26px; padding:0 7px; border-radius:7px;
  font-family:var(--deck-font-mono); font-size:12px; font-weight:600; color:#fff; background:rgba(255,255,255,.08); box-shadow:inset 0 -1px 0 rgba(255,255,255,.14), 0 0 0 1px rgba(255,255,255,.12)}
@media (max-width: 900px){ .pd-tiles{grid-template-columns:repeat(2, minmax(0, 1fr))} }
@media (max-width: 420px){ .pd-tiles{grid-template-columns:1fr} }

/* A feature: words on one side, a short silent loop on the other, sides
   alternating down the page. */
.pd-feat{display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.15fr); gap:56px; align-items:center}
.pd-feat.flip .pd-txt{order:2}
.pd-txt .fx-line{margin-top:14px}
.pd-txt ul{margin:16px 0 0; padding:0; list-style:none; display:grid; gap:8px; font-size:15px; color:var(--deck-inverse-muted)}
.pd-txt li{display:flex; gap:10px}
.pd-txt li::before{content:""; flex:none; width:6px; height:6px; margin-top:.6em; border-radius:50%; background:var(--deck-primary)}
@media (max-width: 860px){
  .pd-feat{grid-template-columns:1fr; gap:24px}
  .pd-feat.flip .pd-txt{order:0}
}

/* The loops: drawn, not framed, sized in the loop's own width. */
.pd-loop{position:relative; aspect-ratio:16 / 10; max-width:100%; overflow:hidden; border-radius:20px; container-type:inline-size;
  background:radial-gradient(100% 80% at 100% 0%, color-mix(in srgb, var(--deck-primary) 18%, transparent), transparent 60%), rgba(255,255,255,.03);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.pd-ms{position:absolute; inset:0; overflow:hidden; background:#fff; container-type:inline-size}
.pd-m{position:absolute; inset:0; display:flex; flex-direction:column; gap:2.4cqw; padding:6cqw 7cqw; color:#0e1030; background:#fff}
.pd-m .k{font:600 1.9cqw/1 var(--deck-font-mono); letter-spacing:.16em; text-transform:uppercase; color:#0a4dff}
.pd-m b.t{font:800 5.4cqw/1.05 var(--deck-font-display); letter-spacing:-.03em}
.pd-m .gr{background:linear-gradient(90deg, #0a4dff, #0b8a6e); -webkit-background-clip:text; background-clip:text; color:transparent}
.pd-m .st{display:grid; grid-template-columns:repeat(3, 1fr); gap:3cqw; margin-top:1cqw}
.pd-m .st b{display:block; font:800 9cqw/1 var(--deck-font-display); letter-spacing:-.04em}
.pd-m .st b.h{color:#0a4dff}
.pd-m .st span,.pd-m small{font:600 1.6cqw/1.3 var(--deck-font-mono); letter-spacing:.1em; text-transform:uppercase; color:#6a6d8c}
.pd-m .tb{display:grid; gap:1.2cqw; font-size:2.6cqw}
.pd-m .tb span{display:flex; justify-content:space-between; padding-bottom:1cqw; border-bottom:.25cqw solid #e6e7f3}
.pd-m .tl{display:grid; grid-template-columns:repeat(3, 1fr); gap:3cqw; margin-top:3cqw}
.pd-m .tl span{padding-top:2cqw; border-top:.6cqw solid #0a4dff; font-size:2.5cqw; font-weight:700}
.pd-m .tl span:nth-child(3){border-color:#0b8a6e}
.pd-m .br{display:grid; gap:1.6cqw; font-size:2.2cqw}
.pd-m .br span{display:grid; grid-template-columns:16cqw 1fr; gap:2cqw; align-items:center}
.pd-m .br i{display:block; height:3cqw; border-radius:1cqw; background:linear-gradient(90deg, #0a4dff, #0b8a6e)}
.pd-m.held{align-items:center; justify-content:center; text-align:center; background:#f3f3f9}
.pd-m.held p{margin:0; max-width:60cqw; font-size:2.4cqw; color:#5d6080}
.pd-m .lock{display:grid; place-items:center; width:9cqw; height:9cqw; border-radius:50%; background:#e3e4f2; color:#5d6080}
.pd-m .lock svg{width:4.6cqw; height:4.6cqw}

.pd-l-scr{position:absolute; padding:1cqw; border-radius:1.4cqw; background:linear-gradient(135deg, #0a4dff, #0b8a6e); box-shadow:0 0 0 .6cqw #05060f}
.pd-l-scr .pd-ms{inset:1cqw; border-radius:.6cqw}
.pd-l-lap{position:absolute; overflow:hidden; border-radius:1.2cqw; background:#0a0c1f; box-shadow:0 0 0 .3cqw #2b2e55}
.pd-l-lap > .bar{display:flex; align-items:center; height:4cqw; padding:0 1.4cqw; background:#14152e; font:600 1.4cqw/1 var(--deck-font-mono); color:var(--deck-inverse-muted)}
.pd-l-lap > .bar b{margin-left:auto; padding:.5cqw .9cqw; border-radius:99px; font-weight:600; background:color-mix(in srgb, var(--deck-primary) 22%, transparent); color:#d7cbff}
.pd-l-lap .pd-ms{top:5.4cqw; left:1.4cqw; right:1.4cqw; bottom:1.4cqw; border-radius:.5cqw}
.pd-l-ph{position:absolute; border-radius:3.4cqw; background:#05061a; box-shadow:0 0 0 .3cqw #2b2e55}
.pd-l-ph > span{position:absolute; inset:1cqw; overflow:hidden; border-radius:2.6cqw; background:#0a0c1f}
.pd-l-ph .tt{position:absolute; left:10%; right:10%; top:12%; aspect-ratio:16 / 9; overflow:hidden; border-radius:.6cqw; box-shadow:0 0 0 .3cqw #0a4dff}
.pd-l-ph .tt .pd-ms{inset:0}
.pd-l-ph .ln{position:absolute; left:10%; right:18%; height:1.2cqw; border-radius:1cqw; background:#2b2e55}
.pd-l-ph .nx{position:absolute; left:12%; right:12%; bottom:6%; height:11%; display:grid; place-items:center; border-radius:99px; background:#1f5bff; color:#fff; font:700 1.8cqw/1 var(--deck-font-sans)}
.pd-l-grid{position:absolute; display:grid; grid-template-columns:1fr 1fr; gap:1cqw}
.pd-l-grid i{display:block; aspect-ratio:16 / 9; padding:.6cqw; border-radius:.5cqw; background:#fff; font:600 1.3cqw/1 var(--deck-font-mono); font-style:normal; color:#55587a}
.pd-l-grid i.b{background:#eef0ff; color:#0a4dff}
.pd-l-dot{position:absolute; width:2.2cqw; height:2.2cqw; margin:-1.1cqw 0 0 -1.1cqw; border-radius:50%; background:#fff; opacity:0;
  box-shadow:0 0 0 .8cqw color-mix(in srgb, var(--deck-primary) 50%, transparent), 0 0 3cqw 1cqw color-mix(in srgb, var(--deck-secondary) 60%, transparent)}
.pd-l-lbl{position:absolute; font:600 1.5cqw/1 var(--deck-font-mono); letter-spacing:.12em; text-transform:uppercase; color:var(--deck-inverse-muted); white-space:nowrap}

/* Each loop is six seconds: a press at 30%, the pulse, the change at 50%. */
.pd-a{animation:pd-a 6s infinite}
.pd-b{animation:pd-b 6s infinite}
.pd-tapme{animation:pd-tapme 6s infinite}
.pd-hitme{animation:pd-hitme 6s infinite}
@keyframes pd-a{0%,48%{opacity:1}52%,96%{opacity:0}100%{opacity:1}}
@keyframes pd-b{0%,48%{opacity:0}52%,96%{opacity:1}100%{opacity:0}}
@keyframes pd-tapme{0%,28%,36%,100%{transform:none}31%{transform:scale(.9); box-shadow:0 0 0 1cqw color-mix(in srgb, var(--deck-primary) 50%, transparent)}}
@keyframes pd-hitme{0%,28%{box-shadow:none}31%,90%{box-shadow:0 0 0 .6cqw var(--deck-primary)}100%{box-shadow:none}}
@keyframes pd-d1{0%,31%{opacity:0; left:80%; top:80%}34%{opacity:1; left:80%; top:80%}46%{opacity:1; left:58%; top:48%}49%,100%{opacity:0; left:58%; top:48%}}
@keyframes pd-d2{0%,31%{opacity:0; left:12%; top:52%}34%{opacity:1; left:12%; top:52%}46%{opacity:1; left:50%; top:46%}49%,100%{opacity:0; left:50%; top:46%}}
@keyframes pd-d3{0%,31%{opacity:0; left:46%; top:50%}34%{opacity:1; left:46%; top:50%}46%{opacity:1; left:60%; top:28%}49%,100%{opacity:0}}
@keyframes pd-d4{0%,31%{opacity:0; left:46%; top:50%}34%{opacity:1; left:46%; top:50%}46%{opacity:1; left:60%; top:74%}49%,100%{opacity:0}}
@keyframes pd-x1{0%,10%{opacity:0}16%,66%{opacity:1}72%,100%{opacity:0}}
@keyframes pd-x2{0%,66%{opacity:0}72%,100%{opacity:1}}
.pd-d1{animation:pd-d1 6s infinite}
.pd-d2{animation:pd-d2 6s infinite}
.pd-d3{animation:pd-d3 6s infinite}
.pd-d4{animation:pd-d4 6s infinite}
.pd-x1{animation:pd-x1 6s infinite}
.pd-x2{animation:pd-x2 6s infinite}

/* Keys and plans: one small reference block. */
.pd-ref{display:grid; grid-template-columns:minmax(0, 1.2fr) minmax(0, 1fr); gap:16px; margin-top:24px}
.pd-refbox{display:grid; gap:14px; align-content:start; min-width:0; padding:20px 22px; border-radius:18px; background:rgba(255,255,255,.035); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.pd-refbox h3{font-family:var(--deck-font-mono); font-size:12px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:#b9a6ff}
.pd-keylist{display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px 22px; margin:0}
.pd-keylist div{display:flex; align-items:center; gap:10px; font-size:14px; color:var(--deck-inverse-muted)}
.pd-keylist dt{display:flex; flex:none; gap:4px; min-width:78px}
.pd-keylist dd{margin:0}
.pd-plans{display:grid; gap:8px; margin:0; padding:0; list-style:none; font-size:14px}
.pd-plans li{display:flex; justify-content:space-between; gap:12px; padding-bottom:8px; border-bottom:1px solid rgba(255,255,255,.07); color:var(--deck-inverse-muted)}
.pd-plans li:last-child{border-bottom:0; padding-bottom:0}
.pd-plans li > span:last-child{align-self:center}
@media (max-width: 860px){ .pd-ref{grid-template-columns:1fr} }
@media (max-width: 480px){ .pd-keylist{grid-template-columns:1fr} }

@media (prefers-reduced-motion: reduce){
  .pd-dev,.pd-hand,.pd-fit iframe,.pd-shell,.pd-cap{transition:none}
  .pd-hand.tap::after,.pd-segs button.now i,.pd-ring{animation:none}
  .pd-a,.pd-b,.pd-tapme,.pd-hitme,.pd-l-dot,.pd-x1,.pd-x2{animation:none !important}
  .pd-a,.pd-x1{opacity:0}
  .pd-b,.pd-x2{opacity:1}
}
