/* playwithduo.com. The product's own tokens, so the page a person reads
   first and the app they open next are one surface. Dark is the default
   look; light follows the browser, and a switch in the nav overrides. */

:root {
  --bg: #0b0a0e;
  --bg-raise: #16141c;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.065);
  --edge: rgba(255, 255, 255, 0.08);
  --edge-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f4f7;
  --text-dim: #a09ead;
  --text-faint: #625f6e;
  --ok: #8fe3b0;
  --ok-chip-bg: rgba(16, 60, 40, 0.6);
  --ok-chip-edge: rgba(138, 255, 192, 0.4);
  --accent: #8b6cff;
  --accent-2: #ff6b9d;
  --accent-grad: linear-gradient(135deg, #8b6cff 0%, #b45cff 45%, #ff6b9d 100%);
  --accent-soft: rgba(139, 108, 255, 0.16);
  --accent-ring: rgba(139, 108, 255, 0.45);
  --gold: #f0c46c;
  --gold-grad: linear-gradient(135deg, #f0c46c 0%, #b45cff 55%, #ff6b9d 100%);
  --glow-1: rgba(139, 108, 255, 0.16);
  --glow-2: rgba(255, 107, 157, 0.09);
  --input-bg: rgba(0, 0, 0, 0.35);
  --frame-bg: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  --checker: rgba(255, 255, 255, 0.025);
  --board-light: #d9d2c5;
  --board-dark: #6b5a8a;
  --sea-dark: #1a2740;
  --sea-light: #223353;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-lift: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--accent-ring);
  --font: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 58ch;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f5f6;
  --bg-raise: #ffffff;
  --glass: rgba(12, 12, 14, 0.03);
  --glass-strong: rgba(12, 12, 14, 0.055);
  --edge: rgba(12, 12, 14, 0.1);
  --edge-strong: rgba(12, 12, 14, 0.2);
  --text: #1b1b1f;
  --text-dim: #55555c;
  --text-faint: #8e8e94;
  --ok: #1f9a5e;
  --ok-chip-bg: rgba(31, 154, 94, 0.14);
  --ok-chip-edge: rgba(31, 154, 94, 0.4);
  --gold: #b7801f;
  --glow-1: rgba(139, 108, 255, 0.14);
  --glow-2: rgba(255, 107, 157, 0.1);
  --input-bg: rgba(12, 12, 14, 0.04);
  --frame-bg: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.6)
  );
  --checker: rgba(12, 12, 14, 0.04);
  --sea-dark: #cfdaf0;
  --sea-light: #e2eaf8;
  --shadow-card:
    0 1px 2px rgba(28, 20, 60, 0.08), 0 8px 24px rgba(28, 20, 60, 0.08);
  --shadow-lift:
    0 2px 4px rgba(28, 20, 60, 0.1), 0 16px 40px rgba(28, 20, 60, 0.14),
    0 0 0 1px var(--accent-ring);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f5f6;
    --bg-raise: #ffffff;
    --glass: rgba(12, 12, 14, 0.03);
    --glass-strong: rgba(12, 12, 14, 0.055);
    --edge: rgba(12, 12, 14, 0.1);
    --edge-strong: rgba(12, 12, 14, 0.2);
    --text: #1b1b1f;
    --text-dim: #55555c;
    --text-faint: #8e8e94;
    --ok: #1f9a5e;
    --ok-chip-bg: rgba(31, 154, 94, 0.14);
    --ok-chip-edge: rgba(31, 154, 94, 0.4);
    --gold: #b7801f;
    --glow-1: rgba(139, 108, 255, 0.14);
    --glow-2: rgba(255, 107, 157, 0.1);
    --input-bg: rgba(12, 12, 14, 0.04);
    --frame-bg: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.6)
    );
    --checker: rgba(12, 12, 14, 0.04);
    --sea-dark: #cfdaf0;
    --sea-light: #e2eaf8;
    --shadow-card:
      0 1px 2px rgba(28, 20, 60, 0.08), 0 8px 24px rgba(28, 20, 60, 0.08);
    --shadow-lift:
      0 2px 4px rgba(28, 20, 60, 0.1), 0 16px 40px rgba(28, 20, 60, 0.14),
      0 0 0 1px var(--accent-ring);
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 85% -8%, var(--glow-1), transparent 62%),
    radial-gradient(760px 520px at -8% 100%, var(--glow-2), transparent 60%);
}
main,
.nav,
.footer {
  position: relative;
  z-index: 1;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--text);
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
:where(a, button, input, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 10;
  background: var(--bg-raise);
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  max-width: 30ch;
}
h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
}
p {
  max-width: var(--measure);
}
.muted {
  color: var(--text-dim);
  font-size: 14px;
}
.section-head {
  margin-bottom: 36px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--edge-strong);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--glass-strong);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}
