/* =========================================================
   Stratus IA — notificações do WhatsApp e seção "Um voo com a Stratus"
   ========================================================= */

/* ---------- Notificação do WhatsApp (balão flutuante) ---------- */

.wa-note {
  position: relative;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(17, 24, 34, 0.8);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #25D366;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: #E2E8F0;
  text-align: left;
  transition: opacity 0.35s ease;
}
.wa-note::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 163, 255, 0.45), transparent);
}
.wa-note__head { display: flex; align-items: flex-start; gap: 10px; }
.wa-note__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #25D366;
}
.wa-note__icon svg { width: 18px; height: 18px; }
.wa-note__who { flex: 1; min-width: 0; line-height: 1.25; }
.wa-note__who p { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.wa-note__who b { font-size: 13px; font-weight: 700; color: #fff; }
.wa-note__badge {
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.15);
  color: #86EFAC;
  font-size: 10px;
  font-weight: 600;
}
.wa-note__who small { display: block; margin-top: 2px; font-size: 11px; color: #94A3B8; }
.wa-note__time {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #166534;
  background: rgba(5, 46, 22, 0.6);
  color: #4ADE80;
  font-family: var(--mono);
  font-size: 10.5px;
}
.wa-note__msg {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 34, 0.65);
  border: 1px solid rgba(30, 41, 59, 0.9);
  font-size: 13px;
  line-height: 1.5;
}
.wa-note__msg strong { color: #FCD34D; font-weight: 600; }
.wa-note__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
}
.wa-note__src {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #94A3B8;
}
.wa-note__src i { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; }
.wa-note__actions { display: flex; gap: 6px; }
.wa-note__actions button {
  padding: 5px 10px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}
.wa-note__ack { border: 1px solid #334155; background: #1E293B; color: #CBD5E1; }
.wa-note__ack:hover { background: #273449; }
.wa-note__ack[disabled] { opacity: 0.7; cursor: default; }
.wa-note__reply { border: 1px solid #16A34A; background: #16A34A; color: #fff; }
.wa-note__reply:hover { background: #22C55E; }
.wa-note.is-acked { opacity: 0.55; }
.wa-note--compact { width: 88%; padding: 12px 14px; }
.wa-note--compact .wa-note__msg { margin-top: 8px; }

/* ---------- Seção do voo ---------- */

.journey { position: relative; background: #070B12; }
.journey__pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.journey__map,
.journey__ground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.journey__map { z-index: 0; opacity: 0; }
.journey__ground { z-index: 1; transform-origin: 60% 68%; }
.journey__ground svg { display: block; width: 100%; height: 100%; }
.taxi-dash { animation: taxiDash 1.2s linear infinite; }
@keyframes taxiDash { to { stroke-dashoffset: -24; } }
.taxi-ripple { animation: ripple 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ripple {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.7); opacity: 0; }
}

.journey__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-size: 44px 44px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}
.journey__shade {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 11, 18, 0.9) 0%, rgba(7, 11, 18, 0.45) 38%, rgba(7, 11, 18, 0) 60%),
    linear-gradient(180deg, rgba(7, 11, 18, 0.85) 0%, rgba(7, 11, 18, 0) 22%, rgba(7, 11, 18, 0) 72%, rgba(7, 11, 18, 0.9) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(30, 58, 138, 0.18) 0%, transparent 60%);
}

.journey__telemetry {
  position: absolute;
  top: 104px;
  right: clamp(20px, 4vw, 64px);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 12px;
  color: #64748B;
}
.journey__telemetry b { color: #E2E8F0; font-weight: 500; }
.journey__telemetry b.is-ok { color: #4ADE80; }
.journey__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 7px;
  background: #0F172A;
  border: 1px solid #1E293B;
  color: #CBD5E1;
}
.journey__link i,
.journey__phase strong i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot { 50% { opacity: 0.35; transform: scale(0.8); } }

.journey__copy {
  position: absolute;
  top: 24vh;
  left: clamp(20px, 6vw, 110px);
  z-index: 5;
  width: min(540px, 40vw);
  min-height: 300px;
}
.jphase {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
}
.jphase.is-active { opacity: 1; visibility: visible; }
.jphase__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.jphase__tag::before { content: ""; width: 22px; height: 2px; background: var(--amber); }
.jphase h3 {
  font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #fff;
}
.jphase h3 span {
  background: linear-gradient(90deg, #fff 0%, #E2E8F0 45%, #94A3B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.jphase > p:last-child {
  margin-top: 20px;
  max-width: 40ch;
  font-size: 1.1rem;
  line-height: 1.55;
  color: #94A3B8;
}

.journey__cards {
  position: absolute;
  top: 50%;
  right: clamp(20px, 4vw, 64px);
  z-index: 6;
  width: min(410px, 34vw);
  height: 470px;
  transform: translateY(-46%);
}
.jcards {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  visibility: hidden;
}
.jcards.is-active { visibility: visible; }

.jdata {
  position: relative;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(17, 24, 34, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.jdata::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 163, 255, 0.45), transparent);
}
.jdata__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94A3B8;
}
.tagc {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(252, 211, 77, 0.35);
  background: rgba(252, 211, 77, 0.1);
  color: #FCD34D;
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.tagc--ok { border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.1); color: #4ADE80; }
.jdata code {
  display: block;
  padding: 9px 11px;
  border-radius: 9px;
  background: #0B1220;
  border: 1px solid #1E293B;
  color: #CBD5E1;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  word-break: break-word;
}
.jdata dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
.jdata dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #64748B; }
.jdata dd { margin: 3px 0 0; font-size: 14px; font-weight: 600; color: #F1F5F9; }
.jdata__src { margin-top: 12px; font-size: 11.5px; color: #64748B; }
.gauge + .gauge { margin-top: 14px; }
.gauge__label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 12px; color: #94A3B8; }
.gauge__label b { font-family: var(--mono); font-size: 11.5px; color: #F1F5F9; font-weight: 600; }
.gauge__bar { position: relative; height: 8px; border-radius: 999px; background: #1E293B; overflow: hidden; }
.gauge__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #4DA3FF, #4ADE80); }
.gauge__bar--range {
  overflow: visible;
  background: linear-gradient(90deg, #1E293B 0%, rgba(74, 222, 128, 0.35) 8%, rgba(74, 222, 128, 0.35) 92%, #1E293B 100%);
}
.gauge__bar i.gauge__mark {
  top: -4px;
  bottom: -4px;
  width: 4px;
  margin-left: -2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.journey__bottom {
  position: absolute;
  left: clamp(20px, 6vw, 110px);
  right: clamp(20px, 4vw, 64px);
  bottom: 44px;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.journey__phase {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px 12px 12px;
  border-radius: 18px;
  background: rgba(22, 30, 44, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}
.journey__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid #334155;
  color: #4DA3FF;
}
.journey__icon svg { width: 20px; height: 20px; transition: transform 0.6s var(--ease); }
.journey__phase small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748B;
}
.journey__phase strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.journey__phase strong i { background: var(--amber); }
.journey__readout {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid #1E293B;
  font-family: var(--mono);
  font-size: 12px;
  color: #64748B;
}
.journey__readout span + span { padding-left: 16px; border-left: 1px solid #1E293B; }
.journey__readout b { color: #fff; font-weight: 600; }
.journey__readout b.is-amber { color: #FCD34D; }
.journey__readout b.is-red { color: #F87171; }
.journey__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}
.journey__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4DA3FF, #BAE6FD);
}
.journey__note {
  position: absolute;
  right: clamp(20px, 4vw, 64px);
  bottom: 14px;
  z-index: 6;
  font-size: 11px;
  color: #475569;
}

@media (max-width: 960px) {
  .journey__telemetry,
  .journey__readout { display: none; }
  .journey__copy { top: 96px; left: 20px; right: 20px; width: auto; min-height: 0; }
  .jphase h3 { font-size: clamp(2rem, 1.2rem + 4vw, 2.8rem); }
  .jphase > p:last-child { margin-top: 12px; font-size: 1rem; }
  .journey__cards { top: auto; bottom: 116px; left: 16px; right: 16px; width: auto; height: 260px; transform: none; }
  .jcards { justify-content: flex-end; }
  .jcards .jdata { display: none; }
  .journey__bottom { left: 16px; right: 16px; bottom: 26px; }
  .journey__phase { width: 100%; }
}

/* ---------- Etapa "Pergunte": tela do WhatsApp ---------- */

.scene--ask { justify-content: center; }
.scene--ask .wa-input { width: 90%; margin-bottom: 0; }
.wa-modes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.wa-modes span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  background: rgba(32, 44, 51, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #E9EDEF;
  font-size: 13px;
  font-weight: 500;
}
.wa-modes i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.wa-modes svg { width: 15px; height: 15px; }
.wa-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(32, 44, 51, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #E9EDEF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.wa-top img { border-radius: 50%; background: #fff; }
.wa-top__back { width: 22px; height: 22px; color: #AEBAC1; }
.wa-top__who { flex: 1; display: grid; line-height: 1.25; }
.wa-top__who b { font-size: 15px; font-weight: 600; }
.wa-top__who span { font-size: 12px; color: #25D366; }
.wa-top__ico { width: 22px; height: 22px; color: #AEBAC1; margin-left: 10px; }

.wa-attach {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: calc(100% - 28px);
  margin-bottom: 12px;
  padding: 18px 10px 14px;
  border-radius: 22px;
  background: rgba(32, 44, 51, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}
.wa-attach__item {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 12px;
  color: #D1D7DB;
}
.wa-attach__item i {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}
.wa-attach__item svg { width: 24px; height: 24px; }

.wa-input {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 20px);
  margin-bottom: 14px;
}
.wa-input__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 14px;
  border-radius: 999px;
  background: #2A3942;
  color: #E9EDEF;
  font-size: 15px;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8);
}
.wa-input__ico { flex: none; width: 22px; height: 22px; color: #8696A0; }
.wa-input__text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.wa-input__text .scene__caret { margin-left: 1px; margin-right: 0; background: #00A884; }
.wa-input__btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #00A884;
  color: #0B141A;
  box-shadow: 0 10px 30px -12px rgba(0, 168, 132, 0.8);
}
.wa-input__btn svg { grid-area: 1 / 1; width: 22px; height: 22px; transition: transform 0.25s ease, opacity 0.25s ease; }
.wa-input__send { opacity: 0; transform: scale(0.5); }
.wa-input.has-text .wa-input__send { opacity: 1; transform: scale(1); }
.wa-input.has-text .wa-input__mic { opacity: 0; transform: scale(0.5); }
.wa-input.has-text .wa-input__cam { display: none; }

/* ---------- Etapa "Decida": conversa do WhatsApp ---------- */

.wchat {
  position: absolute;
  inset: 18px;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background-color: #0B141A;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75);
  color: #E9EDEF;
  text-align: left;
}
.wchat__thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 14px 10px;
  overflow: hidden;
}
.wchat__day {
  align-self: center;
  margin-bottom: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #182229;
  color: #8696A0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.wchat__msg {
  position: relative;
  max-width: 88%;
  padding: 8px 10px 6px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.42;
}
.wchat__msg--out { align-self: flex-end; background: #005C4B; border-top-right-radius: 3px; }
.wchat__msg--in { align-self: flex-start; background: #202C33; border-top-left-radius: 3px; }
.wchat__msg--rich { max-width: 95%; padding: 10px 12px 8px; }
.wchat__meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  font-size: 10.5px;
  color: rgba(233, 237, 239, 0.6);
}
.wchat__meta svg { width: 16px; height: 11px; color: #53BDEB; }
.wchat__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.wchat__card-head span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.wchat__card-head i { width: 7px; height: 7px; border-radius: 50%; background: #25D366; }
.wchat__card-head em {
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid #2A3942;
  background: #111B21;
  color: #8696A0;
  font-family: var(--mono);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.wchat code {
  display: block;
  margin-bottom: 9px;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid #2A3942;
  background: #111B21;
  color: #D1D7DB;
  font-family: var(--mono);
  font-size: 10.8px;
  line-height: 1.5;
  word-break: break-word;
}
.wchat mark { background: none; }
.wchat .m-amber { color: #FCD34D; }
.wchat .m-green { color: #4ADE80; }
.wchat .m-sky { color: #7DD3FC; }
.wchat__line { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; font-size: 12.5px; line-height: 1.45; }
.wchat__line b { font-weight: 700; }
.wchat__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}
.wchat__ico--warn { background: #F59E0B; color: #111; }
.wchat__ico--ok { background: #22C55E; color: #052e16; }
.wchat__foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 10.5px; color: #25D366; }
.wchat__foot span:last-child { color: rgba(233, 237, 239, 0.55); }
.wchat__typing {
  align-self: flex-start;
  display: none;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 10px;
  border-top-left-radius: 3px;
  background: #202C33;
}
.wchat__typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8696A0;
  animation: typing 1.1s infinite ease-in-out;
}
.wchat__typing i:nth-child(2) { animation-delay: 0.15s; }
.wchat__typing i:nth-child(3) { animation-delay: 0.3s; }
.wchat__bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px 10px; background: #0B141A; }
.wchat__btn { display: grid; place-items: center; width: 30px; height: 30px; color: #8696A0; }
.wchat__btn svg { width: 21px; height: 21px; }
.wchat__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #202C33;
  color: #8696A0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}
.wchat__field span { overflow: hidden; text-overflow: ellipsis; }
.wchat__send {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #00A884;
  color: #0B141A;
}
.wchat__send svg { width: 18px; height: 18px; }

/* "Decida": a janela do WhatsApp ocupa o cartão inteiro, com cabeçalho no topo
   e papel de parede de desenhos (aviões, nuvens, bússola) como o do WhatsApp */
.scene--notes { background: #0B141A; }
.scene--notes .wchat {
  inset: 0;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  background-color: #0B141A;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%23ffffff' stroke-opacity='0.045' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><path d='M22 30l6-2 10-12h4l-4 12 8-1 3-4h3l-2 6 2 6h-3l-3-4-8-1 4 12h-4L28 34z'/><path d='M104 26a7 7 0 0 1 13-3 6 6 0 1 1 3 11h-17a5 5 0 0 1 1-8z'/><circle cx='128' cy='112' r='12'/><path d='M128 102l3 10-3 10-3-10z'/><path d='M30 104c8-6 16-6 24 0s16 6 24 0'/><path d='M70 70l4 8 8 4-8 4-4 8-4-8-8-4 8-4z'/><path d='M96 140a8 8 0 0 1 15-4 6 6 0 1 1 2 12H95a4 4 0 0 1 1-8z'/><path d='M8 144h20M18 136v16'/></g></svg>");
  background-size: 160px 160px;
}
.scene--notes .wchat__thread { padding-top: 12px; }

/* ---------- Voo: janela do WhatsApp que acompanha as fases ---------- */

.journey__cards:has(.wchat--journey) {
  top: calc(50% + 26px);
  width: min(430px, 34vw);
  height: min(640px, calc(100vh - 250px));
  transform: translateY(-50%);
}
/* só os balões do WhatsApp flutuando sobre o mapa: um par por fase, sem janela */
.wchat--journey {
  position: relative;
  inset: auto;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}
.wchat--journey .wchat__thread { justify-content: center; padding: 0; overflow: visible; }
.wchat--journey .jgroup { gap: 10px; }
.wchat--journey .wchat__msg { font-size: 14.5px; padding: 10px 13px 7px; box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.9); }
.wchat--journey .wchat__typing { box-shadow: 0 20px 44px -18px rgba(0, 0, 0, 0.9); }
.wchat__src { display: block; margin-top: 4px; text-align: right; font-size: 10.5px; color: #8696A0; }

/* menos informação na tela: sem telemetria e sem leitura de instrumentos */
.journey__telemetry,
.journey__readout { display: none; }
.wchat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #202C33;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.wchat__head img { border-radius: 50%; background: #fff; }
.wchat__back { width: 20px; height: 20px; color: #AEBAC1; }
.wchat__who { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.wchat__who b { font-size: 15px; font-weight: 600; color: #E9EDEF; }
.wchat__who span { font-size: 12px; color: #8696A0; transition: color 0.25s ease; }
.wchat__who span.is-typing { color: #25D366; }
.wchat__hico { width: 21px; height: 21px; margin-left: 12px; color: #AEBAC1; }

.jgroup { display: none; flex-direction: column; gap: 8px; }
.jgroup.is-shown { display: flex; }
.jgroup .wchat__typing { align-self: flex-start; }
.wchat__msg--photo { max-width: 76%; padding: 4px 4px 6px; }
.wchat__msg--photo p { padding: 6px 6px 0; }
.wchat__msg--photo .photo { padding: 12px 10px; }
.wchat__text { margin-top: 9px; font-size: 13px; line-height: 1.45; }
.wchat__text strong { color: #FCD34D; font-weight: 600; }
.wchat__msg--rich .gauge + .gauge { margin-top: 11px; }
.wchat__msg--rich .gauge__label { font-size: 11.5px; }
.wchat__card-head em.is-ok { color: #4ADE80; border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.08); }
.wchat__dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 2px 0 0; }
.wchat__dl dt { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #8696A0; }
.wchat__dl dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: #F1F5F9; }

/* botões de resposta rápida (estilo WhatsApp Business) */
.wchat__actions {
  align-self: flex-start;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 4px;
  width: 95%;
}
.wchat__actions button {
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: #202C33;
  color: #53BDEB;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.wchat__actions button:hover { background: #26353D; }
.wchat__actions button[disabled] { color: #8696A0; cursor: default; }

@media (max-width: 960px) {
  .journey__cards:has(.wchat--journey) { width: auto; height: 340px; transform: none; }
  .wchat__hico { display: none; }
}

@media (max-width: 640px) {
  .wa-attach__item i { width: 42px; height: 42px; }
  .wa-attach__item { font-size: 11px; }
  .wa-top__ico { display: none; }
  .wchat { inset: 10px; }
  .wchat__msg--rich { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .taxi-dash, .taxi-ripple, .journey__link i, .journey__phase strong i, .wchat__typing i { animation: none; }
}
