/* Infinity Canvas. The home page is a canvas (the app's black dot grid, items at world coordinates); the text pages
   use the app's interface: white, black text, heavy rounded type, black outlines, no shadows. */
:root {
  --paper: #ffffff;
  --ink: #0b0b0b;
  --soft: #55565b;
  --faint: #8b8c91;
  --well: #ececef;
  --tab: #d9d9de;
  --night: #0c0c0e;
  --line: 3px;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--round); font-weight: 600; line-height: 1.5; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- home: the canvas ---------- */
.home { background: var(--night); }
.stage {
  position: relative; height: 100svh; min-height: 600px; overflow: hidden; cursor: grab; touch-action: pan-y;
  background-color: var(--night);
  background-image: radial-gradient(circle, rgba(255, 255, 255, .17) 1.3px, transparent 1.8px);
  user-select: none; -webkit-user-select: none;
}
.stage.grabbing { cursor: grabbing; }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; opacity: 0; transition: opacity .5s ease; }
.stage.ready .world { opacity: 1; }
.item { position: absolute; margin: 0; }

.title { color: #fff; font-weight: 900; font-size: 128px; line-height: 1; letter-spacing: -0.035em; white-space: nowrap; }
.sub { color: #b9bac0; font-weight: 800; font-size: 34px; line-height: 1.2; white-space: nowrap; }
.stage.narrow .title { white-space: normal; width: 560px; }
.stage.narrow .sub { white-space: normal; width: 560px; }
.card { max-width: none; border: var(--line) solid #fff; border-radius: 18px; pointer-events: none; }

.note {
  width: 560px; padding: 30px 32px 30px; color: #2a2412;
  background: linear-gradient(160deg, #fbec9c 0%, #f6e081 62%, #ecd270 100%);
  border-radius: 4px;
  cursor: auto; user-select: text; -webkit-user-select: text;
}
.note > p { margin: 0 0 20px; font-size: 25px; font-weight: 800; line-height: 1.3; }
.join { display: flex; flex-wrap: wrap; gap: 10px; }
.join input[type=email] {
  flex: 1 1 220px; min-width: 0; font: 800 19px/1 var(--round); color: var(--ink);
  background: rgba(255, 255, 255, .72); border: var(--line) solid var(--ink); border-radius: 999px; padding: 14px 20px;
}
.join input::placeholder { color: #8c8166; }
.join button {
  font: 900 18px/1 var(--round); color: #fff; background: var(--ink); border: var(--line) solid var(--ink);
  border-radius: 999px; padding: 14px 22px; cursor: pointer; white-space: nowrap;
}
.join button:hover { background: #2a2a2e; }
.join button[disabled] { opacity: .6; cursor: default; }
.note-status { flex-basis: 100%; margin: 4px 0 0 4px; min-height: 1.4em; font-size: 16px; font-weight: 800; color: #5e5434; }
.note-status.ok { color: #1d6b3d; }
.note-status.err { color: #a6321f; }
:focus-visible { outline: 3px solid #4b7bff; outline-offset: 3px; }

.brand, .ig, .hint { position: absolute; z-index: 2; }
.brand {
  top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px;
  background: #fff; color: var(--ink); border-radius: 999px; font-weight: 900; font-size: 18px; text-decoration: none;
}
.brand img { width: 34px; height: 34px; }
.ig {
  top: 18px; right: 18px; padding: 11px 18px; background: #fff; color: var(--ink); border-radius: 999px;
  font-weight: 900; font-size: 16px; text-decoration: none;
}
.hint {
  bottom: 18px; left: 50%; transform: translateX(-50%); margin: 0; padding: 9px 16px; white-space: nowrap;
  background: #fff; color: var(--soft); border-radius: 999px; font-size: 14px; font-weight: 800; pointer-events: none;
}
.hint .touch { display: none; }
@media (hover: none) { .hint .mouse { display: none; } .hint .touch { display: inline; } }

/* ---------- home: the picker under the canvas ---------- */
.picker-demo { background: var(--paper); padding: 96px 24px 72px; border-radius: 28px 28px 0 0; }
.wrap { max-width: 1180px; margin: 0 auto; }
.picker-demo h2 { font-weight: 900; font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -0.03em; margin: 0 0 18px; }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--soft); max-width: 52ch; margin: 0 0 36px; text-wrap: pretty; }
.shot.live { position: relative; }
.tabs { position: absolute; inset: 0; }
.tabs button {
  position: absolute; top: 17.6%; width: 6.6%; height: 8.4%; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: transparent; font-size: 1px; cursor: pointer;
}
.tabs button:hover { background: rgba(0, 0, 0, .07); }
.tabs button:focus-visible { outline: 3px solid #4b7bff; outline-offset: 2px; }
.shot { margin: 0; border: var(--line) solid var(--ink); border-radius: 22px; overflow: hidden; background: #dfe6dc; }
.fine { margin: 18px 0 0; font-size: 16px; color: var(--faint); }

.home .foot { background: var(--paper); max-width: none; }
.foot { max-width: 1200px; margin: 0 auto; padding: 32px 24px 48px; display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; color: var(--soft); }
.home .foot { padding-left: max(24px, calc((100% - 1180px) / 2)); padding-right: max(24px, calc((100% - 1180px) / 2)); }
.foot a { font-weight: 800; text-decoration: none; color: var(--ink); }
.foot a:hover { text-decoration: underline; }

/* ---------- text pages: privacy and support ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 20px 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; text-decoration: none; letter-spacing: -0.01em; }
.logo img { width: 40px; height: 40px; }
.link { font-weight: 800; text-decoration: none; }
.link:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; font: 900 17px/1 var(--round); color: var(--paper); background: var(--ink); border: var(--line) solid var(--ink); border-radius: 999px; padding: 15px 24px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #2a2a2e; border-color: #2a2a2e; }
.btn[disabled] { opacity: .6; cursor: default; }
main.page { max-width: 720px; margin: 0 auto; padding: 0 24px 40px; }
.page h1 { font-weight: 900; font-size: clamp(40px, 7vw, 72px); line-height: 1; letter-spacing: -0.03em; margin: 40px 0 20px; }
.page h2 { font-weight: 900; font-size: 26px; line-height: 1.15; margin: 36px 0 10px; }
.page p, .page li { font-size: 18px; color: var(--soft); }
.page .updated { color: var(--faint); font-size: 15px; }
.ask { display: grid; gap: 12px; max-width: 620px; }
.ask input, .ask textarea { font: 700 17px/1.4 var(--round); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 18px; padding: 14px 18px; width: 100%; }
.ask textarea { min-height: 160px; resize: vertical; }
.ask .btn { justify-self: start; }
.ask .note { margin: 0; font-size: 15px; color: var(--soft); }
.ask .note.ok { color: #1f8a4c; }
.ask .note.err { color: #c43c2b; }

@media (max-width: 760px) {
  .brand { top: 12px; left: 12px; font-size: 16px; }
  .ig { top: 12px; right: 12px; }
  .picker-demo { padding: 64px 16px 56px; }
  .scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .scroll::-webkit-scrollbar { display: none; }
  .scroll .shot { width: 760px; }
  .tabs button { font-size: 16px; padding: 12px 14px; }
  .bar { padding: 16px; }
  main.page { padding: 0 16px 32px; }
  .foot, .home .foot { padding: 28px 16px 40px; }
}
@media (prefers-reduced-motion: reduce) { .world { transition: none; } }