.button:hover {
  transform: translateY(-1px);
  background: var(--edge);
}
.button.primary {
  background: var(--accent-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px rgba(139, 108, 255, 0.28);
}
.button.primary:hover {
  color: #fff;
  box-shadow: 0 12px 32px rgba(139, 108, 255, 0.4);
}
.button.ghost {
  background: transparent;
}
.button.small {
  padding: 9px 16px;
  font-size: 14px;
}
.button[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}
.mini-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge), transparent);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand b {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 8px;
}
.brand.small {
  font-size: 19px;
  margin-bottom: 8px;
}
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-login {
  font-size: 14.5px;
  color: var(--text-dim);
}
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  border: 1px solid var(--edge);
  background: var(--glass);
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--edge-strong);
}
.theme-toggle svg {
  width: 17px;
  height: 17px;
}
.theme-toggle .sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .moon {
    display: none;
  }
}
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav-login {
    display: none;
  }
}

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 24px 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(44px, 6.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1::after {
  content: ".";
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 46ch;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 32px;
  }
  .hero h1 {
    font-size: clamp(40px, 11vw, 56px);
  }
}

/* The moment: one frame, four scenes, one of them real. */
.moment {
  justify-self: end;
  width: min(100%, 560px);
}
@media (max-width: 960px) {
  .moment {
    justify-self: stretch;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
}
.glass {
  background: var(--glass);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.moment-frame {
  position: relative;
  min-height: 560px;
  padding: 22px;
  overflow: hidden;
  background: var(--frame-bg);
}
.moment-frame::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  z-index: 0;
  pointer-events: none;
  background: repeating-conic-gradient(var(--checker) 0 25%, transparent 0 50%)
    0 0 / 110px 110px;
  transform: rotate(-7deg);
  mask-image: radial-gradient(60% 55% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    60% 55% at 50% 45%,
    #000 20%,
    transparent 75%
  );
  animation: drift 80s linear infinite;
}
@keyframes drift {
  to {
    background-position: 220px 110px;
  }
}
.scene {
  position: absolute;
  inset: 22px;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
  pointer-events: none;
}
.moment[data-scene="call"] .scene-call,
.moment[data-scene="memory"] .scene-memory,
.moment[data-scene="chess"] .scene-chess,
.moment[data-scene="battleship"] .scene-battleship {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.moment-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}
.moment-dots button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.moment-dots button::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--edge-strong);
  transition:
    transform 200ms ease,
    background 200ms ease;
}
.moment-dots button.on::before {
  background: var(--accent);
  transform: scale(1.35);
}

