/* Telas ilustrativas do app desktop. Escalam com o contêiner (unidades cqw), sempre no tema escuro do app. */
.app-window {
  container-type: inline-size;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 0 0, rgb(118 185 0 / 0.1), transparent 45%), #10110f;
  border: 1px solid #2e3527;
  box-shadow:
    0 30px 70px -25px rgb(0 0 0 / 0.75),
    0 0 0 1px rgb(118 185 0 / 0.06);
  color: #f0f3e9;
  text-align: left;
  user-select: none;
}
.app-scale {
  font-size: 3.4cqw;
  line-height: 1.45;
  font-family: var(--font);
}
.app-chrome,
.app-tabs {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.9em;
  background: #141712;
  border-bottom: 1px solid #262c20;
  font-size: 0.78em;
  color: #c9d2bd;
}
.app-chrome img,
.app-tabs img {
  width: 1.3em;
  height: 1.3em;
  border-radius: 0.25em;
}
.app-controls {
  margin-left: auto;
  display: inline-flex;
  gap: 1em;
}
.app-controls i {
  width: 0.75em;
  height: 0.75em;
  border: 1.5px solid #6f7a63;
  border-radius: 2px;
}
.app-controls i:first-child {
  height: 0;
  border-width: 1px 0 0;
  margin-top: 0.4em;
}
.app-body {
  padding: 1.2em 1.4em 1em;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: 1.1em;
}
.app-brand img {
  width: 2.9em;
  height: 2.9em;
  border-radius: 0.6em;
}
.app-wordmark {
  display: block;
  font-size: 1.45em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.app-wordmark b,
.app-wordmark i {
  color: #76b900;
  font-style: normal;
}
.app-brand small {
  color: #9ca58f;
  font-size: 0.72em;
}
.app-eyebrow {
  margin: 0 0 0.3em;
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #76b900;
}
.app-title {
  margin: 0 0 0.2em;
  font-size: 1.75em;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.app-title.is-small {
  font-size: 1.25em;
}
.app-title i {
  color: #76b900;
  font-style: normal;
}
.app-muted {
  color: #9ca58f;
  font-size: 0.8em;
  margin: 0 0 0.9em;
}
.app-tiny {
  display: block;
  font-size: 0.7em;
  margin: 0;
}
.app-card {
  border: 1px solid #2e3527;
  border-radius: 0.8em;
  padding: 1em 1.1em;
  background: #191c16;
}
.app-card small,
.app-label {
  display: block;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9ca58f;
  margin: 0.4em 0 0.35em;
}
.app-id {
  display: block;
  font-size: 2em;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.1;
  white-space: nowrap;
}
.app-card hr {
  margin: 0.8em 0;
  border-color: #2e3527;
  opacity: 1;
}
.app-card code {
  font-family: var(--font-mono);
  color: #98d924;
  font-size: 1.25em;
  letter-spacing: 0.06em;
}
.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
}
.app-row .bi {
  color: #c9d2bd;
}
.app-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin-top: 0.9em;
  padding: 0.75em;
  border-radius: 0.55em;
  background: #76b900;
  color: #101708;
  font-weight: 650;
  font-size: 0.85em;
}
.app-button.is-wide {
  justify-content: space-between;
  padding-inline: 1.1em;
}
.app-button.is-danger {
  background: #3a2421;
  color: #ffb2a8;
}
.app-note {
  display: flex;
  gap: 0.7em;
  align-items: center;
  margin-top: 1em;
  font-size: 0.72em;
  color: #c9d2bd;
}
.app-note .bi {
  font-size: 1.5em;
  color: #9ca58f;
}
.app-note b,
.app-note span {
  display: block;
}
.app-note div span {
  color: #9ca58f;
}
.app-status {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65em 1.4em;
  border-top: 1px solid #262c20;
  background: #141712;
  font-size: 0.7em;
  color: #c9d2bd;
}
.app-status span {
  margin-left: auto;
  font-size: 0.85em;
  letter-spacing: 0.14em;
  color: #9ca58f;
}
.app-live {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: #76b900;
  box-shadow: 0 0 0 0 rgb(118 185 0 / 0.6);
  animation: live 2s infinite;
}
.app-input {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.75em 0.9em;
  border-radius: 0.6em;
  border: 1px solid #343d2c;
  background: #191c16;
  margin-bottom: 0.6em;
  font-size: 1.05em;
}
.app-input.is-focus {
  border-color: #76b900;
  box-shadow: 0 0 0 1px #76b900;
}
.app-input .bi {
  color: #9ca58f;
}
.app-input .bi:last-child:not(:first-child) {
  margin-left: auto;
}
.app-input .typed {
  letter-spacing: 0.08em;
}
.app-dots {
  letter-spacing: 0.15em;
  color: #c9d2bd;
}
.app-request {
  display: flex;
  gap: 0.9em;
  align-items: center;
  margin-bottom: 1em;
}
.app-avatar {
  flex: 0 0 3.4em;
  height: 3.4em;
  display: grid;
  place-items: center;
  border-radius: 0.7em;
  border: 1px solid #4a5c39;
  background: #1f2a17;
  font-size: 1.1em;
}
.app-accent {
  display: block;
  color: #76b900;
  font-weight: 650;
}
.app-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45em;
}
.app-tiles span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
  padding: 0.7em 0.2em;
  border-radius: 0.55em;
  border: 1px solid #2e3527;
  background: #181c15;
  font-size: 0.62em;
  text-align: center;
  color: #6f7a63;
}
.app-tiles .bi {
  font-size: 1.8em;
}
.app-tiles .is-on {
  border-color: #5c8a1f;
  background: #1f2a17;
  color: #dce8d0;
}
.app-timer {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 1em 0 0.2em;
  font-size: 0.72em;
  color: #9ca58f;
}
.app-timer i {
  position: relative;
  flex: 0 0 4em;
  height: 0.35em;
  border-radius: 1em;
  background: #2e3527;
  overflow: hidden;
}
.app-timer i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #76b900;
  transform-origin: left;
  animation: countdown 8s linear infinite;
}
.app-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
}

