/* WhatsApp-style example conversation used on the WhatsApp product page and the sector landings.
   It is an illustration of what a customer sees in WhatsApp, built with HTML/CSS (no screenshot). */

/* Keeps the phone at its natural height inside stretched grid cells. */
.wa-demo-wrap {
  align-self: start;
}

.wa-demo {
  --wa-header: #008069;
  --wa-chat: #efeae2;
  --wa-in: #ffffff;
  --wa-out: #d9fdd3;
  --wa-text: #111b21;
  --wa-muted: #667781;
  --wa-link: #027eb5;
  width: 100%;
  max-width: 380px;
  margin: 1.45rem auto 0;
  padding: 0.65rem;
  border-radius: 2.4rem;
  background: #0b0f14;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 36px 80px -30px rgba(2, 6, 23, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: left;
}

.wa-demo__screen {
  display: flex;
  flex-direction: column;
  border-radius: 1.85rem;
  overflow: hidden;
  background: var(--wa-chat);
}

.wa-demo__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  background: var(--wa-header);
  color: #ffffff;
}

.wa-demo__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--wa-header);
  font-weight: 700;
  font-size: 1rem;
}

.wa-demo__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.wa-demo__name {
  font-weight: 700;
  font-size: 0.98rem;
}

.wa-demo__status {
  font-size: 0.74rem;
  opacity: 0.85;
}

.wa-demo__chat {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 0.75rem 1rem;
  min-height: 420px;
}

.wa-demo__msg {
  position: relative;
  max-width: 86%;
  padding: 0.45rem 0.6rem 1.15rem;
  border-radius: 0.6rem;
  color: var(--wa-text);
  font-size: 0.86rem;
  line-height: 1.38;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  word-wrap: break-word;
}

.wa-demo__msg p {
  margin: 0 0 0.35rem;
  color: var(--wa-text);
  font-size: inherit;
  line-height: inherit;
}

.wa-demo__msg p:last-of-type {
  margin-bottom: 0;
}

.wa-demo__msg ul {
  margin: 0.15rem 0 0.35rem;
  padding-left: 1.05rem;
}

.wa-demo__msg li {
  color: var(--wa-text);
}

.wa-demo__msg a,
.wa-demo__link {
  color: var(--wa-link);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.wa-demo__msg--in {
  align-self: flex-start;
  background: var(--wa-in);
  border-top-left-radius: 0.15rem;
}

.wa-demo__msg--out {
  align-self: flex-end;
  background: var(--wa-out);
  border-top-right-radius: 0.15rem;
}

.wa-demo__time {
  position: absolute;
  right: 0.5rem;
  bottom: 0.25rem;
  color: var(--wa-muted);
  font-size: 0.66rem;
  white-space: nowrap;
}

.wa-demo__msg--out .wa-demo__time::after {
  content: "\2713\2713";
  margin-left: 0.2rem;
  color: #53bdeb;
  letter-spacing: -0.18em;
}

.wa-demo__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-self: flex-start;
  width: 86%;
  margin-top: -0.2rem;
}

.wa-demo__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  background: var(--wa-in);
  color: var(--wa-link);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

.wa-demo__system {
  align-self: center;
  max-width: 92%;
  padding: 0.3rem 0.65rem;
  border-radius: 0.5rem;
  background: #fff5c4;
  color: #54656f;
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
}

.wa-demo__composer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem 0.75rem;
  background: var(--wa-chat);
}

.wa-demo__input {
  flex: 1 1 auto;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--wa-muted);
  font-size: 0.84rem;
}

.wa-demo__mic {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--wa-header);
  color: #ffffff;
  font-size: 0.95rem;
}

.wa-demo-note {
  margin: 0.75rem auto 0;
  max-width: 380px;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}

/* Screenshot with a caption (real product interface). */
.wa-shot {
  margin: 1.45rem 0 0;
}

.wa-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #ffffff;
}

.wa-shot figcaption {
  margin-top: 0.7rem;
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Two columns: text list + media, stacks on tablets and phones. */
.wa-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 2.35rem;
  align-items: center;
}

.wa-split--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.wa-points {
  display: grid;
  gap: 1rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.wa-points li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.55;
}

.wa-points li > i {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 11px;
  background: rgba(45, 212, 191, 0.14);
  color: #5eead4;
  font-size: 1.05rem;
}

.wa-points strong {
  display: block;
  color: #f8fafc;
  font-weight: 700;
}

.wa-needs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.4rem;
}

.wa-needs .usecase-card {
  height: 100%;
}

.wa-good-to-know {
  margin: 1.6rem 0 0;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.45);
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.55;
}

.wa-good-to-know ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.wa-good-to-know strong {
  color: #f8fafc;
}

@media (max-width: 991.98px) {
  .wa-split,
  .wa-split--reverse {
    grid-template-columns: 1fr;
  }

  .wa-needs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .wa-demo__chat {
    min-height: 0;
  }
}