.call-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(143, 227, 176, 0.18);
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.45;
  }
}
.audio-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--edge-strong);
  background: var(--glass-strong);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
}
.audio-toggle svg {
  width: 15px;
  height: 15px;
}
.audio-toggle[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-ring);
  color: var(--accent);
}
.audio-toggle[aria-pressed="true"] .ring1 {
  animation: ringpulse 900ms ease-in-out infinite;
}
.audio-toggle[aria-pressed="true"] .ring2 {
  animation: ringpulse 900ms ease-in-out infinite 200ms;
}
@keyframes ringpulse {
  50% {
    opacity: 0.3;
  }
}
.call-tile {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 0 8px;
}
.call-tile.compact {
  grid-template-columns: auto 1fr;
  justify-items: start;
  align-items: center;
  padding: 6px 0;
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 34px;
  color: #fff;
  background: var(--accent-grad);
}
.avatar.small {
  width: 44px;
  height: 44px;
  font-size: 17px;
}
.avatar {
  position: relative;
  overflow: hidden;
}
.avatar img,
.avatar video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar video {
  z-index: 1;
}
.avatar.ring {
  box-shadow:
    0 0 0 3px var(--bg-raise),
    0 0 0 6px #57c78a;
  animation: ring 2.6s ease-in-out infinite;
}
@keyframes ring {
  50% {
    box-shadow:
      0 0 0 3px var(--bg-raise),
      0 0 0 9px rgba(87, 199, 138, 0.55);
  }
}
.call-name {
  font-weight: 600;
}
.call-name em {
  font-style: normal;
  color: var(--text-dim);
  font-weight: 400;
}
.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 52px;
}
.wave i {
  width: 4px;
  border-radius: 3px;
  background: var(--accent-grad);
  height: 8px;
  animation: wave 1.4s ease-in-out infinite;
}
.wave i:nth-child(2n) {
  animation-delay: 0.15s;
}
.wave i:nth-child(3n) {
  animation-delay: 0.3s;
}
.wave i:nth-child(5n) {
  animation-delay: 0.5s;
}
.wave i:nth-child(7n) {
  animation-delay: 0.7s;
}
.wave.live i {
  animation-duration: 0.7s;
}
@keyframes wave {
  0%,
  100% {
    height: 8px;
  }
  50% {
    height: 38px;
  }
}
.meter {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  padding: 4px 0;
}
.meter i {
  width: 6px;
  background: var(--accent);
  border-radius: 2px;
  height: 30%;
  opacity: 0.7;
  animation: meter 1.1s ease-in-out infinite;
}
.meter i:nth-child(odd) {
  animation-delay: 0.2s;
}
.meter i:nth-child(4) {
  animation-delay: 0.5s;
}
.meter.live i {
  animation-duration: 0.55s;
  opacity: 1;
}
@keyframes meter {
  50% {
    height: 100%;
  }
}
.caption {
  font-size: 15px;
  text-align: center;
  color: var(--text);
}
.caption.you {
  color: var(--text-dim);
}
.call-frame .caption {
  text-align: left;
}

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.4;
}
.bubble.you {
  justify-self: end;
  background: var(--accent-grad);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble.them {
  justify-self: start;
  background: var(--glass-strong);
  border: 1px solid var(--edge);
  border-bottom-left-radius: 6px;
}
/* A line that has just arrived grows out of its own corner. */
.bubble.in {
  animation: bubble-in 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.bubble.you.in {
  transform-origin: 100% 100%;
}
.bubble.them.in {
  transform-origin: 0 100%;
}
@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }
}
.bubble.typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
}
.bubble.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typing 1.1s ease-in-out infinite;
}
.bubble.typing i:nth-child(2) {
  animation-delay: 140ms;
}
.bubble.typing i:nth-child(3) {
  animation-delay: 280ms;
}
@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
.memory-chip {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-ring);
  animation: chip-in 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
}
.memory-kind {
  color: var(--accent);
}
.memory-text {
  font-weight: 600;
}
.memory-actions {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
}
.memory-actions b {
  font-weight: 600;
}

.chess-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-dim);
}
.board {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  aspect-ratio: 1;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--edge-strong);
  position: relative;
  user-select: none;
}
.board span.sq {
  position: relative;
}
.board span.light {
  background: var(--board-light);
}
.board span.dark {
  background: var(--board-dark);
}
.board.playable span.sq {
  cursor: pointer;
}
.board span.sq.selected {
  box-shadow: inset 0 0 0 3px #8b6cff;
}
.board span.sq.target::after {
  content: "";
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: rgba(139, 108, 255, 0.75);
}
.board span.sq.capture::after {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 3px solid rgba(255, 107, 157, 0.85);
}
.board span.sq.last {
  box-shadow: inset 0 0 0 3px rgba(255, 107, 157, 0.55);
}
.board .piece {
  position: absolute;
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  width: 12.5%;
  height: 12.5%;
  transition:
    left 420ms cubic-bezier(0.22, 1, 0.36, 1),
    top 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 300ms ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.board .piece.w {
  color: #fbf7ef;
}
.board .piece.b {
  color: #17131f;
}
.board .piece.gone {
  opacity: 0;
  transform: scale(0.6);
}
.board.static {
  max-width: 260px;
}
.board.static .piece {
  font-size: 24px;
}
.chess-bubble {
  justify-self: center;
}

.sea {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1;
}
.sea i {
  border-radius: 4px;
  background: var(--sea-light);
  position: relative;
  transition: background 300ms ease;
}
.sea i:nth-child(odd) {
  background: var(--sea-dark);
}
.sea i.miss::after {
  content: "";
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: var(--text-faint);
  animation: splash 500ms ease both;
}
.sea i.hit {
  background: #ff6b9d;
}
.sea i.hit::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: #fff;
  animation: splash 500ms ease both;
}
.sea i.sunk {
  background: #b45cff;
}
@keyframes splash {
  from {
    transform: scale(0);
  }
  60% {
    transform: scale(1.3);
  }
}