/* Digitação do ID/senha quando a tela entra na viewport. */
.typed {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
}
.is-visible .typed,
.howto-view.is-active .typed {
  animation: type-in 1.4s steps(12) 0.4s forwards;
}
.is-visible .typed-delay,
.howto-view.is-active .typed-delay {
  animation-delay: 1.4s;
}

/* Sessão do operador (tela remota) */
.app-window.is-session {
  border-radius: 6px;
  box-shadow: none;
  border: 0;
}
.is-session .app-scale {
  font-size: 2.2cqw;
}
.app-tabs {
  gap: 0.4em;
  padding: 0.35em 0.7em 0;
  border-bottom: 0;
}
.app-tabs > span:not(.app-controls) {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 0.9em;
  border-radius: 0.4em 0.4em 0 0;
  color: #9ca58f;
}
.app-tabs > span.is-active {
  background: #10110f;
  color: #f0f3e9;
  box-shadow: inset 0 2px 0 #76b900;
}
.remote {
  position: relative;
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  background: #0c1a24;
}
.remote-wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, #1f6f8b 0%, transparent 45%),
    radial-gradient(circle at 15% 80%, #3a2a6b 0%, transparent 50%),
    linear-gradient(135deg, #0e2a3a, #101a2c);
}
.remote-win {
  position: absolute;
  border-radius: 0.4em;
  background: #f4f6f8;
  color: #1d2433;
  box-shadow: 0 1em 2.5em rgb(0 0 0 / 0.45);
  overflow: hidden;
}
.remote-bar {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45em 0.7em;
  background: #e3e8ee;
  font-size: 0.75em;
  font-weight: 600;
}
.remote-bar i {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: #c3cbd5;
}
.remote-win.is-sheet {
  left: 6%;
  top: 8%;
  width: 58%;
  height: 62%;
}
.remote-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0.6em;
  background: #f4f6f8;
}
.remote-grid i {
  height: 1.3em;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e1e6ec;
}
.remote-grid i:nth-child(4n + 1) {
  background: #eaf4dc;
}
.remote-grid i:nth-child(-n + 4) {
  background: #d5e4f2;
}
.remote-win.is-dialog {
  right: 7%;
  top: 34%;
  width: 36%;
  padding-bottom: 0.9em;
  animation: float 6s ease-in-out infinite;
}
.remote-win.is-dialog p {
  margin: 0.8em 0.9em 0.5em;
  font-size: 0.8em;
}
.remote-progress {
  margin: 0 0.9em;
  height: 0.45em;
  border-radius: 1em;
  background: #dfe5ec;
  overflow: hidden;
}
.remote-progress i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 1em;
  background: #76b900;
  animation: progress-loop 3.2s ease-in-out infinite;
}
.remote-cursor {
  position: absolute;
  left: 30%;
  top: 40%;
  font-size: 1.6em;
  color: #fff;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.6));
  animation: cursor-path 9s ease-in-out infinite;
}
.remote-taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6em;
  background: rgb(18 24 34 / 0.85);
  backdrop-filter: blur(6px);
}
.remote-taskbar i {
  width: 1.3em;
  height: 1.3em;
  border-radius: 0.3em;
  background: #2f3c52;
}
.remote-taskbar i:first-child {
  background: #3a7bd5;
}
.remote-taskbar b {
  width: 1.3em;
  height: 1.3em;
  border-radius: 0.3em;
  background: #76b900;
}
.remote-chat {
  position: absolute;
  right: 3%;
  bottom: 10%;
  width: 36%;
  display: grid;
  gap: 0.4em;
}
.remote-chat p {
  margin: 0;
  padding: 0.5em 0.75em;
  border-radius: 0.8em;
  font-size: 0.72em;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(0.6em);
}
.remote-chat .is-operator {
  background: #2c4410;
  color: #e7f4d3;
  border-bottom-right-radius: 0.2em;
  justify-self: end;
}
.remote-chat .is-client {
  background: #f0f3e9;
  color: #1b2414;
  border-bottom-left-radius: 0.2em;
  justify-self: start;
}
.is-visible .remote-chat p {
  animation: chat-in 0.45s ease forwards;
}
.is-visible .remote-chat p:nth-child(1) {
  animation-delay: 0.9s;
}
.is-visible .remote-chat p:nth-child(2) {
  animation-delay: 2.1s;
}
.is-visible .remote-chat p:nth-child(3) {
  animation-delay: 3.3s;
}
.remote-rec {
  position: absolute;
  left: 2%;
  top: 3%;
  padding: 0.25em 0.6em;
  border-radius: 0.4em;
  background: rgb(0 0 0 / 0.55);
  color: #ffb2a8;
  font-size: 0.7em;
  font-weight: 700;
}
.remote-rec .bi {
  animation: blink 1.4s infinite;
}

