/* Webinar pop-up: a little iPad playing the "Watch me build" film, styled after the /ai webinar section */
.wpop{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:24px;border:0;background:transparent;display:grid;place-items:center;overflow:auto;color:#fff;font-family:"DM Sans",sans-serif}
.wpop:not([open]){display:none}
.wpop::backdrop{background:#07101bb3;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:wpop-fade .4s ease both}
.wpop.wpop-out::backdrop{animation:wpop-fade .3s ease reverse both}

.wpop-card{position:relative;width:min(780px,100%);animation:wpop-in .75s cubic-bezier(.2,1.35,.4,1) both}
.wpop.wpop-out .wpop-card{animation:wpop-gone .3s ease-in both}

.wpop-close{position:absolute;top:-16px;right:-16px;z-index:10;width:44px;height:44px;border-radius:50%;border:0;display:grid;place-items:center;background:#fafaf7;color:#1c1a16;font:400 26px/1 "DM Sans",sans-serif;cursor:pointer;box-shadow:0 6px 18px #0f1f3559,0 0 0 1px #d0cac0;transition:transform .25s cubic-bezier(.2,1.6,.4,1)}
.wpop-close:hover{transform:rotate(90deg) scale(1.08)}
.wpop-close:focus-visible,.wpop-cta:focus-visible,.wpop-sound:focus-visible{outline:3px solid #7fa0c3;outline-offset:3px}

/* iPad frame (same bezel recipe as /ai .webinar-device) */
.wpop-ipad{position:relative;padding:15px;border:2px solid #888b8e;border-radius:40px;background:linear-gradient(135deg,#24272a,#0c0d0e 50%,#292c2f);box-shadow:0 1px 0 #fff9 inset,0 0 0 2px #414448,0 30px 80px #0009;isolation:isolate}
.wpop-ipad:after{content:"";position:absolute;top:-4px;right:90px;width:65px;height:3px;border-radius:3px;background:#55585c;pointer-events:none}
.wpop-cam{position:absolute;z-index:5;top:5px;left:calc(50% - 3px);width:6px;height:6px;border-radius:50%;background:#07080a;box-shadow:0 0 0 1px #383c42,0 0 2px #23405d inset}

.wpop-screen{position:relative;aspect-ratio:16/9;border-radius:24px;overflow:hidden;background:#0f1f35}
.wpop-film{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#101820}
.wpop-screen:before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,transparent 30%,#0f1f3520 52%,#0f1f35e8 100%)}
.wpop-chip{position:absolute;z-index:3;top:16px;right:16px;padding:5px 11px;border-radius:20px;background:#ffffff24;border:1px solid #ffffff40;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);font-size:11px;font-weight:600;letter-spacing:.3px}

.wpop-content{position:absolute;left:0;right:0;bottom:0;z-index:2;display:grid;grid-template-columns:1fr auto;gap:10px 22px;align-items:end;padding:26px 28px}
.wpop-copy{display:grid;justify-items:start;text-align:left}
.wpop-eyebrow{display:flex;align-items:center;gap:8px;margin:0 0 8px;font:600 11px/1 "DM Sans",sans-serif;letter-spacing:1.6px;text-transform:uppercase;color:#dbe6f2}
.wpop-eyebrow i{width:8px;height:8px;border-radius:50%;background:#ff6b5e;flex:none;animation:wpop-pulse 1.8s ease-in-out infinite}
.wpop h2{margin:0;font:600 clamp(30px,4vw,42px)/1.05 Fraunces,serif;letter-spacing:-1px;color:#fff}
.wpop-meta{display:block;margin-top:8px;font-size:12px;color:#dbe6f2}
.wpop-line{margin:12px 0 0;font:italic 300 clamp(18px,2.2vw,23px)/1.2 Fraunces,serif;color:#fff}
.wpop-when{display:flex;align-items:center;gap:8px;margin:10px 0 0;font-size:12px;color:#e2e8ee}
.wpop-when svg{width:15px;height:15px;flex:none}

.wpop-actions{display:grid;justify-items:center;gap:10px}
.wpop-sound{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:40px;padding:8px 18px;border:1px solid #ffffff66;border-radius:30px;background:#ffffff24;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#fff;font:600 12px/1 "DM Sans",sans-serif;cursor:pointer}
.wpop-sound span+span{font-size:11px;font-weight:400;opacity:.8}
.wpop-sound:hover{background:#ffffff38}
.wpop-cta{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 24px;border-radius:30px;background:#fafaf7;color:#0f1f35;font:600 13px/1 "DM Sans",sans-serif;text-decoration:none;box-shadow:0 8px 22px #0006;transition:transform .2s ease}
.wpop-cta:after{content:"";position:absolute;top:0;bottom:0;left:0;width:45%;pointer-events:none;background:linear-gradient(100deg,#7fa0c300,#7fa0c373 50%,#7fa0c300);translate:-130% 0;animation:wpop-sheen 4s ease-in-out 1s infinite}
.wpop-cta:hover{transform:scale(1.04)}
.wpop small{font-size:10.5px;color:#dbe6f2}

@keyframes wpop-fade{from{opacity:0}to{opacity:1}}
@keyframes wpop-in{0%{opacity:0;transform:translateY(70px) scale(.7) rotate(-4deg)}60%{opacity:1}100%{transform:none}}
@keyframes wpop-gone{to{opacity:0;transform:translateY(40px) scale(.85) rotate(3deg)}}
@keyframes wpop-pulse{50%{opacity:.35;transform:scale(.8)}}
@keyframes wpop-sheen{0%{translate:-130% 0}55%,100%{translate:330% 0}}

/* Phones: little iPad slides up from the bottom, non-modal (no full-screen takeover) */
.wpop.wpop-bar{inset:auto 0 0 0;height:auto;padding:0 10px calc(10px + env(safe-area-inset-bottom));display:block;overflow:visible;z-index:2147483000}
.wpop-bar .wpop-card{max-width:520px;margin:0 auto;animation:wpop-up .6s cubic-bezier(.2,1.3,.4,1) both}
.wpop.wpop-bar.wpop-out .wpop-card{animation:wpop-down .3s ease-in both}
.wpop-bar .wpop-ipad{padding:8px;border-radius:26px;box-shadow:0 1px 0 #fff9 inset,0 0 0 2px #414448,0 -4px 40px #0f1f3566}
.wpop-bar .wpop-ipad:after{right:60px;width:44px}
.wpop-bar .wpop-cam{top:2px;width:4px;height:4px;left:calc(50% - 2px)}
.wpop-bar .wpop-screen{border-radius:18px}
.wpop-bar .wpop-screen:before{background:linear-gradient(180deg,transparent 25%,#0f1f3533 45%,#0f1f35f0 100%)}
.wpop-bar .wpop-close{top:-12px;right:-2px;width:40px;height:40px;font-size:24px}
.wpop-bar .wpop-chip,.wpop-bar .wpop-meta,.wpop-bar .wpop-line,.wpop-bar small{display:none}
.wpop-bar .wpop-screen{display:flex;align-items:flex-end}
.wpop-bar .wpop-content{position:static;width:100%;gap:8px;padding:12px 12px 12px 14px}
.wpop-bar .wpop-copy,.wpop-bar .wpop-cta{position:relative;z-index:2}
.wpop-bar .wpop-eyebrow{font-size:9px;letter-spacing:1.2px;margin-bottom:5px}
.wpop-bar .wpop-eyebrow i{width:6px;height:6px}
.wpop-bar h2{font-size:23px;letter-spacing:-.5px}
.wpop-bar .wpop-when{font-size:10.5px;gap:5px;margin-top:5px}
.wpop-bar .wpop-when svg{width:12px;height:12px}
.wpop-bar .wpop-actions{display:contents}
.wpop-bar .wpop-sound{position:absolute;z-index:3;top:10px;left:10px;min-height:32px;padding:6px 12px;font-size:11px;gap:7px}
.wpop-bar .wpop-sound span+span{font-size:10px}
.wpop-bar .wpop-cta{min-height:38px;padding:8px 14px;font-size:12px;white-space:nowrap}
@keyframes wpop-up{from{transform:translateY(120%)}to{transform:none}}
@keyframes wpop-down{to{transform:translateY(120%);opacity:.6}}

@media (prefers-reduced-motion:reduce){
  .wpop *,.wpop::backdrop,.wpop-card,.wpop-bar .wpop-card{animation:none!important;transition:none!important}
  .wpop-cta:after{display:none}
}