/* ── Meet ────────────────────────────────────────────────────────── */
.meet,
.games,
.pricing,
.invite {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 0;
}
.meet {
  padding-top: 28px;
}
.meet-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.meet-strip li {
  padding: 18px 20px 20px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.meet-kind {
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
}
.meet-strip h2 {
  font-size: 19px;
  max-width: none;
}
.meet-strip p {
  color: var(--text-dim);
  font-size: 14.5px;
}
.meet-strip .mini {
  margin-top: 10px;
}
.meet-strip .memory-chip {
  animation: none;
}
.call-mini {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}
.meet-strip .board.static {
  max-width: 180px;
  margin: 10px 0 0;
}
.meet-strip .board.static .piece {
  font-size: 17px;
}
@media (max-width: 800px) {
  .meet-strip {
    grid-template-columns: 1fr;
  }
}
.beat {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
  padding: 28px 0;
}
.beat.flip .beat-copy {
  order: 2;
}
.beat + .beat {
  border-top: 1px solid var(--edge);
}
.beat-copy h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  margin-bottom: 10px;
}
.beat-copy p {
  color: var(--text-dim);
  font-size: 16.5px;
}
.beat-frame {
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}
.panel-title {
  color: var(--text-dim);
}
.memory-list {
  list-style: none;
  display: grid;
  gap: 10px;
}
.memory-list li {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--glass-strong);
  border: 1px solid var(--edge);
  font-size: 14px;
}
.memory-list .kind {
  color: var(--accent);
}
.panel-foot {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.panel-foot.between {
  justify-content: space-between;
}
.panel-foot b {
  font-weight: 600;
  color: var(--text);
}
@media (max-width: 800px) {
  .beat {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .beat.flip .beat-copy {
    order: 0;
  }
}

/* ── Games rail: a slow carousel, paused under the cursor ─────────── */
.games {
  padding-top: 56px;
}
.rail {
  position: relative;
  margin: 0 -24px;
  padding: 6px 0 18px;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
}
.rail-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding-left: 24px;
  animation: marquee 48s linear infinite;
}
.rail:hover .rail-track,
.rail:focus-within .rail-track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.poster {
  position: relative;
  flex: 0 0 auto;
  width: 224px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--edge);
  background: var(--bg-raise);
  box-shadow: var(--shadow-card);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease,
    border-color 220ms ease;
}
.poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 500ms ease,
    filter 400ms ease;
  filter: saturate(0.82) brightness(0.9);
}
.poster.available img {
  filter: none;
}
.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 7, 12, 0.92) 0%,
    rgba(8, 7, 12, 0.5) 34%,
    rgba(8, 7, 12, 0.08) 64%,
    rgba(8, 7, 12, 0.02) 100%
  );
}
.poster:hover {
  transform: translateY(-5px);
  border-color: var(--accent-ring);
  box-shadow: var(--shadow-lift);
}
.poster:hover img {
  transform: scale(1.04);
  filter: none;
}
.poster figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 12px 13px 13px;
  display: grid;
  gap: 4px;
  color: #fff;
}
.poster .title {
  font-weight: 650;
  font-size: 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.poster .hook {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}
.poster:hover .hook {
  max-height: 60px;
}
.chip {
  justify-self: start;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 9, 14, 0.55);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
}
.chip.ok {
  color: #8fe3b0;
  border-color: rgba(138, 255, 192, 0.4);
  background: rgba(16, 60, 40, 0.6);
}
.disclaimer {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--text-faint);
  max-width: none;
}
@media (prefers-reduced-motion: reduce) {
  .rail {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .rail-track,
  .bubble.in,
  .bubble.typing i,
  .memory-chip {
    animation: none;
  }
}

/* ── How ─────────────────────────────────────────────────────────── */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.steps li {
  padding: 20px 20px 22px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--glass);
  display: grid;
  gap: 8px;
}
.step-n {
  color: var(--accent);
}
.steps h3 {
  font-size: 18px;
}
.steps p {
  color: var(--text-dim);
  font-size: 15px;
}
@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ── Safety ──────────────────────────────────────────────────────── */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.fact {
  padding: 22px 24px;
  border-right: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  background: var(--glass);
}
.fact:nth-child(2n) {
  border-right: 0;
}
.fact:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.fact h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.fact p {
  color: var(--text-dim);
  font-size: 15px;
}
.safety-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.safety-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--edge-strong);
}
@media (max-width: 700px) {
  .facts {
    grid-template-columns: 1fr;
  }
  .fact {
    border-right: 0;
  }
  .fact:nth-last-child(2) {
    border-bottom: 1px solid var(--edge);
  }
}

