/* 10shots — shared styles. Black canvas, white ink, opacity-driven greys
   to match the app's palette. System font stack = SF Pro on Apple devices. */

:root {
  --bg: #000;
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.35);
  --hair: rgba(255, 255, 255, 0.10);
  --max: 680px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair); }
a:hover { border-bottom-color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  flex: 1 0 auto;
}

/* ---- Aperture mark: 10 dots in a ring ---- */
.mark { display: block; width: 56px; height: 56px; }
.mark circle { fill: var(--ink); }

/* ---- Landing ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  padding: 80px 24px;
}
.wordmark {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.tagline {
  font-size: 19px;
  color: var(--muted);
  max-width: 30ch;
}
.cta {
  display: inline-block;
  margin-top: 8px;
  padding: 14px 28px;
  border: 1px solid var(--ink);
  border-radius: 28px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--ink);
}
.cta:hover { background: var(--ink); color: var(--bg); }
.cta.disabled { opacity: 0.4; pointer-events: none; }

/* ---- Document pages (privacy / terms / support) ---- */
.doc { padding: 72px 0 96px; }
.doc h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.doc .updated { color: var(--faint); font-size: 14px; margin: 10px 0 40px; }
.doc h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}
.doc p, .doc li { color: var(--muted); margin-bottom: 14px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { padding-left: 22px; margin-bottom: 14px; }
.doc li { margin-bottom: 8px; }
.doc .lede { color: var(--ink); font-size: 18px; }

/* ---- Footer ---- */
.foot {
  flex-shrink: 0;
  border-top: 1px solid var(--hair);
  padding: 28px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--faint);
}
.foot a { color: var(--muted); border: none; margin: 0 10px; }
.foot a:hover { color: var(--ink); }
.foot .legal { display: block; margin-top: 12px; }

