/* TapPage – shared minimal page styles (portal, legal, success, errors) */
:root {
  --accent: #4F46E5;
  --accent-2: #6366F1;
  --text-dark: #111827;
  --text-mid: #374151;
  --text-light: #6B7280;
  --bg: #F9FAFB;
  --card: #ffffff;
  --border: #E5E7EB;
  --success: #10B981;
  --danger: #EF4444;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(17, 24, 39, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { letter-spacing: -.02em; }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 24px; margin: 32px 0 12px; }
h3 { font-size: 18px; margin: 24px 0 8px; }
p { margin: 0 0 12px; color: var(--text-mid); }
.container { max-width: 720px; margin: 0 auto; padding: 40px 20px; }
.container--wide { max-width: 960px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease;
  background: var(--accent); color: #fff;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(79,70,229,.3); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--ghost:hover { background: rgba(79,70,229,.06); }
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn--full { width: 100%; }
.input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 16px; font-family: inherit; background: #fff;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.row { margin-bottom: 16px; }
.muted { color: var(--text-light); font-size: 14px; }
.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(79,70,229,.1); color: var(--accent); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
.pill--success { background: rgba(16,185,129,.1); color: var(--success); }
.pill--warn { background: rgba(245,158,11,.1); color: #B45309; }
.pill--danger { background: rgba(239,68,68,.1); color: var(--danger); }

/* Nav */
.nav {
  background: #fff; border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 960px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--text-dark);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; flex-shrink: 0;
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(79,70,229,.35);
}
.logo-mark svg { width: 18px; height: 18px; }
.logo-text { color: var(--text-dark); }
.logo-text > span { color: var(--accent); }

/* Footer */
.foot {
  text-align: center; padding: 32px 20px; color: var(--text-light); font-size: 14px;
  border-top: 1px solid var(--border); margin-top: 48px; background: #fff;
}
.foot a { color: var(--text-light); margin: 0 8px; }

/* Alerts */
.alert { padding: 14px 16px; border-radius: 10px; margin: 16px 0; font-size: 14px; }
.alert--info { background: rgba(79,70,229,.08); color: var(--accent); border: 1px solid rgba(79,70,229,.2); }
.alert--success { background: rgba(16,185,129,.08); color: #065F46; border: 1px solid rgba(16,185,129,.2); }
.alert--error { background: rgba(239,68,68,.08); color: #991B1B; border: 1px solid rgba(239,68,68,.2); }

/* Step list */
.steps { list-style: none; padding: 0; margin: 16px 0 0; }
.steps li {
  display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border);
}
.steps li:last-child { border-bottom: 0; }
.steps .step-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.steps .step-num--done { background: var(--success); }
.steps .step-num--pending { background: var(--border); color: var(--text-light); }

@media (max-width: 600px) {
  h1 { font-size: 26px; }
  .container { padding: 24px 16px; }
  .card { padding: 20px; }
}
