/* The WhatsApp chat for iPhone and the iPhone frame, shared by hero.html and site.html.
 A page puts class="iphone" on <body> for the iPhone frame. */
/* ---------- the phone and the WhatsApp chat ----------
   The chat is WhatsApp for iPhone, light mode, measured from WhatsApp's own App Store screenshot (2026-11-18):
   sizes are iOS points times --u (the screen's width / 393). The wallpaper doodles are drawn here, not WhatsApp's. */
.phone { position:absolute; left:158px; top:40px; width:304px; height:616px; border-radius:50px; background:var(--ink); padding:9px; z-index:2; }
.scr { --u:.728px; position:relative; height:100%; border-radius:42px; overflow:hidden; display:flex; flex-direction:column; color:#000;
  font:400 calc(17 * var(--u))/1.29 -apple-system, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif; letter-spacing:-.01em;
  background:#F5F0E9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' fill='none' stroke='%23E9E1D5' stroke-width='1.300' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 22c4-7 14-2 8 6l-8 7-8-7c-6-8 4-13 8-6zM62 14l3 7 7 1-5 5 1 7-6-4-6 4 1-7-5-5 7-1zM112 20a9 9 0 1 0 .100 0M106 26l5 5 8-9M150 12h18v13h-10l-5 5v-5h-3zM24 70h20a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H24a4 4 0 0 1-4-4V74a4 4 0 0 1 4-4zM28 70v-5h12v5M72 66c8 0 12 6 12 12s-4 12-12 12-12-6-12-12M72 78l8-8M124 64v24M112 76h24M116 68l16 16M132 68l-16 16M160 72c6-6 14 2 8 8l-8 8-8-8c-6-6 2-14 8-8zM20 122l10 18H10zM60 120h22v16H60zM60 124l11 8 11-8M118 116a12 12 0 0 1 12 12c0 9-12 18-12 18s-12-9-12-18a12 12 0 0 1 12-12zM118 124a4 4 0 1 0 .100 0M152 124c6-8 18-8 24 0M156 130c4-5 12-5 16 0M164 138h.100M36 164c0-8 12-8 12 0s-12 8-12 0M92 156l4 8 8 2-6 6 2 8-8-4-8 4 2-8-6-6 8-2zM140 160h24M140 168h16M140 176h20'/%3E%3C/svg%3E") 0 0/calc(180 * var(--u)); }
.scr::before { content:""; position:absolute; left:50%; top:9px; width:86px; height:24px; margin-left:-43px; border-radius:99px; background:var(--ink); z-index:3; }
.scr svg { display:block; flex:none; }
.wa-hd { flex:none; height:calc(98 * var(--u)); padding:calc(54 * var(--u)) calc(16 * var(--u)) 0 calc(11 * var(--u)); display:flex; align-items:center; gap:calc(10 * var(--u)); background:#F4F3F1; box-shadow:0 .500px 0 rgba(0, 0, 0, .16); position:relative; z-index:1; }
.wa-hd .bk { width:calc(13 * var(--u)); height:calc(22 * var(--u)); margin-right:calc(11 * var(--u)); }
.wa-hd .av { width:calc(37 * var(--u)); height:calc(37 * var(--u)); border-radius:50%; background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center; font:700 calc(20 * var(--u))/1 "Baloo 2", sans-serif; padding-bottom:calc(2 * var(--u)); flex:none; }
.wa-hd .nm { flex:1; min-width:0; font-weight:600; font-size:calc(17 * var(--u)); line-height:1.2; white-space:nowrap; } .wa-hd .nm small { display:block; font-weight:400; font-size:calc(13 * var(--u)); color:#8A8A8E; }
.wa-hd .vid { width:calc(29 * var(--u)); height:calc(21 * var(--u)); margin-right:calc(13 * var(--u)); } .wa-hd .call { width:calc(22 * var(--u)); height:calc(22 * var(--u)); }
.thread { flex:1; min-height:0; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; padding:calc(8 * var(--u)) calc(17 * var(--u)) calc(8 * var(--u)); transition:opacity .5s; }
.thread.out { opacity:0; }
.m { position:relative; width:fit-content; max-width:79%; margin-top:calc(3 * var(--u)); padding:calc(6 * var(--u)) calc(10 * var(--u)) calc(7 * var(--u)); border-radius:calc(17 * var(--u)); background:#fff; box-shadow:0 calc(1 * var(--u)) calc(.500 * var(--u)) rgba(0, 0, 0, .13); flex:none; }
.m.me { margin-left:auto; background:#D1FDCF; }
.m.me + .m.ai, .m.ai + .m.me, .day + .m { margin-top:calc(10 * var(--u)); }
/* the tail: on the last bubble of a run, at the bottom corner, as on iPhone */
.m::after { content:""; position:absolute; bottom:0; width:calc(12 * var(--u)); height:calc(17 * var(--u)); background:inherit; display:none;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 17'%3E%3Cpath d='M0 0h5.500c0 8 2 13.500 6.500 17H0z'/%3E%3C/svg%3E") center/100% 100% no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 17'%3E%3Cpath d='M0 0h5.500c0 8 2 13.500 6.500 17H0z'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.m.me::after { right:calc(-6 * var(--u)); } .m.ai::after { left:calc(-6 * var(--u)); transform:scaleX(-1); }
.m.me:not(:has(+ .m.me))::after, .m.ai:not(:has(+ .m.ai))::after { display:block; }
.m.vid::after, .m.typing::after { z-index:-1; }
.m .t { float:right; margin:calc(8 * var(--u)) 0 calc(-3 * var(--u)) calc(10 * var(--u)); font-size:calc(11.500 * var(--u)); line-height:1; color:rgba(0, 0, 0, .45); display:flex; align-items:center; gap:calc(3 * var(--u)); white-space:nowrap; }
.m.me .t::after { content:""; width:calc(17 * var(--u)); height:calc(10.500 * var(--u)); background-color:#2F8FEF;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 10.500'%3E%3Cpath d='M1 5.800 4.300 9.200 10.300 1.300M7 8l1.200 1.200 6-7.900' fill='none' stroke='%23000' stroke-width='1.500' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 10.500'%3E%3Cpath d='M1 5.800 4.300 9.200 10.300 1.300M7 8l1.200 1.200 6-7.900' fill='none' stroke='%23000' stroke-width='1.500' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.m.vid { padding:calc(3 * var(--u)); width:calc(226 * var(--u)); }
.m.vid .th { position:relative; height:calc(226 * var(--u)); border-radius:calc(14.500 * var(--u)); overflow:hidden; background:linear-gradient(#DCD3C6 0 62%, #BDAF9C 62% 100%); }
.m.vid .th img { position:absolute; left:8%; bottom:14%; width:84%; }
.m.vid .th::before { content:""; position:absolute; inset:auto 0 0; height:28%; background:linear-gradient(transparent, rgba(0, 0, 0, .4)); z-index:1; }
.m.vid .th::after { content:""; position:absolute; left:50%; top:50%; width:calc(52 * var(--u)); height:calc(52 * var(--u)); translate:-50% -50%; border-radius:50%; background:rgba(0, 0, 0, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.500v11l9-5.500z' fill='%23fff'/%3E%3C/svg%3E") center/56% no-repeat; }
.m.vid .len, .m.vid .t { position:absolute; z-index:2; bottom:calc(9 * var(--u)); font-size:calc(11.500 * var(--u)); line-height:1; color:#fff; margin:0; float:none; }
.m.vid .len { left:calc(11 * var(--u)); display:flex; align-items:center; gap:calc(4 * var(--u)); }
.m.vid .len::before { content:""; width:calc(15 * var(--u)); height:calc(10 * var(--u)); background:#fff; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 10'%3E%3Crect width='10' height='10' rx='2.200'/%3E%3Cpath d='M11 3.600 15 1v8l-4-2.600z'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 10'%3E%3Crect width='10' height='10' rx='2.200'/%3E%3Cpath d='M11 3.600 15 1v8l-4-2.600z'/%3E%3C/svg%3E") center/contain no-repeat; }
.m.vid .t { right:calc(11 * var(--u)); } .m.vid .t::after { background-color:#fff; }
.m.typing { padding:calc(13 * var(--u)) calc(14 * var(--u)); display:flex; gap:calc(5 * var(--u)); }
.m.typing i { width:calc(8 * var(--u)); height:calc(8 * var(--u)); border-radius:50%; background:#A6A6AB; animation:dot 1s infinite; }
.m.typing i:nth-child(2) { animation-delay:.15s; } .m.typing i:nth-child(3) { animation-delay:.3s; }
@keyframes dot { 0%, 60%, 100% { transform:none; opacity:.5; } 30% { transform:translateY(calc(-3 * var(--u))); opacity:1; } }
.day { align-self:center; margin:calc(6 * var(--u)) 0 calc(2 * var(--u)); padding:calc(4 * var(--u)) calc(10 * var(--u)) calc(5 * var(--u)); border-radius:calc(8 * var(--u)); background:rgba(255, 255, 255, .92); font-size:calc(12.500 * var(--u)); line-height:1; color:#5B5B60; box-shadow:0 calc(1 * var(--u)) calc(.500 * var(--u)) rgba(0, 0, 0, .1); flex:none; }
.wa-in { flex:none; position:relative; display:flex; align-items:center; gap:calc(11 * var(--u)); padding:calc(7 * var(--u)) calc(15 * var(--u)) calc(41 * var(--u)) calc(13 * var(--u)); background:#F4F3F1; box-shadow:0 -.500px 0 rgba(0, 0, 0, .14); }
.wa-in .fld { flex:1; height:calc(36 * var(--u)); border-radius:calc(18 * var(--u)); background:#fff; box-shadow:0 0 0 .500px rgba(0, 0, 0, .2); display:flex; align-items:center; justify-content:flex-end; padding-right:calc(8 * var(--u)); }
.wa-in .plus { width:calc(22 * var(--u)); height:calc(22 * var(--u)); } .wa-in .stk { width:calc(22 * var(--u)); height:calc(22 * var(--u)); }
.wa-in .cam { width:calc(26 * var(--u)); height:calc(22 * var(--u)); } .wa-in .mic { width:calc(17 * var(--u)); height:calc(24 * var(--u)); }
.wa-in::after { content:""; position:absolute; left:50%; bottom:calc(8 * var(--u)); width:calc(140 * var(--u)); height:calc(5 * var(--u)); margin-left:calc(-70 * var(--u)); border-radius:9px; background:#000; }

/* ---------- the iPhone frame (looks A and C): a titanium band, a black bezel, the buttons, the status bar ---------- */
.k, .sb { display:none; }
.iphone .phone { width:308px; height:640px; top:24px; padding:3.5px; border-radius:57px;
  background:linear-gradient(125deg, #EFECE5 0%, #B5B2AA 20%, #F6F4EE 44%, #9A978F 70%, #DDDAD2 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55), 0 0 0 .5px rgba(0,0,0,.3), 0 36px 60px -26px rgba(60, 45, 10, .5), 0 14px 22px -14px rgba(60, 45, 10, .3); }
.iphone .scr { --u:.7175px; border:10px solid #060607; border-radius:53.500px; box-shadow:0 0 0 1px #2B2B2F; }
.iphone .scr::before { top:10px; width:88px; height:26px; margin-left:-44px; background:#060607 radial-gradient(circle at 76% 50%, #1D2540 0 3px, #0B0C10 3.500px 5px, transparent 5.500px); }
.iphone .k { display:block; position:absolute; left:-3px; width:3.500px; border-radius:2px 0 0 2px; background:linear-gradient(90deg, #8E8B84, #D8D5CD); box-shadow:inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(0,0,0,.25); }
.iphone .k1 { top:112px; height:24px; } .iphone .k2 { top:158px; height:46px; } .iphone .k3 { top:214px; height:46px; }
.iphone .k4 { left:auto; right:-3px; top:186px; height:74px; border-radius:0 2px 2px 0; background:linear-gradient(270deg, #8E8B84, #D8D5CD); }
.iphone .sb { display:flex; position:absolute; z-index:3; left:0; right:0; top:0; height:calc(54 * var(--u)); align-items:center; justify-content:space-between; padding:calc(8 * var(--u)) calc(30 * var(--u)) 0 calc(44 * var(--u)); font-weight:600; font-size:calc(17 * var(--u)); line-height:1; }
.iphone .sb svg { width:calc(80 * var(--u)); height:auto; }

