/* product visual: faithful iMessage / WhatsApp phone */
.visual{display:flex;flex-direction:column;align-items:center;gap:16px}
.chan-switch{display:flex;gap:4px;background:var(--bg-soft);border:1px solid var(--line);border-radius:999px;padding:4px}
.chan-switch button{border:0;background:transparent;font:inherit;font-size:13px;font-weight:600;color:var(--muted);padding:7px 18px;border-radius:999px;cursor:pointer}
.chan-switch button.on{background:var(--surface);color:var(--ink);box-shadow:var(--shadow-1)}
.iphone{width:302px;height:618px;background:linear-gradient(150deg,#fdfdff 0%,#d9d9e0 22%,#a9a9b2 48%,#c9c9d1 72%,#78787f 100%);border-radius:54px;padding:5px;box-shadow:0 0 0 .5px rgba(0,0,0,.4),inset 0 0 0 1px rgba(255,255,255,.5),0 30px 70px rgba(0,0,0,.6);position:relative}
.iphone .sb{position:absolute;left:-2.5px;width:3px;border-radius:2px;background:linear-gradient(90deg,#d8d8de,#8d8d95 55%,#d8d8de)}
.iphone:before{content:"";position:absolute;top:12px;left:50%;transform:translateX(-50%);width:92px;height:27px;background:#000;border-radius:999px;z-index:6}
.iphone:after{content:"";position:absolute;right:-2.5px;top:182px;width:3px;height:80px;border-radius:2px;background:linear-gradient(90deg,#8d8d95,#d8d8de 50%,#8d8d95)}
.screen{width:100%;height:100%;border-radius:49px;overflow:hidden;box-shadow:0 0 0 1.5px #0b0b0d;display:flex;flex-direction:column;background:#fff;font-family:-apple-system,"SF Pro Text","Helvetica Neue",Arial,sans-serif;color:#000}
.statusbar{display:flex;justify-content:space-between;align-items:center;padding:12px 26px 4px;font-size:12.5px;font-weight:600;flex:none;z-index:4}
.statusbar .ics{display:flex;gap:5px;align-items:center}
.sbars{display:inline-flex;gap:1.5px;align-items:flex-end}.sbars i{width:3px;background:currentColor;border-radius:1px}.sbars i:nth-child(1){height:4px}.sbars i:nth-child(2){height:6px}.sbars i:nth-child(3){height:8px}.sbars i:nth-child(4){height:10px}
.batt{width:22px;height:11px;border:1.5px solid currentColor;border-radius:3px;position:relative;opacity:.9}.batt:after{content:"";position:absolute;inset:1.5px;right:30%;background:currentColor;border-radius:1px}
/* shared chat bits */
.chat{flex:1;overflow:hidden;padding:8px 10px 4px;display:flex;flex-direction:column;gap:6px}
.stamp{text-align:center;font-size:10px;color:#8e8e93;margin:0 0 2px;font-weight:500}
.inputbar{flex:none;display:flex;align-items:center;gap:8px;padding:9px 12px 10px}
.homebar{flex:none;height:18px;display:flex;align-items:center;justify-content:center;background:#f6f6f6}
.homebar i{width:100px;height:4px;border-radius:2.5px;background:rgba(0,0,0,.6)}
.iphone.kb-on .homebar{display:none}
/* iOS keyboard + typing */
.kb{flex:none;height:0;overflow:hidden;background:#D2D5DC;transition:height .32s cubic-bezier(.3,.7,.3,1)}
.iphone.kb-on .kb{height:208px}
.kb-pred{display:flex;background:#E9EBEF;border-bottom:.5px solid #c3c6cd;height:33px;flex:none}
.kb-pred span{flex:1;display:flex;align-items:center;justify-content:center;font-size:12px;color:#000;border-right:.5px solid #c3c6cd}
.kb-pred span:last-child{border-right:0}
.kb-rows{padding:6px 3px 0;display:flex;flex-direction:column;gap:5px}
.kr{display:flex;gap:3px;justify-content:center}
.kr i,.kr b{font-style:normal;font-weight:400;background:#fff;border-radius:5px;box-shadow:0 1px 0 rgba(0,0,0,.32);width:26px;height:34px;display:flex;align-items:center;justify-content:center;font-size:13px;color:#000}
.kr .kwide{width:38px;background:#ACB2BE;font-size:12px}
.kr .kspace{flex:1;max-width:118px}
.kr .kret{background:#007AFF;color:#fff;width:72px;font-size:14px}
.kb-home{height:20px;display:flex;align-items:center;justify-content:center}
.kb-home i{width:100px;height:3.5px;border-radius:2px;background:rgba(0,0,0,.55)}
[data-theme=dark] .kb{background:#1c1c1e}
[data-theme=dark] .kb-pred{background:#2c2c2e;border-color:#3a3a3c}
[data-theme=dark] .kb-pred span{color:#fff;border-color:#3a3a3c}
[data-theme=dark] .kr i,[data-theme=dark] .kr b{background:#4a4a4e;color:#fff;box-shadow:0 1px 0 rgba(0,0,0,.6)}
[data-theme=dark] .kr .kwide{background:#363638}
[data-theme=dark] .kr .kret{background:#0A84FF}
[data-theme=dark] .kb-home i{background:rgba(255,255,255,.6)}
.inputbar .typed{color:#000;white-space:nowrap;overflow:hidden;flex:none;max-width:100%}
[data-theme=dark] .inputbar .typed{color:#fff}
.inputbar .caret{display:none;width:1.5px;height:14px;background:#0A84FF;margin-left:1px;flex:none;animation:caretblink 1.1s steps(1) infinite}
@keyframes caretblink{0%,55%{opacity:1}56%,100%{opacity:0}}
.inputbar .sendbtn{width:27px;height:27px;border-radius:50%;background:#007AFF;display:none;align-items:center;justify-content:center;flex:none}
.wa-input .sendbtn{background:#00a884}
.iphone.typing-live .inputbar .ph{display:none}
.iphone.typing-live .inputbar .caret{display:inline-block}
.iphone.typing-live .inputbar .sendbtn{display:inline-flex}
.iphone.typing-live .im-input .pillmic{display:none}
.iphone.typing-live .wa-input .mic{display:none}
.stamp b{display:block;font-size:10.5px;color:#6e6e73}
.wa-chat .checks.tk{color:#8696a0;letter-spacing:0}
.wa-chat .checks.tk.blue{color:#53BDEB;letter-spacing:-2px}
/* iMessage */
.im-chat,.wa-chat,.im-head,.wa-head,.wa-ad,.im-ad{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.im-head{flex:none;display:flex;align-items:center;justify-content:space-between;padding:24px 14px 6px;border-bottom:.5px solid #c6c6c8;background:rgba(249,249,249,.92)}
.im-head .chev{color:#007AFF;font-size:19px;font-weight:600;line-height:1}
.im-head .who{display:flex;flex-direction:column;align-items:center;gap:0;margin-top:-2px}
.im-head .ava{width:34px;height:34px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center}
.im-head .nm{font-size:12px;color:#1c1c1e;letter-spacing:-.02em;position:relative;z-index:2;margin-top:-4px}
.im-head .nm .ch{color:#8e8e93;font-weight:500}
.im-head .vicon{color:#007AFF}
.im-chat{background:#fff}
.bub{max-width:76%;padding:7px 11px;font-size:12.5px;line-height:1.32;position:relative;border-radius:18px}
.seq{opacity:0;transform:translateY(12px) scale(.9);transform-origin:bottom left;transition:opacity .28s ease,transform .38s cubic-bezier(.2,.9,.3,1.25)}
.seq.on{opacity:1;transform:none}
.chat .out.seq{transform-origin:bottom right}
.typing{display:inline-flex;gap:4px;align-items:center;padding:10px 12px}
.typing i{width:7px;height:7px;border-radius:50%;background:#9a9aa0;animation:tp 1s infinite}
.typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
@keyframes tp{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}
@media(prefers-reduced-motion:reduce){.seq{transition:none}.typing i{animation:none}.kb{transition:none}.inputbar .caret{animation:none}}
.im-chat .in{align-self:flex-start;background:#E9E9EB;color:#000;border-bottom-left-radius:4px}
.im-chat .out{align-self:flex-end;background:#007AFF;color:#fff;border-bottom-right-radius:4px}
.receipt{align-self:flex-end;font-size:10px;color:#8e8e93;margin:-3px 2px 0 0}
.im-ad,.wa-ad{align-self:flex-start;flex:none;width:84%;background:#fff;border-radius:14px;overflow:hidden;position:relative;color:#0f1419;box-shadow:0 1px 2px rgba(0,0,0,.18);display:flex;gap:8px;padding:8px}
.im-ad .ad-img,.wa-ad .ad-img{width:56px;height:56px;border-radius:10px;object-fit:cover;display:block;flex:none}
.im-ad .ad-right,.wa-ad .ad-right{flex:1;min-width:0}
.im-ad .ad-top,.wa-ad .ad-top{display:flex;align-items:center;gap:5px;margin-bottom:3px}
.im-ad .ad-brand,.wa-ad .ad-brand{width:18px;height:18px;border-radius:5px;background:#111827;color:#fff;font-size:9.5px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none}
.im-ad .ad-name,.wa-ad .ad-name{font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.im-ad .ad-badge,.wa-ad .ad-badge{font-size:9px;font-weight:700;color:#667085;background:#f2f4f7;border-radius:4px;padding:1px 4px;flex:none}
.im-ad .ad-more,.wa-ad .ad-more{margin-left:auto;color:#98a2b3;font-size:12px;font-weight:700;letter-spacing:1.5px;line-height:1;flex:none}
.im-ad .tt,.wa-ad .tt{font-weight:600;font-size:12.5px;margin-bottom:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.im-ad .ds,.wa-ad .ds{font-size:11px;color:#475467;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.im-ad .ad-cta,.wa-ad .ad-cta{display:inline-block;margin-top:3px;font-size:11.5px;font-weight:600;color:#1a73e8;text-decoration:underline}
.tapback{position:absolute;box-shadow:0 1px 2px rgba(0,0,0,.12)}
.im-input{background:#f6f6f6;border-top:.5px solid #c6c6c8}
.im-input .pill{flex:1;min-width:0;overflow:hidden;border:.5px solid #c6c6c8;border-radius:16px;padding:5px 12px;font-size:13px;color:#8e8e93;background:#fff}
.im-input .cam{color:#8e8e93;font-size:16px}
/* WhatsApp */
.wa-head{flex:none;display:none;align-items:center;gap:9px;padding:24px 10px 6px;background:#008069;color:#fff}
.wa-head .back{font-size:16px;font-weight:600}
.wa-head .ava{width:30px;height:30px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center}
.wa-head .who{flex:1;line-height:1.15}
.wa-head .nm{font-size:13.5px;font-weight:600;color:#fafafa;letter-spacing:-.01em}
.wa-head .st{font-size:10.5px;color:#a0a2a1}
.wa-head .i{display:flex;gap:16px;font-size:14px}
.wa-chat{display:none;background:#ECE5DD;background-image:radial-gradient(rgba(0,0,0,.045) 1px,transparent 1.2px);background-size:22px 22px}
.wa-chat .bub{border-radius:7.5px;padding:5px 8px 3px 9px;font-size:12.5px;box-shadow:0 1px .5px rgba(0,0,0,.13)}
.wa-chat .in{align-self:flex-start;background:#fff;border-top-left-radius:0}
.wa-chat .out{align-self:flex-end;background:#D9FDD3;border-top-right-radius:0}
.wa-chat .meta{float:right;display:inline-flex;gap:3px;align-items:center;font-size:9.5px;color:#667;margin:8px 0 0 8px}
.wa-chat .checks{color:#53BDEB;font-size:11px;letter-spacing:-2px}

.wa-input{display:none;background:#ECE5DD;align-items:flex-end}
.iphone[data-chan=whatsapp] .homebar{background:#ECE5DD}
.wa-input .pill{flex:1;min-width:0;overflow:hidden;background:#fff;border-radius:20px;padding:7px 12px;font-size:13px;color:#8696a0}
.wa-input .mic{width:34px;height:34px;border-radius:50%;background:#00a884;color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;flex:none}
/* dark-mode faithful UIs (Leon's reference: dark WhatsApp + dark iMessage) */
[data-theme=dark] .im-head{background:transparent;border-bottom-color:transparent}
[data-theme=dark] .im-head .nm{color:#ebebeb}
[data-theme=dark] .im-chat{background:#000}
[data-theme=dark] .screen{background:#000}
[data-theme=dark] .im-chat .in{background:#303034;color:#fff}
[data-theme=dark] .im-chat .out{background:#0B93F6}

[data-theme=dark] .tapback{background:#303034}
[data-theme=dark] .im-input{background:#000;border-top-color:#2c2c2e}
[data-theme=dark] .homebar{background:#000}
[data-theme=dark] .homebar i{background:rgba(255,255,255,.8)}
[data-theme=dark] .im-input .pill{background:#1c1c1e;border-color:#38383a;color:#636366}
[data-theme=dark] .statusbar{color:#fff}
[data-theme=dark] .iphone[data-chan=whatsapp] .screen{background:#0b141a}
[data-theme=dark] .wa-head{background:#0b141a}
[data-theme=dark] .wa-chat{background:#0b141a;background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1.2px)}
[data-theme=dark] .wa-chat .in{background:#1f2c34;color:#e9edef}
[data-theme=dark] .wa-chat .out{background:#005c4b;color:#e9edef}
[data-theme=dark] .wa-chat .meta{color:#8696a0}

[data-theme=dark] .wa-input{background:#0b141a}
[data-theme=dark] .iphone[data-chan=whatsapp] .homebar{background:#0b141a}
[data-theme=dark] .iphone[data-chan=whatsapp] .homebar i{background:rgba(255,255,255,.8)}
[data-theme=dark] .wa-input .pill{background:#1f2c34;color:#8696a0}
[data-theme=dark] .typing i{background:#8696a0}
/* faithful extras */
.wa-chip{align-self:center;background:#1f2c34;color:#aebac1;font-size:10.5px;font-weight:600;padding:5px 10px;border-radius:7px}
.wa-e2e{align-self:center;max-width:88%;background:#182229;border-radius:8px;padding:8px 12px;font-size:11px;line-height:1.4;color:#ffd279;text-align:center}
[data-theme=light] .wa-chip{background:#fdf3c6;color:#54656f}
[data-theme=light] .wa-e2e{background:#fdf3c6;color:#54656f}
.wa-head .backpill{display:inline-flex;align-items:center;background:rgba(134,150,160,.28);border-radius:999px;padding:3px 9px 3px 5px;font-size:12px;font-weight:700;gap:2px}
.wa-head .iconpill{display:flex;gap:12px;background:rgba(255,255,255,.09);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:.5px solid rgba(255,255,255,.12);border-radius:999px;padding:5px 10px;align-items:center;color:#fff}
.im-backpill{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.10);backdrop-filter:blur(18px) saturate(1.6);-webkit-backdrop-filter:blur(18px) saturate(1.6);border:.5px solid rgba(255,255,255,.12);color:#ebebeb;font-size:13px;font-weight:700}
.im-vidpill{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.10);backdrop-filter:blur(18px) saturate(1.6);-webkit-backdrop-filter:blur(18px) saturate(1.6);border:.5px solid rgba(255,255,255,.12);color:#ebebeb}
.im-vidpill svg{width:11px;height:9px}
.im-input .plusbtn{width:26px;height:26px;border-radius:50%;background:rgba(120,120,128,.24);color:#8e8e93;display:inline-flex;align-items:center;justify-content:center;font-size:15px;flex:none}
.wa-input .plusbtn{color:#8696a0;font-size:19px;flex:none;padding:0 2px}
.wa-input .stic{color:#8696a0;font-size:14px}

/* Leon: phone UI uses the iOS system font stack exactly like the real apps */
.iphone,.iphone *{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",Roboto,Helvetica,Arial,sans-serif !important;letter-spacing:0 !important}
.iphone .im-head .nm{font-weight:600}
.startbtns{margin-top:16px}
@media(max-width:900px){.startbtns{margin-top:20px}}


/* per Leon's real screenshots: iMessage tapback upper-LEFT, WhatsApp reaction chip BELOW bubble bottom-right */
.im-chat .tapback,.im-ad .tapback{top:-9px;left:-9px;right:auto;bottom:auto}
.wa-chat .tapback,.wa-ad .tapback{top:auto;left:auto;bottom:-11px;right:8px;background:#1f2c34;border-radius:999px;padding:2px 7px;font-size:12px;box-shadow:0 1px 2px rgba(0,0,0,.4)}
[data-theme=light] .wa-chat .tapback,[data-theme=light] .wa-ad .tapback{background:#fff;box-shadow:0 1px 2px rgba(11,20,26,.25)}
.wa-head .unr{color:#fff;font-size:12px;font-weight:600;margin:0 1px 0 -2px}
.iphone .wa-head .backpill{width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.09);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:.5px solid rgba(255,255,255,.12);color:#fff;display:inline-flex;align-items:center;justify-content:center;padding:0;font-size:13px}
[data-theme=light] .iphone .wa-head .backpill{background:transparent;color:#0b141a}


/* exact metrics ported from 402pt reference renders (scale ~0.70) */
.iphone .bub{font-size:12px;line-height:1.29;letter-spacing:-.1px;border-radius:13px;padding:6px 9px}
.iphone .im-chat .bub{max-width:72%}
.iphone .wa-chat .bub{max-width:78%;padding:5px 7px 6px}
.iphone .bub .tl{position:absolute;bottom:0;pointer-events:none;line-height:0}
.iphone .tl-o{right:-4px}.iphone .tl-i{left:-4px;transform:scaleX(-1)}
.iphone .im-ad .tt{font-size:12px}
.iphone .im-ad .ds,.iphone .im-ad .dm{font-size:10.5px}
.iphone .im-ad .sp{font-size:8px;padding:2px 5px}
.iphone .wa-ad .tt{font-size:11.5px}
.iphone .wa-ad .ds,.iphone .wa-ad .dm{font-size:10px}
.iphone .wa-ad .sp{font-size:7.5px}
.iphone .statusbar{font-size:11px}
.iphone .im-head .nm{font-size:13px}
.iphone .wa-head .nm{font-size:12px}
.iphone .wa-head .st{font-size:9px}
.iphone .wa-chip{font-size:9px;padding:4px 8px}
.iphone .wa-e2e{font-size:9.5px;padding:6px 9px;line-height:1.35}
.iphone .wa-chat .meta{font-size:8px}
.iphone .receipt{font-size:9px}
.iphone .stamp{font-size:9px}
.iphone .inputbar .pill{height:27px;border-radius:14px;font-size:12px}
.iphone .im-input .plusbtn{width:25px;height:25px;font-size:14px}
.iphone .wa-input .pill{height:31px;border-radius:16px;display:flex;justify-content:space-between;align-items:center;font-size:12px}
.iphone .wa-input .plusbtn{font-size:18px}
.iphone .wa-input .mic{width:31px;height:31px;font-size:13px}
.iphone .im-head .ava{width:43px;height:43px}
.iphone .im-head .ava svg{width:26px;height:26px}
.iphone .wa-head .ava{width:22px;height:22px}
.iphone .wa-head .ava svg{width:13px;height:13px}
/* sampled dark colors */
[data-theme=dark] .iphone .im-chat .in{background:#242427}
[data-theme=dark] .iphone .im-chat .out{background:#3092F3}
[data-theme=dark] .iphone .im-chat .tapback,[data-theme=dark] .iphone .im-ad .tapback{background:#242427}
[data-theme=dark] .im-head .nm{position:relative;z-index:2;background:rgba(120,120,128,.22);backdrop-filter:blur(22px) saturate(1.8);-webkit-backdrop-filter:blur(22px) saturate(1.8);border-radius:999px;padding:3px 11px;border:.5px solid rgba(255,255,255,.09);color:#fff}
[data-theme=dark] .im-head .nm .ch{color:rgba(255,255,255,.55)}
[data-theme=dark] .iphone .im-input{background:#000}
[data-theme=dark] .iphone .im-input .pill{background:#161717;border:1px solid #2c2c2e;color:#636366}
[data-theme=dark] .iphone .im-input .plusbtn{background:#1c1c1e;color:#8e8e93}
[data-theme=dark] .iphone[data-chan=whatsapp] .screen{background:#0a0a0a}
[data-theme=dark] .iphone .wa-head{background:#0b141a}
[data-theme=dark] .iphone .wa-chat{background:#0a0a0a;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAiIGhlaWdodD0iMTYwIiB2aWV3Qm94PSIwIDAgMTYwIDE2MCI+PGcgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmZmZmIiBzdHJva2Utb3BhY2l0eT0iMC4wNTUiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxjaXJjbGUgY3g9IjIwIiBjeT0iMjQiIHI9IjYuNSIvPjxwYXRoIGQ9Ik01NiAxNHE2IDggMCAxNk02NCAxMHExMCAxMiAwIDI0Ii8+PHJlY3QgeD0iOTYiIHk9IjE4IiB3aWR0aD0iMTciIGhlaWdodD0iMTMiIHJ4PSIzIi8+PHBhdGggZD0iTTI0IDYybDQgOCA5IDEuNS02LjUgNiAyIDktOC41LTQuNS04LjUgNC41IDItOS02LjUtNiA5LTEuNXoiLz48cGF0aCBkPSJNNzggNjZjNC02IDEyLTYgMTQgMHMxMCA2IDE0IDAiLz48cGF0aCBkPSJNMTI4IDUycTUgNSAwIDEwdC0xMCAwIi8+PGNpcmNsZSBjeD0iMTI4IiBjeT0iOTYiIHI9IjQiLz48cGF0aCBkPSJNMTQgMTA0cTgtNCAxMiA0Ii8+PHBhdGggZD0iTTkyIDEwOHE2LTYgMTIgMCIvPjxwYXRoIGQ9Ik01MiA5Mmw0IDRtMC00bC00IDQiIHN0cm9rZS13aWR0aD0iMiIvPjxwYXRoIGQ9Ik00MCAxMzJoMTRsLTctMTF6Ii8+PGNpcmNsZSBjeD0iODYiIGN5PSIxNDAiIHI9IjYiLz48cGF0aCBkPSJNMTI2IDEzMHE3IDIgNiA5dC05IDYiLz48cGF0aCBkPSJNMTAgMTQwcTUtNyAxMi01Ii8+PHJlY3QgeD0iMTQwIiB5PSI2NiIgd2lkdGg9IjEwIiBoZWlnaHQ9IjEwIiByeD0iMiIgdHJhbnNmb3JtPSJyb3RhdGUoMTggMTQ1IDcxKSIvPjwvZz48L3N2Zz4=");background-size:112px 112px}
[data-theme=dark] .iphone .wa-chat .in{background:#222;color:#fff}
[data-theme=dark] .iphone .wa-chat .out{background:#144D37;color:#fff}
[data-theme=dark] .iphone .wa-chip{background:#1b211f;color:#aebac1}
[data-theme=dark] .iphone .wa-e2e{background:#1b211f;color:#ffd279}
[data-theme=dark] .iphone .wa-input{background:#101010}
[data-theme=dark] .iphone .wa-input .pill{background:#282828;color:#8696a0}
[data-theme=dark] .iphone .wa-input .mic{background:#21c063}
.iphone .wa-chat .checks{color:#53bdeb}


/* tail colors follow theme bubble colors */
[data-theme=dark] .iphone .im-chat .out .tl path{fill:#3092F3}
[data-theme=dark] .iphone .im-chat .in .tl path{fill:#242427}
[data-theme=dark] .iphone .wa-chat .out .tl path{fill:#144D37}
[data-theme=dark] .iphone .wa-chat .in .tl path{fill:#222222}


/* SF-lookalike font + exact reaction shapes (Leon 11:19) */
.iphone,.iphone *{font-family:"Inter",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif !important}
.iphone .bub{letter-spacing:-0.017em}
.im-chat .tapback,.im-ad .tapback{top:-11px;left:-7px;width:22px;height:22px;border-radius:50%;background:#E9E9EB;display:flex;align-items:center;justify-content:center;font-size:12px;padding:0}
.im-chat .tapback::before,.im-ad .tapback::before{content:"";position:absolute;width:6px;height:6px;border-radius:50%;background:inherit;left:-4px;bottom:-1px}
.im-chat .tapback::after,.im-ad .tapback::after{content:"";position:absolute;width:3.5px;height:3.5px;border-radius:50%;background:inherit;left:-8px;bottom:-5px}
[data-theme=dark] .im-chat .tapback,[data-theme=dark] .im-ad .tapback{background:#242427}
.wa-chat .tapback,.wa-ad .tapback{border:1px solid rgba(11,20,26,.12)}
[data-theme=dark] .wa-chat .tapback,[data-theme=dark] .wa-ad .tapback{border-color:#0c0e0d}

/* Vibe coding: Lovable-style coding chat demo (illustrative only) */
.vc-head,.vc-chat,.vc-input,.vc-note-head{display:none}
.vc-head{flex:none;align-items:center;justify-content:space-between;gap:8px;padding:24px 12px 6px;background:#0a0a0a;color:#e8e8e8;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.vc-head .vc-x{width:26px;height:26px;border-radius:50%;background:#1c1c1e;color:#c7c7cc;display:flex;align-items:center;justify-content:center;font-size:11px;flex:none}
.vc-head .vc-title{display:flex;align-items:center;gap:5px;background:#1c1c1e;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:600;color:#f2f2f7}
.vc-head .vc-title svg{color:#8e8e93}
.vc-head .vc-pill{font-size:8px;font-weight:700;letter-spacing:.05em;color:#d2a8ff;border:1px solid #d2a8ff55;border-radius:999px;padding:2px 6px;flex:none;text-transform:uppercase}
.vc-head .vc-fwd{width:26px;height:26px;border-radius:50%;background:#1c1c1e;color:#c7c7cc;display:flex;align-items:center;justify-content:center;font-size:13px;flex:none}
.vc-note-head{flex:none;background:#0a0a0a;color:#636366;font-size:8.5px;text-align:center;padding:0 12px 6px;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.vc-chat{background:#0a0a0a;gap:10px;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.vc-chat .bub{font-size:12px;line-height:1.45}
.vc-chat .out{align-self:flex-end;max-width:78%;background:#26262b;color:#f2f2f7;border-radius:18px;padding:8px 13px}
.vc-chat .in{align-self:stretch;color:#ebebf0;padding:0 2px}
.vc-stamp{align-self:center;font-size:10px;color:#636366;margin:2px 0}
.vc-think{align-self:stretch;display:flex;align-items:center;justify-content:space-between;background:#161617;border:1px solid #2c2c2e;border-radius:14px;padding:9px 12px;font-size:12px;color:#d1d1d6}
.vc-think .vc-chev{color:#636366;font-size:13px}
.vc-ad{display:flex;gap:9px;align-items:flex-start;background:#fff;color:#111;border-radius:14px;padding:9px;width:100%;align-self:stretch;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.vc-ad .ad-img{width:44px;height:44px;border-radius:9px;object-fit:cover;flex:none}
.vc-ad .ad-right{flex:1;min-width:0}
.vc-ad .ad-top{display:flex;align-items:center;gap:5px;margin-bottom:2px}
.vc-ad .ad-brand{width:16px;height:16px;border-radius:5px;background:#0F4B2E;color:#fff;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none}
.vc-ad .ad-name{font-size:10.5px;font-weight:600;color:#444;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.vc-ad .ad-badge{font-size:8.5px;font-weight:700;color:#666;border:1px solid #d0d0d0;border-radius:4px;padding:0 4px;flex:none}
.vc-ad .ad-more{margin-left:auto;color:#999;font-size:11px;flex:none}
.vc-ad .tt{font-size:12.5px;font-weight:700;line-height:1.25}
.vc-ad .ds{font-size:11px;color:#555;line-height:1.3;margin-top:1px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.vc-ad .ad-cta{font-size:11.5px;color:#0B93F6;text-decoration:underline;margin-top:2px;display:inline-block}
.vc-input{align-items:center;background:#0a0a0a;padding:6px 12px 12px}
.vc-input .vc-bar{flex:1;display:flex;align-items:center;gap:8px;background:#1c1c1e;border-radius:22px;padding:7px 10px}
.vc-input .vc-plus{width:24px;height:24px;border-radius:50%;background:#2c2c2e;color:#c7c7cc;display:flex;align-items:center;justify-content:center;font-size:14px;flex:none}
.vc-input .vc-ph{flex:1;color:#636366;font-size:12px;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.vc-input .vc-build{display:flex;align-items:center;gap:4px;background:#2c2c2e;border-radius:999px;padding:4px 9px;font-size:10.5px;font-weight:600;color:#e5e5ea;flex:none}
.vc-input .vc-build svg{color:#8e8e93}
.vc-input .vc-mic{width:24px;height:24px;border-radius:50%;background:#2c2c2e;color:#c7c7cc;display:flex;align-items:center;justify-content:center;flex:none}
.vc-input .vc-send{width:24px;height:24px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;flex:none}
.iphone[data-chan=vibe] .im-head,.iphone[data-chan=vibe] .im-chat,.iphone[data-chan=vibe] .im-input,.iphone[data-chan=vibe] .wa-head,.iphone[data-chan=vibe] .wa-chat,.iphone[data-chan=vibe] .wa-input{display:none}
.iphone[data-chan=vibe] .vc-head{display:flex}
.iphone[data-chan=vibe] .vc-chat{display:flex}
.iphone[data-chan=vibe] .vc-input{display:flex}
.iphone[data-chan=vibe] .screen{background:#0a0a0a}
.iphone[data-chan=vibe] .vc-note-head{display:block}
.vc-note{display:none}
.phone-layout > div:has(.iphone[data-chan=vibe]) .vc-note{display:block}

/* channel states */
.iphone[data-chan=whatsapp] .im-head,.iphone[data-chan=whatsapp] .im-chat,.iphone[data-chan=whatsapp] .im-input{display:none}
.iphone[data-chan=whatsapp] .wa-head{display:flex}
.iphone[data-chan=whatsapp] .wa-chat{display:flex}
.iphone[data-chan=whatsapp] .wa-input{display:flex}
.iphone[data-chan=whatsapp] .screen{background:#ECE5DD}

.phone-layout{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;margin:30px 0}.phone-layout h2{margin-top:0}.visual{padding:12px 0}.visual .iphone{flex:none}.phone-caveat{font-size:13px;color:var(--muted);max-width:355px;text-align:center}.phone-layout .phone-caveat{margin-top:8px}@media(max-width:760px){.phone-layout{grid-template-columns:1fr;gap:24px}}

/* Native-style dark iOS keyboard, sized to the reference screen. */
.iphone.kb-on .kb{height:244px}.kb{background:#161616!important;border-radius:22px 22px 0 0;border-top:1px solid #333}
.kb-pred{height:35px;background:transparent!important;border:0;padding:5px 7px;align-items:center}.kb-pred span{height:22px;font-size:12px;font-weight:600;color:#aaa!important;border-color:#333!important}.kb-pred b{width:29px;display:flex;justify-content:center;color:#aaa;border-left:1px solid #333}.kb svg{width:21px;height:21px}.kb-pred svg{width:21px;height:21px}
.kb-rows{padding:3px 5px 0;gap:8px}.kr{gap:4px}.kr i,.kr b{width:24px;flex:1;height:31px;font-size:19px;background:#3b3b3b!important;box-shadow:none!important;border-radius:6px}.kr-mid{padding:0 14px!important}.kr-shift{gap:5px}.kr .kwide{width:35px;flex:1.4;font-size:16px}.kr-shift .kshift{margin-right:5px}.kr-shift .kwide:last-child{margin-left:5px}.kr-bottom .knum,.kr-bottom .kret{flex:1;width:auto;font-size:14px;font-weight:500}.kr-bottom .kspace{max-width:none;flex:2.05}.kr .kret{color:#fff;background:#3b3b3b!important}.kr .kret svg{width:22px;height:22px}.kb-tools{display:flex;align-items:center;justify-content:space-between;padding:15px 18px 0;height:43px;color:#fff}.kb-tools b{width:24px;height:24px;display:flex;align-items:center}.kb-tools svg{width:24px;height:24px}.kb-home{height:16px}.kb-home i{height:3px;width:100px}.iphone:not(.typing-live) .kr i:not(.kspace){text-transform:uppercase}.iphone:not(.typing-live) .kshift svg{fill:currentColor}

:root{--bg-soft:#111112;--line:#27272a;--muted:#a3a3ab;--text:#f5f5f5}.phone-layout{max-width:910px;margin:30px auto 70px}.phone-layout>div{min-width:0}.phone-layout h2{font-size:31px}.phone-layout p{font-size:15px}.phone-layout .ad-brand{background:#c7ad76!important;color:#111}.phone-layout .ad-badge{color:#c7ad76}.phone-layout .ad-cta{color:#c7ad76;cursor:default}.phone-layout .chan-switch button.on{background:#27231c;color:#dcc89e}.phone-layout .phone-caveat{font-size:11px;line-height:1.6}.iphone .bub{font-size:12px}@media(max-width:350px){.iphone{transform:scale(.94);transform-origin:top center;margin-bottom:-34px}.chan-switch{max-width:100%}}.phone-layout .chat{height:auto}.phone-layout .receipt{margin-top:0;margin-right:0}.phone-layout .seq{animation:none}
