/* The hero phone: a generic group chat (not Planz, not any real messenger), built at 393 x 852 pt and scaled with --z.
   Planz product visuals are real app captures in img/app/, framed by .shot-screen and .shot-crop below. */
.phone{--z:.7;zoom:var(--z);width:417px;height:876px;padding:12px;border-radius:64px;background:var(--ink);box-shadow:0 60px 90px -40px rgba(9,23,50,.45),0 0 0 1px rgba(9,23,50,.08);flex:none}
.app{position:relative;width:393px;height:852px;border-radius:52px;overflow:hidden;background:#fff;color:#091732;font:400 14px/20px var(--font-sans);letter-spacing:-.5px;display:flex;flex-direction:column}
.app .pz-ic{width:20px;height:20px}
.app__status{flex:none;height:54px;display:flex;align-items:center;justify-content:space-between;padding:6px 34px 0 48px;font:600 17px/1 var(--font-sans);letter-spacing:-.3px}
.app__status span{display:flex;gap:6px;align-items:center}
.app__status .pz-ic{width:18px;height:18px}
.app__island{position:absolute;top:11px;left:50%;width:124px;height:36px;margin-left:-62px;border-radius:20px;background:#000}
.app__body{flex:1;min-height:0;padding:8px 16px 0;display:flex;flex-direction:column;gap:14px;overflow:hidden}
.app__foot{flex:none;padding:12px 16px 30px;border-top:1px solid rgba(9,23,50,.08);display:flex;gap:10px}

.a-av{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:none;background:#377BF6;color:#fff;font:500 18px/1 var(--font-sans)}
.a-av--mint{background:#D2FFBC;color:#091732}
.a-av--sm{width:36px;height:36px;font-size:14px}
/* the other messenger, for the hero: generic, not Planz and not any real brand */
.gc{background:#EEF1F6}
.gc .app__status{background:#F8FAFD}
.gc-head{display:flex;align-items:center;gap:10px;padding:6px 16px 12px;background:#F8FAFD;border-bottom:1px solid #DCE2EC}
.gc-head .pz-ic{color:#2E6AE0;width:24px;height:24px}
.gc-head div{flex:1;min-width:0}
.gc-head div>b{display:block;font:600 17px/20px var(--font-sans)}
.gc-head div>span{display:block;font-size:13px;color:rgba(9,23,50,.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gc-head em{font-style:normal;min-width:30px;height:24px;padding:0 8px;border-radius:12px;background:#E5443B;color:#fff;font:600 13px/24px var(--font-sans);text-align:center}
.gc-thread{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;padding:12px 14px}
.gc-msg{align-self:flex-start;max-width:78%;padding:8px 12px;border-radius:18px 18px 18px 6px;background:#fff;font-size:16px;line-height:21px;box-shadow:0 1px 0 rgba(17,24,39,.06)}
.gc-msg b{display:block;font:600 13px/16px var(--font-sans);margin-bottom:1px}
.gc-msg--me{align-self:flex-end;background:#D9E6FF;border-radius:18px 18px 6px 18px}
.gc-msg--typing{display:flex;gap:5px;padding:13px 14px}
.gc-msg--typing i{width:8px;height:8px;border-radius:50%;background:#9CA3AF;animation:gcDot 1.2s infinite ease-in-out}
.gc-msg--typing i:nth-child(2){animation-delay:.2s}.gc-msg--typing i:nth-child(3){animation-delay:.4s}
.gc-bar{flex:none;display:flex;align-items:center;gap:8px;padding:10px 14px 30px;background:#F8FAFD;border-top:1px solid #DCE2EC}
.gc-bar span{flex:1;height:38px;border-radius:19px;background:#fff;box-shadow:inset 0 0 0 1px #DCE2EC;display:flex;align-items:center;padding:0 14px;color:#9CA3AF;font-size:16px}
.gc-bar i{width:34px;height:34px;border-radius:50%;background:#2E6AE0}
@keyframes gcDot{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-3px);opacity:1}}
@keyframes gcIn{from{opacity:0;transform:translateY(10px)}}
.gc-msg{animation:gcIn .35s cubic-bezier(.2,.8,.2,1) backwards}
.gc-msg:nth-child(2){animation-delay:.12s}.gc-msg:nth-child(3){animation-delay:.24s}.gc-msg:nth-child(4){animation-delay:.36s}
.gc-msg:nth-child(5){animation-delay:.48s}.gc-msg:nth-child(6){animation-delay:.6s}.gc-msg:nth-child(7){animation-delay:.72s}.gc-msg:nth-child(8){animation-delay:.84s}
.gc-msg:nth-child(9){animation-delay:.96s}.gc-msg:nth-child(10){animation-delay:1.08s}.gc-msg:nth-child(11){animation-delay:1.2s}.gc-msg:nth-child(12){animation-delay:1.35s}


/* real captures: a whole screen with device corners, or a slice in a floating card */
.shot-screen{width:100%;max-width:360px;border-radius:44px;overflow:hidden;background:#fff;box-shadow:0 40px 80px -30px rgba(9,23,50,.35),0 0 0 1px rgba(9,23,50,.08)}
.shot-screen img{display:block;width:100%;height:auto}
.shot-crop{width:100%;max-width:400px;border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 30px 60px -28px rgba(9,23,50,.3),0 0 0 1px rgba(9,23,50,.06)}
/* CSS crop: --x0/--x1/--y0/--y1 are fractions of the full capture, --w/--h its pixel size */
.shot{position:relative;overflow:hidden;width:100%;aspect-ratio:calc((var(--x1) - var(--x0)) * var(--w)) / calc((var(--y1) - var(--y0)) * var(--h))}
.shot img{position:absolute;max-width:none;width:calc(100% / (var(--x1) - var(--x0)));height:auto;left:calc(-100% * var(--x0) / (var(--x1) - var(--x0)));top:0;transform:translateY(calc(-100% * var(--y0)))}