/* ---- Join fallback ---- */
.join { text-align: center; }
.code-box {
  display: inline-block;
  margin: 24px 0 8px;
  padding: 18px 32px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.join .hint { color: var(--faint); font-size: 14px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wordmark { font-size: 28px; }
  .doc h1 { font-size: 25px; }
}

/* ============================================================
   Landing one-pager (.lp-*) — additive, mobile-first.
   Reuses .mark/.cta/.foot atoms; never overrides shared rules.
   ============================================================ */

.lp { display: flex; flex-direction: column; flex: 1 0 auto; width: 100%; }

.lp-sec {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 88px 24px;
}
.lp-sec > * { max-width: 30ch; }

/* ---- Hero ---- */
.lp-hero {
  position: relative;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  gap: 22px;
  padding: 96px 24px 112px;
}
.lp-mark { width: 78px; height: 78px; }
.lp-word {
  font-size: clamp(32px, 12vw, 52px);
  letter-spacing: -0.03em;
}
.lp-headline {
  font-size: clamp(25px, 7.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
.lp-sub { color: var(--muted); font-size: 17px; max-width: 26ch; }
.lp-cta { margin-top: 6px; }

.lp-scroll {
  position: absolute;
  bottom: 26px;
  border: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lp-scroll:hover { color: var(--ink); }
.lp-chev {
  width: 9px; height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: lp-bob 1.8s ease-in-out infinite;
}
@keyframes lp-bob {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50%      { transform: translateY(5px) rotate(45deg); }
}

/* ---- Hero dot ignition (pure CSS, staggered) ---- */
.lp-ignite circle { opacity: 0; transform-origin: center; animation: lp-ignite .5s ease forwards; }
.lp-ignite circle:nth-child(1)  { animation-delay: .15s; }
.lp-ignite circle:nth-child(2)  { animation-delay: .22s; }
.lp-ignite circle:nth-child(3)  { animation-delay: .29s; }
.lp-ignite circle:nth-child(4)  { animation-delay: .36s; }
.lp-ignite circle:nth-child(5)  { animation-delay: .43s; }
.lp-ignite circle:nth-child(6)  { animation-delay: .50s; }
.lp-ignite circle:nth-child(7)  { animation-delay: .57s; }
.lp-ignite circle:nth-child(8)  { animation-delay: .64s; }
.lp-ignite circle:nth-child(9)  { animation-delay: .71s; }
.lp-ignite circle:nth-child(10) { animation-delay: .78s; }
@keyframes lp-ignite {
  from { opacity: 0; transform: scale(.3); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---- Scroll-reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- How it works ---- */
.lp-how { background: rgba(255, 255, 255, 0.02); }
.lp-h2 {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}
.lp-steps { list-style: none; display: flex; flex-direction: column; gap: 34px; max-width: 460px; }
.lp-step { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lp-step > * { max-width: 32ch; }
.lp-num {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 16px; font-weight: 700;
  margin-bottom: 4px;
}
.lp-step h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.lp-step p { color: var(--muted); font-size: 16px; }

/* ---- Lobby moment ---- */
.lp-lobby-copy { color: var(--muted); font-size: 17px; margin-bottom: 34px; max-width: 30ch; }
.lp-board {
  display: flex; flex-direction: column; gap: 16px;
  width: 100%; max-width: 340px;
  padding: 22px 20px;
  border: 1px solid var(--hair);
  border-radius: 18px;
}
.lp-row { display: flex; align-items: center; gap: 14px; }
.lp-av {
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--hair);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--muted);
}
.lp-dots { display: flex; gap: 6px; flex: 1; justify-content: space-between; }
.lp-dots i {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1.5px solid var(--faint);
  box-sizing: border-box;
}
/* filled targets per row */
.lp-fill-5  i:nth-child(-n+5),
.lp-fill-8  i:nth-child(-n+8),
.lp-fill-10 i:nth-child(-n+10) { background: var(--ink); border-color: var(--ink); }
/* pop the filled dots in sequence once the board scrolls into view */
.lp-board.in .lp-dots i { animation: lp-pop .45s cubic-bezier(.2,.7,.3,1) both; }
.lp-board.in .lp-dots i:nth-child(1) { animation-delay: calc(var(--start, 0s) + .00s); }
.lp-board.in .lp-dots i:nth-child(2) { animation-delay: calc(var(--start, 0s) + .05s); }
.lp-board.in .lp-dots i:nth-child(3) { animation-delay: calc(var(--start, 0s) + .10s); }
.lp-board.in .lp-dots i:nth-child(4) { animation-delay: calc(var(--start, 0s) + .15s); }
.lp-board.in .lp-dots i:nth-child(5) { animation-delay: calc(var(--start, 0s) + .20s); }
.lp-board.in .lp-dots i:nth-child(6) { animation-delay: calc(var(--start, 0s) + .25s); }
.lp-board.in .lp-dots i:nth-child(7) { animation-delay: calc(var(--start, 0s) + .30s); }
.lp-board.in .lp-dots i:nth-child(8) { animation-delay: calc(var(--start, 0s) + .35s); }
.lp-board.in .lp-dots i:nth-child(9) { animation-delay: calc(var(--start, 0s) + .40s); }
.lp-board.in .lp-dots i:nth-child(10){ animation-delay: calc(var(--start, 0s) + .45s); }
@keyframes lp-pop {
  from { transform: scale(.25); }
  60%  { transform: scale(1.15); }
  to   { transform: scale(1); }
}
.lp-not { color: var(--faint); font-size: 15px; margin-top: 30px; max-width: 32ch; }

/* ---- Closing ---- */
.lp-close { gap: 24px; padding: 100px 24px; }
.lp-mark-sm { width: 44px; height: 44px; opacity: 0.85; }

/* ---- Wider screens: steps go side-by-side ---- */
@media (min-width: 720px) {
  .lp-sec { padding: 120px 24px; }
  .lp-sec > * { max-width: none; }
  .lp-steps { flex-direction: row; gap: 28px; max-width: 760px; align-items: flex-start; }
  .lp-step { flex: 1; }
  .lp-board { max-width: 420px; }
}

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .lp-ignite circle { opacity: 1; animation: none; }
  .lp-chev { animation: none; }
  .lp-board.in .lp-dots i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
