/* The public pages: home, guide, privacy and terms. The game itself uses
   its own styles; these share its dark ground and the icon's gradient. */
:root {
  color-scheme: dark;
  --bg: #0b0b12;
  --surface: #14141f;
  --surface-2: #1c1c2a;
  --border: #272738;
  --text: #f1f0f7;
  --muted: #9a98ad;
  --violet: #5b3dff;
  --purple: #b03cff;
  --pink: #ff3d8b;
  --grad: linear-gradient(120deg, var(--violet), var(--purple) 55%, var(--pink));
  --radius: 18px;
  --display: "Bricolage Grotesque", -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 11, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 22px var(--display); text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font: 700 15px var(--body); text-decoration: none; border: none; cursor: pointer;
  white-space: nowrap;
}
.btn-main { background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgba(176, 60, 255, 0.35); }
.btn-main:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--purple); }
.nav .btn { padding: 9px 18px; }
.nav-links a.btn { color: #fff; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 700 13px var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); }

h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(176, 60, 255, 0.35), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); font-weight: 800; margin: 14px 0 20px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* The phone mock-up */
.phone {
  justify-self: center;
  width: min(340px, 100%);
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #2a2a3d, #12121b);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px #33334a inset;
}
.screen {
  border-radius: 34px; overflow: hidden; background: #0f1115;
  display: flex; flex-direction: column; min-height: 560px;
}
.screen-head { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; border-bottom: 1px solid #1f2129; }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; flex: none; }
.av.mara { background: linear-gradient(135deg, #ff3d8b, #ff9a5b); }
.av.theo { background: linear-gradient(135deg, #3d7bff, #5b3dff); }
.av.june { background: linear-gradient(135deg, #2bb3a3, #6ad46a); }
.screen-head b { display: block; font-size: 15px; }
.screen-head small { color: #8a8d9a; font-size: 12px; display: flex; align-items: center; gap: 5px; }
.mini-heart { width: 11px; height: 11px; color: #9b5de5; }
.msgs { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.4; }
.b { max-width: 82%; padding: 9px 13px; border-radius: 18px; animation: pop 0.5s both; }
.b.them { background: #1e2029; align-self: flex-start; border-bottom-left-radius: 6px; }
.b.me { background: #4c6fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.b i { color: #a7a9b8; font-style: italic; }
.b.me i { color: #dbe2ff; }
.stamp { align-self: center; font-size: 11px; color: #6c6f7c; margin: 6px 0; }
.seen { align-self: flex-end; font-size: 11px; color: #8a8d9a; margin-top: -2px; }
.typing { align-self: flex-start; background: #1e2029; border-radius: 18px; padding: 11px 14px; display: flex; gap: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: #8a8d9a; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
.screen-input { margin: 8px 12px 16px; border: 1px solid #24262f; border-radius: 999px; padding: 10px 16px; color: #6c6f7c; font-size: 14px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); margin-bottom: 16px; }
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

/* "They" vs "Seen" comparison */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.versus .card ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.versus li { display: flex; gap: 10px; color: var(--muted); }
.versus li::before { flex: none; font-weight: 800; }
.versus .old li::before { content: "✕"; color: #6c6f7c; }
.versus .new { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.versus .new li { color: var(--text); }
.versus .new li::before { content: "✓"; color: var(--pink); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { counter-increment: step; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); font: 800 18px var(--display); margin-bottom: 16px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

.fine { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* The beta waitlist */
.join { position: relative; overflow: hidden; scroll-margin-top: 64px; padding-top: 40px; }
.join::before {
  content: ""; position: absolute; left: -200px; bottom: -260px; width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(255, 61, 139, 0.18), transparent 62%);
  pointer-events: none;
}
.join-grid { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.join-intro h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin: 10px 0 16px; }
.join-intro p { color: var(--muted); font-size: 18px; margin: 0 0 22px; max-width: 460px; }
.join-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.join-points li { display: flex; gap: 10px; color: var(--text); }
.join-points li::before { content: "✓"; color: var(--pink); font-weight: 800; flex: none; }

.join-card {
  border-radius: 24px; padding: 28px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 60px rgba(176, 60, 255, 0.12);
}
.join-card form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 700; font-size: 15px; padding: 0; }
.field legend { margin-bottom: 10px; }
.opt { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 6px; }
.hint { color: var(--muted); font-size: 12px; justify-self: end; margin-top: -2px; }

.field input[type="email"], .field input[type="text"] {
  width: 100%; min-width: 0;
  font: 16px var(--body); color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  padding: 13px 16px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: #5f5d72; }
.field input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(176, 60, 255, 0.22); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px; cursor: pointer; user-select: none;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 14.5px; font-weight: 500; color: #d8d6e6;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.chip:hover { border-color: #3d3d55; color: var(--text); }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip:has(input:checked) {
  color: #fff; border-color: transparent;
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--grad) border-box;
  box-shadow: 0 0 18px rgba(176, 60, 255, 0.25);
}
.chip:has(input:checked)::before { content: "✓"; color: var(--pink); font-weight: 800; font-size: 13px; }
.chip:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(176, 60, 255, 0.45); }

.checks { display: grid; gap: 12px; border-top: 1px solid var(--border); padding-top: 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #d8d6e6; cursor: pointer; line-height: 1.45; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--purple); cursor: pointer; }
.check a { color: var(--text); text-decoration-color: var(--pink); text-underline-offset: 3px; }

/* The honeypot: present for bots, invisible to people and screen readers. */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: -6px 0 0; min-height: 0; font-size: 14.5px; }
.form-status:empty { display: none; }
.form-status.is-error { color: #ffb3c9; background: rgba(255, 61, 139, 0.1); border: 1px solid rgba(255, 61, 139, 0.35); border-radius: 12px; padding: 10px 14px; }
.btn-block { width: 100%; padding: 15px 22px; font-size: 16px; }
.btn:disabled { opacity: 0.7; cursor: progress; }

.join-done { text-align: center; padding: 34px 10px; outline: none; }
.join-done .done-ico { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font: 800 28px var(--display); box-shadow: 0 10px 40px rgba(176, 60, 255, 0.4); }
.join-done h3 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.join-done p { color: var(--muted); margin: 0; font-size: 17px; }

/* Privacy, terms and other plain pages */
.legal { max-width: 740px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 800; margin: 8px 0 14px; }
.legal .intro { color: var(--muted); font-size: 18px; margin: 0 0 12px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.legal h2 { font-size: 24px; font-weight: 800; margin: 34px 0 10px; }
.legal p, .legal li { color: #cfcde0; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal b { color: var(--text); }
.legal a { color: var(--text); text-decoration-color: var(--pink); text-underline-offset: 3px; }
.notice { text-align: center; max-width: 560px; margin: 0 auto; padding: 90px 20px; }
.notice h1 { font-size: clamp(38px, 6vw, 56px); font-weight: 800; margin: 10px 0 14px; }
.notice p { color: var(--muted); font-size: 18px; margin: 0 0 28px; }

.cta { text-align: center; padding: 90px 0; }
.cta h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; margin-bottom: 18px; }
.cta p { color: var(--muted); font-size: 18px; margin: 0 auto 28px; max-width: 520px; }

footer { border-top: 1px solid var(--border); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .spacer { margin-left: auto; }

/* The guide */
.guide { display: grid; grid-template-columns: 230px 1fr; gap: 48px; padding: 48px 0 80px; }
.guide > * { min-width: 0; }
.toc { position: sticky; top: 88px; align-self: start; display: grid; gap: 2px; }
.toc a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 10px; font-size: 15px; }
.toc a:hover { background: var(--surface); color: var(--text); }
.guide h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; margin: 8px 0 14px; }
.guide .intro { color: var(--muted); font-size: 18px; margin: 0 0 36px; max-width: 640px; }
.topic { padding: 30px 0; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.topic h2 { font-size: 30px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.topic h2 .ico { font-size: 24px; }
.topic p, .topic li { color: #cfcde0; max-width: 680px; }
.topic ul { padding-left: 20px; }
.topic li { margin-bottom: 8px; }
.topic b { color: var(--text); }
.example { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin: 14px 0; max-width: 520px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.example .b { animation: none; }
.tip { border-left: 3px solid var(--pink); background: rgba(255, 61, 139, 0.07); padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 16px 0; max-width: 680px; color: #e6e3f2; }
.hearts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-width: 700px; margin: 14px 0; padding: 0; list-style: none; }
.hearts li { display: flex; align-items: center; gap: 10px; margin: 0; }
.hearts svg { width: 18px; height: 18px; flex: none; }
.back-to-game { position: fixed; right: 16px; bottom: 16px; z-index: 20; }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap, .versus, .steps, .guide { grid-template-columns: 1fr; }
  .hero .wrap { gap: 36px; }
  .toc { position: static; grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links a.show-sm { display: inline; }
  section { padding: 52px 0; }
}
@media (max-width: 860px) {
  .join-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .nav .wrap { gap: 12px; }
  .nav-links { gap: 14px; }
  .nav-links a.hide-xs { display: none; }
  .join-card { padding: 22px 18px; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .hero-ctas .btn { flex: 1; }
  .nav .btn { padding: 9px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .b, .typing span { animation: none; }
  html { scroll-behavior: auto; }
}
