/* Native product demo player (inc/product-demo.php, assets/js/product-demo.js).
   Widescreen 16:10 stage that breaks out of the 1280 wrap to 1400px, chapters as a
   live progress bar underneath. Frames are captured from the North Star design. */

.tv-sec{position:relative}
.tv-head{display:grid;grid-template-columns:1.05fr .95fr;gap:24px 72px;align-items:end;margin-bottom:44px}
.tv-head h2{font-family:'Outfit';font-weight:600;font-size:clamp(2rem,3.2vw,2.9rem);line-height:1.05;letter-spacing:-.02em;margin-top:22px;text-wrap:balance}
.tv-head h2 em{font-style:normal;background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.tv-sub{color:var(--mut);font-size:1.06rem;max-width:48ch;text-wrap:pretty}
.tv-meta{margin-top:16px;font-family:'Space Grotesk';font-size:.7rem;font-weight:600;letter-spacing:.24em;text-transform:uppercase;color:var(--mut-2)}

/* the player breaks out of .wrap — wider canvas, still centred */
.tv{--pw:min(1400px,calc(100vw - 48px));width:var(--pw);margin-left:calc((100% - var(--pw)) / 2);position:relative}
.tv-cfg{display:none}

.tv-stage{position:relative;border-radius:22px;overflow:hidden;background:#05030c;
  border:1px solid rgba(205,130,255,.26);
  box-shadow:0 0 0 1px rgba(69,0,249,.12),0 50px 140px -40px rgba(105,40,250,.6),0 30px 60px -30px rgba(0,0,0,.8);outline:none}
.tv-stage::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.tv-bar{display:flex;align-items:center;gap:7px;height:34px;padding:0 16px;background:linear-gradient(180deg,#141022,#0c0918);border-bottom:1px solid rgba(168,150,255,.1)}
.tv-bar i{width:10px;height:10px;border-radius:50%;background:rgba(244,241,255,.14)}
.tv-bar span{margin:0 auto;transform:translateX(-24px);font-family:'Space Grotesk';font-size:.66rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--mut-2)}

.tv-view{position:relative;aspect-ratio:16/10;overflow:hidden;background:#000}
.tv-cam{position:absolute;inset:0;transform-origin:0 0;transition:transform 1.15s var(--ease);will-change:transform}
.tv-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .5s ease;user-select:none;-webkit-user-drag:none}
.tv-frame.is-on{opacity:1}
.tv-noscript{position:absolute;left:50%;bottom:24px;transform:translateX(-50%);color:#fff}

/* hotspot: glowing ring + spotlight + beacon */
.tv-hot{position:absolute;z-index:3;border:0;padding:0;margin:0;background:transparent;cursor:pointer;border-radius:10px;
  box-shadow:0 0 0 2px #cd82ff,0 0 0 6px rgba(135,82,250,.28),0 0 28px 6px rgba(135,82,250,.55),0 0 0 200vmax rgba(5,3,12,.42);
  transition:left 1.15s var(--ease),top 1.15s var(--ease),width 1.15s var(--ease),height 1.15s var(--ease),opacity .35s;animation:pdBreathe 2.4s ease-in-out infinite}
.tv-hot::before{content:"";position:absolute;right:-7px;top:-7px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px rgba(205,130,255,.55),0 0 16px 4px rgba(135,82,250,.9)}
.tv-hot::after{content:"";position:absolute;right:-7px;top:-7px;width:14px;height:14px;border-radius:50%;border:2px solid #cd82ff;animation:pdPing 1.8s cubic-bezier(0,0,.2,1) infinite}
.tv-hot:focus-visible{outline:3px solid #fff;outline-offset:4px}
.tv-hot.is-nudge{animation:pdNudge .5s ease}
.tv-hot[hidden]{display:block;opacity:0;pointer-events:none}
@keyframes pdBreathe{0%,100%{box-shadow:0 0 0 2px #cd82ff,0 0 0 6px rgba(135,82,250,.24),0 0 24px 4px rgba(135,82,250,.45),0 0 0 200vmax rgba(5,3,12,.42)}50%{box-shadow:0 0 0 2px #e6c2ff,0 0 0 9px rgba(135,82,250,.34),0 0 40px 10px rgba(135,82,250,.7),0 0 0 200vmax rgba(5,3,12,.42)}}
@keyframes pdPing{0%{transform:scale(1);opacity:.9}100%{transform:scale(3.2);opacity:0}}
@keyframes pdNudge{0%,100%{transform:none}25%{transform:scale(1.06)}60%{transform:scale(.98)}}

/* guide cursor */
.tv-cursor{position:absolute;z-index:3;left:50%;top:58%;width:26px;height:26px;margin:-3px 0 0 -4px;pointer-events:none;opacity:0;
  filter:drop-shadow(0 4px 10px rgba(0,0,0,.55));transition:left 1.1s cubic-bezier(.65,0,.25,1),top 1.1s cubic-bezier(.65,0,.25,1),opacity .4s}
.tv-cursor.is-on{opacity:1}
.tv-cursor svg{position:relative;z-index:1;width:26px;height:26px;transition:transform .18s ease}
.tv-cursor i{position:absolute;left:4px;top:3px;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;border:2px solid #cd82ff;opacity:0}
.tv-cursor.is-tap svg{animation:tvPress .32s ease}
.tv-cursor.is-tap i{animation:tvRipple .7s cubic-bezier(0,0,.2,1)}
@keyframes tvPress{40%{transform:scale(.82)}}
@keyframes tvRipple{0%{opacity:.9;transform:scale(.4)}100%{opacity:0;transform:scale(4.2)}}

/* silent preview behind the intro card */
.tv.is-attract .tv-cam{animation:tvDrift 3.4s ease-in-out infinite alternate}
@keyframes tvDrift{from{transform:scale(1)}to{transform:scale(1.035)}}
.tv.is-attract .tv-frame{transition:opacity 1.1s ease}

/* tooltip card (desktop/tablet: floats beside the hotspot) */
.tv-tip{position:absolute;z-index:4;width:340px;max-width:calc(100% - 32px);padding:20px 22px 18px;border-radius:16px;
  background:linear-gradient(160deg,rgba(28,18,58,.96),rgba(12,8,28,.97));border:1px solid rgba(205,130,255,.32);
  box-shadow:0 24px 60px -18px rgba(0,0,0,.8),0 0 0 1px rgba(69,0,249,.2),0 0 50px -10px rgba(105,40,250,.5);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:var(--white);
  opacity:0;transform:translateY(8px);transition:opacity .35s ease,transform .45s var(--ease),left .55s var(--ease),top .55s var(--ease)}
.tv-tip.is-on{opacity:1;transform:none}
.tv-tip-k{display:flex;align-items:center;gap:10px;font-family:'Space Grotesk';font-size:.66rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--lav)}
.tv-tip-k i{flex:1;height:1px;background:linear-gradient(90deg,rgba(205,130,255,.5),transparent)}
.tv-tip h3{font-family:'Outfit';font-weight:600;font-size:1.28rem;line-height:1.2;letter-spacing:-.01em;margin-top:10px;text-wrap:balance}
.tv-tip p{color:#cfc9ea;font-size:.93rem;line-height:1.55;margin-top:8px;text-wrap:pretty}
.tv-tip p b{color:#fff;font-weight:600}
.tv-tip-f{display:flex;align-items:center;gap:8px;margin-top:16px}
.tv-dots{display:flex;gap:5px;margin-right:auto}
.tv-dots i{width:6px;height:6px;border-radius:3px;background:rgba(244,241,255,.18);transition:width .4s var(--ease),background .3s}
.tv-dots i.on{width:18px;background:var(--grad)}
.tv-dots i.done{background:rgba(205,130,255,.55)}
.tv-btn{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 14px;border-radius:999px;cursor:pointer;font-family:'Space Grotesk';font-size:.78rem;font-weight:600;letter-spacing:.02em;border:1px solid rgba(168,150,255,.25);background:transparent;color:#e7e2ff;transition:background .25s,border-color .25s,transform .3s var(--ease)}
.tv-btn:hover{border-color:rgba(205,130,255,.6);background:rgba(135,82,250,.12)}
.tv-btn.pri{background:var(--grad);border-color:transparent;color:#fff;box-shadow:0 6px 22px -6px rgba(105,40,250,.7)}
.tv-btn.pri:hover{transform:translateY(-1px)}
.tv-btn svg{width:13px;height:13px}

/* top-right controls */
.tv-ctrls{position:absolute;z-index:6;top:46px;right:12px;display:flex;gap:6px;opacity:0;transition:opacity .3s}
.tv.is-live .tv-ctrls,.tv.is-end .tv-ctrls{opacity:1}
.tv-ctl{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;cursor:pointer;background:rgba(10,6,24,.72);border:1px solid rgba(168,150,255,.22);color:#e7e2ff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:border-color .25s,background .25s}
.tv-ctl:hover{border-color:rgba(205,130,255,.6);background:rgba(40,20,90,.8)}
.tv-ctl svg{width:15px;height:15px}
.tv-ctl[aria-pressed="true"] .on{display:none}
.tv-ctl[aria-pressed="false"] .off{display:none}

/* intro + end overlays */
.tv-ov{position:absolute;inset:34px 0 0;z-index:5;display:grid;place-items:center;text-align:center;padding:32px;
  background:radial-gradient(ellipse at 50% 55%,rgba(30,10,80,.55),rgba(5,3,12,.86) 70%);
  -webkit-backdrop-filter:blur(3px) saturate(.8);backdrop-filter:blur(3px) saturate(.8);
  opacity:0;visibility:hidden;transition:opacity .5s ease,visibility 0s linear .5s}
.tv-ov.is-on{opacity:1;visibility:visible;transition:opacity .5s ease}
.tv-ov-in{max-width:560px}
.tv-ov-k{font-family:'Space Grotesk';font-size:.7rem;font-weight:600;letter-spacing:.26em;text-transform:uppercase;color:var(--lav)}
.tv-ov h3{font-family:'Outfit';font-weight:600;font-size:clamp(1.7rem,3.4vw,2.9rem);line-height:1.04;letter-spacing:-.025em;margin-top:14px;text-wrap:balance}
.tv-ov p{color:#cfc9ea;font-size:1.04rem;margin:14px auto 0;max-width:44ch;text-wrap:pretty}
.tv-ov-acts{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:28px}
.tv-play{display:inline-flex;align-items:center;gap:14px;padding:10px 26px 10px 10px;border-radius:999px;border:0;cursor:pointer;background:var(--grad);color:#fff;font-family:'Space Grotesk';font-weight:600;font-size:1rem;letter-spacing:.01em;box-shadow:0 16px 50px -12px rgba(105,40,250,.85),0 0 0 1px rgba(255,255,255,.12) inset;transition:transform .5s var(--ease),box-shadow .5s var(--ease)}
.tv-play:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 22px 60px -12px rgba(135,82,250,.95),0 0 0 1px rgba(255,255,255,.18) inset}
.tv-play span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.18)}
.tv-play svg{width:16px;height:16px;margin-left:3px}
.tv-ov-note{margin-top:16px;font-family:'Space Grotesk';font-size:.66rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--mut-2)}
.tv-ov .btn{text-decoration:none}

/* end screen with live calendar (dark) */
.tv-ov--cal{place-items:stretch;text-align:left;padding:clamp(20px,3vw,44px)}
.tv-end{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(24px,3.4vw,56px);align-items:center;height:100%;max-width:1220px;width:100%;margin:0 auto}
.tv-end-l h3{margin-top:14px;font-size:clamp(1.7rem,3vw,2.7rem)}
.tv-end-l p{margin:14px 0 0;max-width:34ch}
.tv-end-acts{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px;margin-top:26px}
.tv-end-acts .btn{text-decoration:none}
/* the AI Trust Loop ring: this tour is one slice of five */
.tv-loop{display:flex;align-items:center;gap:18px;margin-top:24px;padding:14px 16px;border-radius:16px;background:rgba(16,10,38,.55);border:1px solid var(--line);max-width:440px}
.tv-loop svg{flex:none;width:76px;height:76px}
.tv-loop circle{fill:none;stroke:rgba(168,150,255,.16);stroke-width:9}
.tv-loop circle.on{stroke:url(#tvLoopG);filter:drop-shadow(0 0 6px rgba(135,82,250,.8))}
.tv-loop circle.next{stroke:rgba(205,130,255,.42);stroke-dasharray:inherit}
.tv-loop text{fill:#fff;font-family:'Outfit';font-weight:600;font-size:15px;text-anchor:middle}
.tv-loop-t p{margin:0!important;color:#cfc9ea;font-size:.86rem;line-height:1.45;max-width:none!important}
.tv-loop ol{list-style:none;display:flex;flex-wrap:wrap;gap:5px 12px;margin:8px 0 0;padding:0}
.tv-loop li{font-family:'Space Grotesk';font-size:.62rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--mut-2);white-space:nowrap}
.tv-loop li i{font-style:normal;margin-right:5px;opacity:.7}
.tv-loop li.on{color:var(--lav)}
.tv-loop li.next{color:#e7e2ff}
/* last-step countdown on the Finish button */
.tv-btn.pri.is-auto{background:linear-gradient(90deg,rgba(255,255,255,.22),rgba(255,255,255,.22)) left/0 100% no-repeat,var(--grad);animation:tvAuto var(--auto,7s) linear forwards}
@keyframes tvAuto{to{background-size:100% 100%,auto}}
.tv-end-r{height:100%;min-height:0;display:flex;align-items:center}
.tv-ov--form,.tv-ov--cal{place-items:stretch;text-align:left;padding:clamp(20px,3vw,40px)}
/* the /get-a-demo/ card, reused: fits the stage height and scrolls inside if a screen is short */
.tv-end-r .tv-form{width:100%;max-height:100%;overflow:auto;padding:28px 30px 22px;background:linear-gradient(150deg,rgba(28,14,70,.92),rgba(12,8,30,.96));
  border-color:rgba(205,130,255,.3);box-shadow:0 30px 80px -24px rgba(0,0,0,.85),0 0 60px -14px rgba(105,40,250,.5);scrollbar-width:thin;scrollbar-color:rgba(205,130,255,.35) transparent}
.tv-form .dfc-top{margin-bottom:2px}
.tv-form .cranium-hs-form .hs-form-field{margin-top:11px}
.tv-form .cranium-hs-form .hs_submit .actions{margin-top:16px}
.tv-form .df-fine{color:var(--mut-2);font-size:.76rem;line-height:1.55;margin:14px 0 0;max-width:none;text-align:left}
.tv-form-load{min-height:420px;display:grid;place-items:center;font-family:'Space Grotesk';font-size:.7rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--mut-2)}
.tv-panel .tv-form{margin-top:14px}
.tv.is-form-below .tv-panel{display:block;margin-top:14px}

.tv.is-form-below .tv-end{grid-template-columns:1fr;text-align:center;max-width:620px}
.tv.is-form-below .tv-end-l p{margin:12px auto 0}
.tv.is-form-below .tv-end-acts{justify-content:center}
.tv.is-form-below .tv-loop{margin-left:auto;margin-right:auto;text-align:left}
.tv.is-form-below .tv-end-r{display:none}
.tv.is-form-below .tv-ov--form{place-items:center}

/* chapters = progress bar */
.tv-chapters{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}
.tv-ch{position:relative;display:flex;align-items:flex-start;gap:14px;text-align:left;padding:16px 18px 20px;border-radius:14px;cursor:pointer;background:rgba(16,10,38,.5);border:1px solid var(--line);color:inherit;font:inherit;transition:border-color .3s,background .3s}
.tv-ch:hover{border-color:rgba(205,130,255,.35)}
.tv-ch-n{font-family:'Space Grotesk';font-size:.7rem;font-weight:600;letter-spacing:.2em;color:var(--mut-2);padding-top:4px;transition:color .3s}
.tv-ch-t b{display:block;font-family:'Outfit';font-weight:600;font-size:1.04rem;color:#fff}
.tv-ch-t span{display:block;color:var(--mut);font-size:.88rem;margin-top:2px;line-height:1.45}
.tv-ch-bar{position:absolute;left:18px;right:18px;bottom:9px;height:3px;border-radius:2px;background:rgba(168,150,255,.1);overflow:hidden}
.tv-ch-bar i{position:absolute;inset:0;transform-origin:0 50%;transform:scaleX(var(--p,0));background:var(--grad);transition:transform .7s var(--ease)}
.tv-ch.is-on{border-color:rgba(205,130,255,.45);background:linear-gradient(160deg,rgba(40,20,96,.55),rgba(16,10,38,.55))}
.tv-ch.is-on .tv-ch-n,.tv-ch.is-done .tv-ch-n{color:var(--lav)}

/* the panel holds the tip on phones (below the stage) */
.tv-panel{display:none}

/* fullscreen + in-page "max" fallback */
.tv:fullscreen{width:100%;margin:0;background:#05030c;padding:24px;display:flex;flex-direction:column;justify-content:center}
.tv:fullscreen .tv-stage{width:min(100%,calc((100vh - 170px) * 1.6));margin:0 auto}
.tv:fullscreen .tv-chapters{width:min(100%,calc((100vh - 170px) * 1.6));margin:18px auto 0}
.tv.is-max{position:fixed;inset:0;z-index:9999;width:auto;margin:0;background:rgba(5,3,12,.97);padding:24px;display:flex;flex-direction:column;justify-content:center}
.tv.is-max .tv-stage,.tv.is-max .tv-chapters{width:min(100%,calc((100vh - 170px) * 1.6));margin-left:auto;margin-right:auto}
.tv.is-max .tv-chapters{margin-top:18px}

@media (max-width:1020px){
  .tv-end{grid-template-columns:1fr 1.25fr;gap:22px}
  .tv-end-l h3{font-size:1.6rem}
  .tv-end-l p{font-size:.92rem}
  .tv-head{grid-template-columns:1fr;gap:18px;margin-bottom:32px}
  .tv-tip{width:300px;padding:16px 18px 14px}
  .tv-tip h3{font-size:1.12rem}
  .tv-tip p{font-size:.88rem}
}
@media (max-width:760px){
  .tv{--pw:calc(100vw - 24px)}
  .tv-head h2{font-size:clamp(2.05rem,8.6vw,2.6rem);margin-top:18px}
  .tv-sub{font-size:1.02rem}
  .tv-meta{font-size:.62rem;letter-spacing:.18em;line-height:1.9}
  .tv-stage{border-radius:16px}
  .tv-bar{height:26px}.tv-bar i{width:7px;height:7px}.tv-bar span{font-size:.56rem}
  .tv-ov{inset:26px 0 0;padding:18px}
  .tv-ov h3{font-size:1.5rem}
  .tv-ov p{font-size:.9rem;margin-top:8px}
  .tv-ov-acts{margin-top:16px}
  .tv-play{font-size:.9rem;padding:7px 18px 7px 7px;gap:10px}
  .tv-play span{width:34px;height:34px}
  .tv-ov-note{display:none}
  .tv-ctrls{top:34px;right:8px}
  .tv-ctl{width:30px;height:30px}
  .tv-tip{display:none}
  .tv-cursor{display:none}
  .tv-hot{border-radius:6px}
  .tv-panel{display:block;margin-top:12px;min-height:1px}
  .tv-panel .tv-tip{display:block;position:relative;width:auto;max-width:none;left:auto!important;top:auto!important;opacity:1;transform:none;padding:16px 18px}
  .tv-end{grid-template-columns:1fr;text-align:center}
  .tv-end-l p{margin:8px auto 0}
  .tv-end-acts{align-items:center;margin-top:12px;gap:8px}
  .tv-end-l p,.tv-loop{display:none}
  .tv-end-acts .btn{padding:10px 16px;font-size:.82rem}
  .tv-ov--form{padding:12px}
  .tv-end-l .tv-ov-k{font-size:.6rem}
  .tv-end-r{display:none}
  .tv-panel .tv-form{padding:22px 18px}
  .tv-chapters{grid-template-columns:repeat(3,1fr);gap:6px;margin-top:12px}
  .tv-ch{padding:10px 10px 14px;gap:0;flex-direction:column}
  .tv-ch-n{padding:0;font-size:.6rem}
  .tv-ch-t b{font-size:.86rem;margin-top:2px}
  .tv-ch-t span{display:none}
  .tv-ch-bar{left:10px;right:10px;bottom:6px}
}
@media (prefers-reduced-motion:reduce){
  .tv-cam,.tv-hot,.tv-tip,.tv-frame,.tv-cursor,.tv-cursor svg,.tv-cursor i{transition:none!important;animation:none!important}
  .tv-hot::after{animation:none}
}
