/* Layout for the three single-URL pages: /join, /auth/callback and 404.
   They keep one URL each and switch language in the browser. */

.stage { min-height: 100svh; display: grid; place-items: center; padding: 2.5rem 0 4rem; }

.card { width: var(--shell); max-width: 34rem; text-align: center; }
.card.narrow { max-width: 30rem; }
.card > img { width: 8.5rem; margin: 0 auto 2rem; }
.card.narrow > img { width: 7rem; }
.card h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.1rem); letter-spacing: -0.035em; }
.card.narrow h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.3rem); letter-spacing: -0.03em; }
.card h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--coral); }
.card .lede { margin: 1.2rem auto 0; max-width: 34ch; }
.card.narrow p { margin-top: 1.1rem; color: var(--ink-soft); }

.actions { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin-top: 2.2rem; }
.actions .btn { width: min(100%, 20rem); justify-content: center; }

.code { margin-top: 2.4rem; border-top: 1px solid var(--rule); padding-top: 1.6rem; text-align: left; }
.code p { font-size: 0.92rem; color: var(--ink-faint); }
.code-row { display: flex; gap: 0.6rem; align-items: stretch; margin-top: 0.8rem; }
.code-row code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.9rem;
  background: var(--paper-2);
  border: 1px solid var(--rule-firm);
  border-radius: 0.6rem;
  padding: 0.7rem 0.85rem;
  overflow-x: auto;
  white-space: nowrap;
}
.code-row button { padding-inline: 1.1rem; white-space: nowrap; }

.home { margin-top: 2.6rem; font-size: 0.94rem; }
.home a { color: var(--ink-soft); }

.dots { display: flex; gap: 0.42rem; justify-content: center; margin-top: 1.8rem; }
.dots span { width: 0.5rem; height: 0.5rem; border-radius: 999px; animation: bob 1.1s ease-in-out infinite; }
.dots span:nth-child(1) { background: var(--coral); }
.dots span:nth-child(2) { background: var(--teal);  animation-delay: 0.16s; }
.dots span:nth-child(3) { background: var(--amber); animation-delay: 0.32s; }
@keyframes bob { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dots span { animation: none; opacity: 1; } }

.fallback { margin-top: 2.2rem; }

[hidden] { display: none !important; }
