/* ============================================
   Handoff pages: open (shared links), update,
   auth/confirm, auth/reset-password. Loaded
   after styles.css. On a phone the actions sit
   low, in thumb reach; from 768px the whole page
   centers as one column.
   ============================================ */

.handoff-main {
  display: flex;
  min-height: calc(100svh - 64px);
}

.handoff-inner,
.handoff-state {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.handoff-inner {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.handoff-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: 32px 0 40px;
}

.handoff-icon {
  width: 72px;
  margin-bottom: 32px;
  border-radius: 22.5%;
  box-shadow: 0 12px 28px rgba(var(--shadow), 0.18);
}

.handoff-copy .eyebrow {
  margin-bottom: 14px;
}

.handoff-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 11.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  padding-bottom: 4px;
}

.handoff-text {
  margin-top: 16px;
  max-width: 32ch;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.handoff-actions .stores {
  margin-top: 0;
}

.handoff-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  padding: 0 28px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--button-ink);
  background-color: var(--button);
  border-radius: var(--radius-pill);
  transition: transform 0.2s var(--ease);
}

.handoff-btn:active {
  transform: scale(0.98);
}

.handoff-note {
  margin-top: 20px;
  font-size: 0.9375rem;
  text-align: center;
  color: var(--ink-soft);
}

.handoff-note a {
  font-weight: 600;
  white-space: nowrap;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.handoff-sep {
  margin: 0 8px;
}

html[data-platform="ios"] .handoff .store-badge[data-store="android"],
html[data-platform="android"] .handoff .store-badge[data-store="ios"] {
  display: none;
}

.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .handoff-main {
    min-height: calc(100svh - 76px);
  }

  .handoff-inner {
    flex: 0 1 auto;
    width: 100%;
    max-width: calc(480px + var(--gutter) * 2);
    margin: auto;
    padding-bottom: 76px;
  }

  .handoff-state {
    flex: 0 1 auto;
  }

  .handoff-copy {
    flex: 0 1 auto;
    padding: 0 0 40px;
  }

  .handoff-actions .stores {
    flex-direction: column;
  }

  .handoff-note {
    text-align: left;
  }
}
