@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FAFAF8;
  --ink: #141414;
  --ink-2: #3A3A37;
  --ink-3: #4A4A46;
  --muted: #5E5E5A;
  --line: #ECECE8;
  --card: #FFFFFF;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); }
a:hover { color: var(--ink-2); }
a:focus-visible, button:focus-visible { outline: 2px solid #0C8DC9; outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }

/* ---------- Landing ---------- */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}
#board {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border-radius: 36px;
  padding: 48px 40px 32px;
  box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.05), 0 40px 90px -30px rgba(20, 20, 20, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
  animation: rise 0.8s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card { animation: none; } }
.card .logo { width: 230px; max-width: 80%; height: auto; }
.intro { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.intro h1 { margin: 0; font-size: clamp(38px, 5vw, 50px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; }
.intro p { margin: 0; max-width: 340px; font-size: 17px; line-height: 1.5; color: var(--ink-3); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; }
.stores a { display: block; border-radius: 10px; line-height: 0; transition: transform 0.15s ease; }
.stores a:hover { transform: translateY(-1px); }
.stores img { height: 52px; width: auto; }
.card-foot {
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  font-size: 13px;
  color: var(--muted);
}
.card-foot a { color: var(--muted); text-decoration: none; }
.card-foot a:hover { color: var(--ink); }
@media (max-width: 420px) {
  .card { padding: 40px 14px 28px; border-radius: 28px; }
  .stores { gap: 8px; }
  .stores img { height: 44px; }
}

/* ---------- Legal pages ---------- */
.doc { max-width: 640px; margin: 0 auto; padding: 40px 24px 64px; display: flex; flex-direction: column; gap: 56px; }
.doc header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.doc header .logo { height: 34px; width: auto; }
.doc header .back { font-size: 14px; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.doc main { display: flex; flex-direction: column; gap: 40px; }
.doc .title { display: flex; flex-direction: column; gap: 12px; }
.doc h1 { margin: 0; font-size: 44px; line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; }
.doc .date { margin: 0; font-size: 14px; color: var(--muted); }
.doc .lede { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.doc section { display: flex; flex-direction: column; gap: 10px; }
.doc h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.doc section p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-3); }
.doc footer { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--muted); }
.doc footer a { color: var(--muted); text-decoration: none; }
.doc footer a:hover, .doc footer a[aria-current="page"] { color: var(--ink); }
