/* "How to try the demo" (founder, 2026-11-11): a strong red button at the demo's entrance and in its top bar, opening a short
   video of the REAL demo screens in a box in the middle of the screen, everything behind blurred, with a big X to close it. */
.dg-open{--dg:#e11d48;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;margin:2px 0 0;padding:12px 18px;
  border:0;border-radius:14px;cursor:pointer;color:#fff;font-family:inherit;font-weight:700;font-size:16px;line-height:1.2;letter-spacing:-.005em;
  background:linear-gradient(180deg,#f43f5e 0%,#e11d48 55%,#be123c 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 26px -10px rgba(225,29,72,.85);transition:transform .15s ease,box-shadow .2s ease,filter .2s ease}
.dg-open:hover{filter:brightness(1.06);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 14px 32px -10px rgba(225,29,72,.95)}
.dg-open:active{transform:scale(.985)}
.dg-open:focus-visible{outline:3px solid rgba(244,63,94,.55);outline-offset:3px}
.dg-play{flex:none;width:28px;height:28px;border-radius:50%;background:#fff;display:grid;place-items:center}
/* a play sign points right in every language (it is not mirrored in Arabic) */
.dg-play::before{content:'';width:0;height:0;border-style:solid;border-width:6px 0 6px 10px;border-color:transparent transparent transparent #e11d48;margin-left:3px}
.dg-time{flex:none;font-size:13px;font-weight:700;padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.18);font-variant-numeric:tabular-nums}
/* the smaller one in the demo's top bar */
.dg-open.dg-pill{width:auto;min-height:0;margin:0;padding:8px 14px 8px 8px;border-radius:999px;font-size:14px;gap:8px}
html[dir=rtl] .dg-open.dg-pill{padding:8px 8px 8px 14px}
.dg-open.dg-pill .dg-play{width:24px;height:24px}
.dg-open.dg-pill .dg-play::before{border-width:5px 0 5px 8px}
@media (max-width:560px){.demo-bar .dg-open.dg-pill{order:3;width:100%;justify-content:center;padding:10px 14px}}

/* the box in the middle of the screen */
html.dg-lock,html.dg-lock body{overflow:hidden!important}
.dg-modal{position:fixed;inset:0;z-index:2147483300;display:grid;place-items:center;
  padding:max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom));
  background:rgba(3,5,8,.64);-webkit-backdrop-filter:blur(20px) saturate(.8);backdrop-filter:blur(20px) saturate(.8);animation:dg-in .22s ease both}
.dg-modal[hidden]{display:none}
.dg-box{position:relative;width:min(400px,100%);max-height:calc(100dvh - 32px);display:grid;gap:10px;padding:12px;border-radius:26px;
  background:linear-gradient(180deg,#151c26 0%,#0b1016 100%);border:1px solid #2c3746;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 40px 90px rgba(0,0,0,.6);animation:dg-up .3s cubic-bezier(.2,.8,.2,1) both}
.dg-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 4px 0}
.dg-title{margin:0;color:#fff;font-family:inherit;font-weight:700;font-size:17px;line-height:1.3;letter-spacing:-.01em}
.dg-x{flex:none;position:relative;width:44px;height:44px;border:0;border-radius:50%;cursor:pointer;background:rgba(255,255,255,.10);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);transition:background .2s ease}
.dg-x:hover{background:rgba(255,255,255,.18)}
.dg-x:focus-visible{outline:3px solid rgba(96,165,250,.6);outline-offset:2px}
.dg-x::before,.dg-x::after{content:'';position:absolute;left:50%;top:50%;width:20px;height:2.5px;border-radius:2px;background:#fff}
.dg-x::before{transform:translate(-50%,-50%) rotate(45deg)}
.dg-x::after{transform:translate(-50%,-50%) rotate(-45deg)}
.dg-video{display:block;width:100%;aspect-ratio:9/16;max-height:calc(100dvh - 150px);object-fit:contain;border-radius:18px;background:#000}
.dg-note{margin:0;padding:0 4px 4px;color:#94a3b8;font-size:12.5px;line-height:1.4;text-align:center}
@keyframes dg-in{from{opacity:0}to{opacity:1}}
@keyframes dg-up{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.dg-modal,.dg-box{animation:none}}

/* the question box (Reset demo): the site's own, never the browser's grey one */
.dg-ask{width:min(380px,100%);padding:24px 22px 20px;gap:20px}
.dg-ask-text{margin:0;color:#f4f6f8;font-family:inherit;font-weight:700;font-size:18px;line-height:1.45;text-align:center}
.dg-ask-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dg-ask-row button{min-height:48px;border-radius:14px;cursor:pointer;font-family:inherit;font-weight:700;font-size:15px;padding:12px 14px}
.dg-ask-no{background:transparent;color:#f4f6f8;border:1px solid #3a4553}
.dg-ask-no:hover{border-color:#5b6b80}
.dg-ask-yes{background:#1f5eff;color:#fff;border:0;box-shadow:0 10px 24px -12px #1f5eff}
.dg-ask-yes:hover{filter:brightness(1.07)}
.dg-ask-row button:focus-visible{outline:3px solid rgba(96,165,250,.6);outline-offset:2px}

/* one line on every phone (2026-11-12): the words never wrap; a little smaller on the smallest screens */
.dg-open [data-dg="btn"],.dg-open [data-dg="pill"]{white-space:nowrap}
@media (max-width:400px){.dg-open{font-size:15px;gap:8px;padding-inline:14px}.dg-open .dg-time{font-size:12px;padding:3px 7px}}

/* One strong close sign for every X (founder, 2026-11-12): a 42 px circle, two drawn bars, works on light and dark */
html body :is(.isc-close,.isc-callclose,.kg-x,.dp-close,.pl-close,.client-alert>button,.dg-x){flex:none!important;display:inline-grid!important;place-items:center!important;
  width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;margin:0!important;
  border:0!important;border-radius:50%!important;cursor:pointer;font-size:0!important;line-height:0!important;text-indent:0!important;overflow:hidden!important;
  color:inherit;background:color-mix(in srgb,currentColor 13%,transparent)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 24%,transparent),0 6px 16px -10px rgba(0,0,0,.45)!important;
  -webkit-tap-highlight-color:transparent;transition:background .2s ease,transform .15s ease!important}
html body :is(.isc-close,.isc-callclose,.kg-x,.dp-close,.pl-close,.client-alert>button,.dg-x)::before,html body :is(.isc-close,.isc-callclose,.kg-x,.dp-close,.pl-close,.client-alert>button,.dg-x)::after{content:''!important;position:absolute!important;left:50%!important;top:50%!important;
  width:18px!important;height:2.6px!important;border-radius:3px!important;background:currentColor!important;-webkit-mask:none!important;mask:none!important;
  margin:0!important;opacity:1!important}
html body :is(.isc-close,.isc-callclose,.kg-x,.dp-close,.pl-close,.client-alert>button,.dg-x)::before{transform:translate(-50%,-50%) rotate(45deg)!important}
html body :is(.isc-close,.isc-callclose,.kg-x,.dp-close,.pl-close,.client-alert>button,.dg-x)::after{transform:translate(-50%,-50%) rotate(-45deg)!important}
html body :is(.isc-close,.isc-callclose,.kg-x,.dp-close,.pl-close,.client-alert>button,.dg-x):hover{background:color-mix(in srgb,currentColor 20%,transparent)!important}
html body :is(.isc-close,.isc-callclose,.kg-x,.dp-close,.pl-close,.client-alert>button,.dg-x):active{transform:scale(.92)!important}
html body :is(.isc-close,.isc-callclose,.kg-x,.dp-close,.pl-close,.client-alert>button,.dg-x):focus-visible{outline:3px solid rgba(96,165,250,.6)!important;outline-offset:2px!important}
html body :is(.isc-close,.isc-callclose,.dg-x){color:#fff!important}
html body :is(.isc-close,.kg-x,.pl-close,.dg-x){position:relative!important}
html body .client-alert{position:relative;padding-inline-end:64px!important}
html body .client-alert>button{position:absolute!important;top:10px!important;right:auto!important;inset-inline-end:10px!important}

/* The connect page's video button = the demo guide's red button (2026-11-12): full width under each step title, the length on it */
html body .kg-watch.dg-open{display:flex!important;width:100%!important;min-height:52px!important;margin:4px 0 14px!important;padding:12px 18px!important;gap:10px!important;border:0!important;border-radius:14px!important;
  color:#fff!important;font-weight:700!important;font-size:16px!important;background:linear-gradient(180deg,#f43f5e 0%,#e11d48 55%,#be123c 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 10px 26px -10px rgba(225,29,72,.85)!important}
html body .kg-watch.dg-open:hover{filter:brightness(1.06);background:linear-gradient(180deg,#f43f5e 0%,#e11d48 55%,#be123c 100%)!important}
html body .kg-watch.dg-open .kg-watch-t{white-space:nowrap}
/* the connect videos are 4:5 */
.dg-video.kg-film{aspect-ratio:4/5;max-height:calc(100dvh - 120px)}
.kg-film-box .dg-box{width:min(460px,100%)}
