/* ============================================================
   WhatsApp no iPhone — hero do CELULAR
   Substitui o Signal DNA abaixo de 1024px. Desktop: Otto 3D.
   ============================================================ */

.wa-phone { display: none; }

@media (max-width: 1023px) {
  .signal-hero .signal-stage {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  .hero-visual.signal-hero {
    min-height: 0;
    margin-top: 4px;
    display: flex;
    justify-content: center;
    overflow: visible;
  }
  .wa-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 4px 0 8px;
  }
}

/* ── chassi iPhone ── */
.wa-device {
  position: relative;
  width: min(318px, 88vw);
  aspect-ratio: 9 / 18.6;
  border-radius: 46px;
  background:
    linear-gradient(160deg, #3a3d42 0%, #16171a 28%, #0a0b0c 70%, #2a2c30 100%);
  padding: 10px;
  box-shadow:
    0 0 0 1.5px #6a6e74,
    inset 0 0 0 1px rgba(255,255,255,.18),
    inset 0 0 0 7px #0c0d0e,
    0 30px 70px -16px rgba(0, 0, 0, .88),
    0 0 90px -20px rgba(143, 233, 60, .16);
}
.wa-btn {
  position: absolute;
  background: #2a2c2e;
  z-index: 2;
}
.wa-btn--silent {
  left: -2.5px; top: 92px;
  width: 3px; height: 22px;
  border-radius: 2px 0 0 2px;
}
.wa-btn--vol-up {
  left: -2.5px; top: 128px;
  width: 3px; height: 38px;
  border-radius: 2px 0 0 2px;
}
.wa-btn--vol-dn {
  left: -2.5px; top: 174px;
  width: 3px; height: 38px;
  border-radius: 2px 0 0 2px;
}
.wa-btn--power {
  right: -2.5px; top: 148px;
  width: 3px; height: 58px;
  border-radius: 0 2px 2px 0;
}

.wa-screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #e5ddd5;
  font-family: -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #111b21;
  -webkit-font-smoothing: antialiased;
}

/* ── status bar iOS ── */
.wa-status {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 0;
  height: 42px;
  background: #f0f2f5;
  color: #111;
  flex: none;
}
.wa-time {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
  width: 56px;
}
.wa-island {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 26px;
  background: #0c0d0e;
  border-radius: 99px;
  z-index: 7;
  box-shadow: inset 0 0 0 1px #1a1a1a;
}
.wa-tray {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 64px;
  justify-content: flex-end;
  color: #111;
}
.wa-sig { width: 16px; height: 11px; }
.wa-wifi { width: 15px; height: 11px; }
.wa-batt {
  width: 22px; height: 11px;
  border: 1.3px solid #111;
  border-radius: 3px;
  position: relative;
  padding: 1.5px;
}
.wa-batt::after {
  content: "";
  position: absolute;
  right: -3px; top: 3px;
  width: 2px; height: 5px;
  background: #111;
  border-radius: 0 1px 1px 0;
}
.wa-batt i {
  display: block;
  height: 100%;
  width: 72%;
  background: #111;
  border-radius: 1px;
}

/* ── header WhatsApp iOS ── */
.wa-head {
  position: relative;
  z-index: 4;
  background: #f0f2f5;
  border-bottom: .5px solid rgba(0, 0, 0, .12);
  padding: 2px 6px 8px;
  flex: none;
}
.wa-head-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.wa-back {
  width: 26px; height: 28px;
  color: #00a884;
  display: grid; place-items: center;
  flex: none;
}
.wa-back svg { width: 22px; height: 22px; }
.wa-ava {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #ddd;
}
.wa-who { flex: 1; min-width: 0; line-height: 1.15; }
.wa-who b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  letter-spacing: -.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wa-who small {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 400;
  color: #00a884;
}
.wa-acts {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #00a884;
  padding-right: 8px;
}
.wa-acts svg { width: 22px; height: 22px; }

/* ── thread + doodle ── */
.wa-thread {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 8px 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-color: #e5ddd5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><g fill='none' stroke='%23c9bdb3' stroke-width='1.1' opacity='.55'><path d='M22 30c8-14 28-8 22 8-4 12-18 8-16-4 1-8 10-10 14-4'/><path d='M96 24c0 10 14 12 18 4 3-7-4-14-12-10'/><circle cx='150' cy='38' r='7'/><path d='M40 86c12-4 18 12 6 16-9 3-14-8-6-12'/><path d='M118 78c8 8 22 2 18-10'/><path d='M20 140c10 0 14 12 4 16s-16-6-8-14'/><path d='M88 128c6-10 24-6 20 8-2 8-16 8-18 0'/><path d='M152 124c-8 10 4 22 14 12 6-6 2-16-8-14'/><path d='M70 50c4 0 6 6 2 8s-8-2-6-6'/><path d='M164 78c-6 0-6 10 2 8'/></g></svg>");
  background-size: 180px 180px;
}
.wa-day {
  align-self: center;
  margin: 2px 0 5px;
  padding: 3px 10px 4px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, .08);
  font-size: 11.5px;
  font-weight: 500;
  color: #54656f;
}

