/* getjoinable.com. Tokens copied from brand/tokens.css (signed off 1 November 2026); rules in docs/BRAND.md.
   Mostly Night and Mist. Coral marks the one action, and text on coral is Night. The player colours
   are the only other bright colours, so colour always means a person. */
:root {
  --jn-night: #120E26;
  --jn-night-raised: #1C1638;
  --jn-night-line: #2E2752;
  --jn-mist: #F4F1FF;
  --jn-mist-muted: #B9B2D9;
  --jn-coral: #FF5A5F;
  --jn-teal: #2EC4B6;
  --jn-volt: #FFB400;
  --jn-violet: #7B61FF;
  --jn-font-display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --jn-font-ui: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --jn-font-mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --jn-radius-control: 12px;
  --jn-radius-card: 20px;
  --jn-radius-sheet: 22px;
  --jn-ease-snap: cubic-bezier(.34, 1.56, .64, 1);
  --jn-ease-move: cubic-bezier(.2, .8, .2, 1);
  --jn-dur-snap: 280ms;
  --jn-dur-move: 200ms;

  --night-deep: #0D0A1D;
  --code: #CFC8F7;
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) {
  :root { --jn-dur-snap: 120ms; --jn-dur-move: 120ms; --jn-ease-snap: linear; --jn-ease-move: linear; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--jn-night); color: var(--jn-mist); font: 400 17px/1.6 var(--jn-font-ui); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: rgba(244, 241, 255, .35); }
a:hover { text-decoration-color: currentColor; }
img, svg { display: block; }
code, pre { font-family: var(--jn-font-mono); }
h1, h2, h3 { margin: 0; font-family: var(--jn-font-display); font-weight: 780; line-height: 1.04; letter-spacing: -.025em; font-optical-sizing: auto; }
h1, h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }
h3 { font-size: 20px; letter-spacing: -.012em; line-height: 1.2; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -999px; top: 8px; background: var(--jn-mist); color: var(--jn-night); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--jn-violet); outline-offset: 3px; border-radius: 6px; }

/* Buttons: coral is the one action; everything else is quiet. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--jn-coral); color: var(--jn-night); font: 600 16px/1 var(--jn-font-ui); text-decoration: none; cursor: pointer;
  transition: transform var(--jn-dur-move) var(--jn-ease-move), background var(--jn-dur-move); }
.btn:hover { transform: translateY(-1px); background: #FF6E72; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--jn-mist); box-shadow: inset 0 0 0 1px var(--jn-night-line); }
.btn-ghost:hover { background: var(--jn-night-raised); box-shadow: inset 0 0 0 1px var(--jn-mist-muted); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(18, 14, 38, .78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(46, 39, 82, .7); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo img { height: 26px; width: auto; }
.nav nav { display: none; gap: 28px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--jn-mist-muted); font-weight: 500; font-size: 15px; transition: color var(--jn-dur-move); }
.nav nav a:hover { color: var(--jn-mist); }
.nav .btn-sm { margin-left: auto; }
@media (min-width: 860px) { .nav nav { display: flex; } .nav .btn-sm { margin-left: 0; } }

/* Hero */
.hero { position: relative; padding: 44px 0 64px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(185, 178, 217, .14) 1px, transparent 1px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 70% at 70% 40%, #000 20%, transparent 75%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.hero-in > * { min-width: 0; }
@media (min-width: 1000px) { .hero { padding: 88px 0 104px; } .hero-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: 56px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--jn-night-raised);
  box-shadow: inset 0 0 0 1px var(--jn-night-line); font-size: 14px; font-weight: 500; color: var(--jn-mist-muted); }
