/* A current phone (thin titanium frame, Dynamic Island, rounded screen) with a
   real page inside, used on the Qanas and QCards landing pages. See _phone.html.
   --ph-w is the screen width; --ph-s scales a 390px-wide page to fit it
   (CSS cannot divide one length by another, so the pair is set together). */
.ph { --ph-w: 272px; --ph-s: .6974; --ph-bezel: 10px;
    position: relative; width: calc(var(--ph-w) + 2 * var(--ph-bezel)); padding: var(--ph-bezel); box-sizing: border-box;
    border-radius: 54px; direction: ltr;
    background: linear-gradient(145deg, #5b5f66 0%, #2b2e33 18%, #1a1b1e 50%, #2e3136 82%, #6a6e75 100%);
    box-shadow: 0 0 0 1.5px #0d0e10 inset, 0 0 0 1px rgba(255,255,255,.08), 0 50px 90px -40px rgba(11,34,57,.65),
                0 30px 40px -30px rgba(0,0,0,.45); }
.ph-screen { position: relative; width: var(--ph-w); height: calc(var(--ph-w) * 844 / 390); overflow: hidden;
    border-radius: 44px; background: #F5F6F8; box-shadow: 0 0 0 2px #050506; isolation: isolate; }
/* the status bar sits above the page, as in a browser on a phone */
.ph-status { position: absolute; inset: 0 0 auto 0; z-index: 3; height: calc(47px * var(--ph-s)); display: flex; align-items: center;
    justify-content: space-between; padding: 0 calc(30px * var(--ph-s)) 0 calc(36px * var(--ph-s)); box-sizing: border-box;
    color: #0b0b0c; font: 600 calc(16px * var(--ph-s)) / 1 -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif;
    background: #F5F6F8; }
.ph-status b { font-weight: 600; letter-spacing: .01em; }
.ph-icons { display: inline-flex; align-items: center; gap: calc(5px * var(--ph-s)); }
.ph-icons svg { fill: currentColor; width: calc(17px * var(--ph-s)); height: auto; }
.ph-batt { position: relative; width: calc(25px * var(--ph-s)); height: calc(12px * var(--ph-s)); border-radius: calc(4px * var(--ph-s));
    border: 1px solid rgba(0,0,0,.4); box-sizing: border-box; padding: 1px; }
.ph-batt::after { content: ""; position: absolute; right: -3px; top: 30%; width: 2px; height: 40%; border-radius: 0 2px 2px 0; background: rgba(0,0,0,.4); }
.ph-batt i { display: block; width: 78%; height: 100%; border-radius: 2px; background: #0b0b0c; }
.ph-island { position: absolute; z-index: 4; top: calc(11px * var(--ph-s)); left: 50%; width: calc(124px * var(--ph-s)); height: calc(36px * var(--ph-s));
    transform: translateX(-50%); border-radius: 999px; background: #000; }
.ph-view { position: absolute; z-index: 1; left: 0; top: calc(47px * var(--ph-s)); width: var(--ph-w); bottom: 0; overflow: hidden; }
.ph-view iframe { position: absolute; left: 0; top: 0; width: 390px; height: 797px; border: 0; background: #F5F6F8;
    transform: scale(var(--ph-s)); transform-origin: 0 0; pointer-events: none; }
.ph-home { position: absolute; z-index: 4; bottom: calc(8px * var(--ph-s)); left: 50%; width: calc(134px * var(--ph-s)); height: calc(5px * var(--ph-s));
    transform: translateX(-50%); border-radius: 999px; background: rgba(0,0,0,.75); }
/* glass: a faint reflection over the screen */
.ph-screen::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit;
    background: linear-gradient(115deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 32%); }
/* the side buttons */
.ph-btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2a2c30, #55595f); }
.ph-btn-a { left: -2px; top: 16%; height: 28px; }
.ph-btn-b { left: -2px; top: 24%; height: 52px; }
.ph-btn-c { right: -2px; top: 22%; height: 78px; }

.ph.is-sm { --ph-w: 214px; --ph-s: .5487; --ph-bezel: 8px; border-radius: 44px; }
.ph.is-sm .ph-screen { border-radius: 36px; }
@media (max-width: 560px) {
    .ph { --ph-w: 230px; --ph-s: .5897; --ph-bezel: 8px; border-radius: 46px; }
    .ph .ph-screen { border-radius: 38px; }
    .ph.is-sm { --ph-w: 190px; --ph-s: .4872; --ph-bezel: 7px; border-radius: 40px; }
    .ph.is-sm .ph-screen { border-radius: 33px; }
}
