.imessage-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  margin-block: 48px 0;
  padding: 36px 48px;
  border: 1px solid #dce5eb;
  border-radius: 30px;
  background: radial-gradient(ellipse at 100% 100%, #dcecff 0, transparent 65%), #f0f5f8;
  overflow: hidden;
}
.imessage-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.imessage-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(#63e97b, #22bd47);
  box-shadow: 0 4px 10px #22bd471a, inset 0 1px 1px #ffffff80;
}
.imessage-icon::before { content: ""; width: 27px; height: 25px; background: white; clip-path: polygon(50% 0, 75% 5%, 92% 20%, 100% 40%, 97% 61%, 82% 78%, 57% 86%, 30% 84%, 10% 100%, 15% 74%, 3% 57%, 0 37%, 10% 18%, 28% 5%); }
.imessage-badge { border: 1px solid #c9d8e9; border-radius: 30px; padding: 6px 11px; color: #315579; font-size: 10px; font-weight: 650; letter-spacing: 1.3px; text-transform: uppercase; }
.imessage-copy h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -1.7px; }
.imessage-copy > p { max-width: 310px; margin: 16px 0 0; color: #556574; font-size: 14px; line-height: 1.6; }
.imessage-preview { width: 100%; max-width: 370px; justify-self: end; }
.imessage-contact { display: flex; justify-content: center; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid #ccd8e480; font-size: 12px; font-weight: 650; }
.imessage-contact img { border-radius: 50%; background: #fff9; }
.imessage-contact span span { color: #657486; font-weight: 400; }
.imessage-conversation { display: flex; flex-direction: column; gap: 14px; padding: 20px 4px 12px; }
.imessage-sent, .imessage-reply { width: fit-content; max-width: 95%; padding: 13px 18px; font-size: 16px; line-height: 1.4; }
.imessage-sent { align-self: end; border-radius: 22px 22px 6px 22px; color: white; background: linear-gradient(135deg, #3598ff, #0877ee); box-shadow: 0 5px 14px #0877ee1a; transform-origin: bottom right; }
.imessage-sent span { margin-left: 8px; }
.imessage-reply-slot { display: grid; min-height: 49px; align-items: start; }
.imessage-reply, .imessage-typing { grid-area: 1 / 1; border-radius: 22px 22px 22px 6px; background: #fff; color: #273644; box-shadow: 0 3px 12px #354f6b08; transform-origin: bottom left; }
.imessage-reply span { color: #0877ee; margin-left: 5px; }
.imessage-typing { display: none; gap: 5px; width: fit-content; padding: 18px; }
.imessage-typing i { width: 8px; height: 8px; border-radius: 50%; background: #8997a4; }
.imessage-caption { text-align: center; color: #657486; font-size: 10px; margin: 8px 0 0; }
/* A single short conversation plays when the card comes into view. */
@media (prefers-reduced-motion: no-preference) {
  .imessage-animate .imessage-sent { animation: imessage-pop .65s cubic-bezier(.16, 1, .3, 1) both; }
  .imessage-animate .imessage-typing { display: flex; animation: imessage-typing 2.8s both; }
  .imessage-animate .imessage-typing i { animation: imessage-dot .7s ease-in-out 4; }
  .imessage-animate .imessage-typing i:nth-child(2) { animation-delay: .12s; }
  .imessage-animate .imessage-typing i:nth-child(3) { animation-delay: .24s; }
  .imessage-animate .imessage-reply { animation: imessage-pop .65s 2.8s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes imessage-pop { from { opacity: 0; transform: translateY(12px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes imessage-typing { 0%, 15% { opacity: 0; transform: scale(.8); } 30%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; visibility: hidden; } }
@keyframes imessage-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (max-width: 760px) {
  .imessage-teaser { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; margin-block: 32px 0; border-radius: 24px; }
  .imessage-copy h2 { font-size: 34px; }
  .imessage-preview { justify-self: center; }
}
@media (max-width: 360px) {
  .imessage-teaser { padding: 24px 20px; }
  .imessage-copy h2 { font-size: 29px; }
  .imessage-sent, .imessage-reply { font-size: 14px; padding: 12px 15px; }
}
