/* Ajudante para instalar o app na tela inicial (scripts/core/install-helper.js). */
.install-helper {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(18, 20, 43, 0.45);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.install-helper-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(440px, 100%);
  padding: 28px 24px 20px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 30px 70px -30px rgba(18, 20, 43, 0.6);
  color: #12142b;
  text-align: center;
}

.install-helper-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 10px 22px -12px rgba(18, 20, 43, 0.5);
}

.install-helper h2 {
  margin: 0;
  font-size: 1.35rem;
}

.install-helper-lead,
.install-helper-note {
  margin: 0;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.45;
}

.install-helper-steps {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.install-helper-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f1f8fe;
  font-size: 1rem;
  line-height: 1.3;
}

.install-helper-steps span {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  color: #1ca7f2;
  font-size: 0.8rem;
}

.install-helper svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.install-helper-steps circle {
  fill: currentColor;
  stroke: none;
}

.install-helper-main,
.install-helper-close {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.install-helper-main {
  background: #1ca7f2;
  box-shadow: 0 10px 24px -10px rgba(28, 167, 242, 0.7);
  color: #ffffff;
}

.install-helper-close {
  min-height: 44px;
  background: transparent;
  color: #6b7280;
}

/* Seta piscando para o botão Compartilhar do Safari (iPad: no alto, à direita; iPhone: embaixo). */
.install-helper-arrow {
  position: fixed;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 6px rgba(28, 167, 242, 0.35);
  color: #1ca7f2;
  animation: install-helper-bounce 1s ease-in-out infinite;
}

.install-helper-arrow.is-top {
  top: 10px;
  right: 92px;
}

.install-helper-arrow.is-bottom {
  bottom: 10px;
  left: calc(50% - 28px);
}

.install-helper-arrow svg {
  width: 28px;
  height: 28px;
}

@keyframes install-helper-bounce {
  50% {
    transform: translateY(var(--bounce, -8px));
  }
}

.install-helper-arrow.is-bottom {
  --bounce: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .install-helper-arrow {
    animation: none;
  }
}
