/* JPLAY onboarding demo: the 20.5 journey in a phone, on the portfolio's paper. */
html{background:#e9e3d6}
body{margin:0;min-height:100dvh;color:#252923;font:14px/1.5 Arial,Helvetica,sans-serif;background:#e9e3d6}
body::before{content:"";position:fixed;inset:0;background:url('/assets/paper-scan.png') repeat;background-size:760px;mix-blend-mode:multiply;opacity:.42;filter:brightness(.91) contrast(1.3);pointer-events:none;z-index:0}
.demo-stage{position:relative;z-index:1;display:grid;grid-template-columns:minmax(220px,340px) auto;justify-content:center;align-items:center;gap:clamp(32px,6vw,96px);min-height:100dvh;padding:28px clamp(20px,4vw,64px);box-sizing:border-box}
.demo-copy .eyebrow{font-size:10px;letter-spacing:1.2px}
.demo-copy h1{margin:16px 0 18px;font-size:clamp(40px,4.4vw,64px);font-weight:500;line-height:.95;letter-spacing:-2.4px}
.demo-copy p{margin:0 0 14px;max-width:320px;color:#68695e;font-size:13px;line-height:1.6}
.demo-copy .demo-note{font-size:11px}
.demo-phone{position:relative;height:min(844px,calc(100dvh - 56px));aspect-ratio:390/844;padding:10px;box-sizing:border-box;border-radius:52px;background:#1d2627;box-shadow:inset 0 0 0 1px #ffffff1f,0 30px 70px #272a2338,0 4px 10px #272a231f}
.demo-phone iframe{display:block;width:100%;height:100%;border:0;border-radius:42px;background:#f3f5f8}
.demo-phone-loading{position:absolute;inset:10px;display:grid;place-items:center;border-radius:42px;background:#f3f5f8;color:#1d4955;font:700 12px Arial,Helvetica,sans-serif;letter-spacing:1px;transition:opacity .3s}
.demo-phone.is-loaded .demo-phone-loading{opacity:0;pointer-events:none}
@media(max-width:1119px){
 .demo-stage{min-height:calc(100dvh - 96px);padding-top:8px;gap:clamp(24px,4vw,48px)}
 .demo-phone{height:min(844px,calc(100dvh - 128px))}
 .demo-copy h1{font-size:clamp(34px,4.6vw,48px);letter-spacing:-1.6px}
}
@media(max-width:759px){
 .demo-stage{grid-template-columns:1fr;justify-items:center;padding:8px 0 0}
 .demo-copy{display:none}
 .demo-phone{width:100vw;height:calc(100dvh - 92px - env(safe-area-inset-top));aspect-ratio:auto;padding:0;border-radius:0;background:none;box-shadow:none}
 .demo-phone iframe,.demo-phone-loading{border-radius:24px 24px 0 0;inset:0}
}
