/* Site-wide social proof toast — Journey + Editorial + guides */
.ah-social-proof {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 90;
  max-width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.ah-social-proof[hidden] {
  display: none !important;
}

.ah-social-proof__card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(26, 20, 18, 0.1);
  box-shadow:
    0 12px 32px rgba(26, 20, 18, 0.12),
    0 2px 8px rgba(26, 20, 18, 0.06);
  pointer-events: auto;
  transform: translateY(1.25rem);
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease;
}

.ah-social-proof.is-visible .ah-social-proof__card {
  transform: translateY(0);
  opacity: 1;
}

.ah-social-proof__avatar {
  position: relative;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6f61 0%, #ffd5a1 100%);
  display: grid;
  place-items: center;
  color: #1a1412;
  font-size: 0.95rem;
  font-weight: 700;
}

.ah-social-proof__avatar::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid rgba(255, 111, 97, 0.45);
  animation: ah-sp-pulse 2.2s ease-out infinite;
}

@keyframes ah-sp-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.12);
    opacity: 0;
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
  }
}

.ah-social-proof__body {
  flex: 1;
  min-width: 0;
}

.ah-social-proof__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #1a1412;
}

.ah-social-proof__text strong {
  font-weight: 700;
  color: #c94a42;
}

.ah-social-proof__meta {
  margin: 0.2rem 0 0;
  font-size: 0.6875rem;
  color: #6b5e56;
}

.ah-social-proof__close {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  margin: -0.15rem -0.1rem 0 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #6b5e56;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ah-social-proof__close:hover {
  background: rgba(26, 20, 18, 0.06);
  color: #1a1412;
}

.ah-social-proof__close:focus-visible {
  outline: 2px solid #c94a42;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ah-social-proof__card {
    transition: none;
    transform: none;
    opacity: 1;
  }

  .ah-social-proof__avatar::after {
    animation: none;
  }
}

@media (min-width: 900px) {
  .ah-social-proof {
    left: max(1.25rem, env(safe-area-inset-left, 0px));
    bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  }
}
