/* Omnichannel simulator (hero). The frame follows the site theme;
   the phone keeps each app's own look, as it would on a real phone. */

.sim { --glow: rgba(0, 108, 182, 0.35); font-size: 13px; line-height: 1.5; }
.sim :lang(bn):not(.material-symbols-outlined) { font-family: "Noto Sans Bengali", var(--font); }

/* Channel colours, shared by story cards, orbit bubbles and the rail */
.oc-ivr { --c: #0A84FF; }
.oc-alert { --c: #34C759; }
.oc-bot { --c: #6366F1; }
.oc-agent { --c: #006CB6; }
.oc-vivr { --c: #F97316; }
.oc-chat { --c: #0EA5A4; }
.oc-wa { --c: #25D366; }
.oc-fb { --c: #1877F2; }
.oc-msgr { --c: #A033FF; }

/* ---------- Hero layout ---------- */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 500px;
  grid-template-areas: "copy stage";
  column-gap: clamp(32px, 4.5vw, 72px); row-gap: 32px; align-items: center;
  padding-top: 8px;
}
.hero-copy { grid-area: copy; align-self: center; }
.hero-stage { grid-area: stage; }
.hero-grid h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; }
.hero-grid .lead { margin-top: 16px; max-width: 44ch; }

/* Left column: headline and value cards */
/* Value cards: each one starts its feature on the phone */
.hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; max-width: 580px; }
.hp {
  --hp: #006CB6; position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; gap: 8px 11px;
  align-content: start; padding: 13px 14px 12px; border-radius: 16px; text-align: left; color: var(--ink); cursor: pointer;
  background: color-mix(in srgb, var(--hp) 5%, var(--surface)); border: 1px solid color-mix(in srgb, var(--hp) 14%, var(--border));
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background-color .25s;
}
.hp:hover, .hp:focus-visible { transform: translateY(-2px); border-color: color-mix(in srgb, var(--hp) 45%, var(--border)); box-shadow: 0 14px 26px -18px color-mix(in srgb, var(--hp) 80%, transparent); }
.hp:active { transform: scale(.98); }
.hp-1 { --hp: #006CB6; } .hp-2 { --hp: #0E9F9A; } .hp-3 { --hp: #4F46E5; } .hp-4 { --hp: #2E8FD6; }
.hp-ic { width: 34px !important; height: 34px !important; display: grid !important; place-items: center; border-radius: 11px; font-size: 19px !important; color: var(--hp); background: color-mix(in srgb, var(--hp) 13%, var(--surface)); transition: background-color .25s, color .25s; }
.hp:hover .hp-ic, .hp.is-on .hp-ic { background: var(--hp); color: #FFFFFF; }
.hp-txt { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.hp-txt strong { font-size: 13.5px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.hp-go {
  grid-column: 2; justify-self: start; display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px 3px 6px; border-radius: var(--r-full);
  background: color-mix(in srgb, var(--hp) 11%, var(--surface)); color: var(--hp); font-size: 11.5px; font-weight: 700; transition: background-color .25s, color .25s;
}
.hp-go .material-symbols-outlined { font-size: 16px; transition: transform .25s var(--ease); }
.hp:hover .hp-go { background: var(--hp); color: #FFFFFF; }
.hp-4[aria-expanded="true"] .hp-go .material-symbols-outlined { transform: rotate(180deg); }
/* Running now: the card glows and says so */
.hp-live { display: none; position: absolute; right: 10px; top: 10px; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--hp); }
.hp-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hp); animation: nowPulse 1.6s infinite; --c: var(--hp); }
.hp.is-on { border-color: var(--hp); background: color-mix(in srgb, var(--hp) 9%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hp) 16%, transparent); }
.hp.is-on .hp-live { display: inline-flex; }
.hp.is-on .hp-txt strong { padding-right: 104px; }
/* Connectors drawer */
.hp-logos { grid-column: 1 / -1; display: none; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 4px; }
.hp-4[aria-expanded="true"] .hp-logos { display: flex; animation: scrIn .3s var(--ease); }
.hp-logos img { height: 20px; width: auto; filter: grayscale(1); opacity: .7; }
.hp-4:hover .hp-logos img { filter: none; opacity: 1; }
:root[data-theme="dark"] .hp-logos img { height: 26px; padding: 3px 7px; border-radius: 7px; background: var(--plate-bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hp-logos img { height: 26px; padding: 3px 7px; border-radius: 7px; background: var(--plate-bg); } }

/* "Try it" nudge under the lead */
.try-hint {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; padding: 8px 14px 8px 12px;
  border-radius: var(--r-full); background: var(--subtle); color: var(--ink-2); font-size: 13px; font-weight: 600;
}
.try-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok-dot); box-shadow: 0 0 0 0 rgba(16, 185, 129, .5); animation: tryPulse 1.8s infinite; }
@keyframes tryPulse { 70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.try-arrow { font-size: 17px; color: var(--primary); animation: nudgeX 1.4s ease-in-out infinite; }
@keyframes nudgeX { 50% { transform: translateX(4px); } }
.sim[data-mode="play"] .try-hint { opacity: .55; }

/* ---------- Stage: control dock, channel orbit, phone ---------- */
.hero-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dock {
  display: flex; align-items: center; gap: 6px; padding: 5px;
  border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-1);
}
/* Segmented switch with a sliding thumb */
.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: var(--r-full); background: var(--subtle); }
.seg::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: var(--r-full); background: var(--ink); box-shadow: 0 2px 6px rgba(15, 27, 52, .18);
  transition: transform .35s var(--ease), background-color .35s;
}
.seg:has(> button:nth-child(2)[aria-pressed="true"])::before { transform: translateX(100%); }
.seg button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 5px 11px; border: 0; border-radius: var(--r-full); background: transparent;
  font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color .3s;
}
.seg button[aria-pressed="true"] { color: var(--bg); }
.seg button .material-symbols-outlined { font-size: 16px; }
.lang-switch button[lang="bn"] { font-family: "Noto Sans Bengali", var(--font); font-weight: 600; }
.view-seg:has(> button:nth-child(2)[aria-pressed="true"])::before { background: linear-gradient(120deg, var(--primary), #22B8CF); }
.ev-count {
  min-width: 17px; height: 17px; padding: 0 4px; margin-left: 1px; display: inline-grid; place-items: center;
  border-radius: var(--r-full); background: var(--accent); color: #FFFFFF; font-size: 10px; font-weight: 800; line-height: 1;
}
.ev-count[hidden] { display: none; }
.ev-count.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.dock-ics { display: inline-flex; gap: 2px; padding-left: 4px; border-left: 1px solid var(--border); }
.dock-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); transition: background-color .2s, transform .2s; }
.dock-ic .material-symbols-outlined { font-size: 19px; }
.dock-ic:hover { background: var(--subtle); }
.dock-ic:active { transform: scale(.9); }
.dock-ic .icon-off { display: none; }
.dock-ic[aria-pressed="false"] .icon-on { display: none; }
.dock-ic[aria-pressed="false"] .icon-off { display: inline-block; color: var(--muted); }
.dock-ic[data-restart]:hover .material-symbols-outlined { transform: rotate(-120deg); transition: transform .4s var(--ease); }
.dock { position: relative; overflow: visible; --prog: 0; }
/* Journey progress along the dock's bottom edge */
.dock::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #22B8CF, var(--primary), #4FA6EC);
  transform: scaleX(var(--prog)); transform-origin: left; transition: transform .7s var(--ease);
}
/* Tooltips */
.dock-ic, .seg button { position: relative; }
.dock-ic::before {
  content: attr(aria-label); position: absolute; left: 50%; bottom: calc(100% + 9px); translate: -50% 4px;
  padding: 4px 8px; border-radius: 7px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s;
}
.dock-ic:hover::before, .dock-ic:focus-visible::before { opacity: 1; translate: -50% 0; }
.dock-ic[data-restart]:active .material-symbols-outlined { transform: rotate(-360deg); transition: transform .5s var(--ease); }
.dock-ic[data-home]:hover .material-symbols-outlined { transform: scale(1.15); transition: transform .25s var(--ease); }
/* Sound button: live equaliser while a voice is speaking */
.eq { display: none; height: 16px; align-items: flex-end; gap: 2px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--accent); transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.55s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.sim.is-talking .dock-ic[data-sound][aria-pressed="true"] { background: var(--accent-soft); }
.sim.is-talking .dock-ic[data-sound][aria-pressed="true"] .icon-on { display: none; }
.sim.is-talking .dock-ic[data-sound][aria-pressed="true"] .eq { display: inline-flex; }
/* Press feedback */
.seg button:active, .dock-ic:active { scale: .92; }
.seg button { transition: color .3s, scale .15s; }

.orbit { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
/* Soft halo behind the phone */
.orbit::before {
  content: ""; position: absolute; left: 50%; top: 55%; width: 470px; height: 470px; margin: -235px 0 0 -235px; border-radius: 50%;
  background:
    radial-gradient(closest-side at 35% 35%, rgba(79, 166, 236, .16), transparent),
    radial-gradient(closest-side at 70% 65%, rgba(34, 184, 207, .14), transparent),
    radial-gradient(closest-side, rgba(0, 108, 182, .08), transparent);
  pointer-events: none;
}
.sim-device { z-index: 3; }
/* Now serving: the one service the customer is using right now */
.now-pill {
  position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 16px 6px 12px;
  border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-1);
  font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; animation: scrIn .35s var(--ease);
}
.now-pill .material-symbols-outlined { font-size: 19px; }
.now-pill b { color: var(--ink); font-weight: 800; }
.now-pill.is-live { border-color: color-mix(in srgb, var(--c) 40%, var(--border)); color: var(--ink-2); }
.now-pill.is-live .material-symbols-outlined { color: var(--c); }
.now-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 var(--c); animation: nowPulse 1.6s infinite; }
@keyframes nowPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.now-pill.is-done { border-color: var(--ok-dot); background: var(--ok-soft); color: var(--ok); font-weight: 800; }
.now-pill.is-done .material-symbols-outlined { color: var(--ok-dot); }
/* Language switch: the phone shimmers while it changes */
.sim-device.is-lang .phone.face-front { animation: langSwap .6s var(--ease); }
@keyframes langSwap { 0% { filter: none; } 35% { filter: blur(3px) saturate(1.4); transform: scale(.985); } 100% { filter: none; transform: none; } }
.tour-noscript { grid-column: 1 / -1; color: var(--muted); }

/* Device: glow + 3D flip */
.sim-device { position: relative; width: 300px; height: 600px; perspective: 1400px; }
.device-glow {
  position: absolute; inset: 40px -20px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  filter: blur(30px); opacity: .9; transition: background .6s var(--ease);
}
.sim-device[data-ch="alert"], .sim-device[data-ch="sms"] { --glow: rgba(52, 199, 89, .32); }
.sim-device[data-ch="bot"] { --glow: rgba(99, 102, 241, .35); }
.sim-device[data-ch="agent"] { --glow: rgba(0, 108, 182, .38); }
.sim-device[data-ch="vivr"] { --glow: rgba(249, 115, 22, .32); }
.sim-device[data-ch="chat"], .sim-device[data-ch="wa"] { --glow: rgba(37, 211, 102, .32); }
.sim-device[data-ch="fb"] { --glow: rgba(24, 119, 242, .35); }
.sim-device[data-ch="msgr"] { --glow: rgba(160, 51, 255, .32); }
.sim-device[data-ch="done"] { --glow: rgba(16, 185, 129, .38); }
.sim-device[data-ch="pick"] { --glow: rgba(46, 143, 214, .35); }
.flipper { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.sim-device.is-flipped .flipper { transform: rotateY(180deg); }
.face-front, .face-back { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.face-back { transform: rotateY(180deg); }

/* ---------- Phone ---------- */
.phone {
  width: 300px; height: 600px; border-radius: 50px; padding: 10px;
  background: transparent; color: #111827;
  /* the bezel is an inset ring, so the screen itself can be see-through;
     then the titanium band and the drop shadow */
  box-shadow: inset 0 0 0 1.5px #2C2C2E, inset 0 0 0 10px #050506, 0 0 0 1.5px #1D1D1F, 0 0 0 4px #9A9CA3, 0 0 0 5px #5B5D63,
              0 30px 60px -20px rgba(15, 27, 52, .55);
  font-size: 13px; line-height: 1.45;
}
/* Side buttons: action + volume on the left, power on the right */
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; pointer-events: none; }
.phone::before {
  left: -8px; top: 104px; height: 150px;
  background: linear-gradient(#8E9096 0 24px, transparent 24px 42px, #8E9096 42px 92px, transparent 92px 100px, #8E9096 100px 150px);
}
.phone::after { right: -8px; top: 150px; height: 74px; background: #8E9096; }
.phone-status {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 5; height: 44px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 30px;
  font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; color: #111827; pointer-events: none;
}
.phone-island { position: absolute; left: 50%; top: 11px; width: 88px; height: 26px; margin-left: -44px; border-radius: 14px; background: #000; }
.phone-icons { display: inline-flex; gap: 2px; }
.phone-icons .material-symbols-outlined { font-size: 14px; }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 40px; background: #FFFFFF; }
.phone-homebar {
  position: absolute; left: 50%; bottom: 16px; width: 108px; height: 5px; margin-left: -54px; padding: 0; border: 0; border-radius: 4px;
  background: rgba(17, 24, 39, .35); z-index: 10; cursor: pointer; transition: width .2s var(--ease), margin .2s var(--ease), height .2s;
}
/* A bigger invisible target than the thin bar, so it's easy to tap */
.phone-homebar::before { content: ""; position: absolute; inset: -8px -16px -12px; }
.phone-homebar:hover, .phone-homebar:focus-visible { width: 124px; margin-left: -62px; height: 6px; }
.phone:has(.scr-pick) .phone-homebar { cursor: default; }
.chat-back { display: inline-grid; place-items: center; margin: -4px 0 -4px -6px; padding: 4px; border: 0; border-radius: 50%; background: none; color: inherit; }
.chat-back:hover { background: rgba(0, 0, 0, .06); }
.chat-wa .chat-back:hover { background: rgba(255, 255, 255, .12); }
.phone:has(.scr-lock) .phone-status, .phone:has(.scr-call) .phone-status, .phone:has(.scr-inter) .phone-status, .phone:has(.chat-wa) .phone-status { color: #FFFFFF; }
.phone:has(.scr-lock) .phone-homebar, .phone:has(.scr-call) .phone-homebar, .phone:has(.scr-inter) .phone-homebar { background: rgba(255, 255, 255, .6); }

.scr { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: 40px; animation: scrIn .35s var(--ease); }
@keyframes scrIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.scr .material-symbols-outlined { font-size: 19px; }

/* Notifications */
.phone-banner-slot { position: absolute; top: 46px; left: 16px; right: 16px; z-index: 8; }
.p-banner, .lock-notif {
  width: 100%; display: flex; gap: 9px; align-items: flex-start; text-align: left;
  padding: 10px; border: 0; border-radius: 16px;
  background: rgba(250, 250, 252, .97); color: #111827;
  box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .04);
  transform: translateY(-14px) scale(.96); opacity: 0;
  transition: transform .45s var(--ease), opacity .3s;
}
.p-banner.is-in, .lock-notif.is-in { transform: none; opacity: 1; animation: nudge 2.4s 1s infinite; }
@keyframes nudge { 0%, 88%, 100% { transform: none; } 92% { transform: translateX(-3px); } 96% { transform: translateX(3px); } }
.p-banner-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 12px; line-height: 1.4; }
.p-banner-app { font-size: 10px; color: #6B7280; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.p-banner-txt strong { font-size: 12.5px; }
.app-ic { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #FFFFFF; }
.app-ic .material-symbols-outlined { font-size: 18px; }
.app-sms { background: #34C759; }
.app-wa { background: #25D366; }
.app-msgr { background: linear-gradient(135deg, #0084FF, #A033FF); }
.app-fb { background: #1877F2; }

.phone-toast {
  position: absolute; left: 18px; right: 18px; bottom: 30px; z-index: 9;
  padding: 9px 12px; border-radius: 12px; background: rgba(17, 24, 39, .92); color: #FFFFFF;
  font-size: 12px; text-align: center; pointer-events: none;
  opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s;
}
.phone-toast.is-in { opacity: 1; transform: none; }

/* Replies (the customer's choices) */
.replies { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; padding: 0 10px; }
.replies:empty { display: none; }
.replies.is-in .reply { animation: replyIn .35s var(--ease) both; }
.replies.is-in .reply:nth-child(2) { animation-delay: .08s; }
.replies.is-in .reply:nth-child(3) { animation-delay: .16s; }
@keyframes replyIn { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.reply {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  padding: 7px 12px; border-radius: 16px;
  border: 1.5px solid #0A84FF; background: #FFFFFF; color: #0A63C9;
  font-size: 12.5px; font-weight: 600; text-align: left; line-height: 1.3;
  box-shadow: 0 2px 8px rgba(10, 132, 255, .12);
}
.reply .material-symbols-outlined { font-size: 16px; }
.reply:hover:not(:disabled) { background: #EAF3FF; }
.reply:disabled { opacity: .5; }
.reply-action { background: #0A84FF; color: #FFFFFF; border-color: #0A84FF; }
.reply-action:hover:not(:disabled) { background: #0670DB; }

/* Lock screen */
.scr-lock { align-items: center; padding: 62px 14px 0; color: #FFFFFF; background: radial-gradient(120% 80% at 20% 0%, #3B5BA9 0%, #1B2B5A 45%, #0E1530 100%); }
.lock-time { font-size: 54px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
.lock-date { margin-top: 4px; font-size: 13px; opacity: .85; }
.lock-slot { width: 100%; margin-top: 34px; }
.lock-hint { margin-top: auto; margin-bottom: 54px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; opacity: .8; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .4; } }

/* Chat apps */
.chat-bar { display: flex; align-items: center; gap: 7px; padding: 6px 10px 8px; border-bottom: 1px solid #E5E7EB; }
.chat-av { flex: 0 0 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #E8EEF9; color: #0B3A66; }
.chat-av .material-symbols-outlined { font-size: 17px; }
.chat-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chat-who strong { display: inline-flex; align-items: center; gap: 3px; font-size: 13.5px; }
.chat-who strong .material-symbols-outlined { font-size: 14px; color: #1D9BF0; font-variation-settings: "FILL" 1; }
.chat-who small { font-size: 10.5px; color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-tools { display: inline-flex; gap: 10px; }
.chat-tools .material-symbols-outlined { font-size: 18px; }
.thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; padding: 10px; scroll-behavior: smooth; }
.msg { display: flex; }
.msg-me { justify-content: flex-end; }
.msg.is-new { animation: replyIn .3s var(--ease); }
.bubble { position: relative; max-width: 84%; padding: 7px 10px 5px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.bubble time { display: flex; justify-content: flex-end; align-items: center; gap: 2px; margin-top: 1px; font-size: 9.5px; opacity: .6; }
.bubble time .material-symbols-outlined { font-size: 13px; }
.msg-typing .bubble { display: inline-flex; gap: 4px; padding: 10px 12px; }
.msg-typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .4; animation: typing 1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: .15s; }
.msg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .35; } 30% { transform: translateY(-3px); opacity: .9; } }
.msg-card { display: flex; flex-direction: column; gap: 2px; min-width: 190px; }
.msg-card div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed rgba(0, 0, 0, .12); font-size: 11.5px; }
.msg-card div:last-child { border-bottom: 0; }
.msg-card span { color: #4B5563; }
.msg-card strong { text-align: right; }
.msg-link { display: flex; gap: 7px; align-items: center; padding: 7px; border-radius: 10px; background: rgba(0, 0, 0, .06); }
.msg-link > .material-symbols-outlined { color: #0A63C9; }
.msg-link span { display: flex; flex-direction: column; }
.msg-link strong { color: #0A63C9; font-size: 12px; }
.msg-link small { font-size: 10px; opacity: .7; }
.composer { display: flex; align-items: center; gap: 8px; margin: 6px 9px 26px; padding: 7px 11px; border-radius: 18px; background: #F1F3F5; color: #9CA3AF; font-size: 12.5px; }
.composer .material-symbols-outlined { font-size: 18px; }
.composer span:nth-child(2) { flex: 1; }
.scr-chat .replies { padding-top: 4px; }

.chat-sms { background: #FFFFFF; }
.chat-sms .chat-bar { background: #F7F7F9; }
.chat-sms .msg-them .bubble { background: #E9E9EB; color: #111827; }
.chat-sms .msg-me .bubble { background: #0A84FF; color: #FFFFFF; }
.chat-wa { background: #EFEAE2; }
.chat-wa .chat-bar { background: #075E54; color: #FFFFFF; border-bottom: 0; margin-top: -40px; padding-top: 44px; }
.chat-wa .chat-who small { color: rgba(255, 255, 255, .8); }
.chat-wa .chat-who strong .material-symbols-outlined { color: #25D366; }
.chat-wa .chat-av { background: #FFFFFF; }
.chat-wa .msg-them .bubble { background: #FFFFFF; color: #111827; border-top-left-radius: 4px; }
.chat-wa .msg-me .bubble { background: #D9FDD3; color: #111827; border-top-right-radius: 4px; }
.chat-wa .msg-me time .material-symbols-outlined { color: #34B7F1; }
.chat-wa .reply { border-color: #128C7E; color: #075E54; }
.chat-wa .reply:hover:not(:disabled) { background: #E7F7F3; }
.chat-wa .reply-action { background: #128C7E; color: #FFFFFF; }
.chat-wa .composer { background: #FFFFFF; }
.chat-msgr .msg-them .bubble { background: #F0F0F0; color: #111827; }
.chat-msgr .msg-me .bubble { background: linear-gradient(135deg, #0084FF, #A033FF); color: #FFFFFF; }
.chat-msgr .chat-av { background: #FFF1E8; color: #E2541B; }

/* Dialer */
.scr-dial { align-items: center; padding: 56px 18px 0; background: #FFFFFF; }
.dial-to { text-align: center; min-height: 66px; }
.dial-to small { font-size: 11px; color: #6B7280; }
.dial-num { display: block; min-height: 38px; font-size: 28px; font-weight: 500; letter-spacing: .06em; color: #111827; }
.dial-fill { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 12px; padding: 6px 11px; border-radius: 14px; border: 0; background: #EAF3FF; color: #0A63C9; font-size: 11.5px; font-weight: 600; }
.dial-fill .material-symbols-outlined { font-size: 15px; }
.dial-pad { display: grid; grid-template-columns: repeat(3, 62px); gap: 10px 20px; }
.dial-pad button {
  width: 62px; height: 62px; border-radius: 50%; border: 0;
  background: #F1F2F6; color: #111827;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 400; line-height: 1;
  transition: background-color .12s, transform .08s;
}
.dial-pad button small { margin-top: 2px; font-size: 8px; font-weight: 700; letter-spacing: .14em; color: #6B7280; }
.dial-pad button:hover { background: #E5E7EB; }
.dial-pad button:active { transform: scale(.93); background: #D1D5DB; }
.dial-actions { display: grid; grid-template-columns: repeat(3, 62px); gap: 20px; margin-top: 12px; justify-items: center; align-items: center; }
.dial-call { width: 62px; height: 62px; border-radius: 50%; border: 0; background: #34C759; color: #FFFFFF; display: grid; place-items: center; box-shadow: 0 8px 18px -6px rgba(52, 199, 89, .6); animation: callPulse 2s infinite; }
@keyframes callPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, .45); } 50% { box-shadow: 0 0 0 10px rgba(52, 199, 89, 0); } }
.dial-call .material-symbols-outlined { font-size: 28px; font-variation-settings: "FILL" 1; }
.dial-call:hover { background: #2DB24F; }
.dial-del { border: 0; background: transparent; color: #6B7280; padding: 8px; border-radius: 50%; }
.dial-err { min-height: 18px; margin-top: 6px; font-size: 11.5px; color: #DC2626; text-align: center; }

/* Call */
.scr-call { padding-top: 52px; color: #FFFFFF; background: linear-gradient(180deg, #13213F 0%, #0B1428 100%); }
.call-top { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 14px; }
.call-av { position: relative; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #2E8FD6, #00497D); font-size: 24px; font-weight: 700; }
.call-av.is-bot { background: linear-gradient(135deg, #2E8FD6, #22B8CF); }
.call-av .material-symbols-outlined { font-size: 30px; }
.call-ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(110, 180, 255, .5); opacity: 0; }
.is-ringing .call-ring, .is-speaking .call-ring { animation: ring 1.4s infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.call-name { margin-top: 10px; font-size: 18px; font-weight: 600; color: #FFFFFF; }
.call-sub { font-size: 11.5px; opacity: .7; }
.call-status { margin-top: 2px; font-size: 12.5px; color: #9FD3FF; min-height: 18px; }
.is-ended .call-status { color: #FCA5A5; }
.call-wave { display: flex; justify-content: center; align-items: center; gap: 3px; height: 22px; margin: 8px 0 4px; }
.call-wave i { width: 3px; height: 4px; border-radius: 3px; background: rgba(159, 211, 255, .45); }
.is-speaking .call-wave i { animation: wave .9s ease-in-out infinite; background: #9FD3FF; }
.is-speaking .call-wave i:nth-child(3n) { animation-delay: -.3s; }
.is-speaking .call-wave i:nth-child(3n+1) { animation-delay: -.6s; }
.is-speaking .call-wave i:nth-child(5) { background: #FB923C; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 20px; } }
.captions { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 12px 8px; }
.cap { padding: 7px 10px; border-radius: 12px; font-size: 12px; line-height: 1.5; max-width: 92%; animation: replyIn .3s var(--ease); }
.cap b { display: block; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.cap-them { background: rgba(255, 255, 255, .1); align-self: flex-start; }
.cap-me { background: #0A84FF; align-self: flex-end; }
.cap-sys { align-self: center; padding: 2px 9px; font-size: 10.5px; background: rgba(52, 199, 89, .18); color: #86EFAC; }
.replies-call { justify-content: center; padding-bottom: 6px; }
.scr-call .reply { background: rgba(255, 255, 255, .95); border-color: transparent; color: #0B3A66; box-shadow: none; }
.scr-call .reply-say .material-symbols-outlined { color: #0A84FF; }
.scr-call .reply-action { background: #0A84FF; color: #FFFFFF; }
.call-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-items: center; padding: 8px 16px 30px; }
.cb { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: transparent; color: #FFFFFF; font-size: 9.5px; }
.cb .material-symbols-outlined { width: 40px !important; height: 40px !important; display: grid !important; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); font-size: 20px; }
.cb[aria-pressed="true"] .material-symbols-outlined { background: #FFFFFF; color: #0B1428; }
.cb-end { justify-self: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #EF4444; color: #FFFFFF; display: grid; place-items: center; transition: transform .15s, background-color .2s; }
.cb-end:hover { background: #DC2626; transform: scale(1.06); }
.cb-end .material-symbols-outlined { font-size: 24px; font-variation-settings: "FILL" 1; }
.is-ended .call-btns { opacity: .4; pointer-events: none; }

/* Visual IVR (web) */
.scr-web { background: #F4F6FA; }
.browser-bar { display: flex; align-items: center; gap: 5px; margin: 0 10px; padding: 6px 9px; border-radius: 11px; background: #E9ECF2; font-size: 11.5px; color: #374151; }
.browser-bar .material-symbols-outlined { font-size: 14px; color: #16A34A; }
.url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 10px; background: #34C759; color: #FFFFFF; font-size: 10.5px; font-weight: 700; }
.call-pill .material-symbols-outlined { font-size: 12px; color: #FFFFFF; font-variation-settings: "FILL" 1; }
.web-head { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding: 10px 14px; color: #FFFFFF; }
.web-bank .web-head { background: linear-gradient(135deg, #0B3A66, #0E5A8A); }
.web-shop .web-head { background: linear-gradient(135deg, #E2541B, #F28C28); }
.web-logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, .18); }
.web-logo .material-symbols-outlined { font-size: 17px; }
.web-head strong { flex: 1; font-size: 13.5px; }
.web-secure { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; opacity: .9; }
.web-secure .material-symbols-outlined { font-size: 13px; }
.web-body { flex: 1; overflow-y: auto; padding: 14px 12px 36px; display: flex; flex-direction: column; gap: 8px; }
.web-h { font-size: 16.5px; font-weight: 700; color: #111827; }
.web-sub { font-size: 12px; color: #4B5563; }
.web-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.web-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  min-height: 90px; padding: 12px; border-radius: 14px;
  border: 1px solid #E5E7EB; background: #FFFFFF; color: #111827;
  font-size: 12.5px; font-weight: 700; text-align: left;
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.web-tile .material-symbols-outlined { width: 34px !important; height: 34px !important; display: grid !important; place-items: center; border-radius: 10px; background: #EEF2F8; color: #0B3A66; font-size: 20px; }
.web-tile.is-primary { border-color: #0E5A8A; box-shadow: 0 0 0 3px rgba(14, 90, 138, .15); }
.web-tile.is-primary .material-symbols-outlined { background: #0B3A66; color: #FFFFFF; }
.web-tile:hover { transform: translateY(-1px); }
.web-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.web-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 10px;
  border-radius: 12px; border: 1px solid #E5E7EB; background: #FFFFFF; color: #111827; text-align: left;
  transition: border-color .2s, background-color .2s;
}
.web-row:hover { border-color: #93B4D6; background: #FAFCFF; }
.web-row > .material-symbols-outlined:first-child { color: #0B3A66; }
.web-shop .web-row > .material-symbols-outlined:first-child { color: #E2541B; }
.web-row > .material-symbols-outlined:last-child { color: #9CA3AF; }
.web-row-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.web-row-txt strong { font-size: 12.5px; }
.web-row-txt small { font-size: 11px; color: #6B7280; }
.web-row-txt small.is-flag { color: #DC2626; font-weight: 600; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 6px; }
.otp span { height: 40px; display: grid; place-items: center; border-radius: 9px; border: 1.5px solid #D1D5DB; background: #FFFFFF; font-size: 18px; font-weight: 700; color: #111827; }
.otp span.is-on { border-color: #0E5A8A; animation: replyIn .2s; }
.web-shop .otp span.is-on { border-color: #E2541B; }
.web-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; padding: 3px 0; font-size: 12px; font-weight: 600; color: #0A63C9; }
.web-link .material-symbols-outlined { font-size: 15px; }
.web-btn { margin-top: 6px; width: 100%; padding: 11px; border-radius: 12px; border: 0; background: #0B3A66; color: #FFFFFF; font-size: 13.5px; font-weight: 700; transition: opacity .2s; }
.web-shop .web-btn { background: #E2541B; }
.web-btn:disabled { opacity: .35; cursor: not-allowed; }
.web-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-top: 10px; }
.web-done > .material-symbols-outlined { font-size: 54px; color: #16A34A; font-variation-settings: "FILL" 1; animation: popIn .5s var(--ease); }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.web-done h4 { font-size: 17px; color: #111827; }
.web-done ul { display: flex; flex-direction: column; gap: 5px; width: 100%; }
.web-done li { padding: 8px 10px; border-radius: 10px; background: #FFFFFF; border: 1px solid #E5E7EB; font-size: 12px; color: #374151; text-align: left; }

/* Facebook */
.scr-fb { background: #F0F2F5; }
.fb-bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px 8px; background: #FFFFFF; }
.fb-logo { font-family: "Plus Jakarta Sans", sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -0.04em; color: #1877F2; }
.fb-tools { display: inline-flex; gap: 6px; }
.fb-tools .material-symbols-outlined { width: 28px !important; height: 28px !important; display: grid !important; place-items: center; border-radius: 50%; background: #E4E6EB; font-size: 16px; }
.fb-scroll { flex: 1; overflow-y: auto; padding: 6px 0; }
.fb-post { background: #FFFFFF; padding: 10px 10px 4px; }
.fb-head { display: flex; gap: 7px; align-items: center; }
.fb-head > span:last-child { display: flex; flex-direction: column; }
.fb-head strong { font-size: 13px; }
.fb-head small { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: #65676B; }
.fb-head small .material-symbols-outlined { font-size: 11px; }
.fb-av { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #E2541B, #F28C28); color: #FFFFFF; font-weight: 800; font-size: 13px; }
.fb-av.sm { flex-basis: 26px; height: 26px; font-size: 11px; }
.fb-text { margin: 6px 0; font-size: 12.5px; }
.fb-img { position: relative; height: 104px; margin: 0 -10px; display: grid; place-items: center; background: linear-gradient(135deg, #FFE1CC, #FFB27A); font-size: 54px; }
.fb-img b { position: absolute; right: 10px; top: 10px; padding: 3px 9px; border-radius: 9px; background: #E11D48; color: #FFFFFF; font-size: 13px; }
.fb-meta { display: flex; justify-content: space-between; padding: 6px 0; font-size: 11px; color: #65676B; border-bottom: 1px solid #E4E6EB; }
.fb-actions { display: flex; justify-content: space-around; padding: 5px 0; font-size: 11.5px; font-weight: 600; color: #65676B; border-bottom: 1px solid #E4E6EB; }
.fb-actions span { display: inline-flex; align-items: center; gap: 3px; }
.fb-actions .material-symbols-outlined { font-size: 15px; }
.fb-comments { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 4px; }
.fb-c { display: flex; gap: 6px; animation: replyIn .3s var(--ease); }
.fb-c.is-page { margin-left: 28px; }
.fb-c.is-me .fb-av { background: linear-gradient(135deg, #2E8FD6, #7B5CFA); }
.fb-c:not(.is-page):not(.is-me) .fb-av { background: #A7B0BE; }
.fb-c-bubble { padding: 6px 10px; border-radius: 14px; background: #F0F2F5; font-size: 12px; }
.fb-c-bubble strong { display: block; font-size: 11.5px; }
.fb-c small { padding-left: 9px; font-size: 10px; color: #65676B; }
.scr-fb .replies { padding: 7px 10px 28px; background: #FFFFFF; border-top: 1px solid #E4E6EB; }
.scr-fb .reply { border-color: #1877F2; color: #1877F2; }
.scr-fb .reply-action { background: #1877F2; color: #FFFFFF; }

/* Interstitial + hung up */
.scr-inter { align-items: center; justify-content: center; gap: 6px; padding: 36px 22px; text-align: center; color: #FFFFFF; background: radial-gradient(100% 70% at 50% 30%, #23365F, #0B1428); }
.scr-inter > .material-symbols-outlined { font-size: 32px; color: #FB923C; }
.scr-inter p { font-size: 16px; font-weight: 600; }
.scr-inter strong { font-size: 34px; font-weight: 300; }
.scr-inter > span { font-size: 12.5px; opacity: .8; max-width: 26ch; }
.scr-inter .replies { justify-content: center; margin-top: 14px; }
.scr-inter .reply { background: rgba(255, 255, 255, .95); border-color: transparent; color: #0B3A66; }
.scr-inter .reply-action { background: #34C759; border-color: #34C759; color: #FFFFFF; }
.scr-hung > .material-symbols-outlined { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #EF4444; color: #FFFFFF !important; font-size: 28px !important; font-variation-settings: "FILL" 1; }

/* Done */
.scr-done { align-items: center; gap: 10px; padding: 56px 16px 0; text-align: center; background: linear-gradient(180deg, #ECFDF5, #FFFFFF 45%); overflow-y: auto; }
.done-ic .material-symbols-outlined { font-size: 48px; color: #16A34A; animation: popIn .5s var(--ease); }
.scr-done h4 { font-size: 19px; color: #111827; }
.done-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.done-stats div { display: flex; flex-direction: column; gap: 1px; padding: 10px 6px; border-radius: 12px; background: #FFFFFF; border: 1px solid #E5E7EB; }
.done-stats strong { font-size: 20px; font-weight: 800; color: #0B3A66; line-height: 1.1; }
.done-stats span { font-size: 10.5px; color: #4B5563; line-height: 1.35; }
.done-cmp { font-size: 11.5px; color: #4B5563; }
.done-btns { display: flex; flex-direction: column; gap: 5px; width: 100%; padding-bottom: 30px; }
.d-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 9px; border-radius: 11px; border: 1px solid #D1D5DB; background: #FFFFFF; color: #111827; font-size: 12.5px; font-weight: 600; }
.d-btn .material-symbols-outlined { font-size: 17px; }
.d-btn:hover { text-decoration: none; background: #F9FAFB; }
.d-btn.is-primary { background: #0B3A66; border-color: #0B3A66; color: #FFFFFF; }

/* Phone home screen: hotline widget, notifications, app dock */
/* Home screen: frosted glass in the site's own colours (light or dark), so the page glows through */
.phone:has(.scr-pick) .phone-screen { background: transparent; }
.phone:has(.scr-pick) .phone-status { color: var(--ink); }
.phone:has(.scr-pick) .phone-homebar { background: color-mix(in srgb, var(--ink) 40%, transparent); }
.scr-pick {
  padding: 62px 14px 0; color: var(--ink);
  background:
    radial-gradient(90% 50% at 100% 0%, color-mix(in srgb, #22B8CF 22%, transparent), transparent 70%),
    radial-gradient(90% 55% at 0% 100%, color-mix(in srgb, var(--primary) 24%, transparent), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--surface) 62%, transparent), color-mix(in srgb, var(--subtle) 48%, transparent));
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--surface) 55%, transparent);
}
/* App grid: 4 across, iOS spacing */
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 0; }
.home-app {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  -webkit-tap-highlight-color: transparent; transition: transform .2s var(--ease);
}
.home-app:active { transform: scale(.88); }
.home-app .app-ic {
  position: relative; flex: none; width: 54px; height: 54px; border-radius: 14px;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: filter .2s;
}
.home-app:hover .app-ic { filter: brightness(1.08); }
.home-app .app-ic .material-symbols-outlined { font-size: 28px; }
.home-app-l { max-width: 66px; font-size: 10.5px; font-weight: 600; line-height: 1.2; color: var(--ink); text-align: center; }
.app-call { background: linear-gradient(180deg, #5EE07A, #1DB954); }
.app-bot { background: linear-gradient(180deg, #818CF8, #4F46E5); }
.app-agent { background: linear-gradient(180deg, #4FB0F0, #0068B0); }
.app-chat { background: linear-gradient(180deg, #34E0C8, #0B9A97); }
.app-vivr { background: linear-gradient(180deg, #FFB067, #F2700F); }
.app-badge { position: absolute; right: -6px; top: -6px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: #FF3B30; color: #FFFFFF; font-size: 11px; font-weight: 700; box-shadow: 0 0 0 2px var(--surface); }
/* Search pill and dock, as on iOS */
.home-search {
  align-self: center; margin-top: auto; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 12px;
  border-radius: var(--r-full); background: color-mix(in srgb, var(--surface) 60%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent);
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
}
.home-search .material-symbols-outlined { font-size: 14px !important; }
.home-dock {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 -4px 28px; padding: 12px 6px 9px; border-radius: 32px;
  background: color-mix(in srgb, var(--surface) 58%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent), 0 10px 24px -16px rgba(15, 27, 52, .4);
}
.home-dock .home-app-l { font-size: 9.5px; }
/* The suggested start: the IVR call gently pulses */
.home-call .app-ic { animation: callPulse 1.8s infinite; }
@keyframes callPulse { 0% { box-shadow: 0 0 0 0 rgba(94, 224, 122, .7); } 70%, 100% { box-shadow: 0 0 0 11px rgba(94, 224, 122, 0); } }

/* IVR menu: the in-call keypad */
.cb.is-ready .material-symbols-outlined { background: #0A84FF; animation: kpPulse 1.6s infinite; }
.cb.is-ready[aria-pressed="true"] .material-symbols-outlined { background: #FFFFFF; color: #0B1428; animation: none; }
@keyframes kpPulse { 0% { box-shadow: 0 0 0 0 rgba(10, 132, 255, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(129, 140, 248, 0); } }
.ivr-pad {
  position: absolute; left: 0; right: 0; top: 146px; bottom: 92px; z-index: 4;
  display: none; flex-direction: column; align-items: center; gap: 6px; padding: 6px 16px 4px;
  background: linear-gradient(180deg, rgba(11, 20, 40, .9), #0B1428 18%);
}
.ivr-pad.is-open { display: flex; animation: scrIn .25s var(--ease); }
.ivr-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.ivr-menu span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 10.5px; color: #DCE3F0; }
.ivr-menu b { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: #0A84FF; color: #FFFFFF; font-size: 10px; }
.ivr-num { height: 24px; font-size: 21px; font-weight: 300; line-height: 24px; color: #FFFFFF; }
.ivr-keys { display: grid; grid-template-columns: repeat(3, 50px); gap: 7px 20px; }
.ivr-keys button {
  width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #FFFFFF;
  font-size: 22px; font-weight: 400; transition: background-color .12s;
}
.ivr-keys button:active { background: rgba(255, 255, 255, .4); }
.ivr-hide { border: 0; background: none; color: #93C5FD; font-size: 11.5px; font-weight: 600; padding: 2px 8px; }

/* Tap guide */
.tap-me { animation: tapGlow 1.6s ease-out infinite !important; }
@keyframes tapGlow { 0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(249, 115, 22, 0); } }
.tap-finger {
  position: absolute; left: 0; top: 0; z-index: 12; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%;
  background: #FFFFFF; color: #F97316; box-shadow: 0 6px 16px rgba(17, 24, 39, .3);
  pointer-events: none; opacity: 0; transition: transform .45s var(--ease), opacity .25s;
}
.tap-finger .material-symbols-outlined { font-size: 20px; font-variation-settings: "FILL" 1; animation: tapBounce 1.2s ease-in-out infinite; }
.tap-finger.is-on { opacity: 1; }
@keyframes tapBounce { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-3px, -4px); } }

/* Confetti */
.confetti { position: absolute; top: 0; left: -60px; z-index: 20; pointer-events: none; }

/* Back of the phone: zenTx view */
.face-back { display: flex; flex-direction: column; gap: 8px; padding: 22px 16px 16px; color: #E7EDF7; background: radial-gradient(120% 60% at 50% 0%, #17305A, #0B1220 70%); overflow: hidden; }
.back-head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.back-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 10px; border-radius: var(--r-full); background: rgba(79, 166, 236, .16); color: #9FD3FF; font-size: 11.5px; font-weight: 700; }
.back-badge .material-symbols-outlined { font-size: 15px; }
.back-head p { font-size: 11.5px; color: #8FA0BA; }
.face-back h3 { margin-top: 4px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8FA0BA; }
.mem { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.mem div { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .05); font-size: 11px; animation: replyIn .35s var(--ease); }
.mem dt { color: #8FA0BA; font-weight: 600; }
.mem dd { margin: 0; color: #E7EDF7; font-weight: 600; min-width: 0; }
.elog { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.elog li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px; padding: 5px 6px; border-radius: 6px; font-size: 10.5px; line-height: 1.45; color: #C3CEDF; animation: replyIn .35s var(--ease); }
.elog li:first-child { background: rgba(251, 146, 60, .14); color: #FFFFFF; }
.elog time { font-family: var(--mono); font-size: 10px; color: #7CC0F5; font-weight: 600; }
.back-close { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #FFFFFF; font-size: 12px; font-weight: 600; }
.back-close .material-symbols-outlined { font-size: 16px; }

/* ---------- Phones: launcher in the page, demo full screen ---------- */
.m-launch, .dock-close { display: none; }
.m-launch { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; max-width: 400px; margin-top: 22px; }
.m-orbit { position: relative; width: 150px; height: 150px; margin: 0 auto 4px; }
.m-orbit::before {
  content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, #22B8CF 45%, transparent);
  background: radial-gradient(closest-side, rgba(34, 184, 207, .12), transparent);
}
.m-hub {
  position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; display: grid; place-items: center;
  border-radius: 50%; background: linear-gradient(135deg, var(--primary), #22B8CF); color: #FFFFFF;
  box-shadow: 0 10px 24px -8px rgba(0, 108, 182, .6); animation: hubPulse 2.4s ease-in-out infinite;
}
.m-hub .material-symbols-outlined { font-size: 26px; }
@keyframes hubPulse { 50% { box-shadow: 0 0 0 10px rgba(34, 184, 207, .12), 0 10px 24px -8px rgba(0, 108, 182, .6); } }
.m-ring { position: absolute; inset: 0; animation: spin 26s linear infinite; }
.m-ring i {
  position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; display: grid; place-items: center;
  border-radius: 50%; background: var(--c); color: #FFFFFF; font-style: normal;
  box-shadow: 0 0 0 3px var(--hero-bg), 0 6px 12px -6px var(--c);
  transform: rotate(calc(var(--i) * 40deg)) translateY(-61px) rotate(calc(var(--i) * -40deg));
}
.m-ring i .material-symbols-outlined { font-size: 16px; animation: spin 26s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.m-k { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.m-sub { font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; margin-top: -4px; }
.m-open {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 22px;
  border-radius: var(--r-full); border: 0; color: #FFFFFF; font-size: 16px; font-weight: 800;
  background: linear-gradient(120deg, var(--primary), #22B8CF); box-shadow: 0 14px 28px -12px rgba(0, 108, 182, .6);
  -webkit-tap-highlight-color: transparent; transition: transform .15s;
}
.m-open:active { transform: scale(.97); }
.m-open .material-symbols-outlined { font-size: 22px; }
.m-open-go { animation: nudgeX 1.4s ease-in-out infinite; }
.m-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }
.m-note .material-symbols-outlined { font-size: 16px; color: var(--accent); }

/* Full-screen demo */
html.sim-lock, html.sim-lock body { overflow: hidden; overscroll-behavior: none; }
.sim.is-full .hero-stage {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
  background:
    radial-gradient(80% 45% at 10% 0%, rgba(79, 166, 236, .14), transparent 70%),
    radial-gradient(70% 40% at 100% 100%, rgba(249, 115, 22, .10), transparent 70%),
    var(--bg);
  overflow: hidden; animation: fullIn .3s var(--ease);
}
@keyframes fullIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.sim.is-full .dock-close { display: inline-grid; background: var(--subtle); }
.sim.is-full .orbit { flex: 1; min-height: 0; justify-content: flex-start; }
.sim.is-full .orbit::before { display: none; }
.sim.is-full .sim-device { flex-shrink: 0; transform: scale(var(--fit, 1)); transform-origin: top center; margin-bottom: calc((var(--fit, 1) - 1) * 600px); }

/* ---------- Responsive ---------- */
@media (max-width: 1079px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "stage"; row-gap: 22px; padding-top: 10px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-grid h1 { font-size: clamp(28px, 5.6vw, 46px); }
  .hero-grid .lead { margin-inline: auto; }
  .try-hint { margin-top: 18px; }
  .try-arrow { rotate: 90deg; }
  .hero-points { margin-inline: auto; }
}
@media (max-width: 620px) {
  .hero-grid { row-gap: 16px; }
  .hero-points { grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .hp { padding: 11px 12px; }
  .hero-grid .lead { font-size: 15px; margin-top: 10px; }
  .try-hint { display: none; }
  .m-launch { display: flex; }
  .hero-stage { display: none; }
  .hero-grid { padding-bottom: 8px; }
  .hero-stage { gap: 12px; width: 100%; }
  .dock { width: 100%; max-width: 380px; justify-content: space-between; gap: 4px; }
  .dock::after { left: 30px; right: 30px; }
  .seg button { padding: 5px 9px; }
  .view-seg button > span:not(.material-symbols-outlined) { display: none; }
  .dock-ic::before { display: none; }
  .orbit { width: 100%; gap: 10px; }
  .orbit::before { width: 320px; height: 320px; margin: -160px 0 0 -160px; }
}
@media (max-width: 340px) {
  .sim-device, .phone { width: 280px; }
  .sim-device { height: 580px; }
  .phone { height: 580px; }
  .dial-pad { grid-template-columns: repeat(3, 58px); gap: 9px 16px; }
  .dial-pad button, .dial-call { width: 58px; height: 58px; }
  .dial-actions { grid-template-columns: repeat(3, 58px); gap: 16px; }
}

/* Brand marks inside app icons */
.brand-glyph { width: 58%; height: 58%; display: block; }
.home-app .brand-glyph { width: 30px; height: 30px; }
.now-pill .brand-glyph { width: 17px; height: 17px; color: var(--c); }

/* ---------- Premium Bank Visual IVR app ---------- */
.scr-vx .web-body { gap: 10px; }
.vx-verified { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 6px; border-radius: 999px; background: #E7F6EE; color: #15803D; font-size: 10.5px; font-weight: 700; }
.vx-verified .material-symbols-outlined { font-size: 14px !important; font-variation-settings: "FILL" 1; }
.vx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vx-tile {
  --t: #0B3A66; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 80px;
  padding: 11px 10px 10px; border-radius: 16px; border: 1px solid #E3E8F0; background: #FFFFFF; text-align: left; color: #111827;
  box-shadow: 0 6px 14px -12px rgba(11, 58, 102, .5); transition: transform .15s var(--ease), border-color .2s, box-shadow .2s;
}
.vx-tile:hover { border-color: color-mix(in srgb, var(--t) 45%, #E3E8F0); box-shadow: 0 10px 18px -12px color-mix(in srgb, var(--t) 70%, transparent); }
.vx-tile:active { transform: scale(.96); }
.vx-tile > .material-symbols-outlined { width: 36px !important; height: 36px !important; display: grid !important; place-items: center; border-radius: 11px; font-size: 21px !important; color: var(--t); background: color-mix(in srgb, var(--t) 12%, #FFFFFF); }
.vx-tile > span:last-child { font-size: 12px; font-weight: 700; line-height: 1.3; }
.vx-tile .vx-n { position: absolute; right: 9px; top: 9px; }
.vx-c1 { --t: #006CB6; } .vx-c2 { --t: #4F46E5; } .vx-c3 { --t: #0E9F9A; } .vx-c4 { --t: #16A34A; } .vx-c5 { --t: #EA7A12; } .vx-c6 { --t: #475569; }
.vx-n { width: 20px; height: 20px; flex: 0 0 20px; display: inline-grid; place-items: center; border-radius: 50%; background: #EEF2F8; color: #0B3A66; font-size: 10.5px; font-weight: 800; }
.vx-tile .vx-n { background: color-mix(in srgb, var(--t) 14%, #FFFFFF); color: var(--t); }
.web-row .vx-n { margin-right: 2px; }
.vx-agent {
  display: flex; align-items: center; gap: 8px; padding: 10px 10px; border-radius: 14px; border: 1px dashed #B9C7DA; background: #F8FAFD;
  color: #0B3A66; font-size: 12.5px; font-weight: 700; text-align: left;
}
.vx-agent > span:not(.material-symbols-outlined) { flex: 1; }
.vx-agent > .material-symbols-outlined:last-child { color: #9CA3AF; }
.vx-voice { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #6B7280; }
.vx-voice .material-symbols-outlined { font-size: 15px !important; color: #0A84FF; }
.vx-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 3px; margin: -4px 0 -2px -4px; padding: 3px 8px 3px 2px; border: 0; border-radius: 8px; background: none; color: #0A63C9; font-size: 12px; font-weight: 700; }
.vx-back .material-symbols-outlined { font-size: 18px !important; }
.vx-big { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; color: #FFFFFF; background: linear-gradient(135deg, #0B3A66, #006CB6 60%, #2E8FD6); box-shadow: 0 12px 22px -14px rgba(0, 108, 182, .8); }
.vx-big small { font-size: 10.5px; opacity: .85; }
.vx-big strong { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.vx-rows { display: flex; flex-direction: column; margin: 0; border-radius: 14px; background: #FFFFFF; border: 1px solid #E5E7EB; overflow: hidden; }
.vx-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 11px; font-size: 12px; }
.vx-rows div + div { border-top: 1px solid #F0F2F5; }
.vx-rows dt { color: #6B7280; }
.vx-rows dd { margin: 0; color: #111827; font-weight: 700; text-align: right; }
.vx-txns { display: flex; flex-direction: column; border-radius: 14px; background: #FFFFFF; border: 1px solid #E5E7EB; overflow: hidden; }
.vx-txns li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 11px; font-size: 12px; }
.vx-txns li + li { border-top: 1px solid #F0F2F5; }
.vx-txns span { display: flex; flex-direction: column; }
.vx-txns small { font-size: 10.5px; color: #9CA3AF; }
.vx-txns b { font-weight: 700; color: #111827; white-space: nowrap; }
.vx-txns b.is-in { color: #16A34A; }
.vx-note { font-size: 11px; color: #6B7280; }
.vx-warn { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-radius: 10px; background: #FEF2F2; color: #B91C1C; font-size: 11.5px; font-weight: 600; }
.vx-warn .material-symbols-outlined { font-size: 16px !important; }
.vx-home { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 9px; border-radius: 12px; border: 1px solid #DCE3EC; background: #FFFFFF; color: #0B3A66; font-size: 12.5px; font-weight: 700; }
.vx-home .material-symbols-outlined { font-size: 17px !important; }
.web-done .vx-home, .web-done .web-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.web-done .web-btn .material-symbols-outlined { font-size: 17px !important; color: #FFFFFF; }
/* Amount and PIN entry */
.vx-amt { align-self: center; margin-top: 2px; font-size: 30px; font-weight: 800; color: #0B3A66; letter-spacing: -0.01em; }
.vx-presets { display: flex; justify-content: center; gap: 6px; }
.vx-presets button { padding: 5px 10px; border-radius: 999px; border: 1px solid #CFDCEB; background: #FFFFFF; color: #0B3A66; font-size: 11.5px; font-weight: 700; }
.vx-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vx-pad span { display: block; }
.vx-pad button { height: 38px; border-radius: 11px; border: 0; background: #FFFFFF; box-shadow: 0 1px 0 #D9DEE6; color: #111827; font-size: 17px; font-weight: 600; }
.vx-pad button:active { background: #E6EDF6; }
.vx-pad .material-symbols-outlined { font-size: 19px !important; }
.vx-err { min-height: 14px; font-size: 11px; color: #DC2626; text-align: center; }
.vx-dots { display: flex; justify-content: center; gap: 14px; margin: 6px 0 4px; }
.vx-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #0B3A66; transition: background-color .15s; }
.vx-dots i.is-on { background: #0B3A66; }

/* Short laptop screens: shrink the phone so the whole hero fits without scrolling */
@media (min-width: 621px) and (max-height: 860px) {
  .sim:not(.is-full) .sim-device { transform: scale(.86); transform-origin: top center; margin-bottom: -84px; }
}
@media (min-width: 621px) and (max-height: 740px) {
  .sim:not(.is-full) .sim-device { transform: scale(.76); margin-bottom: -144px; }
}