/* Palco do hero: notebook + janela do cliente + chips */
.hero-stage {
  position: relative;
  padding: 6% 4% 12% 0;
  perspective: 1600px;
}
.stage-glow {
  position: absolute;
  inset: 8% 4% 10% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(118 185 0 / 0.45), transparent 65%);
  filter: blur(30px);
  animation: pulse-soft 6s ease-in-out infinite;
}
.laptop {
  position: relative;
  width: 88%;
  transform: rotateY(14deg) rotateX(6deg) rotateZ(-2deg);
  transform-style: preserve-3d;
  animation: float-tilt 9s ease-in-out infinite;
}
.laptop-screen {
  padding: 2.2% 2.2% 2.6%;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(160deg, #2a2f36, #121417);
  box-shadow:
    0 0 0 1px #3c434c,
    0 40px 80px -30px rgb(0 0 0 / 0.7),
    0 0 50px -10px rgb(118 185 0 / 0.5);
}
.laptop-base {
  position: relative;
  height: 14px;
  margin: 0 -7%;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #4a515b, #1f2328);
  box-shadow: 0 18px 30px -10px rgb(0 0 0 / 0.6);
}
.laptop-base i {
  position: absolute;
  left: 50%;
  top: 0;
  width: 16%;
  height: 5px;
  translate: -50% 0;
  border-radius: 0 0 8px 8px;
  background: #15181c;
}
.stage-client {
  position: absolute;
  right: 0;
  bottom: 2%;
  width: 40%;
  max-width: 250px;
  animation: float 7s ease-in-out -2s infinite;
}
.stage-client .app-window {
  box-shadow:
    0 30px 60px -20px rgb(0 0 0 / 0.8),
    0 0 0 1px rgb(118 185 0 / 0.35);
}
.stage-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}
.stage-chip .bi {
  color: var(--accent);
  font-size: 1rem;
}
.chip-1 {
  left: -2%;
  top: 2%;
  animation: float 6s ease-in-out infinite;
}
.chip-2 {
  left: 6%;
  bottom: 6%;
  animation: float 7s ease-in-out -3s infinite;
}
.chip-3 {
  right: 2%;
  top: -2%;
  animation: float 8s ease-in-out -1s infinite;
}
@media (max-width: 575.98px) {
  .stage-chip {
    font-size: 0.72rem;
    padding: 7px 11px;
  }
  .chip-3 {
    display: none;
  }
  .stage-client {
    width: 46%;
  }
}
