/* Nightshift Labs: shared styles for the image and demo components.
   Every class starts with nsl-v-. Colours, fonts and radii come from the theme tokens in nsl.css.
   Animation states are scoped to html.motion.nsl-v-js, so without JavaScript or with reduced motion every visual shows its finished state. */

.nsl-v-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace}

/* ---------- Device frames ---------- */
.nsl-v-vp{position:absolute;top:0;left:0;transform-origin:0 0}
.nsl-v-scr{container-type:size}
.nsl-v-scr > .nsl-v-vp{transform:scale(tan(atan2(100cqw,var(--vw,390px))))}

.nsl-v-phone{--w:290px;position:relative;width:var(--w);height:calc(var(--w)*2.06);border-radius:calc(var(--w)*.165);flex:none;
  background:linear-gradient(150deg,#dedbd4 0%,#aeaaa2 16%,#ece9e3 33%,#96928b 50%,#d4d0c9 68%,#a29e96 84%,#cfcbc4 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),inset 0 0 0 3px #8c8880,inset 0 0 0 4px #5d5a55}
.nsl-v-phone .nsl-v-gl{position:absolute;inset:calc(var(--w)*.024);border-radius:calc(var(--w)*.145);background:#050506;padding:calc(var(--w)*.016)}
.nsl-v-phone .nsl-v-scr{position:relative;width:100%;height:100%;border-radius:calc(var(--w)*.13);overflow:hidden;background:#fff;isolation:isolate}
.nsl-v-phone .nsl-v-scr::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:5;
  background:linear-gradient(118deg,rgba(255,255,255,.22) 0%,rgba(255,255,255,.06) 26%,rgba(255,255,255,0) 40%)}
.nsl-v-isl{position:absolute;z-index:6;top:calc(var(--w)*.04);left:50%;width:31%;height:calc(var(--w)*.085);transform:translateX(-50%);background:#000;border-radius:999px}
.nsl-v-isl::after{content:"";position:absolute;right:14%;top:50%;width:calc(var(--w)*.03);height:calc(var(--w)*.03);transform:translateY(-50%);border-radius:50%;background:radial-gradient(circle at 35% 35%,#2b3a55,#0a0c12 70%)}
.nsl-v-hw{position:absolute;width:3px;border-radius:2px;background:linear-gradient(90deg,#77736c,#c9c5be)}
.nsl-v-hw.nsl-v-b1{left:-2px;top:20%;height:5%}.nsl-v-hw.nsl-v-b2{left:-2px;top:28%;height:9%}.nsl-v-hw.nsl-v-b3{left:-2px;top:39%;height:9%}.nsl-v-hw.nsl-v-b4{right:-2px;top:31%;height:13%;background:linear-gradient(270deg,#77736c,#c9c5be)}
.nsl-v-phone.nsl-v-is-flat{box-shadow:inset 0 0 0 1px rgba(255,255,255,.7),inset 0 0 0 3px #8c8880,inset 0 0 0 4px #5d5a55,0 40px 60px -30px rgba(0,0,0,.55),0 12px 24px -12px rgba(0,0,0,.35)}

.nsl-v-laptop{position:relative;width:100%}
.nsl-v-lid{position:relative;background:#121517;border-radius:clamp(10px,1.6vw,18px) clamp(10px,1.6vw,18px) 4px 4px;padding:2.4% 2.4% 3.2%;
  box-shadow:inset 0 0 0 1px #3d4246,inset 0 0 0 2px #0a0b0c}
.nsl-v-lid::before{content:"";position:absolute;top:1%;left:50%;width:5px;height:5px;border-radius:50%;background:#2a2f33;transform:translateX(-50%)}
.nsl-v-laptop .nsl-v-scr{position:relative;aspect-ratio:16/10;overflow:hidden;background:#fff;border-radius:2px}
.nsl-v-base{position:relative;height:clamp(9px,1.5vw,16px);margin:0 -7%;border-radius:0 0 50% 50% / 0 0 100% 100%;
  background:linear-gradient(180deg,#e6e5e1 0%,#cfcdc8 45%,#a9a7a1 100%);box-shadow:0 30px 50px -20px rgba(0,0,0,.5)}
.nsl-v-base::before{content:"";position:absolute;top:0;left:50%;width:15%;height:45%;transform:translateX(-50%);background:linear-gradient(#b9b7b1,#d6d4cf);border-radius:0 0 8px 8px}

/* status bar inside phone screens */
.nsl-v-sb{height:54px;display:flex;align-items:center;justify-content:space-between;padding:6px 34px 0 40px;font:600 16px/1 -apple-system,"SF Pro Text","Geist",sans-serif;letter-spacing:-.01em}
.nsl-v-sb svg{height:13px;width:auto;display:block}
.nsl-v-sb .nsl-v-ic{display:flex;gap:6px;align-items:center}

/* ---------- Pills ---------- */
.nsl-v-pill{position:absolute;z-index:3;display:flex;align-items:center;gap:10px;white-space:nowrap;
  background:var(--paper-hi);color:var(--ink);font:500 clamp(12px,1.15vw,15px)/1 "Geist",ui-sans-serif,system-ui,sans-serif;letter-spacing:-.005em;
  padding:clamp(11px,1.1vw,14px) clamp(14px,1.5vw,20px) clamp(11px,1.1vw,14px) clamp(12px,1.2vw,16px);border-radius:999px;
  box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 18px 30px -12px rgba(0,0,0,.6),0 4px 8px -4px rgba(0,0,0,.4)}
.nsl-v-pill svg{width:16px;height:16px;flex:none;stroke:var(--brass-deep);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nsl-v-pill i{font-style:normal;color:var(--text-muted)}

html.motion.nsl-v-js .nsl-v-reveal .nsl-v-pill{opacity:0;translate:0 14px;transition:opacity .7s ease,translate .9s var(--ease-out)}
html.motion.nsl-v-js .nsl-v-reveal.nsl-v-in .nsl-v-pill{opacity:1;translate:0 0}
html.motion.nsl-v-js .nsl-v-reveal.nsl-v-in .nsl-v-pill:nth-of-type(2){transition-delay:.25s}
html.motion.nsl-v-js .nsl-v-reveal.nsl-v-in .nsl-v-pill:nth-of-type(3){transition-delay:.5s}

/* ---------- Chip ---------- */
.nsl-v-chip{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:500;line-height:1;color:var(--text-muted);background:var(--paper-hi);border:1px solid var(--line);border-radius:999px;padding:8px 14px}
.nsl-v-chip::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--brass-deep)}
.on-dark .nsl-v-chip,.nsl-v-chip.nsl-v-is-dark{color:var(--on-dark-muted);background:rgba(242,239,232,.06);border-color:var(--line-dark)}
.on-dark .nsl-v-chip::before,.nsl-v-chip.nsl-v-is-dark::before{background:var(--brass)}

/* ---------- Tick used in cards ---------- */
.nsl-v-ok{width:18px;height:18px;flex:none;border-radius:50%;background:#E4EBE3;display:grid;place-items:center}
.nsl-v-ok svg{width:10px;height:10px;stroke:#2F6B4F;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:600px){
  .nsl-v-pill{font-size:11.5px;gap:8px;padding:9px 13px 9px 11px}
  .nsl-v-pill svg{width:13px;height:13px}
}
@media (prefers-reduced-motion:reduce){
  .nsl-v-reveal .nsl-v-pill{opacity:1!important;translate:0 0!important;transition:none!important}
}
