/* Good morning on phones (design/home/plan.md, section 2): the visitor's own phone becomes a paper iPhone home screen.
   A tap on "My custom app" opens it full screen; the morning cards arrive as the app scrolls itself; it zooms onto the
   bugs card for the Fix now tap, then pulls back. Only under 761 px; desktop is untouched. */
@media (max-width:760px){
  .screen{height:100svh; min-height:640px; max-height:932px; padding:0; overflow:hidden}
  .menu,.dock,.ptr{display:none!important}
  .sun{right:16px; top:auto; bottom:44%; width:86px}
  /* status bar */
  .sbar{position:absolute; left:0; right:0; top:0; height:48px; z-index:12; display:flex; align-items:center; justify-content:space-between;
    padding:6px 26px 0 30px; font:600 15px/1 Figtree; color:var(--ink); pointer-events:none}
  .sbar .bat{width:25px; height:12px}
  .sbar.inapp{background:linear-gradient(#FDF9F0 70%, rgba(253,249,240,0)); height:58px}
  /* home screen */
  .home{position:absolute; inset:64px 18px 120px; z-index:4; display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:92px; gap:6px 10px; align-content:start}
  .app{display:flex; flex-direction:column; align-items:center; gap:6px; font:500 11px/1.15 Figtree; color:var(--ink); text-align:center}
  .app .ic{width:58px; height:58px; display:grid; place-items:center}
  .app .ic .pi{width:54px; height:54px; filter:drop-shadow(0 5px 5px rgba(29,27,46,.22))}
  .app.mine .ic{border-radius:15px; background:#FFFDF7; box-shadow:0 1px 1px rgba(29,27,46,.08), 0 10px 16px -10px rgba(29,27,46,.5); position:relative}
  .app.mine .ic::before{content:""; position:absolute; inset:0; border-radius:inherit; background:url(tex/crumple-a.webp) 0 0/400px auto; mix-blend-mode:multiply; opacity:.55}
  .app.mine .ic img{width:40px; position:relative}
  .app.mine span{font-weight:600}
  .hdock{position:absolute; left:14px; right:14px; bottom:22px; height:86px; z-index:4; border-radius:28px 32px 30px 31px; background:#FFFBF2;
    display:flex; justify-content:space-around; align-items:center; box-shadow:0 1px 0 rgba(255,255,255,.7) inset, 0 18px 30px -16px rgba(29,27,46,.5)}
  .hdock::before{content:""; position:absolute; inset:0; border-radius:inherit; background:url(tex/crumple-b.webp) 0 0/700px auto; mix-blend-mode:multiply; opacity:.5}
  .hdock .pi{width:54px; height:54px; position:relative; filter:drop-shadow(0 5px 5px rgba(29,27,46,.22))}
  /* a fingertip */
  .touch{position:absolute; z-index:20; width:56px; height:56px; margin:-28px 0 0 -28px; border-radius:50%; background:rgba(29,27,46,.16);
    box-shadow:0 0 0 2px rgba(255,255,255,.75), 0 6px 14px rgba(29,27,46,.25); pointer-events:none; opacity:0}
  /* the app, full screen */
  .win{position:absolute!important; inset:0!important; width:auto!important; height:auto!important; border-radius:0!important; display:block!important; z-index:8; opacity:0}
  .win .tb,.win .side{display:none!important}
  .win .main{height:100%; overflow-y:auto; overflow-x:hidden; padding:58px 14px 40px; scrollbar-width:none; -webkit-overflow-scrolling:touch}
  .win .main::-webkit-scrollbar{display:none}
  .appbar{display:flex; align-items:center; gap:10px; margin:0 0 14px; font:700 15px/1 Figtree} .appbar img{width:24px}
  .replay{left:18px!important; bottom:14px!important; z-index:30}
  .win .leads,.win .slack{display:none!important}   /* phones stop at sales and bugs, so there is less to scroll */
  .win .main{padding-bottom:28px}
  [data-f="3"] .win{opacity:1} [data-f="3"] .home,[data-f="3"] .hdock{display:none}
}
