/* Device and app styling; landing layout stays in mobile.css. Screen units scale together. */
.mobile-landing{--wa-ink:oklch(.18 .012 220);--wa-panel:oklch(.24 .012 220);--wa-message:oklch(.31 .014 220);--wa-own:oklch(.37 .075 170);--wa-green:oklch(.77 .16 155);--wa-text:oklch(.97 .004 190);--wa-muted:oklch(.72 .012 210);--wa-font:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
/* Narrow metal edge, black bezel, side buttons. */
.m-phone,.m-call-phone{--device-radius:clamp(18px,3.4vw,43px);position:relative;padding:clamp(3px,.46vw,6px);border:1px solid oklch(.5 .006 240);border-radius:var(--device-radius);background:oklch(.09 .005 240);box-shadow:0 0 0 1px oklch(.12 .006 240),0 1px 0 oklch(.85 .005 240 / .55) inset,1px 0 0 oklch(.71 .008 240 / .3) inset,0 -1px 0 oklch(.4 .008 240 / .6) inset,0 20px 40px oklch(.06 .008 340 / .65);overflow:visible;isolation:isolate;font-family:var(--wa-font)}
.m-phone::before,.m-call-phone::before,.m-phone::after,.m-call-phone::after{content:'';position:absolute;width:2px;border-radius:2px;background:linear-gradient(oklch(.55 .006 240),oklch(.25 .006 240))}
.m-phone::before,.m-call-phone::before{left:-3px;top:22%;height:7%;box-shadow:0 18px 0 oklch(.3 .006 240)}.m-phone::after,.m-call-phone::after{right:-3px;top:28%;height:11%}
.m-device-screen{position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;flex:1;border-radius:calc(var(--device-radius) - 4px);overflow:hidden;background:var(--wa-ink);container-type:inline-size}
.m-device-screen::after{content:'';position:absolute;left:33%;right:33%;bottom:2.4cqw;height:max(1px,.8cqw);border-radius:10px;background:oklch(.94 .005 210);pointer-events:none;z-index:5}
.m-phone,.m-chat-pair>.m-phone,.m-demo-phone,.m-confession-phone{height:auto;aspect-ratio:9/19.5;display:flex;flex-direction:column}
/* Chrome uses one proportional scale, rather than clamped dimensions at each size. */
.m-phone .m-phone-status,.m-call-phone .m-phone-status{position:relative;height:12cqw;min-height:0;flex-shrink:0;padding:2cqw 7cqw 0;background:var(--wa-panel);border-radius:0;color:var(--wa-text);font:600 3.9cqw/1 var(--wa-font)}
.m-phone-status i{position:absolute;left:50%;top:2.8cqw;transform:translateX(-50%);width:29cqw;height:7.5cqw;border:0;border-radius:9cqw;background:oklch(.055 .005 240);box-shadow:0 0 0 .35cqw oklch(.28 .007 240 / .35)}
.m-phone-status i::after{content:'';position:absolute;right:2cqw;top:2.1cqw;width:3.3cqw;height:3.3cqw;border-radius:50%;background:radial-gradient(circle at 35% 35%,oklch(.3 .035 255),oklch(.09 .01 255) 70%)}
.m-status-icons{display:flex;align-items:center;gap:.65cqw;line-height:0}.m-status-icons svg{width:4.3cqw;height:4.3cqw}.m-status-icons svg:last-child{width:5.5cqw}
.m-phone .m-phone-header{display:flex;align-items:center;gap:2cqw;height:15cqw;min-height:0;padding:2cqw 3cqw 3cqw;flex-shrink:0;background:var(--wa-panel);border-bottom:.3cqw solid oklch(.36 .012 220 / .5);font-family:var(--wa-font)}
.m-phone .m-phone-header>span:first-child{width:6cqw;display:grid;place-items:center;flex-shrink:0}.m-phone .m-phone-header>span:first-child svg{width:7cqw;height:7cqw;color:var(--wa-green)}
.m-phone .m-phone-header>img{width:12cqw;height:12cqw;border-radius:50%;object-fit:cover;flex-shrink:0}.m-phone .m-phone-header>div{flex:1;min-width:0}.m-phone .m-phone-header b{font:600 4.7cqw/1.2 var(--wa-font);letter-spacing:-.08cqw;white-space:nowrap}.m-phone .m-phone-header small{display:block;color:var(--wa-muted);font:3.5cqw/1.25 var(--wa-font);margin-top:.7cqw}
.m-phone .m-wa-header-actions{display:flex;align-items:center;width:auto;gap:4cqw;flex-shrink:0}.m-phone .m-wa-header-actions svg{display:block;width:6cqw;height:6cqw;color:var(--wa-green)}
.m-phone .m-phone-body{display:flex;flex-direction:column;flex:1;min-height:0;padding:5cqw 5.5cqw;gap:4cqw;overflow:hidden;color:var(--wa-text);background:var(--wa-ink) url('/assets/landing/demo/chat-doodles.svg') repeat;background-size:100cqw auto}
.m-phone .m-date{align-self:center;margin:0 auto 1cqw;flex-shrink:0;padding:1.8cqw 3.4cqw;border-radius:2cqw;background:oklch(.27 .012 220);color:var(--wa-muted);box-shadow:0 1px 1px oklch(.1 .006 220 / .3);font:3.3cqw/1.1 var(--wa-font)}
.m-phone .m-bubble,.m-media-card,.m-vn-bubble{position:relative;background:var(--wa-message);border-radius:3cqw;box-shadow:0 .5cqw .5cqw oklch(.09 .007 220 / .3);color:var(--wa-text)}
.m-phone .m-bubble{padding:2.5cqw 3cqw 1.8cqw;max-width:90%;flex-shrink:0;font:4.8cqw/1.4 var(--wa-font)}
.m-phone .m-bubble::before,.m-media-card::before,.m-vn-bubble::before{content:'';position:absolute;top:0;left:-2cqw;width:3cqw;height:3cqw;background:var(--wa-message);clip-path:polygon(0 0,100% 0,100% 100%)}
.m-phone .m-own{background:var(--wa-own)}.m-phone .m-own::before{left:auto;right:-2cqw;background:var(--wa-own);clip-path:polygon(0 0,100% 0,0 100%)}
.m-phone .m-bubble small{display:block;margin:1cqw 0 0;color:var(--wa-muted);text-align:right;font:3.2cqw/1.2 var(--wa-font)}.m-phone .m-own small{color:oklch(.79 .032 170)}.m-read{color:oklch(.8 .105 235);letter-spacing:-.7cqw;margin-left:.7cqw;padding-right:.6cqw}
.m-phone .m-phone-compose{height:19cqw;min-height:0;display:flex;align-items:center;gap:2.8cqw;padding:2cqw 3cqw 6cqw;flex-shrink:0;border-radius:0;background:var(--wa-panel);font:4.1cqw/1 var(--wa-font)}
.m-phone .m-compose-plus,.m-phone .m-compose-camera,.m-phone .m-mic{display:grid;place-items:center;width:6.7cqw;height:9cqw;flex-shrink:0;background:none;border-radius:0;color:var(--wa-green)}
.m-phone .m-compose-plus svg,.m-phone .m-compose-camera svg,.m-phone .m-mic svg{width:6.7cqw;height:6.7cqw}
.m-phone .m-phone-compose>span.m-compose-field{display:flex;align-items:center;justify-content:space-between;flex:1;min-width:0;padding:2.3cqw 3cqw;border:.35cqw solid oklch(.4 .01 220);border-radius:7cqw;background:oklch(.3 .01 220);color:var(--wa-muted)}.m-compose-field svg{width:5cqw;height:5cqw;color:var(--wa-muted)}
/* Photo/video cards fill the remaining space. */
.m-media-trio{max-width:980px;gap:9px;padding-left:9px;padding-right:9px}.m-media-trio figure:first-child{transform:rotate(-2deg);padding-top:15px}.m-media-trio figure:last-child{transform:rotate(2deg);padding-top:15px}.m-demo-phone{width:100%;height:auto}
.m-demo-phone .m-media-card{display:flex;flex-direction:column;padding:1.2cqw;flex:1;min-height:0}
.m-demo-phone .m-photo-open,.m-demo-phone .m-video-wrap{position:relative;display:block;width:100%;flex:1;min-height:0;border-radius:2.2cqw;overflow:hidden;background:var(--wa-ink)}
.m-demo-phone .m-media-card img,.m-demo-phone .m-video-wrap video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:2.2cqw}.m-demo-photo .m-media-card img{object-position:50% 45%}
.m-demo-phone .m-media-card p{padding:2.8cqw 2.3cqw 1cqw!important;margin:0;flex-shrink:0;color:var(--wa-text);font:4.6cqw/1.35 var(--wa-font)}
.m-message-time{display:block;align-self:flex-end;flex-shrink:0;padding:0 2.3cqw 1.5cqw;color:var(--wa-muted);font:3.2cqw/1.1 var(--wa-font)}
.m-demo-phone .m-photo-hint{right:2cqw;bottom:2cqw;padding:2cqw;border-radius:2cqw;color:oklch(.97 .004 190);background:oklch(.12 .007 220 / .65);font:4cqw/1 var(--wa-font)}.m-demo-phone .m-photo-hint>span{display:none}
.m-demo-phone .m-video-play{inset:0;display:grid;place-items:center;background:none}.m-demo-phone .m-video-play>span{width:20cqw;height:20cqw;border:.6cqw solid oklch(.96 .005 190 / .9);background:oklch(.15 .006 220 / .6);box-shadow:none;color:oklch(.97 .004 190)}
.m-play-svg{display:block;width:60%;height:60%}.m-demo-phone .m-video-play .m-play-svg{width:43%;height:43%}
.m-video-length{position:absolute;left:3cqw;bottom:3cqw;display:flex;align-items:center;gap:1cqw;color:oklch(.97 .004 190);font:3.5cqw/1 var(--wa-font);text-shadow:0 1px 2px oklch(.08 .005 220);pointer-events:none}.m-video-length svg{width:4cqw;height:4cqw}
/* Native voice-note row, separate play and seeking hit areas. */
.m-demo-phone .m-vn-bubble{margin:0;padding:2cqw 3cqw;flex-shrink:0}.m-vn-track{position:relative;display:flex;align-items:center;gap:3cqw;min-height:44px}
.m-vn-bubble .m-audio-button{position:relative;display:grid;place-items:center;flex-shrink:0;width:17cqw;min-height:44px;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:var(--wa-muted)}
.m-vn-bubble .m-audio-play{display:grid;place-items:center;width:9cqw;height:9cqw;background:none;color:inherit;border-radius:0}.m-audio-play .m-play-svg{width:100%;height:100%}
.m-vn-bubble .m-wave{display:flex;flex:1;align-items:center;justify-content:space-between;height:14cqw;min-width:0;gap:.7cqw}.m-vn-bubble .m-wave i{min-width:0;width:.8cqw;flex:1;height:calc(var(--level,.5) * 11cqw);background:var(--wa-muted);border-radius:2cqw;animation:none!important}.m-vn-bubble .m-wave i.is-heard{background:var(--wa-green)}
.m-vn-avatar{position:relative;width:20cqw;height:20cqw;flex-shrink:0}.m-vn-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.m-vn-avatar>svg{position:absolute;left:-.8cqw;bottom:-1cqw;width:7cqw;height:7cqw;color:var(--wa-green);filter:drop-shadow(0 1px 0 var(--wa-message))}
.m-vn-meta{display:flex;justify-content:space-between;padding:0;color:var(--wa-muted);font:3.2cqw/1.3 var(--wa-font)}
.m-vn-bubble .m-voice-seek{position:absolute;left:23cqw;right:26cqw;top:calc(2cqw + 10px);width:auto;height:24px;min-height:24px;margin:0;padding:0;background:transparent;appearance:none;-webkit-appearance:none;z-index:2;cursor:pointer}
.m-voice-seek::-webkit-slider-runnable-track{height:1px;background:transparent}.m-voice-seek::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:max(2px,1cqw);height:12cqw;margin-top:-6cqw;border:0;border-radius:2cqw;background:var(--wa-green)}
.m-voice-seek::-moz-range-track{height:1px;background:transparent}.m-voice-seek::-moz-range-thumb{width:max(2px,1cqw);height:12cqw;border:0;border-radius:2cqw;background:var(--wa-green)}.m-voice-seek:focus-visible{outline:1px solid var(--wa-green);outline-offset:2px}.m-vn-bubble .m-audio-button[aria-pressed='true']{color:var(--wa-green)}
.m-demo-voice .m-vn-reply{display:block;margin-top:4cqw}.m-media-trio figcaption{font-size:21px;padding-top:18px}.m-media-trio figcaption>span{font-size:9px;margin-top:7px}
/* Feed remains a feed, in the same hardware. */
.m-feed-phone .m-device-screen,.m-feed-phone .m-phone-status{background:oklch(.17 .008 340)}.m-feed-top{padding:3cqw 4cqw}.m-feed-top>b{font-size:8cqw}.m-feed-top>b>span{font-size:5cqw}.m-feed-phone svg{width:6cqw;height:6cqw}.m-feed-top>div{gap:5cqw}
.m-feed-profile{padding:3cqw 4cqw;gap:3cqw}.m-feed-profile>img{width:10cqw;height:10cqw}.m-feed-profile b{font-size:4.8cqw}.m-feed-profile small{font-size:3.6cqw}
.m-feed-photo{flex:1;min-height:0;margin:0}.m-feed-photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 52%}.m-feed-photo>span{top:3cqw;right:3cqw;font-size:3.3cqw}
.m-feed-actions{gap:4cqw;padding:3cqw 4cqw}.m-feed-phone .m-feed-caption{padding:0 4cqw;font-size:4.2cqw}.m-feed-phone .m-feed-comments{padding:1.8cqw 4cqw 3cqw;font-size:3.5cqw}.m-feed-nav{padding:3cqw 5cqw 7cqw}.m-feed-nav>img{width:7cqw;height:7cqw}
/* Voice-call screen, with working controls inside the phone. */
.m-sleepcall{height:760px}.m-call-phone{position:absolute;--device-radius:32px;width:clamp(178px,48vw,208px);max-width:none;height:auto;aspect-ratio:9/19.5;top:205px;right:22px;transform:rotate(4deg)}.motion .m-call-phone.reveal.visible{transform:rotate(4deg)}
.m-call-screen{display:block;isolation:isolate;color:var(--wa-text);background:oklch(.22 .02 185)}.m-call-wallpaper{position:absolute;inset:-10%;width:120%;height:120%;z-index:-2;object-fit:cover;filter:blur(16px) saturate(.45);opacity:.45}.m-call-screen-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(oklch(.19 .025 175 / .75),oklch(.18 .012 220 / .8))}.m-call-phone .m-phone-status{background:transparent}
.m-call-appbar{display:flex;align-items:center;justify-content:space-between;padding:4cqw 5cqw;color:var(--wa-muted);font:4cqw/1 var(--wa-font)}.m-call-appbar>svg{width:7cqw;height:7cqw;color:var(--wa-text)}.m-call-appbar>span:first-of-type{display:flex;align-items:center;gap:2cqw}.m-call-appbar>span:first-of-type svg{width:4cqw;height:4cqw}.m-call-appbar>span:last-child{font-size:5cqw}
.m-call-identity{display:flex;align-items:center;flex-direction:column;gap:3cqw;padding:11cqw 5cqw 0;text-align:center}.m-call-identity b{color:var(--wa-text);font:500 9cqw/1.2 var(--wa-font);letter-spacing:-.3cqw}.m-call-state,.m-call-phone .m-call-timer{color:oklch(.79 .014 190);font:4.2cqw/1.4 var(--wa-font);font-variant-numeric:tabular-nums}
.m-call-avatar{display:block;width:40cqw;height:40cqw;margin-top:7cqw;border-radius:50%;object-fit:cover;box-shadow:0 0 0 1cqw oklch(.57 .018 185 / .2),0 4cqw 8cqw oklch(.09 .012 220 / .3)}
.m-call-bottom{position:absolute;left:4cqw;right:4cqw;bottom:12cqw;display:flex;flex-direction:column;align-items:center}.m-call-voice-lines{display:flex;align-items:center;justify-content:center;height:10cqw;gap:1.6cqw;margin-bottom:6cqw;opacity:.65}.m-call-voice-lines i{width:1cqw;height:3cqw;border-radius:2cqw;background:var(--wa-green)}.m-call-voice-lines i:nth-child(2n){height:6cqw}.m-call-voice-lines i:nth-child(3){height:9cqw}.m-call-phone.is-playing .m-call-voice-lines i{animation:call-voice 750ms ease-in-out infinite alternate}.m-call-phone.is-playing .m-call-voice-lines i:nth-child(2n){animation-delay:-350ms}
.m-call-phone .m-call-controls{display:flex;align-items:center;justify-content:center;width:100%;gap:5cqw;padding:0;margin:0}.m-call-controls button{position:relative;display:grid;place-items:center;width:max(44px,19cqw);height:max(44px,19cqw);flex-shrink:0;border:1px solid oklch(.75 .015 190 / .15);border-radius:50%;background:oklch(.37 .015 205);color:var(--wa-text);box-shadow:0 1cqw 3cqw oklch(.09 .008 220 / .2);transition:background 180ms ease-out,transform 180ms ease-out}.m-call-controls button:active{transform:scale(.95)}.m-call-controls button[data-mobile-media]{background:oklch(.5 .1 170)}
.m-call-controls button .m-play-svg,.m-call-controls button>span>svg,.m-call-controls button.m-call-end>svg{width:8cqw;height:8cqw;transform:none}.m-call-controls button small{position:absolute;top:calc(100% + 3cqw);color:var(--wa-muted);font:3.5cqw/1 var(--wa-font);white-space:nowrap}.m-call-controls .m-call-speaker[aria-pressed='true']{background:oklch(.86 .008 190);color:oklch(.2 .012 220)}.m-call-controls button.m-call-end{background:oklch(.59 .19 22);border-color:oklch(.7 .12 22 / .4)}.m-call-phone .m-call-prompt{margin:13cqw 0 0!important;color:var(--wa-muted);font:3.5cqw/1.4 var(--wa-font);text-align:center}.m-call-listen{bottom:27px}
@keyframes call-voice{from{transform:scaleY(.45)}to{transform:scaleY(1.05)}}
@media(max-width:700px){.m-demo-voice .m-vn-intro{padding:2cqw 3cqw}.m-vn-bubble .m-wave i:nth-child(n+15){display:none}.m-confession-phone{--device-radius:34px}}
@media(min-width:701px){.m-media-trio{padding-left:0;padding-right:0;gap:36px}.m-media-trio figure:first-child,.m-media-trio figure:last-child{padding-top:24px}.m-media-trio figcaption{font-size:31px;padding-top:24px}.m-media-trio figcaption>span{font-size:11px}.m-demo-phone .m-photo-hint>span{display:inline;font-size:3cqw}.m-vn-track,.m-vn-bubble .m-audio-button{min-height:23cqw}.m-vn-bubble .m-voice-seek{top:calc(13.5cqw - 12px)}.m-sleepcall{height:940px}.m-call-phone{width:300px;top:125px;right:var(--m-gutter)}.m-call-photo{height:600px;top:280px}.m-call-listen{bottom:50px;right:calc(var(--m-gutter) - 15px);width:330px}}
@media(min-width:701px) and (max-width:1100px){.m-media-trio{gap:22px}.m-sleepcall{height:900px}.m-call-phone{width:245px;top:220px}.m-call-photo{height:650px;top:210px}.m-call-listen{width:265px;right:var(--m-gutter)}}
@media(prefers-reduced-motion:reduce){.m-call-voice-lines i{animation:none!important}.m-call-controls button{transition:none!important}}
