/* =========================================================
   AdsLogic — PHONE + CHAT
   iPhone-style device (Dynamic Island, titanium frame) with a
   WhatsApp-style chat theme (green + white, no WhatsApp logo).
   Also: floating site chatbot widget + WhatsApp button.
   ========================================================= */

/* ============ FAQ layouts ============ */
.faqx{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:64px;align-items:start}
.faqx>*{min-width:0}
.fq-cats{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.search{position:relative;margin-bottom:20px}
.search svg{position:absolute;left:18px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:var(--muted)}
.search input{padding-left:50px;height:56px;border-radius:999px}
.fq-list{display:grid;gap:10px}
.fq-item{display:flex;justify-content:space-between;align-items:center;gap:16px;text-align:left;width:100%;background:#fff;border:1.5px solid var(--line);border-radius:var(--r-md);padding:16px 20px;font-weight:700;font-size:1rem;transition:transform .35s var(--ease),border-color .25s,background .25s,color .25s}
.fq-item .cat{display:block;font-size:.74rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--brand-deep);margin-bottom:3px}
.fq-item svg{width:34px;height:34px;padding:8px;border-radius:50%;flex:none;background:var(--paper);color:var(--ink);transition:transform .35s var(--ease),background .25s,color .25s}
.fq-item:hover{border-color:var(--black);background:var(--black);color:#fff;transform:translateX(6px)}
.fq-item:hover .cat{color:var(--brand-2)}
.fq-item:hover svg{background:var(--brand);color:var(--black)}
.fq-item[hidden]{display:none}
.phone-col{position:sticky;top:calc(var(--head-h) + 30px)}

/* home FAQ teaser (dark section) */
.hfaq{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:72px;align-items:center}
.hfaq>*{min-width:0}
.hfaq .lead{margin:18px 0 28px}
.hfaq-list{display:grid;gap:10px;margin-bottom:28px}
.hfaq-list button{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;text-align:left;background:var(--black-2);border:1px solid var(--black-4);color:#fff;border-radius:16px;padding:15px 18px;font-weight:700;font-size:.98rem;transition:border-color .25s,transform .35s var(--ease),background .25s}
.hfaq-list button:hover{border-color:#25D366;background:var(--black-3);transform:translateX(6px)}
.hfaq-list button svg{flex:none;width:32px;height:32px;padding:7px;border-radius:50%;background:#00A884;color:#fff}
.hfaq-feat{display:flex;flex-wrap:wrap;gap:10px 24px;color:var(--on-dark-2);font-size:.92rem;font-weight:600}
.hfaq-feat span{display:inline-flex;align-items:center;gap:8px}
.hfaq-feat svg{width:18px;height:18px;color:#25D366}

/* ============ iPhone (fixed design size, scaled as a whole by JS) ============
   The phone is always drawn at real size (360 × 742) and then shrunk with
   CSS zoom to fit the screen, so it keeps true phone proportions. */
.phone-wrap{position:relative;display:flex;justify-content:center}
.phone-glow{position:absolute;inset:-30px;z-index:-1;background:radial-gradient(circle at 50% 45%,rgba(37,211,102,.22),transparent 62%);pointer-events:none}
.iphone{position:relative;flex:none;width:360px;padding:11px;border-radius:60px;font-size:14px;line-height:1.35;
  background:linear-gradient(150deg,#5B5B62 0%,#2A2A2E 18%,#121214 50%,#2C2C31 82%,#6A6A72 100%);
  box-shadow:inset 0 0 0 1.5px #7D7D85,inset 0 0 0 4px #1A1A1D,0 0 0 1px #000,0 50px 90px -40px rgba(0,0,0,.7),0 30px 60px -30px rgba(37,211,102,.25)}
.iphone .hw{position:absolute;width:4px;border-radius:2px;background:linear-gradient(90deg,#3A3A40,#6E6E76)}
.iphone .hw.act{left:-3px;top:120px;height:30px}
.iphone .hw.v1{left:-3px;top:172px;height:58px}
.iphone .hw.v2{left:-3px;top:242px;height:58px}
.iphone .hw.pw{right:-3px;top:196px;height:92px;background:linear-gradient(270deg,#3A3A40,#6E6E76)}
.iphone-screen{position:relative;height:720px;border-radius:49px;overflow:hidden;display:flex;flex-direction:column;background:#EFEAE2;isolation:isolate;font-family:-apple-system,"SF Pro Text","Segoe UI",Roboto,var(--font);-webkit-font-smoothing:antialiased}
.island{position:absolute;top:11px;left:50%;width:110px;height:32px;margin-left:-55px;border-radius:20px;background:#000;z-index:10;display:flex;align-items:center;justify-content:flex-end;padding-right:12px}
.island i{width:10px;height:10px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#2B3A55,#0A0F1A 70%)}

/* status bar + WhatsApp-style header (green) */
.sbar{display:flex;justify-content:space-between;align-items:center;height:50px;padding:6px 28px 0 36px;background:#008069;color:#fff;font-weight:600;font-size:15px;letter-spacing:-.01em;flex:none}
.sbar .ri{display:flex;gap:5px;align-items:center}
.sbar svg{height:11px;width:auto;display:block}
.wa-top{display:flex;align-items:center;gap:8px;height:58px;padding:0 10px 4px 6px;background:#008069;color:#fff;flex:none}
.wa-top .back{display:flex;align-items:center;color:#fff}
.wa-top .back svg{width:24px;height:24px}
.wa-top .av{width:38px;height:38px;border-radius:50%;background:#fff;display:grid;place-items:center;flex:none;overflow:hidden}
.wa-top .av img{width:28px;height:auto}
.wa-top .who{min-width:0;flex:1;line-height:1.2}
.wa-top b{display:flex;align-items:center;gap:4px;font-size:16px;font-weight:600;white-space:nowrap}
.wa-top b svg{width:15px;height:15px;flex:none}
.wa-top small{display:block;font-size:12.5px;opacity:.85;margin-top:1px}
.wa-top .acts{display:flex;align-items:center;gap:18px;color:#fff}
.wa-top .acts svg{width:21px;height:21px;display:block}

/* chat area with doodle wallpaper */
.wa-log{flex:1;overflow-y:auto;padding:10px 12px 8px;display:flex;flex-direction:column;gap:3px;scroll-behavior:smooth;overscroll-behavior:contain;background-color:#EFEAE2;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.055' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='20' cy='22' r='7'/%3E%3Cpath d='M70 14l6 6 10-12'/%3E%3Cpath d='M100 40h12M106 34v12'/%3E%3Crect x='12' y='70' width='16' height='12' rx='3'/%3E%3Cpath d='M58 66c4-6 12-6 16 0'/%3E%3Cpath d='M92 88l8 8M100 88l-8 8'/%3E%3Cpath d='M40 104c3 3 7 3 10 0'/%3E%3Ccircle cx='76' cy='108' r='3'/%3E%3Cpath d='M44 40l4-8 4 8z'/%3E%3C/g%3E%3C/svg%3E")}
.wa-log::-webkit-scrollbar{width:0}
.wa-day{align-self:center;background:#fff;color:#54656F;font-size:12px;font-weight:500;padding:5px 12px;border-radius:8px;margin:4px 0 8px;box-shadow:0 1px .5px rgba(11,20,26,.13)}
.wa-sys{align-self:center;max-width:90%;background:#FFEECD;color:#54656F;font-size:12px;line-height:1.4;padding:6px 10px;border-radius:8px;text-align:center;margin-bottom:8px;box-shadow:0 1px .5px rgba(11,20,26,.13)}
.wa-sys svg{width:11px;height:11px;vertical-align:-1px;margin-right:3px}

/* message bubbles (WhatsApp style: tail, time, ticks) */
.wm{position:relative;max-width:80%;padding:6px 9px 8px;border-radius:8px;font-size:14.2px;line-height:19px;color:#111B21;box-shadow:0 1px .5px rgba(11,20,26,.13);animation:cmin .25s var(--ease);margin-top:2px;word-wrap:break-word}
.wm.in{align-self:flex-start;background:#fff}
.wm.out{align-self:flex-end;background:#D9FDD3}
.wm.first{margin-top:8px}
.wm.in.first{border-top-left-radius:0}
.wm.out.first{border-top-right-radius:0}
.wm.in.first::before,.wm.out.first::before{content:"";position:absolute;top:0;width:8px;height:13px}
.wm.in.first::before{left:-8px;background:#fff;clip-path:polygon(0 0,100% 0,100% 100%)}
.wm.out.first::before{right:-8px;background:#D9FDD3;clip-path:polygon(0 0,100% 0,0 100%)}
.wm .nm{display:block;font-size:12.8px;font-weight:600;color:#008069;margin-bottom:1px}
.wm p{margin:0}
.wm p+p{margin-top:5px}
/* time sits at the bottom-right; an invisible spacer keeps text from running under it (WhatsApp trick) */
.wm .spc{display:inline-block;height:1px;vertical-align:bottom}
.wm .spc.in{width:44px}.wm .spc.out{width:62px}
.wm .tm{position:absolute;right:8px;bottom:4px;font-size:11px;line-height:15px;color:#667781;display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.wm .tm svg{width:16px;height:11px;color:#8696A0}
.wm .tm.read svg{color:#53BDEB}
.wm p{position:relative}
.wm p .tm{right:-1px;bottom:-4px}
.wm.typing-b{padding:10px 14px}
.wm .typing i{width:7px;height:7px}
/* link button inside a bubble (WhatsApp "CTA" style) */
.wm .wlinks{display:block;margin:8px -9px -8px;border-top:1px solid #E9EDEF;clear:both}
.wm .wlinks a{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 6px;color:#027EB5;font-weight:500;font-size:14px;text-decoration:none}
.wm .wlinks a+a{border-top:1px solid #E9EDEF}
.wm .wlinks a svg{width:15px;height:15px}
.wm .wlinks a:hover{background:#F5F6F6}
/* quick reply buttons under a bot message (WhatsApp Business style) */
.wbtns{align-self:flex-start;display:grid;gap:3px;width:80%;margin-top:3px;animation:cmin .3s var(--ease)}
.wbtns button,.wbtns a{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:38px;padding:8px 10px;border:0;border-radius:8px;background:#fff;color:#027EB5;font:500 14px/1.3 -apple-system,"Segoe UI",Roboto,sans-serif;text-align:center;text-decoration:none;box-shadow:0 1px .5px rgba(11,20,26,.13);cursor:pointer;transition:background .15s}
.wbtns button:hover,.wbtns a:hover{background:#F5F6F6}
.wbtns svg{width:15px;height:15px;flex:none}

/* composer */
.wa-in{display:flex;gap:6px;align-items:flex-end;padding:6px 8px 8px;flex:none;background:transparent}
.wa-field{flex:1;min-width:0;display:flex;align-items:center;gap:8px;background:#fff;border-radius:24px;padding:0 12px;min-height:46px;box-shadow:0 1px .5px rgba(11,20,26,.13)}
.wa-field svg{width:22px;height:22px;color:#8696A0;flex:none}
.wa-field input{flex:1;min-width:0;border:0;min-height:44px;padding:0;border-radius:0;background:transparent;font:400 15px/1.3 -apple-system,"Segoe UI",Roboto,sans-serif;color:#111B21;box-shadow:none}
.wa-field input::placeholder{color:#8696A0}
.wa-field input:focus{box-shadow:none;outline:none}
.wa-send{flex:none;width:46px;height:46px;border-radius:50%;border:0;background:#00A884;color:#fff;display:grid;place-items:center;transition:transform .15s,background .2s}
.wa-send:hover{background:#008069}
.wa-send:active{transform:scale(.94)}
.wa-send svg{width:21px;height:21px}
.wa-send .s{display:none}
.wa-in.has-text .wa-send .m{display:none}
.wa-in.has-text .wa-send .s{display:block}
.home-ind{flex:none;height:20px;display:grid;place-items:center}
.home-ind i{width:128px;height:5px;border-radius:3px;background:#111}

/* ============ floating buttons ============ */
.fab{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:100;display:flex;flex-direction:column;gap:12px;align-items:flex-end;transition:opacity .25s,transform .25s}
.fab .f-wa,.fab .f-chat{position:relative;display:grid;place-items:center;border-radius:50%;border:0;text-decoration:none;box-shadow:0 16px 34px -12px rgba(0,0,0,.5);transition:transform .3s var(--ease),background .3s}
.fab .f-wa{width:52px;height:52px;background:#16A34A;color:#fff}
.fab .f-wa svg{width:25px;height:25px}
.fab .f-chat{width:60px;height:60px;background:#181818;color:var(--brand)}
.fab .f-chat svg{width:27px;height:27px}
.fab .f-chat .x{display:none}
.fab.open .f-chat{background:var(--brand);color:var(--black)}
.fab.open .f-chat .o{display:none}.fab.open .f-chat .x{display:block}
.fab .f-wa:hover,.fab .f-chat:hover{transform:translateY(-3px) scale(1.05)}
@media (prefers-reduced-motion:no-preference){.fab:not(.open) .f-chat::after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid var(--brand);animation:ripple 2.6s ease-out infinite}}
.fab .badge{position:absolute;top:-2px;right:-2px;width:18px;height:18px;border-radius:50%;background:var(--brand);color:var(--black);font-size:.7rem;font-weight:800;display:grid;place-items:center;border:2px solid #fff}
.fab.open .badge,.fab.seen .badge{display:none}
.fab .hint{position:absolute;right:74px;bottom:12px;white-space:nowrap;background:#fff;color:var(--ink);font-weight:700;font-size:.88rem;padding:10px 14px;border-radius:14px 14px 4px 14px;box-shadow:var(--shadow);animation:cmin .4s var(--ease)}
.fab .hint button{border:0;background:none;color:var(--muted);margin-left:6px;padding:0 2px}
.fab.open .hint,.fab.seen .hint{display:none}
/* hide floating buttons while an FAQ phone's message box is on screen */
body.phone-view .fab:not(.open){opacity:0;transform:translateY(12px);pointer-events:none}

/* ============ chatbot window: tall, phone-shaped, messenger-style ============ */
.cw{position:fixed;right:24px;bottom:calc(96px + env(safe-area-inset-bottom,0px));z-index:110;width:380px;height:min(700px,calc(100vh - 120px));height:min(700px,calc(100dvh - 120px));background:#fff;border-radius:32px;box-shadow:0 50px 100px -30px rgba(0,0,0,.55),0 0 0 1px rgba(10,10,11,.08);display:none;flex-direction:column;overflow:hidden;transform-origin:bottom right;font-family:var(--font)}
.cw.open{display:flex;animation:cwin .35s var(--ease)}
@keyframes cwin{from{opacity:0;transform:translateY(18px) scale(.96)}}
.cw-head{display:flex;align-items:center;gap:11px;padding:16px 14px 14px 16px;background:#181818;color:#fff;position:relative;flex:none}
.cw-head::before{content:"";position:absolute;top:7px;left:50%;width:44px;height:4px;margin-left:-22px;border-radius:3px;background:rgba(255,255,255,.18)}
.cw-head .av{position:relative;width:42px;height:42px;border-radius:50%;background:#262626;display:grid;place-items:center;flex:none}
.cw-head .av img{width:28px;height:auto}
.cw-head .av::after{content:"";position:absolute;right:0;bottom:0;width:11px;height:11px;border-radius:50%;background:#22C55E;border:2px solid #181818}
.cw-head b{display:block;font-size:15.5px;line-height:1.2}
.cw-head small{display:block;font-size:12px;color:rgba(255,255,255,.62);margin-top:2px}
.cw-head .x{margin-left:auto;width:36px;height:36px;border-radius:50%;border:0;background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center}
.cw-head .x:hover{background:rgba(255,255,255,.16)}
.cw-head .x svg{width:17px;height:17px}
.cw-log{flex:1;overflow-y:auto;padding:14px 14px 8px;display:flex;flex-direction:column;gap:3px;background:#F3F3F5;overscroll-behavior:contain}
.cw-log::-webkit-scrollbar{width:0}
.cw-day{align-self:center;font-size:11.5px;font-weight:600;color:#8A8A93;margin:2px 0 10px}
.cm2{display:flex;align-items:flex-end;gap:7px;max-width:84%;margin-top:2px;animation:cmin .25s var(--ease)}
.cm2.first{margin-top:10px}
.cm2.me{align-self:flex-end;flex-direction:row-reverse}
.cm2 .ava{width:26px;height:26px;border-radius:50%;background:#181818;display:grid;place-items:center;flex:none;visibility:hidden}
.cm2 .ava img{width:17px}
.cm2.last .ava{visibility:visible}
.cm2.me .ava{display:none}
.cm2 .b{position:relative;padding:9px 12px;border-radius:18px;font-size:14.5px;line-height:1.42;background:#fff;color:#18181B;box-shadow:0 1px 1px rgba(0,0,0,.06)}
.cm2.bot.last .b{border-bottom-left-radius:5px}
.cm2.me .b{background:#181818;color:#fff}
.cm2.me.last .b{border-bottom-right-radius:5px}
.cm2 .b p+p{margin-top:6px}
.cm2 .t{display:block;font-size:10.5px;margin-top:3px;color:#9A9AA3;text-align:right}
.cm2.me .t{color:rgba(255,255,255,.55)}
.cm2 .ml{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.cm2 .ml a{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;text-decoration:none;color:#18181B;background:#F3F3F5;border-radius:999px;padding:7px 11px;transition:background .2s,color .2s}
.cm2 .ml a:hover{background:#181818;color:#fff}
.cm2 .ml a.wa{background:#DCFCE7;color:#15803D}
.cm2 .ml a.wa:hover{background:#16A34A;color:#fff}
.cm2 .ml a svg{width:14px;height:14px}
.cw-chips{display:flex;gap:7px;overflow-x:auto;padding:8px 12px;scrollbar-width:none;flex:none;background:#F3F3F5}
.cw-chips::-webkit-scrollbar{display:none}
.cw-chips:empty{display:none}
.cw-chips button{flex:none;border:1.5px solid var(--brand);background:#fff;color:#18181B;border-radius:999px;padding:7px 12px;font-weight:700;font-size:12.5px;white-space:nowrap;transition:background .2s}
.cw-chips button:hover{background:var(--brand)}
.cw-in{display:flex;gap:8px;align-items:center;padding:10px 12px 8px;background:#fff;border-top:1px solid #EDEDF0;flex:none}
.cw-in input{flex:1;min-width:0;border:0;border-radius:999px;min-height:44px;background:#F3F3F5;padding:0 16px;font-size:15px}
.cw-in input:focus{box-shadow:0 0 0 2px rgba(247,90,12,.35)}
.cw-in button{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:var(--brand);color:#181818;display:grid;place-items:center;transition:background .2s,color .2s}
.cw-in button:hover{background:#181818;color:#fff}
.cw-in button svg{width:19px;height:19px}
.cw-foot{padding:0 14px 10px;font-size:11px;color:#9A9AA3;text-align:center;flex:none;background:#fff}
.fab.open .f-wa{display:none}
