* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0; min-height: 100%;
  background: var(--paper); color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
p { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* One screen = one phone height: a full-height column, bottom block pushed down */
.screen { min-height: 100vh; min-height: 100dvh; display: flex; }
.page {
  flex: 1; width: 100%; max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 24px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px));
}
.page.tight-top { padding-top: calc(4px + env(safe-area-inset-top, 0px)); gap: 0; }
.center-all { align-items: center; justify-content: center; }

.stack-2 { display: flex; flex-direction: column; gap: 2px; }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }

.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.eyebrow.accent { color: var(--accent); }
.center { text-align: center; }
h1 { margin: 0; font-size: 28px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
h1:focus { outline: none; }
.lead { font-size: 16px; line-height: 1.45; color: var(--muted); }
.muted { color: var(--muted); font-size: 15px; line-height: 1.45; }
.small { font-size: 14px; }

/* Quiet entrance: short fade and lift */
.rise { animation: rise .5s var(--ease) both; }
.d1 { animation-delay: .06s; } .d2 { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
}