.wa-b {
  position: relative;
  max-width: 84%;
  padding: 6px 8px 4px 9px;
  border-radius: 8px;
  font-size: 14.2px;
  line-height: 1.32;
  color: #111b21;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, .13);
  animation: wa-in .42s cubic-bezier(.16, 1, .3, 1) both;
}
.wa-b p { margin: 0; }
.wa-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin: 2px 0 0;
  font-size: 10.5px;
  color: #667781;
  line-height: 1;
}
.wa-ticks { width: 16px; height: 11px; fill: #53bdeb; }

.wa-b--in {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: 0;
}
.wa-b--in::before {
  content: "";
  position: absolute;
  left: -7px; top: 0;
  width: 8px; height: 13px;
  background: #fff;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
.wa-b--out {
  align-self: flex-end;
  background: #d9fdd3;
  border-top-right-radius: 0;
}
.wa-b--out::before {
  content: "";
  position: absolute;
  right: -7px; top: 0;
  width: 8px; height: 13px;
  background: #d9fdd3;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.wa-b--in:nth-of-type(1),
.wa-thread .wa-b:nth-child(2) { animation-delay: .12s; }
.wa-thread .wa-b:nth-child(3) { animation-delay: .55s; }
.wa-thread .wa-b:nth-child(4) { animation-delay: 1.05s; }
.wa-thread .wa-b:nth-child(5) { animation-delay: 1.6s; }
.wa-thread .wa-b:nth-child(6) { animation-delay: 2.15s; }
.wa-sys { animation-delay: 2.6s; }

@keyframes wa-in {
  from { opacity: 0; transform: translateY(7px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.wa-b--card { max-width: 88%; padding: 5px 6px 4px; }
.wa-lead {
  background: #fff;
  border-radius: 6px;
  padding: 8px 10px 8px 11px;
  border-left: 3px solid #00a884;
  margin-bottom: 4px;
}
.wa-lead-k {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #00a884;
  margin-bottom: 3px;
}
.wa-lead b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #111b21;
  letter-spacing: -.01em;
}
.wa-lead ul {
  list-style: none;
  margin: 5px 0 0;
  padding: 0;
}
.wa-lead li {
  font-size: 12px;
  color: #667781;
  line-height: 1.45;
}
.wa-lead em {
  font-style: normal;
  font-weight: 600;
  color: #111b21;
}

.wa-sys {
  align-self: center;
  margin: 4px 0 2px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #d5e4f5;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, .06);
  font-size: 11.5px;
  font-weight: 500;
  color: #1d4b73;
  text-align: center;
  animation: wa-in .42s cubic-bezier(.16, 1, .3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .wa-b, .wa-sys { animation: none; }
}

/* ── composer ── */
.wa-compose {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 22px;
  background: #f0f2f5;
  flex: none;
}
.wa-plus, .wa-mic {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
  color: #54656f;
}
.wa-mic { background: #00a884; color: #fff; }
.wa-plus svg, .wa-mic svg { width: 20px; height: 20px; }
.wa-field {
  flex: 1;
  height: 34px;
  border-radius: 18px;
  background: #fff;
  border: .5px solid rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 15px;
  color: #84939a;
}

.wa-homebar {
  position: absolute;
  left: 50%; bottom: 7px;
  transform: translateX(-50%);
  width: 120px; height: 4px;
  background: #1a1a1a;
  border-radius: 99px;
}

.wa-caption {
  margin-top: 12px;
  font-family: var(--f-mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime, #8fe93c);
  text-align: center;
}
.wa-caption i {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lime, #8fe93c);
  box-shadow: 0 0 8px var(--lime, #8fe93c);
  vertical-align: 1px;
}

/* ── conversa ao vivo ── */
.wa-step {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}
.wa-step.is-in {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  max-height: 240px;
  margin: 0;
  padding: 6px 8px 4px 9px;
  overflow: visible;
  transition: opacity .28s ease, transform .28s cubic-bezier(.16, 1, .3, 1);
}
.wa-step.wa-b--card.is-in { padding: 5px 6px 4px; }
.wa-step.wa-sys.is-in {
  padding: 5px 10px;
  max-height: 80px;
}

.wa-typing {
  display: none;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 54px;
  height: 32px;
  margin: 2px 0 2px 2px;
  background: #fff;
  border-radius: 16px 16px 16px 4px;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, .13);
}
.wa-typing.is-on { display: flex; }
.wa-typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9aa3a8;
  animation: wa-dot 1.15s ease-in-out infinite;
}
.wa-typing i:nth-child(2) { animation-delay: .15s; }
.wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-step { max-height: none; opacity: 1; visibility: visible; transform: none; padding: 6px 8px 4px 9px; }
  .wa-step.wa-sys { padding: 5px 10px; }
  .wa-typing { display: none !important; }
}

.wa-phone .wa-b,
.wa-phone .wa-sys { animation: none; }
.wa-thread::-webkit-scrollbar { display: none; }