.dots { display: inline-flex; }
.dots i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--jn-night-raised); }
.dots i + i { margin-left: -3px; }
.dots i:nth-child(1) { background: var(--jn-coral); }
.dots i:nth-child(2) { background: var(--jn-teal); }
.dots i:nth-child(3) { background: var(--jn-volt); }
.dots i:nth-child(4) { background: var(--jn-violet); }
h1 { font-size: clamp(46px, 10.5vw, 78px); letter-spacing: -.035em; line-height: .98; }
h1 em { font-style: normal; color: var(--jn-coral); white-space: nowrap; }
.line { margin: 14px 0 0; font-family: var(--jn-font-display); font-weight: 780; font-size: clamp(22px, 3.4vw, 30px); letter-spacing: -.02em; color: var(--jn-mist-muted); }
.lead { margin: 22px 0 30px; font-size: clamp(17px, 2vw, 19px); color: var(--jn-mist-muted); max-width: 33em; }
.lead strong { color: var(--jn-mist); font-weight: 500; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.diff { margin: 30px 0 0; padding: 16px 18px; border-radius: var(--jn-radius-control); background: var(--night-deep); box-shadow: inset 0 0 0 1px var(--jn-night-line);
  font-size: 13.5px; line-height: 1.7; overflow-x: auto; }
.diff .ctx { color: rgba(185, 178, 217, .6); }
.diff .add { color: var(--jn-mist); }
.diff .add::first-letter { color: var(--jn-teal); }

/* Live demo */
.demo { margin: 0; }
.demo-frames { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; }
@media (min-width: 560px) { .demo-frames { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 12px; } }
.screen { border-radius: 16px; background: var(--night-deep); overflow: hidden; box-shadow: 0 0 0 1px var(--jn-night-line), 0 30px 70px -20px rgba(0, 0, 0, .7); }
.screen-bar { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; color: var(--jn-mist-muted);
  background: var(--jn-night-raised); border-bottom: 1px solid var(--jn-night-line); }
.pip { width: 9px; height: 9px; border-radius: 50%; }
.p1 .pip { background: var(--jn-coral); }
.p2 .pip { background: var(--jn-teal); }
.screen-body { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
/* The game renders at a fixed 480×360 and is scaled to fit, so its dock stays in proportion. */
.screen-body iframe { position: absolute; left: 0; top: 0; width: 480px; height: 360px; border: 0; transform-origin: 0 0; transform: scale(var(--k, 1)); }
.demo-start { border: 0; background: transparent; color: var(--jn-mist-muted); font: 500 14px var(--jn-font-ui); cursor: pointer; }
.link { display: none; }
@media (min-width: 560px) { .link { display: block; } .link svg { width: 40px; height: 40px; } }
/* The join snap (BRAND.md): the player dot rolls in and clicks onto the tip, once. */
.link .snap { transform-box: fill-box; transform-origin: center; }
.demo.live .link .snap { animation: snap var(--jn-dur-snap) var(--jn-ease-snap) both; animation-delay: 600ms; }
@keyframes snap { from { transform: translateX(14px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.demo figcaption { margin-top: 18px; font-size: 15px; color: var(--jn-mist-muted); }
.demo figcaption strong { color: var(--jn-mist); font-weight: 600; }

/* Proof */
.proof { border-block: 1px solid var(--jn-night-line); background: var(--jn-night-raised); padding: 40px 0; }
.proof-in { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .proof-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 56px; } }
.strip { display: inline-flex; gap: 6px; padding: 5px; margin-bottom: 18px; border-radius: 999px; background: rgba(18, 14, 38, .78); box-shadow: inset 0 0 0 1px var(--jn-night-line);
  font: 500 13px var(--jn-font-ui); }
.strip span, .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-style: normal; white-space: nowrap; }
.strip .me { background: var(--jn-night-line); }
.strip i, .chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.proof h2 { font-size: 28px; margin: 4px 0 8px; }
.proof p { margin: 0 0 10px; color: var(--jn-mist-muted); max-width: 34em; }
.arrow { font-weight: 600; text-decoration: none; }
.arrow::after { content: " →"; display: inline-block; transition: transform var(--jn-dur-move) var(--jn-ease-move); }
.arrow:hover::after { transform: translateX(3px); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stats b { display: block; font-family: var(--jn-font-display); font-weight: 780; font-size: clamp(26px, 4vw, 34px); letter-spacing: -.03em; line-height: 1.1; }
.stats span { font-size: 13px; color: var(--jn-mist-muted); line-height: 1.4; display: block; margin-top: 4px; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--jn-night-raised); border-block: 1px solid var(--jn-night-line); }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.kicker { margin: 0 0 12px; font: 500 13px var(--jn-font-mono); letter-spacing: .04em; color: var(--jn-mist-muted); }
.h2 { font-size: clamp(32px, 5.4vw, 52px); max-width: 17em; }
.sub { margin: 16px 0 0; color: var(--jn-mist-muted); max-width: 36em; font-size: 18px; }
.fine { margin: 24px 0 0; font-size: 14px; color: var(--jn-mist-muted); max-width: 52em; }
.fine b { color: var(--jn-mist); font-weight: 600; }
.card { border-radius: var(--jn-radius-card); background: var(--jn-night-raised); box-shadow: inset 0 0 0 1px var(--jn-night-line); }
.alt .card { background: var(--jn-night); }

/* Steps */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { min-width: 0; padding: 26px; display: flex; flex-direction: column; }
.steps .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; margin-bottom: 18px;
  box-shadow: inset 0 0 0 1px var(--jn-night-line); font: 500 14px var(--jn-font-mono); color: var(--jn-mist-muted); }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0 0 18px; color: var(--jn-mist-muted); font-size: 16px; }
.steps pre, .code { margin: auto 0 0; padding: 14px 16px; border-radius: var(--jn-radius-control); background: var(--night-deep); box-shadow: inset 0 0 0 1px var(--jn-night-line);
  font-size: 12.5px; line-height: 1.65; overflow-x: auto; color: var(--code); }
.steps pre .ok { color: var(--jn-teal); }

/* Flow */
.flow { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .flow { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.flow li { min-width: 0; padding: 14px 14px 18px; }
.flow b { display: block; font-family: var(--jn-font-display); font-weight: 780; font-size: 18px; letter-spacing: -.012em; margin: 14px 4px 4px; }
.flow span { font-size: 14px; color: var(--jn-mist-muted); line-height: 1.45; display: block; margin: 0 4px; }
.mock { height: 84px; border-radius: 14px; background: var(--night-deep); box-shadow: inset 0 0 0 1px var(--jn-night-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; overflow: hidden; }
.mock .chip { background: rgba(244, 241, 255, .08); font-size: 12px; color: var(--jn-mist); }
.mock .chip.act { background: var(--jn-coral); color: var(--jn-night); font-weight: 600; }
.mock.big { font: 780 44px/1 var(--jn-font-display); }
.mock.podium { flex-direction: row; align-items: flex-end; gap: 6px; padding-bottom: 0; }
.mock.podium i { width: 22%; height: var(--h); border-radius: 6px 6px 0 0; background: var(--c); opacity: .9; }

/* Genres */
.genres { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .genres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .genres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.genres li { min-width: 0; padding: 24px; }
.genres h3 { margin: 14px 0 6px; }
.genres p { margin: 0; font-size: 15px; color: var(--jn-mist-muted); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 500 12px var(--jn-font-mono); }
.tag.ok { background: var(--jn-mist); color: var(--jn-night); }
.tag.play { box-shadow: inset 0 0 0 1px var(--jn-mist-muted); color: var(--jn-mist); }
.tag.soon { border: 1px dashed var(--jn-mist-muted); padding: 2px 9px; color: var(--jn-mist-muted); }

/* Limits */
.limits { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .limits { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } }
.nots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nots li { padding: 18px 20px; border-radius: 16px; background: var(--jn-night); box-shadow: inset 0 0 0 1px var(--jn-night-line); color: var(--jn-mist-muted); font-size: 16px; }
.nots b { display: block; color: var(--jn-mist); font-weight: 600; margin-bottom: 2px; }

/* Prompt */
.prompt { position: relative; margin-top: 36px; border-radius: var(--jn-radius-card); background: var(--night-deep); box-shadow: inset 0 0 0 1px var(--jn-night-line); }
.prompt pre { margin: 0; padding: 60px 20px 24px; font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--code); }
@media (min-width: 720px) { .prompt pre { padding: 28px 130px 28px 28px; font-size: 14.5px; } }
.copy { position: absolute; top: 14px; right: 14px; min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--jn-mist); color: var(--jn-night);
  font: 600 14px var(--jn-font-ui); cursor: pointer; transition: background var(--jn-dur-move); }
.copy.done { background: var(--jn-teal); }

/* Pricing */
.plans { margin-top: 48px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { min-width: 0; padding: 30px; border-radius: var(--jn-radius-card); background: var(--jn-night); box-shadow: inset 0 0 0 1px var(--jn-night-line); display: flex; flex-direction: column; }
.plan.featured { box-shadow: inset 0 0 0 1px var(--jn-mist-muted); }
.plan h3 { font: 500 14px var(--jn-font-mono); color: var(--jn-mist-muted); letter-spacing: .02em; }
.price { margin: 10px 0 20px; font-family: var(--jn-font-display); font-weight: 780; font-size: 40px; letter-spacing: -.03em; line-height: 1.05; }
.plan ul { margin: 0 0 26px; padding: 0; list-style: none; color: var(--jn-mist-muted); font-size: 16px; display: grid; gap: 8px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--jn-mist-muted); }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { max-width: 860px; }
.faq .h2 { margin-bottom: 32px; }
details { border-top: 1px solid var(--jn-night-line); }
details:last-child { border-bottom: 1px solid var(--jn-night-line); }
summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 500; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border: solid var(--jn-mist-muted); border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform var(--jn-dur-move) var(--jn-ease-move); }
details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details p { margin: 0 0 22px; color: var(--jn-mist-muted); max-width: 44em; }
details code { font-size: .9em; color: var(--jn-mist); }

/* Docs */
.doc-links { margin-top: 36px; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .doc-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.doc-links a { display: block; min-width: 0; padding: 22px 24px; border-radius: var(--jn-radius-card); background: var(--jn-night); box-shadow: inset 0 0 0 1px var(--jn-night-line);
  text-decoration: none; transition: box-shadow var(--jn-dur-move), transform var(--jn-dur-move) var(--jn-ease-move); }
.doc-links a:hover { box-shadow: inset 0 0 0 1px var(--jn-mist-muted); transform: translateY(-2px); }
.doc-links b { display: block; font-family: var(--jn-font-display); font-weight: 780; font-size: 20px; letter-spacing: -.012em; margin-bottom: 4px; }
.doc-links b::after { content: " →"; color: var(--jn-mist-muted); }
.doc-links span { color: var(--jn-mist-muted); font-size: 15px; }

/* Sign up */
.cta { position: relative; overflow: hidden; }
.cta-in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta .h2 em { font-style: normal; color: var(--jn-coral); }
.cta .sub { margin-inline: auto; }
.signup { margin-top: 36px; width: 100%; max-width: 440px; display: grid; gap: 8px; text-align: left; }
.signup label { font-size: 14px; font-weight: 500; margin-top: 8px; }
.signup label small { color: var(--jn-mist-muted); font-weight: 400; font-size: 14px; }
.signup input { min-height: 50px; padding: 0 16px; border-radius: var(--jn-radius-control); border: 0; background: var(--jn-night-raised); color: var(--jn-mist);
  font: 400 16px var(--jn-font-ui); box-shadow: inset 0 0 0 1px var(--jn-night-line); transition: box-shadow var(--jn-dur-move); }
.signup input::placeholder { color: rgba(185, 178, 217, .55); }
.signup input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--jn-violet); }
.signup .btn { margin-top: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 6px 0 0; min-height: 1.5em; font-size: 15px; text-align: center; color: var(--jn-mist); }
.form-fine { margin: 0; text-align: center; }

/* Footer */
.foot { border-top: 1px solid var(--jn-night-line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--jn-mist-muted); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; justify-content: space-between; }
.foot img { height: 22px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo.live .link .snap { animation: fade 120ms linear both; }
  @keyframes fade { from { opacity: 0; } }
}