/* ── Pricing ─────────────────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
  position: relative;
  min-height: 100%;
}
.plan h3 {
  font-size: 18px;
}
.plus {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.price {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.price span {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  margin-left: 2px;
}
.yearly {
  color: var(--text-faint);
}
.plan ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 6px;
}
.plan li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.plan.featured {
  border-color: var(--accent-ring);
  box-shadow:
    0 0 0 1px var(--accent-ring),
    var(--shadow-card);
}

@property --ultra-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
/* The border is the animated part: a conic gradient painted only in the
   border box, the card's own surface painted over the padding box, and
   the same angle turning both the border and the glow behind it. */
.plan.ultra {
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--bg-raise), var(--bg-raise)) padding-box,
    conic-gradient(from var(--ultra-angle), #f0c46c, #b45cff, #ff6b9d, #f0c46c)
      border-box;
  box-shadow:
    0 0 0 1px rgba(240, 196, 108, 0.2),
    0 14px 44px rgba(180, 92, 255, 0.34),
    0 0 90px rgba(240, 196, 108, 0.18);
  animation:
    ultra-spin 6s linear infinite,
    ultra-glow 4s ease-in-out infinite alternate;
  padding: 24px;
}
@keyframes ultra-spin {
  to {
    --ultra-angle: 360deg;
  }
}
@keyframes ultra-glow {
  to {
    box-shadow:
      0 0 0 1px rgba(255, 107, 157, 0.28),
      0 16px 54px rgba(255, 107, 157, 0.4),
      0 0 110px rgba(180, 92, 255, 0.26);
  }
}
.ultra-word {
  background: linear-gradient(135deg, #f0c46c, #ff6b9d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}
.plan.ultra li::before {
  background: var(--gold);
}
.fineprint {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-faint);
}
@media (max-width: 800px) {
  .plans {
    grid-template-columns: 1fr;
  }
}

/* ── Waitlist ─────────────────────────────────────────────────────── */
.invite {
  padding-bottom: 40px;
}
.forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.invite-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.invite-card .muted {
  margin-bottom: 6px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-row > div {
  display: grid;
  gap: 8px;
}
.invite-form select,
.invite-form textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--edge-strong);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
}
.invite-form select:focus,
.invite-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.invite-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    520px 260px at 90% 0%,
    var(--accent-soft),
    transparent 70%
  );
}
.invite-copy,
.invite-form {
  position: relative;
}
.invite-copy p {
  color: var(--text-dim);
}
.invite-copy h2 {
  margin-bottom: 12px;
}
.invite-login {
  margin-top: 18px;
  font-size: 14.5px;
}
.invite-login a {
  color: var(--accent);
}
.invite-form {
  display: grid;
  gap: 8px;
  align-content: start;
}
.invite-form label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
}
.optional {
  color: var(--text-faint);
  font-size: 12px;
}
.invite-form input {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--edge-strong);
  border-radius: 10px;
  padding: 12px 14px;
}
.invite-form input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.invite-form .button {
  margin-top: 10px;
  justify-self: start;
}
.form-status {
  font-size: 14px;
  color: var(--text-dim);
  min-height: 1.4em;
}
.form-status.ok {
  color: var(--ok);
}
.form-status.err {
  color: #f0798a;
}
@media (max-width: 860px) {
  .forms {
    grid-template-columns: 1fr;
  }
  .invite-card {
    padding: 24px;
  }
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  max-width: 1160px;
  margin: 56px auto 0;
  padding: 36px 24px 48px;
  border-top: 1px solid var(--edge);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
  font-family: var(--mono);
  font-weight: 600;
}
.footer p {
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text-dim);
}
.copyright {
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--text-faint);
}
@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Reveal ──────────────────────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 480ms ease,
    transform 480ms ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ── Legal pages ─────────────────────────────────────────────────── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 8px;
}
.legal h2 {
  font-size: 22px;
  margin: 36px 0 10px;
  max-width: none;
}
.legal h3 {
  font-size: 17px;
  margin: 22px 0 8px;
}
.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: none;
}
.legal p {
  margin-bottom: 14px;
}
.legal ul,
.legal ol {
  padding-left: 22px;
  margin-bottom: 14px;
  display: grid;
  gap: 6px;
}
.legal strong {
  color: var(--text);
}
.legal a {
  color: var(--accent);
}
.legal code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--glass-strong);
  padding: 1px 5px;
  border-radius: 4px;
}
.legal-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.page-head {
  margin-bottom: 28px;
}
.page-head h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.page-head p {
  color: var(--text-dim);
  font-size: 17px;
}
.faq-search {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--edge-strong);
  border-radius: 12px;
  padding: 13px 16px;
  margin: 18px 0 8px;
}
.faq-search:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.faq-group {
  margin-top: 34px;
}
.faq-group h2 {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 600;
  margin-bottom: 8px;
  max-width: none;
}
.faq-group details {
  border-top: 1px solid var(--edge);
}
.faq-group details:last-child {
  border-bottom: 1px solid var(--edge);
}
.faq-group summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 34px 15px 0;
  font-size: 17px;
  font-weight: 600;
  position: relative;
}
.faq-group summary::-webkit-details-marker {
  display: none;
}
.faq-group summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 13px;
  font-size: 20px;
  color: var(--text-faint);
  transition: transform 200ms ease;
}
.faq-group details[open] summary::after {
  transform: rotate(45deg);
}
.faq-group details p,
.faq-group details li {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: none;
}
.faq-group details p {
  padding: 0 0 16px;
}
.faq-group details ul {
  padding: 0 0 16px 20px;
}
.faq-group details a {
  color: var(--accent);
}
.faq-empty {
  color: var(--text-faint);
  padding: 24px 0;
}
[data-faq-hidden] {
  display: none;
}

