/* ==========================================================================
   In-app-browser overlay — single source (was duplicated verbatim across
   both pages this app replaces, with a copy-button label bug in one of
   them — see docs/architecture/09-marketing-site-consolidation.md §8.4).
   ========================================================================== */

.iab-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--ink-950);
  font-family: var(--font-body);
}

.iab-overlay[hidden] {
  display: none;
}

.iab-overlay__arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3.5rem;
  height: 3.5rem;
  color: var(--paper-100);
  animation: iab-point-nudge 1.2s ease-in-out infinite;
}

@media (min-width: 640px) {
  .iab-overlay__arrow {
    top: 1.5rem;
    right: 1.5rem;
    width: 4rem;
    height: 4rem;
  }
}

@keyframes iab-point-nudge {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5px, -5px); }
}

@media (prefers-reduced-motion: reduce) {
  .iab-overlay__arrow {
    animation: none;
  }
}

.iab-overlay__brand {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--paper-500);
}

.iab-overlay__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  margin-bottom: 0.5rem;
  border-radius: 9999px;
  background: rgba(244, 244, 246, 0.1);
  color: var(--paper-100);
}

.iab-overlay__icon svg {
  width: 3rem;
  height: 3rem;
}

.iab-overlay__title {
  margin: 0;
  max-width: 26rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper-100);
}

.iab-overlay__text {
  max-width: 28rem;
  margin: 0;
  color: var(--paper-500);
}

.iab-overlay__text strong {
  color: var(--paper-300);
}

.iab-overlay__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 9999px;
  background: rgba(244, 244, 246, 0.1);
  color: var(--paper-100);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.iab-overlay__copy:hover {
  background: rgba(244, 244, 246, 0.2);
}

.iab-overlay__copy svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
