:root {
  --bg: #0e0b10;
  --bg-2: #17121b;
  --card: #1e1724;
  --line: #3a2d44;
  --text: #f5eef7;
  --muted: #b9a9c2;
  --accent: #ff4f9a;
  --accent-2: #b46cff;
  --ok: #7be0b0;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -10%, #3b1638 0%, transparent 60%), var(--bg);
  color: var(--text);
  font: 16px/1.55 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 520px; margin: 0 auto; padding: 32px 16px 48px; }
[hidden] { display: none !important; }
html.gated #content-root { display: none !important; }

/* gate */
.gate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
}
.gate .box {
  width: 100%; max-width: 460px; background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 24px; text-align: center;
}
.badge {
  display: inline-block; font-weight: 700; letter-spacing: 0.08em; font-size: 13px;
  border: 1px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px;
}
.gate h1 { font-size: 26px; margin: 0 0 8px; }
.gate p { color: var(--muted); margin: 8px 0; }
.gate .actions { display: grid; gap: 12px; margin-top: 24px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 20px; }

/* buttons and links */
.btn {
  display: block; width: 100%; text-align: center; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 600; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); transition: transform 0.08s ease, border-color 0.15s ease;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: scale(0.99); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border: 0; color: #fff; }
.btn small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; font-size: 13px; }
.btn.primary small { color: rgba(255, 255, 255, 0.85); }

/* landing */
.profile { text-align: center; margin-bottom: 24px; }
.avatar {
  width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 40px; font-weight: 700; color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.15); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile h1 { margin: 0; font-size: 28px; }
.profile .tag { color: var(--muted); margin: 6px 0 0; }
.ai-note {
  margin: 14px auto 0; max-width: 420px; font-size: 13px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px;
}
.links { display: grid; gap: 12px; }
.section-title { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
footer { margin-top: 36px; text-align: center; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); }
footer nav { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

/* membership */
.plans { display: grid; gap: 14px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.plan h2 { margin: 0; font-size: 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.plan .price { color: var(--accent); font-weight: 700; white-space: nowrap; }
.plan p { color: var(--muted); margin: 6px 0 0; }
.steps { padding-left: 20px; color: var(--muted); }
.steps li { margin: 6px 0; }
.notice { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--muted); font-size: 14px; }
.back { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; }
.legal { white-space: pre-wrap; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: 14px; }

@media (max-width: 360px) {
  .gate h1 { font-size: 22px; }
  .profile h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* free tiers (membership page): their own classes, never the purchase page's .plan */
.tiers { display: grid; gap: 14px; margin: 16px 0; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.tier h2 { margin: 0; font-size: 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tier-price { color: var(--accent); font-weight: 700; }
.tier p { color: var(--muted); margin: 0; }
.journey { max-width: 520px; margin: 0 auto; }
.journey .notice { margin: 10px 0; }