/* ── Docs ────────────────────────────────────────────────────────── */
.docs {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.docs-nav a {
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 8px;
}
.docs-nav a:hover {
  background: var(--glass-strong);
  color: var(--text);
}
.docs-nav .group {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 14px 10px 4px;
}
.docs-nav .group:first-child {
  margin-top: 0;
}
.docs-body h1 {
  font-size: clamp(34px, 4.5vw, 48px);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.docs-body > p.lede {
  margin-bottom: 8px;
}
.docs-body section {
  padding: 30px 0 6px;
  border-top: 1px solid var(--edge);
  margin-top: 26px;
}
.docs-body h2 {
  font-size: 24px;
  margin-bottom: 10px;
  max-width: none;
}
.docs-body h3 {
  font-size: 17px;
  margin: 18px 0 6px;
}
.docs-body p,
.docs-body li {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 70ch;
}
.docs-body p {
  margin-bottom: 12px;
}
.docs-body ul,
.docs-body ol {
  padding-left: 22px;
  margin-bottom: 12px;
  display: grid;
  gap: 6px;
}
.docs-body strong {
  color: var(--text);
}
.docs-body a {
  color: var(--accent);
}
.docs-body code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--glass-strong);
  padding: 1px 6px;
  border-radius: 4px;
}
.docs-body .note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 10px 14px;
  border-radius: 0 10px 10px 0;
  margin: 12px 0 16px;
}
.docs-body .note p {
  margin: 0;
  color: var(--text);
}
@media (max-width: 860px) {
  .docs {
    grid-template-columns: 1fr;
  }
  .docs-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
