/* =====================================================================
   HeySwaey — the small pages: /welcome/, /pay/ and the legal pages
   (/terms/, /privacy-policy/, /refunds/). A Mac window on paper.
   ===================================================================== */

.page-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.page-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 860px; width: 100%; margin: 0 auto; padding: 22px var(--gutter) 0;
}
.page-top .brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: -.03em; }
.page-top .brand img { width: 30px; height: 30px; border-radius: 8px; }
.page-top .back { font-size: 14.5px; color: var(--mute); transition: color .15s; }
.page-top .back:hover { color: var(--electric); }

.page { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 34px var(--gutter) 60px; }
.page .win { border-radius: 16px; }
.page-in { padding: clamp(26px, 5vw, 52px) clamp(22px, 6vw, 64px) clamp(30px, 5vw, 56px); }

.page-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  padding: 0 var(--gutter) 36px; font-size: 13.5px; color: var(--mute-2);
}
.page-foot a:hover { color: var(--electric); }

/* ---------- legal documents ---------- */
.doc { max-width: 640px; margin: 0 auto; color: var(--ink-2); font-size: 16px; line-height: 1.65; }
.doc h1 { margin: 0; font-size: clamp(30px, 4.4vw, 42px); font-weight: 600; letter-spacing: -.05em; line-height: 1.05; color: var(--ink); }
.doc .updated { margin: 10px 0 28px; font-size: 14px; color: var(--mute); }
.doc .tldr { margin: 0 0 30px; padding: 16px 18px; border-radius: 14px; background: #eef5ff; box-shadow: inset 0 0 0 1px rgba(var(--electric-rgb), .2); color: #08243d; }
.doc .tldr p { margin: 0; }
.doc .tldr p + p { margin-top: 6px; }
.doc h2 { margin: 34px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin: 4px 0; }
.doc a { color: var(--electric); text-decoration: underline; text-underline-offset: 2px; }
.doc b { color: var(--ink); font-weight: 600; }

/* ---------- welcome & pay ---------- */
.hello { max-width: 560px; margin: 0 auto; text-align: center; }
.hello-mark { width: 84px; height: 84px; margin: 0 auto 20px; filter: drop-shadow(0 12px 22px rgba(10, 40, 90, .25)); }
.hello h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); font-weight: 600; letter-spacing: -.055em; line-height: 1.02; }
.hello .lead { margin: 12px auto 0; max-width: 440px; font-size: 17px; line-height: 1.5; color: var(--mute); }
.steps { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.steps li {
  counter-increment: s; position: relative; padding: 16px 18px 16px 62px; border-radius: 14px;
  background: #f5f5f7; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); font-size: 15.5px; line-height: 1.5; color: var(--ink-2);
}
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 15px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font-size: 14px; font-weight: 600; color: #000;
  background: linear-gradient(#edf4ff 0%, #d6e7ff 18%, #a2c7ff 50%, #99cbf8 80%, #a2d2f7 100%);
  box-shadow: inset 0 0 0 1px var(--indigo);
}
.steps b { color: var(--ink); font-weight: 600; }
.steps .btn { margin-top: 12px; }
.hello .fine { margin: 22px 0 0; font-size: 13.5px; color: var(--mute-2); }
.hello .actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

.spinner { width: 26px; height: 26px; margin: 26px auto 0; border-radius: 50%; border: 2.5px solid rgba(var(--electric-rgb), .18); border-top-color: var(--electric); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
