/* Hero channel switch (WhatsApp | SMS | AI voice call). Markup: lib/channels.mjs, behaviour: extra/js/channels.js. Light only. */
.hx [hidden] { display: none !important; }

/* switch: three pills in a rounded track */
.hx-ch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 26px; background: #eef3f7; border: 1px solid #e0e8ef; }
.hx-chb { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border: 0; border-radius: 9999px; background: transparent; color: #4a5a6d; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.hx-chb:hover { color: #0f1b2d; }
.hx-chb[aria-selected="true"] { background: #fff; color: #0b7a5f; box-shadow: 0 1px 2px rgb(16 24 40 / .08), 0 6px 14px -8px rgb(10 127 105 / .5); }
.hx-chb svg { flex: none; }

/* pane wrapper: same footprint as the WhatsApp phone, with the flow steps underneath */
.hx .x-phone-wrap.ch-wrap { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; filter: none; }
.hx .ch-phone { width: min(214px, 68%); --wa-w: 100%; filter: drop-shadow(0 30px 28px rgb(11 18 32 / .2)); }
@media (min-width: 1700px) { .hx .ch-phone { width: min(232px, 68%); } }
.ch-screen { background: #fff; }

/* flow steps */
.ch-flow { list-style: none; margin: 0; padding: 0 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; counter-reset: fs; }
.ch-flow li { counter-increment: fs; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 9999px; background: #f1f5f9; color: #6b7a8c; font-size: .72rem; font-weight: 700; transition: background .3s, color .3s; }
.ch-flow li::before { content: counter(fs); display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #dbe3ec; color: #fff; font-size: .62rem; transition: background .3s; }
.ch-flow li.is-on { background: #e5f6f1; color: #086c58; }
.ch-flow li.is-on::before { background: #0b7a5f; }

/* ---------- SMS (iOS Messages, green = SMS) ---------- */
.sm { display: flex; flex-direction: column; }
.sm-head { display: flex; align-items: center; gap: 8px; padding: 4px 10px 8px; background: #f7f7f7; border-bottom: .5px solid #d8d8d8; }
.sm-back { color: #007aff; display: grid; }
[dir="rtl"] .sm-back svg { transform: scaleX(-1); }
.sm-av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: #e6f3ef; display: grid; place-items: center; flex: none; }
.sm-av img, .sm-av svg { width: 30px; height: 30px; object-fit: cover; }
.sm-who { min-width: 0; line-height: 1.2; }
.sm-who b { display: block; font-size: 13px; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-who small { font-size: 10.5px; color: #8e8e93; }
.sm-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 5px; padding: 8px 9px; overflow-y: auto; scrollbar-width: none; background: #fff; }
.sm-chat::-webkit-scrollbar { display: none; }
.sm-chip { align-self: center; font-size: 10px; color: #8e8e93; margin: 2px 0 4px; }
.sm-b { max-width: 84%; padding: 7px 11px; border-radius: 17px; font-size: 11.6px; line-height: 1.4; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .3s, transform .3s; }
.sm-b p { margin: 0; overflow-wrap: anywhere; }
.sm-b.is-on { opacity: 1; transform: none; }
.sm-in { align-self: flex-start; background: #e9e9eb; color: #000; border-end-start-radius: 5px; }
.sm-out { align-self: flex-end; background: #34c759; color: #fff; border-end-end-radius: 5px; font-weight: 600; }
.sm-dl { align-self: flex-end; margin: -2px 4px 2px; font-size: 9.5px; color: #8e8e93; opacity: 0; transition: opacity .3s .15s; }
.sm-dl.is-on { opacity: 1; }
.sm-typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; border-radius: 16px; background: #e9e9eb; }
.sm-typing i { width: 6px; height: 6px; border-radius: 50%; background: #a0a0a6; animation: ch-dot 1.1s infinite ease-in-out; }
.sm-typing i:nth-child(2) { animation-delay: .15s; } .sm-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ch-dot { 0%, 70%, 100% { transform: translateY(0); opacity: .5; } 35% { transform: translateY(-3px); opacity: 1; } }
.sm-foot { display: flex; align-items: center; gap: 8px; padding: 6px 8px 2px; background: #fff; color: #8e8e93; }
.sm-plus { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f1f1f3; flex: none; }
.sm-plus svg { width: 16px; height: 16px; }
.sm-input { flex: 1; height: 28px; display: flex; align-items: center; padding: 0 12px; border-radius: 16px; border: .5px solid #cfcfd4; font-size: 11.5px; color: #a0a0a6; }

/* ---------- Voice call (AI) — light call screen ---------- */
.iv { background: linear-gradient(180deg, #e8f7f2 0%, #eef3ff 100%); }
.iv-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12px 10px 4px; text-align: center; }
.iv-av { position: relative; width: 62px; height: 62px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px -10px rgb(10 127 105 / .6); }
.iv-av img, .iv-av svg { width: 44px; height: 44px; object-fit: contain; }
.iv-ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgb(10 127 105 / .35); opacity: 0; }
.iv.is-ring .iv-ring, .iv.is-talk .iv-ring { opacity: 1; animation: ch-ring 1.4s infinite ease-out; }
@keyframes ch-ring { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.iv-name { font-size: 16px; color: #0f1b2d; margin-top: 2px; }
.iv-sub { font-size: 12px; color: #5b6778; font-variant-numeric: tabular-nums; margin-top: -2px; }
.iv-wave { display: flex; align-items: center; justify-content: center; gap: 2.5px; height: 26px; }
.iv-wave i { width: 3px; border-radius: 9px; background: #0b7a5f; height: calc(var(--h) * 22px); transform: scaleY(.25); transition: transform .3s; opacity: .55; }
.iv.is-talk .iv-wave i { opacity: 1; animation: ch-wave .9s infinite ease-in-out; animation-delay: calc(var(--i) * -60ms); }
@keyframes ch-wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.iv-say { margin: 0; min-height: 64px; width: 100%; padding: 8px 10px; border-radius: 14px; background: rgb(255 255 255 / .85); box-shadow: 0 1px 2px rgb(16 24 40 / .06); font-size: 11.5px; line-height: 1.45; color: #1f2a3b; display: grid; place-items: center; }
.iv-say:empty { opacity: .55; }
.iv-say.is-swap { animation: ch-in .35s ease both; }
@keyframes ch-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.iv-keys { display: flex; gap: 8px; }
.iv-key { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 9999px; background: #fff; border: 1px solid #dde5ee; font-size: 10.5px; color: #4a5a6d; transition: background .25s, color .25s, border-color .25s; }
.iv-key b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #eef2f6; color: #0f1b2d; font-size: 11px; }
.iv-key.is-press { background: #0b7a5f; border-color: #0b7a5f; color: #fff; } .iv-key.is-press b { background: #fff; color: #0b7a5f; }
.iv-act { display: flex; gap: 12px; }
.iv-btn { display: grid; justify-items: center; gap: 2px; color: #5b6778; }
.iv-btn svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / .08); }
.iv-btn small { font-size: 9px; }
.iv-end { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #ff3b30; box-shadow: 0 10px 18px -8px rgb(255 59 48 / .7); margin-bottom: 2px; transition: transform .3s, filter .3s; }
.iv-end.is-hang { transform: scale(.88); filter: grayscale(.6) opacity(.6); }
.iv.is-done .iv-sub { color: #d92d20; }

@media (prefers-reduced-motion: reduce) {
  .iv-ring, .iv-wave i, .sm-typing i, .iv-say.is-swap { animation: none !important; }
  .sm-b, .sm-dl { transition: none; }
}

/* =====================================================================================================================
   Phone box, rebuilt (2026-10-21): one clean white card, a soft glow behind a slim silver phone, light controls.
   No inner divider lines, no grey bottom band, no heavy blue frame.
   ===================================================================================================================== */
html .hx .x-stage.hx-card { max-width: 400px; border-radius: 32px; background: #fff !important; border: 1px solid #e7edf3 !important; overflow: visible;
  box-shadow: 0 1px 2px rgb(16 24 40 / .04), 0 40px 80px -44px rgb(16 24 40 / .28) !important; }
html .hx .hx-card-top { padding: 16px 16px 4px; border: 0; background: none; border-radius: 32px 32px 0 0; }
html .hx .hx-card-bot { padding: 4px 20px 20px; border: 0; background: none; border-radius: 0 0 32px 32px; }
html .hx .x-stage-body { padding: 14px 0 6px; background: radial-gradient(60% 44% at 50% 46%, rgb(18 168 138 / .13), transparent 72%); }
html .hx .x-phone-wrap { width: min(244px, 74%); filter: none; }
html .hx .x-phone-wrap.ch-wrap { width: 100%; }
html .hx .ch-phone { width: min(244px, 74%); filter: none; }

/* slim silver frame, thin black bezel */
html .hx .wa-phone.ph-iphone, html .hx .wa-phone.ph-iphone.ph-blue {
  border-radius: 44px; padding: 6px; background: linear-gradient(150deg, #f6f8fb 0%, #c9d1dc 48%, #eef2f6 100%);
  box-shadow: 0 0 0 1px #b4bcc8, 0 34px 50px -26px rgb(16 24 40 / .5), 0 14px 20px -14px rgb(16 24 40 / .25), inset 0 0 0 1.5px rgb(255 255 255 / .85);
}
html .hx .wa-phone.ph-iphone .wa-screen { border-radius: 38px; border: 3px solid #0e1218; }
html .hx .wa-phone.ph-iphone .wa-side { background: linear-gradient(90deg, #aeb6c2, #dfe4eb); }
html .hx .wa-phone.ph-iphone .wa-island { width: 62px; height: 18px; top: 8px; }

/* one scene-chip style for all three channels */
.hx-sc { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hx-scb { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9999px; border: 1px solid #dfe7ee; background: #fff; color: #3d4c60; font: inherit; font-size: .76rem; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.hx-scb svg { color: #0b7a5f; flex: none; }
.hx-scb:hover { border-color: #9fd6c6; transform: translateY(-1px); }
.hx-scb[aria-selected="true"] { background: linear-gradient(180deg, #12a88a, #0b7a5f); border-color: #0b7a5f; color: #fff; box-shadow: 0 8px 16px -10px rgb(10 127 105 / .85); }
.hx-scb[aria-selected="true"] svg { color: #fff; }
html .hx .x-tabs { gap: 6px; }
html .hx .x-tab { height: 34px; border-radius: 9999px; padding: 0 12px; font-size: .76rem; }

.hx-cap { font-size: .95rem; }
.ch-flow { padding: 0 6px; }

/* Chat-style channels in the hero phones (row 100 and the new-service rule): the same thread, each with its own colours. */
.sm-email .sm-in { background: #eef1ff; }
.sm-email .sm-out { background: #2f6bff; }
.sm-email .sm-chip { font-weight: 700; color: #2f6bff; max-width: 90%; text-align: center; }
.sm-messenger .sm-out { background: linear-gradient(135deg, #0099ff, #a033ff); }
.sm-instagram .sm-out { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.sm-telegram .sm-out { background: #2aabee; }
.sm-telegram .sm-in { background: #f1f3f4; }
