/* Audience page: phone first, comfortable on a desktop too. */

body {
  min-height: 100vh; /* fallback for browsers without dvh (iOS < 15.4, Chrome < 108) */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--sih-paper);
}

.page {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  padding-top: var(--space-2);
}
.brand img {
  height: 64px;
  width: auto;
}
.brand h1 {
  font-size: var(--type-h3);
  color: var(--sih-blue);
}

.card {
  background: #fff;
  border: 1px solid var(--sih-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.step-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-1) var(--space-3);
  flex-wrap: wrap; /* 320 px phones: hint drops to its own line instead of breaking the label */
}
.step-meta .eyebrow {
  white-space: nowrap;
}

.question {
  font-size: var(--type-h3);
  color: var(--sih-blue);
}

.hint {
  color: var(--sih-ink-2);
  font-size: var(--type-body-sm);
}

.actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.actions .btn {
  flex: 1;
}

.error {
  color: #b3261e;
  font-size: var(--type-body-sm);
  min-height: 1.5em;
}

.thanks {
  text-align: center;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-7) var(--space-5);
}
.thanks .tick {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sih-salmon-wash);
  color: var(--sih-salmon-deep);
  display: grid;
  place-items: center;
}
.thanks h2 {
  font-size: var(--type-h2);
}

footer {
  text-align: center;
  padding: var(--space-4);
  color: var(--sih-ink-3);
  font-size: var(--type-caption);
}

/* Entry: fade + slight lift, never bounce. */
.step {
  animation: enter var(--dur-enter) var(--ease);
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 640px) {
  .page {
    padding-top: var(--space-7);
  }
  .brand img {
    height: 80px;
  }
}
