*{box-sizing:border-box;margin:0;padding:0}
:root{--wa-dark:#075E54;--wa-mid:#128C7E;--wa-green:#25D366;--wa-wall:#ECE5DD;--out:#DCF8C6;--tick:#34B7F1;--acc:#FF5A1F;--ribbon:24px}
html,body{height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:#0b0b0b;color:#111;-webkit-font-smoothing:antialiased;overflow:hidden}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.ribbon{height:var(--ribbon);background:#000;color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center;gap:6px;letter-spacing:.1px;position:relative;z-index:5;white-space:nowrap}
.ribbon a{color:var(--acc);text-decoration:none;font-weight:600}
.ribbon .dot{width:7px;height:7px;border-radius:50%;background:var(--acc);box-shadow:0 0 0 0 rgba(255,90,31,.7);animation:pulse 1.8s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 7px rgba(255,90,31,0)}100%{box-shadow:0 0 0 0 rgba(255,90,31,0)}}
.switch-m{display:none;margin-left:6px;gap:2px}
.switch-m button{font-size:13px;width:22px;height:20px;border-radius:5px;opacity:.55}
.switch-m button.on{opacity:1;background:#222}
.stage{height:calc(100% - var(--ribbon));display:flex}
.panel{display:none}
/* ---------- phone (mobile = full screen) ---------- */
.phone{flex:1;display:flex;min-width:0}
.notch,.statusbar{display:none}
.screen{flex:1;display:flex;flex-direction:column;min-width:0;background:var(--wa-wall);position:relative;overflow:hidden}
.wa-head{background:var(--wa-dark);color:#fff;display:flex;align-items:center;height:58px;padding:0 4px 0 2px;flex:none;gap:2px;z-index:2;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.ic{width:36px;height:40px;display:grid;place-items:center;border-radius:50%;flex:none}
.ic svg{width:22px;height:22px;fill:#fff}
.ic:active{background:rgba(255,255,255,.12)}
.back{width:26px}
.avatar{width:38px;height:38px;border-radius:50%;flex:none;display:grid;place-items:center;font-weight:700;font-size:14px;color:#fff;background:linear-gradient(135deg,#d4a017,#8a6508);letter-spacing:.5px;border:1.5px solid rgba(255,255,255,.25)}
.who{flex:1;min-width:0;padding-left:8px;line-height:1.2}
.name{font-size:16px;font-weight:600;display:flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden}
.name span{overflow:hidden;text-overflow:ellipsis}
.verified{width:16px;height:16px;flex:none}
.sub{font-size:12.5px;opacity:.85;height:15px;transition:opacity .2s}
.sub.typing{color:#b9f6ca;opacity:1}
.chat{flex:1;overflow-y:auto;overflow-x:hidden;padding:8px 10px 14px;background:var(--wa-wall) url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22180%22%20height%3D%22180%22%20viewBox%3D%220%200%20180%20180%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23d3c9b9%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20opacity%3D%22.55%22%3E%3Cpath%20d%3D%22M20%2030a10%2010%200%201%201%2020%200c0%208-10%2014-10%2014S20%2038%2020%2030z%22/%3E%3Ccircle%20cx%3D%2230%22%20cy%3D%2229%22%20r%3D%223%22/%3E%3Cpath%20d%3D%22M70%2018h22v16H70zM74%2018v-4h14v4%22/%3E%3Cpath%20d%3D%22M130%2022l6%2012%2013%202-9%209%202%2013-12-6-12%206%202-13-9-9%2013-2z%22/%3E%3Cpath%20d%3D%22M18%2090c8-10%2022-10%2030%200M22%2098c6-6%2016-6%2022%200%22/%3E%3Ccircle%20cx%3D%2233%22%20cy%3D%22104%22%20r%3D%222%22/%3E%3Cpath%20d%3D%22M80%2080c0-8%2014-8%2014%200s-14%2018-14%2018-14-10-14-18%2014-8%2014%200%22%20transform%3D%22translate%286%200%29%22/%3E%3Cpath%20d%3D%22M135%2085h22l-3%2020h-16z%20M157%2090h5a4%204%200%200%201%200%208h-6%22/%3E%3Cpath%20d%3D%22M20%20150l10-14%2010%2014z%20M30%20136v-6%22/%3E%3Cpath%20d%3D%22M78%20140a12%2012%200%201%200%2024%200%2012%2012%200%201%200-24%200M84%20140h12M90%20134v12%22/%3E%3Cpath%20d%3D%22M132%20140c4-8%2016-8%2020%200-4%208-16%208-20%200z%22/%3E%3Ccircle%20cx%3D%22142%22%20cy%3D%22140%22%20r%3D%223%22/%3E%3Cpath%20d%3D%22M60%2058l6-6M66%2058l-6-6M112%2060h10M117%2055v10M160%2060a4%204%200%201%200%20.1%200M48%20125a3%203%200%201%200%20.1%200M112%20118l8%204-8%204z%22/%3E%3C/g%3E%3C/svg%3E") repeat;background-size:180px;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
.day{align-self:center;margin:6px auto 8px;display:table;background:#E1F3FB;color:#54656f;font-size:11.5px;padding:5px 12px;border-radius:7px;box-shadow:0 1px .5px rgba(0,0,0,.13);text-transform:uppercase;letter-spacing:.3px}
.sys{margin:0 auto 10px;max-width:88%;background:#FFF5C4;color:#54656f;font-size:12px;line-height:1.4;padding:6px 10px;border-radius:7px;text-align:center;box-shadow:0 1px .5px rgba(0,0,0,.13)}
.row{display:flex;margin:2px 0;animation:pop .28s cubic-bezier(.2,.9,.3,1.25) both}
.row.in{justify-content:flex-start}.row.out{justify-content:flex-end}
.row.first{margin-top:8px}
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.94)}to{opacity:1;transform:none}}
.msg{max-width:82%;min-width:84px;position:relative;padding:6px 8px 7px 9px;border-radius:7.5px;font-size:14.6px;line-height:1.36;box-shadow:0 1px .5px rgba(11,20,26,.13);word-wrap:break-word;overflow-wrap:anywhere;white-space:pre-wrap}
.in .msg{background:#fff;border-top-left-radius:0}
.out .msg{background:var(--out);border-top-right-radius:0}
.row.first.in .msg::before,.row.first.out .msg::before{content:"";position:absolute;top:0;width:8px;height:13px}
.row.first.in .msg::before{left:-8px;background:radial-gradient(circle at 0 100%,transparent 8px,#fff 8.5px)}
.row.first.out .msg::before{right:-8px;background:radial-gradient(circle at 100% 100%,transparent 8px,var(--out) 8.5px)}
.row:not(.first) .msg{border-radius:7.5px}
.meta{float:right;margin:6px 0 -4px 10px;font-size:11px;color:#667781;display:inline-flex;align-items:center;gap:3px;white-space:nowrap;line-height:1}
.tick{width:16px;height:11px;display:inline-block}
.tick path{fill:#8696a0;transition:fill .35s}
.tick.read path{fill:var(--tick)}
.msg b{font-weight:600}
.msg .img{display:block;margin:-3px -5px 6px -6px;border-radius:6px;overflow:hidden;background:#f3ead7;aspect-ratio:1/1;width:calc(100% + 11px)}
.msg .img img{width:100%;height:100%;object-fit:cover;display:block}
.msg .ptitle{font-weight:600;font-size:15px}
.msg .pprice{color:var(--wa-mid);font-weight:700;margin:2px 0}
.msg .pdesc{color:#54656f;font-size:13px}
.reply-ref{display:block;background:rgba(0,0,0,.05);border-left:4px solid var(--wa-mid);border-radius:5px;padding:4px 8px;margin:-2px -4px 5px -5px;font-size:12.5px;color:#54656f;white-space:normal}
.reply-ref b{color:var(--wa-mid);display:block;font-size:12.5px}
/* interactive buttons under a bot message (WhatsApp reply buttons) */
.btns{display:grid;gap:2px;margin-top:2px;max-width:82%;min-width:220px;animation:pop .3s .08s both}
.btns.two{grid-template-columns:1fr 1fr}
.btns button{background:#fff;color:#0084C4;font-size:14.2px;font-weight:500;padding:10px 6px;border-radius:7.5px;box-shadow:0 1px .5px rgba(11,20,26,.13);display:flex;align-items:center;justify-content:center;gap:6px;transition:background .15s,transform .1s}
.btns button:active{background:#f0f2f5;transform:scale(.98)}
.btns button:disabled{color:#8696a0;cursor:default}
.btns button.chosen{color:#8696a0}
.btns svg{width:15px;height:15px;fill:currentColor}
/* catalogue carousel */
.cat{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 6px;margin:2px -10px 2px 0;scroll-snap-type:x mandatory;animation:pop .3s both;scrollbar-width:none}
.cat::-webkit-scrollbar{display:none}
.card{flex:none;width:162px;background:#fff;border-radius:9px;overflow:hidden;box-shadow:0 1px .5px rgba(11,20,26,.13);scroll-snap-align:start;text-align:left;display:flex;flex-direction:column}
.card .ph{aspect-ratio:1/1;background:#f3ead7;display:grid;place-items:center;font-size:56px;overflow:hidden}
.card .ph img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s}
.card:active .ph img{transform:scale(1.04)}
.card .ci{padding:7px 9px 4px;flex:1}
.card .cn,.card .cp{display:block}
.card .cn{font-size:13.4px;font-weight:600;line-height:1.25;color:#111b21}
.card .cp{font-size:13.4px;color:var(--wa-mid);font-weight:700;margin-top:3px}
.card .cv{border-top:1px solid #eef0f1;color:#0084C4;font-size:13.5px;font-weight:500;padding:8px;text-align:center}
.cat-head{font-size:12.5px;color:#54656f;margin:6px 0 0 2px}
/* typing indicator */
.typing .msg{min-width:0;padding:10px 12px}
.dots{display:flex;gap:4px}
.dots i{width:7px;height:7px;border-radius:50%;background:#9aa6ac;animation:bounce 1.2s infinite}
.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}
@keyframes bounce{0%,60%,100%{transform:translateY(0);opacity:.55}30%{transform:translateY(-5px);opacity:1}}
/* composer */
.composer{display:flex;align-items:flex-end;gap:6px;padding:6px 6px 6px;background:transparent;flex:none;z-index:2}
.field{flex:1;display:flex;align-items:center;background:#fff;border-radius:24px;min-height:46px;padding:0 12px 0 10px;gap:8px;box-shadow:0 1px .5px rgba(11,20,26,.13)}
.field svg{width:24px;height:24px;fill:#8696a0;flex:none}
.field input{flex:1;border:0;outline:0;font:inherit;font-size:16px;background:transparent;min-width:0;color:#111b21}
.field:focus-within{box-shadow:0 1px .5px rgba(11,20,26,.13),0 0 0 2px rgba(18,140,126,.25)}
.send{width:46px;height:46px;border-radius:50%;background:var(--wa-mid);display:grid;place-items:center;flex:none;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .12s}
.send:active{transform:scale(.92)}
.send svg{width:21px;height:21px;fill:#fff;margin-left:3px}
.built{text-align:center;font-size:10.5px;color:#54656f;padding:0 0 5px;flex:none;letter-spacing:.2px}
.built b{color:#111}
/* owner toast */
.toast{position:absolute;left:10px;right:10px;top:66px;z-index:6;background:#111;color:#fff;border-radius:14px;padding:11px 13px 12px;font-size:13px;line-height:1.4;box-shadow:0 10px 30px rgba(0,0,0,.35);transform:translateY(-140%);opacity:0;transition:transform .5s cubic-bezier(.2,.9,.3,1.1),opacity .4s;border-left:4px solid var(--acc)}
.toast.show{transform:none;opacity:1}
.toast .th{display:flex;align-items:center;gap:7px;font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:var(--acc);font-weight:700;margin-bottom:3px}
.toast .th i{width:7px;height:7px;border-radius:50%;background:var(--acc)}
.toast .tb b{color:#fff}
.toast .tf{display:flex;gap:6px;margin-top:7px;flex-wrap:wrap}
.toast .tf span{background:#222;border:1px solid #333;border-radius:20px;padding:3px 8px;font-size:11.5px;color:#ddd}
.toast .tf span::before{content:"✓ ";color:var(--wa-green)}
/* ---------- desktop: phone frame + panel ---------- */
@media (min-width:900px){
  body{background:#f4f4f2}
  .stage{align-items:center;justify-content:center;gap:56px;padding:20px}
  .panel{display:flex;flex-direction:column;gap:18px;width:360px;color:#0a0a0a}
  .brand{font-weight:900;letter-spacing:3px;font-size:13px}
  .brand span{color:var(--acc)}
  .panel h1{font-size:34px;line-height:1.08;letter-spacing:-.8px;font-weight:800}
  .panel h1 em{font-style:normal;color:var(--acc)}
  .lead{color:#555;font-size:14.5px;line-height:1.5}
  .benefits{list-style:none;display:grid;gap:10px}
  .benefits li{font-size:14.5px;padding-left:26px;position:relative;color:#333;line-height:1.4}
  .benefits li::before{content:"";position:absolute;left:0;top:3px;width:16px;height:16px;border-radius:50%;background:#0a0a0a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23FF5A1F' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat}
  .benefits b{color:#0a0a0a}
  .switch{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px;color:#555}
  .switch button{border:1.5px solid #0a0a0a;border-radius:20px;padding:5px 11px;font-size:13px;font-weight:600;transition:all .15s}
  .switch button.on,.switch button:hover{background:#0a0a0a;color:#fff}
  .sheet{border:1.5px solid #0a0a0a;border-radius:12px;overflow:hidden;background:#fff;font-size:12.5px}
  .sheet-h{background:#0a0a0a;color:#fff;padding:7px 11px;font-weight:600;display:flex;align-items:center;gap:7px;font-size:12px}
  .gs{width:11px;height:13px;border-radius:2px;background:#0F9D58;display:inline-block}
  .sheet table{width:100%;border-collapse:collapse}
  .sheet th,.sheet td{text-align:left;padding:6px 10px;border-bottom:1px solid #eee}
  .sheet th{color:#777;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.4px}
  .sheet tr.empty td{color:#999;font-style:italic}
  .sheet tr.new{animation:flash 1.6s}
  @keyframes flash{0%{background:#FFE3D6}100%{background:#fff}}
  .cta{border-top:1.5px solid #0a0a0a;padding-top:16px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
  .cta p{font-weight:800;font-size:17px}
  .btn{background:var(--acc);color:#fff;text-decoration:none;font-weight:700;padding:10px 18px;border-radius:30px;font-size:14px}
  .btn:hover{background:#e84a12}
  .mail{color:#0a0a0a;font-size:13.5px}
  .phone{flex:none;width:384px;height:min(800px,calc(100vh - 64px));border-radius:52px;background:#111;padding:12px;box-shadow:0 0 0 2px #2a2a2a,0 30px 70px rgba(0,0,0,.28),inset 0 0 0 2px #333;position:relative;display:flex}
  .notch{display:block;position:absolute;top:22px;left:50%;transform:translateX(-50%);width:96px;height:28px;background:#000;border-radius:20px;z-index:9}
  .screen{border-radius:40px}
  .statusbar{display:flex;justify-content:space-between;align-items:center;height:44px;padding:4px 28px 0 34px;background:var(--wa-dark);color:#fff;font-size:14px;font-weight:600;flex:none}
  .sb-icons{display:flex;gap:5px;align-items:center}
  .sb-icons i{display:block;background:#fff;border-radius:2px}
  .sig{width:16px;height:10px;clip-path:polygon(0 100%,100% 0,100% 100%)}
  .wifi{width:14px;height:10px;border-radius:10px 10px 2px 2px!important;clip-path:polygon(50% 100%,0 20%,100% 20%)}
  .bat{width:23px;height:11px;border-radius:3px!important;box-shadow:inset 0 0 0 1.5px #fff;background:linear-gradient(90deg,#fff 70%,transparent 70%)!important;border:2px solid var(--wa-dark)}
  .built{padding-bottom:12px}
  .toast{top:108px}
  .wa-head .ic{width:34px}
  .wa-head .back{width:26px}
  .name{font-size:16px}
  .switch-m{display:none!important}
}
@media (max-width:899px){.switch-m{display:inline-flex}}
@media (max-width:360px){.ribbon{font-size:11px}.msg{font-size:14px}}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
