/* Realistic WhatsApp (iOS light) inside an iPhone Pro frame. Used by the hero and every phone demo. */
.wa-phone { --wa-w: 288px; position: relative; width: var(--wa-w); max-width: 100%; aspect-ratio: 9 / 19.2; margin-inline: auto; border-radius: 54px; padding: 9px; background: linear-gradient(145deg, #b9bcc2, #6c6f75 45%, #a7aaaf); box-shadow: 0 0 0 1.5px #2a2c30, 0 38px 70px -26px rgb(0 0 0 / .65), inset 0 0 0 1.5px rgb(255 255 255 / .35); color: #111b21; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Cairo, Helvetica, Arial, sans-serif; }
.wa-side { position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(90deg, #8d9096, #c9ccd1); }
.wa-side.l1 { inset-inline-start: -4px; top: 14%; height: 24px; } .wa-side.l2 { inset-inline-start: -4px; top: 21%; height: 46px; } .wa-side.l3 { inset-inline-start: -4px; top: 29%; height: 46px; }
.wa-side.r1 { inset-inline-end: -4px; top: 25%; height: 78px; }
.wa-screen { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 45px; overflow: hidden; background: #efeae2; border: 4px solid #000; isolation: isolate; }
.wa-status { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; padding: 14px 24px 6px; background: #f7f7f7; font-size: 13.5px; font-weight: 600; color: #000; }
.wa-sys { display: inline-flex; gap: 5px; align-items: center; }
.wa-island { position: absolute; top: 9px; inset-inline: 0; margin-inline: auto; width: 86px; height: 25px; border-radius: 99px; background: #000; }
.wa-island::after { content: ""; position: absolute; inset-inline-end: 12px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #26324a, #0a0e17 70%); }
.wa-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; background: #f7f7f7; border-bottom: .5px solid #d8d8d8; z-index: 3; }
.wa-back { display: inline-flex; align-items: center; color: #007aff; flex: none; } .wa-back b { font-weight: 400; font-size: 14px; margin-inline-start: -2px; }
[dir="rtl"] .wa-back svg { transform: scaleX(-1); }
.wa-av { flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #e6f3ef; color: #0b6b58; font-weight: 700; }
.wa-av svg { width: 34px; height: 34px; }
.wa-who { min-width: 0; flex: 1; line-height: 1.2; } .wa-who b { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-who small { display: block; font-size: 11.5px; color: #667781; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wa-who small.is-typing { color: #00a884; font-weight: 500; }
.wa-hi { display: inline-flex; gap: 14px; color: #007aff; flex: none; padding-inline-end: 2px; }
.wa-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 3px; padding: 8px 9px 10px; overflow-y: auto; scrollbar-width: none; background-color: #efeae2; background-image: radial-gradient(rgb(11 20 26 / .05) 1.2px, transparent 1.4px), radial-gradient(rgb(11 20 26 / .035) 1px, transparent 1.2px); background-size: 26px 26px, 17px 17px; background-position: 0 0, 9px 11px; }
.wa-chat::-webkit-scrollbar { display: none; }
.wa-chip { align-self: center; margin: 4px 0 6px; padding: 4px 11px; border-radius: 8px; background: #fff; font-size: 10.5px; color: #54656f; box-shadow: 0 1px .5px rgb(11 20 26 / .12); }
.wa-secure { align-self: center; max-width: 92%; display: flex; gap: 6px; align-items: flex-start; margin-bottom: 8px; padding: 6px 9px; border-radius: 8px; background: #ffeecd; font-size: 10px; line-height: 1.4; color: #54656f; text-align: center; box-shadow: 0 1px .5px rgb(11 20 26 / .1); }
.wa-secure svg { flex: none; margin-top: 2px; }
.wa-m { display: flex; flex-direction: column; max-width: 82%; margin-top: 3px; } .wa-m.wa-in { align-self: flex-start; } .wa-m.wa-out { align-self: flex-end; }
.wa-b { position: relative; padding: 5px 8px 4px 9px; border-radius: 8px; font-size: 13px; line-height: 1.36; background: #fff; box-shadow: 0 1px .5px rgb(11 20 26 / .13); color: #111b21; overflow-wrap: anywhere; }
.wa-b p { margin: 0; display: inline; } .wa-b::after { content: ""; display: table; clear: both; }
.wa-in .wa-b { border-start-start-radius: 0; } .wa-out .wa-b { background: #d9fdd3; border-start-end-radius: 0; }
.wa-in .wa-b::before, .wa-out .wa-b::before { content: ""; position: absolute; top: 0; width: 8px; height: 13px; }
.wa-in .wa-b::before { inset-inline-start: -7px; background: #fff; clip-path: polygon(100% 0, 0 0, 100% 100%); }
[dir="rtl"] .wa-in .wa-b::before { clip-path: polygon(0 0, 100% 0, 0 100%); }
.wa-out .wa-b::before { inset-inline-end: -7px; background: #d9fdd3; clip-path: polygon(0 0, 100% 0, 0 100%); }
[dir="rtl"] .wa-out .wa-b::before { clip-path: polygon(100% 0, 0 0, 100% 100%); }
.wa-bh { font-weight: 600; margin-bottom: 2px; } .wa-codeb { font-weight: 700; letter-spacing: .03em; } .wa-bf { display: block; margin-top: 3px; font-size: 11px; color: #667781; line-height: 1.3; }
.wa-ai { display: inline-block; margin-inline-end: 6px; padding: 0 5px; border-radius: 4px; background: #e7f6f1; color: #00755f; font-size: 10px; font-weight: 700; vertical-align: 1px; }
.wa-t { float: inline-end; margin-inline-start: 10px; margin-top: 7px; font-size: 10px; line-height: 1; color: #667781; display: inline-flex; align-items: center; gap: 3px; direction: ltr; }
.wa-tick { width: 16px; height: 10px; color: #8696a0; } .wa-tick[data-s="sent"] path:last-child { display: none; } .wa-tick[data-s="read"] { color: #53bdeb; }
.wa-btns { display: grid; gap: 2px; margin-top: 2px; }
.wa-qb { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 6px 10px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 1px .5px rgb(11 20 26 / .13); color: #027eb5; font: inherit; font-size: 12.8px; font-weight: 500; cursor: pointer; transition: background .15s, transform .12s; }
.wa-qb:hover:not(:disabled) { background: #f0f7fa; } .wa-qb:disabled { cursor: default; }
.wa-qb.is-pressed { background: #dff0f7; transform: scale(.98); }
.wa-qb.wa-wait { animation: wa-pulse 1.4s ease-in-out infinite; }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 1px .5px rgb(11 20 26 / .13), 0 0 0 0 rgb(2 126 181 / .0); } 50% { box-shadow: 0 1px .5px rgb(11 20 26 / .13), 0 0 0 4px rgb(2 126 181 / .22); } }
.wa-sysm { align-self: center; margin: 6px 0; padding: 4px 10px; border-radius: 8px; background: rgb(255 255 255 / .85); font-size: 10.5px; color: #54656f; text-align: center; box-shadow: 0 1px .5px rgb(11 20 26 / .1); }
.wa-pop { animation: wa-pop .26s cubic-bezier(.2, .9, .3, 1.15) both; } @keyframes wa-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.wa-foot { display: flex; align-items: center; gap: 8px; padding: 6px 8px 4px; background: #f7f7f7; border-top: .5px solid #d8d8d8; color: #007aff; }
.wa-plus { flex: none; display: grid; place-items: center; width: 28px; }
.wa-input { flex: 1; min-width: 0; display: flex; align-items: center; height: 34px; padding: 0 10px; border-radius: 18px; background: #fff; border: .5px solid #d1d7db; }
.wa-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13.5px; color: #111b21; }
.wa-input input::placeholder { color: #8696a0; } .wa-st { color: #8696a0; display: grid; }
.wa-cam, .wa-mic { color: #54656f; display: grid; place-items: center; flex: none; } .wa-mic[hidden], .wa-sendb[hidden] { display: none; }
.wa-sendb { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #00a884; display: grid; place-items: center; cursor: pointer; }
[dir="rtl"] .wa-sendb svg { transform: scaleX(-1); }
.wa-home { align-self: center; width: 118px; height: 4.5px; margin: 6px 0 7px; border-radius: 9px; background: #000; flex: none; }
.wa-foot + .wa-home { background: #000; }
.wa-screen > .wa-home { background: #000; margin-top: 4px; } .wa-foot { padding-bottom: 2px; }
.wa-phone.small { --wa-w: 262px; }
@media (max-width: 640px) { .wa-phone { --wa-w: 270px; } }
@media (prefers-reduced-motion: reduce) { .wa-pop, .wa-qb.wa-wait { animation: none; } }

/* hero stage placement */
.x-phone-wrap { position: absolute; inset-inline-end: 3%; top: -18px; width: 288px; z-index: 2; }
.x-stage-body { min-height: 610px; }
.x-dash { width: calc(100% - 248px); }
.x-chart.is-draw .x-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: x-draw 1.2s ease-out forwards; }
.x-chart.is-draw .x-area { opacity: 0; animation: x-fadein .8s .5s ease-out forwards; }
@keyframes x-draw { to { stroke-dashoffset: 0; } } @keyframes x-fadein { to { opacity: 1; } }
.x-log li.x-in { animation: wa-pop .35s both; }
.x-tab-bar { display: none; }
@media (max-width: 960px) {
  .x-phone-wrap { position: relative; inset: auto; top: auto; width: min(288px, 100%); order: 1; margin-inline: auto; }
  .x-dash { width: 100%; order: 2; }
  .x-stage-body { min-height: 0; }
}

.wa-phone.small { --wa-w: 262px; }

/* ---- round 4: stage = dashboard + phone side by side (no overlap), strips under the languages, floating field chips ---------------- */
.x-hero-stage { padding: 12px 0 70px; }
.x-hero + .x-ticker, .x-hero + .x-marq { margin-top: 0; }
.x-stage-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; min-height: 0; }
.x-dash { position: relative; inset: auto; width: auto; min-height: 570px; }
.x-phone-wrap { position: relative; inset: auto; top: auto; width: 300px; }
.x-toast { inset-inline-start: 18px; bottom: 18px; }
@media (max-width: 1000px) {
  .x-stage-body { display: flex; flex-direction: column; align-items: center; gap: 28px; }
  .x-phone-wrap { order: 1; width: min(300px, 100%); } .x-dash { order: 2; width: 100%; min-height: 0; }
}
.x-floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.x-fl { position: absolute; inset-inline-start: var(--x); top: var(--y); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--x-line); box-shadow: 0 14px 30px -18px rgb(11 18 32 / .35); color: #0a7f69; font-size: 12px; animation: x-drift 9s ease-in-out infinite; animation-delay: var(--d); opacity: .92; }
.x-fl b { color: #17212f; font-weight: 600; } .x-fl small { color: #64707f; font-size: 11px; }
@keyframes x-drift { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-16px) rotate(1deg); } }
@media (max-width: 900px) { .x-fl small { display: none; } .x-fl { opacity: .55; } .x-fl:nth-child(n+5) { display: none; } }
@media (max-width: 560px) { .x-fl { display: none; } .x-hero:not(.x-hero-stage) { padding-top: 148px; } }
@media (prefers-reduced-motion: reduce) { .x-fl { animation: none; } }
.x-hero .main-container { position: relative; z-index: 1; }

/* before the first message the wallpaper used to look broken: show a soft hint until a bubble arrives */
.wa-chat[data-empty]:not(:has(.wa-m))::after { content: attr(data-empty); margin: auto; max-width: 78%; padding: 7px 14px; border-radius: 12px; text-align: center;
  background: rgb(255 255 255 / .72); color: #54656f; font-size: 12px; line-height: 1.5; box-shadow: 0 1px 1px rgb(11 20 26 / .08); }

/* narrow phones (hero on a real phone, small demos): keep the status bar and the chat header from colliding */
.wa-phone { container-type: inline-size; }
.wa-sys svg { flex: none; }
@container (max-width: 262px) {
  .wa-status { padding: 12px 18px 5px; font-size: 12.5px; }
  .wa-sys { gap: 3px; } .wa-sys svg { height: 10px; width: auto; }
  .wa-head { gap: 6px; padding: 5px 8px 7px; }
  .wa-back b { display: none; }
  .wa-hi > :first-child { display: none; }
  .wa-who b { font-size: 13px; gap: 3px; } .wa-who small { font-size: 10.5px; }
}

/* the page a link button opens inside the phone (payment gateway demo) */
.wa-pay { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; background: #fff; color: #111b21; border-radius: inherit; transform: translateY(100%); transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.wa-pay.is-on { transform: none; }
.wa-pay-bar { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 34px 14px 8px; padding: 7px 12px; border-radius: 12px; background: #eceef1; color: #3b4a54; font-size: 11.5px; }
.wa-notif { position: absolute; z-index: 9; top: 34px; inset-inline: 8px; display: flex; gap: 9px; padding: 9px 11px; border-radius: 18px; background: rgb(255 255 255 / .96); color: #111b21; box-shadow: 0 8px 26px -6px rgb(0 0 0 / .35), 0 0 0 .5px rgb(0 0 0 / .08); transform: translateY(-140%); opacity: 0; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s; text-align: start; }
.wa-notif.is-on { transform: none; opacity: 1; } .wa-notif.is-tap { transform: scale(.97); opacity: .6; }
.wa-notif-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #25d366; }
.wa-notif-h { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; } .wa-notif-h small { color: #6b7780; font-size: 10.5px; }
.wa-notif p { margin: 1px 0 0; font-size: 11.5px; line-height: 1.35; color: #3b4a54; }
.wa-pay-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px 18px; text-align: center; }
.wa-pay-body small { color: #54656f; font-size: 12px; }
.wa-pay-amt { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.wa-pay-body dl { margin: 4px 0 0; display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: #f7f8fa; }
.wa-pay-body dl > div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; } .wa-pay-body dt { color: #54656f; } .wa-pay-body dd { margin: 0; font-weight: 600; }
.wa-pay-go { margin-top: auto; min-height: 40px; border: 0; border-radius: 999px; background: #00a884; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.wa-pay-go:disabled { opacity: .6; cursor: default; }
.wa-pay-ok { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: #fff; color: #00a884; opacity: 0; pointer-events: none; transition: opacity .25s; }
.wa-pay-ok b { color: #111b21; font-size: 14px; }
.wa-pay.is-paid .wa-pay-ok { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .wa-pay { transition: none; } }
