/* endorphix landing. Midnight Ice (Endorphix2/constants/palette.js) dark only. */
:root {
  --canvas: #0B0C10;
  --surface: #14161C;
  --raised: #1D2028;
  --line: #262A33;
  --strong: #3A3F4B;
  --fg: #ECEEF2;
  --fg-muted: #A6ABB6;
  --fg-faint: #8D929D;
  --accent: #C7D0DB;
  --on-accent: #0B0C10;
  --highlight: #8EA3BA;
  --ink: #BCC8D6;
  --orange: #E08A4B;
  --card-a: #20232B;
  --card-b: #14161C;
  --card-edge: rgba(236, 238, 242, 0.07);
  --card-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.75), 0 2px 0 rgba(255, 255, 255, 0.03) inset;
  --glow: rgba(135, 162, 196, 0.15);
  --contour: rgba(199, 208, 219, 0.06);
  --bubble: #ECEEF2;
  --on-bubble: #0B0C10;
  --nav: rgba(11, 12, 16, 0.78);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--fg); position: relative;
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--highlight); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.wordmark {
  display: inline-block; aspect-ratio: 6480 / 1416; background: currentColor;
  -webkit-mask: url(assets/wordmark.svg) center / contain no-repeat;
          mask: url(assets/wordmark.svg) center / contain no-repeat;
}
.eyebrow {
  margin: 0; font: 800 12px/1.2 "Archivo", sans-serif; font-stretch: 125%;
  letter-spacing: 2.1px; text-transform: uppercase; color: var(--ink);
}
h1, h2, h3 { font-family: "Urbanist", system-ui, sans-serif; font-weight: 800; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h2, .h2 { font-size: clamp(32px, 4.8vw, 50px); line-height: 1.05; }
h3 { font-size: 21px; font-weight: 700; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.muted { color: var(--fg-muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 800 12.5px/1 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: 0.8px; text-transform: uppercase;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), background-color .2s, border-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(180deg, #F4F6F9 0%, #C7D0DB 100%); color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 -1px 0 rgba(11, 12, 16, .18) inset, 0 10px 30px -10px rgba(142, 163, 186, .55);
}
.btn-ghost { background: transparent; border: 1px solid var(--strong); color: var(--fg); }
.btn[disabled] { cursor: default; opacity: .75; }
@media (hover: hover) {
  .btn-primary:hover { opacity: .88; }
  .btn-ghost:hover { border-color: var(--fg-faint); }
}

/* ---------- nav ---------- */
/* A website header: full width, a solid dark band ruled off from the page by a hairline, tall enough to carry
   the wordmark with presence. Plain text links with generous spacing; the current page is marked by a short bar
   that sits on the header's bottom rule. Phones get the usual menu button and a drop-down list. */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 12, 16, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); transition: background-color .3s, box-shadow .3s;
}
.nav.scrolled { background: rgba(11, 12, 16, 0.97); box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.9); }
.nav .wrap { display: flex; align-items: center; height: 76px; gap: 40px; }
.nav .wordmark { width: 136px; }
.brand { display: flex; flex: none; }
.nav-links { display: flex; align-items: stretch; align-self: stretch; gap: 34px; margin-left: auto; }
.nav-links a {
  position: relative; display: flex; align-items: center; text-decoration: none; white-space: nowrap;
  color: var(--fg-muted); font-size: 15px; font-weight: 600; letter-spacing: .01em; transition: color .2s;
}
.nav-links a::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--fg); transform: scaleX(0); transition: transform .25s ease; }
.nav-links a[aria-current="page"] { color: var(--fg); }
.nav-links a[aria-current="page"]::before { transform: scaleX(1); }
@media (hover: hover) { .nav-links a:not([aria-current]):hover { color: var(--fg); } .nav-links a:not([aria-current]):hover::before { transform: scaleX(.4); background: var(--fg-faint); } }
.nav-cta { flex: none; }
.nav-cta[aria-current="page"] { pointer-events: none; opacity: .6; }
.nav-toggle { display: none; }

/* Phones: wordmark, beta button and a menu button; the links drop down as a full-width list under the header. */
@media (max-width: 859px) {
  .nav .wrap { height: 64px; gap: 12px; }
  .nav .wordmark { width: 118px; }
  .nav-cta { margin-left: auto; }
  .nav-toggle {
    display: grid; place-content: center; gap: 5px; flex: none; width: 42px; height: 42px; padding: 0; cursor: pointer;
    border-radius: 12px; border: 1px solid var(--line); background: transparent; -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--fg); transition: transform .25s ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 20px;
    background: var(--canvas); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.9);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav.open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .nav-links a { padding: 16px 4px; font: 700 22px/1.2 "Urbanist", sans-serif; color: var(--fg-muted); border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::before { left: -16px; right: auto; top: 18px; bottom: 18px; width: 3px; height: auto; border-radius: 0 2px 2px 0; transform: scaleY(0); }
  .nav-links a[aria-current="page"]::before { transform: scaleY(1); }
}
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 12px; }
/* Narrow phones (under 375px): tighten the header so the menu button stays on screen. After the rules above, so it wins. */
@media (max-width: 374px) { .nav .wrap { gap: 8px; } .nav .wordmark { width: 92px; } .nav .btn { padding: 0 10px; font-size: 11px; } }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg-muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- section hairlines ---------- */
.ledge { height: 1px; background: var(--line); transform-origin: left; }
.js .ledge[data-reveal] { transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.js .ledge[data-reveal].in { transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 0; overflow: hidden; }
.contours { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--contour); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) { .hero { padding-top: 40px; } .hero-grid { max-width: 920px; } }
/* Keep the first thing on every page close under the menu bar: ~20px on phones, ~40px on wide screens. */
.hero h1:first-child { margin-top: 0; }
/* (inner pages: the wrap's own top spacing adds another 16px on top of this padding) */
main > section.block:first-child > .wrap[style*="padding-top:56px"] { padding-top: 24px !important; }
@media (max-width: 719px) {
  .hero { padding-top: 20px; }
  main > section.block:first-child > .wrap[style*="padding-top:56px"] { padding-top: 8px !important; }
  #join[style*="padding-top:40px"] { padding-top: 16px !important; }
}
.hero h1 { font-size: clamp(50px, 9.2vw, 104px); line-height: 0.98; margin-top: 18px; }
.hero-title { color: var(--fg-muted); }
.hero h1 .soft { color: var(--fg-muted); }
/* Kri-Kri hanging from the d of "Spend". Sized in em so he scales with the type at every width.
   --grip-x/--grip-y: where his gripping (raised right) hoof's top is in the image (kk-hang.webp, 1356×1456), as
   fractions. It is pinned just above the bottom edge of the d's bowl, measured in Urbanist 800: baseline 0.833em
   below the line box top, bowl centre ~0.26em from the d's left edge. He hangs below the line, free arm down, eyes open,
   and swings left to right around that hoof.
   The h1 is a stacking context so the back copy (z-index -1) sits behind the letters but stays above the page. */
.nowrap { white-space: nowrap; }
.hang-title { position: relative; z-index: 0; padding-bottom: 1.05em; }
.hang-d { position: relative; display: inline-block; --kw: 1.42em; --grip-x: 0.836; --grip-y: 0.31; --pin-x: 0.26em; --pin-y: 0.79em; }
.hang { position: absolute; width: var(--kw); z-index: -1;
  left: calc(var(--pin-x) - var(--kw) * var(--grip-x));
  top: calc(var(--pin-y) - var(--kw) * 1456 / 1356 * var(--grip-y)); height: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 0.06em 0.1em rgba(0, 0, 0, 0.55));
  transform-origin: 83.6% 31%; transform: rotate(var(--swing, -9deg)); }
/* The front copy shows only the gripping hoof, over the letter; it swings with him. */
.hang-grip { z-index: 1; filter: none; clip-path: circle(6.5% at 83.6% 33%); }
/* --swing is set by app.js from the phone's left-right tilt, kept within 22° either side of his resting -9°
   (his weight hangs a little left of the hoof). No tilt, no swing. */
.hero .lede { margin-top: 22px; font-size: clamp(17px, 2.1vw, 20px); max-width: 32em; color: var(--fg-muted); }
.hero .lede b { color: var(--fg); font-weight: 600; }
/* Hero hierarchy. Sizes: headline / 18–20px sentence / 13px facts. Tones: fg (headline), muted (sentence), faint (facts).
   Spacing steps 20 → 36 → 56 so each level sits clearly apart from the next. */
.hero .hero-sub { margin-top: 20px; max-width: 26em; font-size: clamp(18px, 2vw, 20px); line-height: 1.5; color: var(--fg-muted); }
.hero .hero-ctas { align-items: center; gap: 12px 28px; margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 0; margin: 56px 0 48px; padding: 0; list-style: none; font-size: 13px; font-weight: 600; color: var(--fg-faint); }
.hero-facts li { display: inline-flex; align-items: center; }
.hero-facts li + li::before { content: ""; width: 1px; height: 12px; margin: 0 14px; background: var(--strong); }
.hero-facts .live { color: var(--fg-muted); }
@media (min-width: 900px) { .hero-facts { margin-bottom: 96px; } }
/* On phones the facts wrap, so drop the dividers (a wrapped line would start with one) and space them instead. */
@media (max-width: 599px) { .hero-facts { gap: 10px 20px; } .hero-facts li + li::before { display: none; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin: 18px 0 40px; font-size: 14px; color: var(--fg-faint); }
@media (min-width: 900px) { .hero-note { margin-bottom: 96px; } }

/* ---------- hero stage ---------- */
/* The hero fills the first screen: headline, sentence, action, and the facts ribbon on the floor.
   Behind it a padel court laid back in perspective, lit from the net, fading into the dark. */
.hero { min-height: calc(100svh - 72px); display: flex; flex-direction: column; isolation: isolate; }
.hero > .hero-grid { flex: 1; align-content: start; padding-top: 12px; padding-bottom: 40px; }
@media (min-width: 900px) { .hero > .hero-grid { align-content: center; } }
.court { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; width: 100%; height: 44%; pointer-events: none;
  -webkit-mask: linear-gradient(to top, #000 55%, transparent 100%); mask: linear-gradient(to top, #000 55%, transparent 100%); }
.court path { fill: none; stroke: none; vector-effect: non-scaling-stroke; }
.court .line { stroke: url(#court-line); stroke-width: 1; }
.court .floor { fill: url(#court-floor); }
.court .glass { fill: url(#glass); }
.court .cage { stroke: rgba(199, 208, 219, .14); stroke-width: 1; }
.court .beam { fill: url(#beam); }
.court .net { stroke: rgba(236, 238, 242, .85); stroke-width: 1.5; }
.court .net-body { fill: url(#net-fill); stroke: none; }
.court .net-light { fill: rgba(142, 163, 186, .45); stroke: none; }
.hero-glow { position: absolute; z-index: -1; inset: -20% -30% auto auto; width: 110vw; max-width: 1100px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(142, 163, 186, .16), rgba(142, 163, 186, .05) 55%, transparent); pointer-events: none; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 70%, var(--canvas)); }


.btn-hero { min-height: 56px; padding: 0 28px; font-size: 13px; }
.btn-arrow { display: inline-block; font-family: system-ui, sans-serif; font-size: 16px; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .btn-hero:hover .btn-arrow { transform: translateX(4px); } }

/* The facts ribbon: a courtside board along the hero's floor. */
.ribbon { position: relative; border-block: 1px solid var(--line); background: rgba(11, 12, 16, .55); overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon-track { display: flex; align-items: center; width: max-content; padding: 18px 0; animation: ribbon 60s linear infinite;
  font: 800 13px/1 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: 2.4px; text-transform: uppercase; color: var(--fg-faint); }
.ribbon-track span { padding: 0 26px; white-space: nowrap; }
.ribbon-track i { width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid var(--strong); flex: none; }
@keyframes ribbon { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon-track { animation: none; } }
@media (min-width: 900px) {
  .court { left: auto; right: 2%; width: min(40%, 560px); height: auto; aspect-ratio: 1; }
}

.home { position: relative; justify-self: center; width: min(58vw, 380px); cursor: pointer; -webkit-tap-highlight-color: transparent; border: 0; background: none; padding: 0; }
.home::before { content: ""; position: absolute; inset: 0 -14% 4%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); }
.home .kk { position: relative; transform-origin: 50% 92%; }
.hero-floor { position: relative; }
/* His feet are at 91.6% of the image: pull him down so he stands on the hero's floor line. */
.home { margin-bottom: calc(min(58vw, 380px) * -0.0884); z-index: 1; }

/* ---------- Kri-Kri ---------- */
.kk { position: relative; aspect-ratio: 855 / 900; }
.kk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; opacity: 0; }
.kk img.on { opacity: 1; }
.kk .lean { position: absolute; inset: 0; transform-origin: 50% 92%; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.kk .breathe { position: absolute; inset: 0; transform-origin: 50% 92%; animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 0.985); } }
.kk.hop .breathe { animation: squash .5s cubic-bezier(.2,.8,.2,1); }
@keyframes squash { 0% { transform: scale(1.06, .9); } 45% { transform: scale(.96, 1.06); } 100% { transform: scale(1, 1); } }

.say {
  position: absolute; left: 50%; bottom: 100%; margin-bottom: 6px; transform: translate(-50%, 6px) scale(.92);
  background: var(--bubble); color: var(--on-bubble); font: 600 14px/1.3 system-ui, sans-serif;
  padding: 8px 12px; border-radius: 14px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .3s cubic-bezier(.2,.8,.2,1); z-index: 2;
}
.say::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--bubble); }
.say.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.home .say { font-size: 15px; bottom: 96%; }

/* ---------- home ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.pillars { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 22px; }
.pillars li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.pillars h3 { font-size: 19px; }
.pillars p { margin-top: 4px; color: var(--fg-muted); font-size: 16px; line-height: 1.5; }
.pi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line); color: var(--ink); }
.pi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.more-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--fg); font-weight: 600; text-decoration: none; }
.more-link span { color: var(--ink); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .more-link:hover span { transform: translateX(4px); } }
#glance .more-link { margin-top: 20px; }
.section-head .more-link { margin-top: 14px; }

/* Two sample widgets, overlapped like cards on a table, at every width. */
.showcase { position: relative; display: block; padding: 0 0 30px; }
.showcase .stage { min-height: 0; padding: 20px; border-radius: 26px; }
.show-a { width: 92%; transform: rotate(-2deg); }
.showcase .show-a { padding-bottom: 40px; }
.show-b { width: 90%; margin: -22px 0 0 auto; transform: rotate(2.5deg); position: relative; z-index: 1;
  background: linear-gradient(165deg, #252933, #171A21 70%); }
.show-note { position: absolute; left: 0; bottom: 0; }
@media (min-width: 560px) { .show-a { width: 84%; } .show-b { width: 66%; margin-top: -38px; } .showcase .stage { padding: 24px; } }
.show-label { color: var(--fg-faint); margin-bottom: 12px; }

.w-head { display: flex; align-items: center; gap: 10px; }
.w-head .eyebrow { color: var(--fg-muted); font-size: 11px; letter-spacing: 1.6px; white-space: nowrap; }
.w-head .lvl { margin-left: auto; font-size: 9.5px; padding: 6px 8px; border-radius: 999px; text-transform: uppercase; }
.w-sport { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--raised); border: 1px solid var(--line); }
.w-sport svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.w-time { margin-top: 18px; white-space: nowrap; font: 800 clamp(36px, 11vw, 46px)/1 "Archivo", sans-serif; font-stretch: 112%; letter-spacing: -1px; color: var(--fg); font-variant-numeric: tabular-nums; }
.w-time b { color: var(--fg-faint); font-weight: 800; }
.w-meta { margin-top: 8px; font-size: 14px; color: var(--fg-faint); }
.w-fill { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 16px; }
.w-fill i { height: 6px; border-radius: 3px; background: var(--line); }
.w-fill i.on { background: linear-gradient(90deg, #C7D0DB, #8EA3BA); box-shadow: 0 0 10px rgba(142, 163, 186, .35); }
.w-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.w-foot .seat { width: 32px; height: 32px; margin-right: -5px; font-size: 10.5px; border: 2px solid #1E2129; }
.w-left { font-size: 14px; color: var(--fg-muted); }
.w-left b { color: var(--fg); }

.w-log { display: flex; align-items: center; gap: 16px; }
.w-log b { font: 700 19px/1.2 "Urbanist", sans-serif; display: block; }
.w-log small { display: block; margin-top: 4px; color: var(--fg-muted); font-size: 14px; line-height: 1.45; }
.dial { position: relative; flex: none; width: 76px; height: 76px; display: grid; place-items: center; }
.dial svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.dial circle { fill: none; stroke-width: 5; }
.dial-track { stroke: var(--line); }
.dial-arc { stroke: url(#dial-g); stroke-linecap: round; stroke-dasharray: 154.4 169.6; filter: drop-shadow(0 0 4px rgba(142, 163, 186, .5)); }
.dial .num { font: 800 26px/1 "Archivo", sans-serif; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }

/* The beta, in short: three steps, the last one outside the app. */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(3, 1fr); gap: 0; } }
.flow li {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 26px; min-height: 140px;
  background: linear-gradient(165deg, var(--card-a), var(--card-b) 70%); border: 1px solid var(--card-edge);
}
.flow li:first-child { border-radius: 24px 24px 0 0; }
.flow li:last-child { border-radius: 0 0 24px 24px; }
@media (min-width: 760px) {
  .flow li:first-child { border-radius: 24px 0 0 24px; }
  .flow li:last-child { border-radius: 0 24px 24px 0; }
  .flow li + li { border-left: 0; }
}
@media (max-width: 759px) { .flow { gap: 0; } .flow li + li { border-top: 0; } .flow li { min-height: 0; padding: 20px 22px; } }
.flow .who { font: 800 11px/1.2 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink); }
.flow b { font: 700 22px/1.2 "Urbanist", sans-serif; }
.flow .n { position: absolute; right: 22px; top: 18px; font: 800 40px/1 "Archivo", sans-serif; color: var(--line); }
.flow li.you { background: transparent; border-style: dashed; border-color: var(--strong); }
.flow li.you .who { color: var(--orange); }
#glance .more-link { margin-top: 20px; }

/* ---------- sections ---------- */
/* Each section opens with a hairline. */
section.block { position: relative; padding: 0 0 96px; }
@media (max-width: 719px) { section.block { padding-bottom: 80px; } section.block > .wrap[style*="padding-top:96px"] { padding-top: 72px !important; } }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--fg-muted); font-size: 18px; }
/* A still Kri-Kri beside a page's opening heading: text on the left, him standing at the right, bottoms aligned. */
.with-kk { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(16px, 4vw, 40px); max-width: 820px; }
.with-kk > * { grid-column: 1; }
.with-kk > .kk-static { grid-column: 2; grid-row: 1 / span 3; align-self: end; width: clamp(96px, 17vw, 190px); height: auto; }
/* Kri-Kri standing on a section's dividing line, near its right end. His feet are at 91.6% of the image. */
.perch { position: relative; }
/* On wide screens the fanned cards reach the right end, so leave him room under them. */
@media (min-width: 761px) { #how .fan { margin-bottom: 150px; } }
@media (max-width: 760px) { #how .fan { margin-bottom: 56px; } }
.kk-perch { --kw: clamp(84px, 11vw, 140px); position: absolute; right: max(16px, 6%); bottom: calc(var(--kw) * 1.0526 * -0.084); width: var(--kw); height: auto; pointer-events: none; }
/* In the join panel the copy column is narrow, so he stands under the text instead. */

.js [data-reveal]:not(.ledge) { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in:not(.ledge) { opacity: 1; transform: none; }

/* ---------- step cards, fanned ---------- */
.fan {
  --w: clamp(200px, 23vw, 262px); --lap: -30px; --tilt: 6deg; --drop: 12px;
  --spring: linear(0, .25 6%, .62 13%, .95 22%, 1.1 31%, 1.12 37%, 1.06 47%, .99 58%, .98 68%, 1);
  display: flex; justify-content: center; align-items: flex-start; list-style: none; margin: 0; padding: 24px 0 12px;
}
.fan > li {
  --lift: 0; --push: 0px; --twist: 0deg;
  position: relative; flex: 0 0 var(--w); min-height: 214px; margin: 0 calc(var(--lap) / 2); z-index: calc(10 - var(--a));
  transform-origin: 50% 130%;
  transform: translateX(var(--push)) translateY(calc(var(--a) * var(--drop) - var(--lift) * 16px)) rotate(calc(var(--o) * var(--tilt) * (1 - var(--lift)) + var(--twist))) scale(calc(1 - var(--a) * .05 * (1 - var(--lift)) + var(--lift) * .06));
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .4s;
  border-radius: 26px; padding: 20px 22px 24px; display: flex; flex-direction: column;
  background: linear-gradient(165deg, var(--card-a), var(--card-b) 70%); border: 1px solid var(--card-edge); box-shadow: var(--card-shadow);
}
.fan > li:hover, .fan > li:focus-within { --lift: 1; z-index: 20; }
.fan > li:has(~ li:hover) { --push: -24px; --twist: -2.5deg; }
.fan > li:hover ~ li { --push: 24px; --twist: 2.5deg; }
.js .fan.gathered > li { opacity: 0; transform: translateX(calc(var(--o) * -1 * (var(--w) + var(--lap)))) translateY(40px) scale(.75); }
.fan.springing > li { transition: transform 1.1s var(--spring) calc(var(--i) * 80ms), opacity .35s ease calc(var(--i) * 80ms); }
.fan .top { display: flex; justify-content: space-between; align-items: center; color: var(--ink); font-weight: 600; font-size: 15px; }
.fan .top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fan h3 { margin-top: 20px; font-size: 21px; }
.fan p { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--fg-muted); }
@media (max-width: 760px) {
  .fan { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 12px 16px 24px; scrollbar-width: none; }
  .fan::-webkit-scrollbar { display: none; }
  .fan > li { flex: 0 0 78%; margin: 0 10px 0 0; transform: none !important; scroll-snap-align: center; }
  .js .fan.gathered > li { opacity: 1; }
}

/* ---------- the app, tried in place ---------- */
.try { display: grid; gap: 32px; align-items: start; }
.try > * { min-width: 0; }
@media (min-width: 960px) { .try { grid-template-columns: 5fr 7fr; gap: 56px; } }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; text-align: left; cursor: pointer; border: 1px solid var(--line); background: transparent;
  border-radius: 999px; padding: 10px 16px; color: var(--fg-muted); font-size: 15px; font-weight: 600; transition: background-color .2s, color .2s, border-color .2s;
}
.tab .sub { display: none; }
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (min-width: 960px) {
  .tabs { flex-direction: column; margin: 0; padding: 0; gap: 4px; overflow: visible; }
  .tab { border-radius: 18px; border-color: transparent; padding: 16px 18px; font-size: 18px; color: var(--fg); position: relative; }
  .tab .sub { display: block; margin-top: 4px; font-size: 15px; font-weight: 400; color: var(--fg-muted); }
  .tab[aria-selected="true"] { background: var(--surface); color: var(--fg); border-color: var(--line); }
  .tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--highlight); }
  @media (hover: hover) { .tab:not([aria-selected="true"]):hover { background: color-mix(in srgb, var(--surface) 55%, transparent); } }
}

.stage {
  position: relative; border-radius: 30px; padding: 22px;
  background: linear-gradient(165deg, var(--card-a), var(--card-b) 70%); border: 1px solid var(--card-edge); box-shadow: var(--card-shadow);
}
@media (min-width: 720px) { .stage { padding: 30px; } }
@media (min-width: 960px) { .stage { min-height: 470px; } }
.panel { display: flex; flex-direction: column; gap: 14px; }
.panel[hidden] { display: none; }
.js .panel:not([hidden]) { animation: panel-in .45s cubic-bezier(.2,.7,.2,1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.panel-head .eyebrow { color: var(--fg-faint); }
.sample { font-size: 12px; color: var(--fg-faint); margin-top: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; font-size: 14px; padding: 7px 14px; border-radius: 999px; background: var(--raised); color: var(--fg-muted); border: 1px solid var(--line); transition: background-color .2s, color .2s; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }

.venues { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.venue { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--raised); }
.js .venues.swap .venue { animation: panel-in .4s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i) * 60ms); }
.thumb { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(140deg, #4F6A8C, #87A2C4); position: relative; overflow: hidden; }
.thumb::after { content: ""; position: absolute; inset: 9px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 3px; }
.thumb::before { content: ""; position: absolute; left: 50%; top: 9px; bottom: 9px; width: 1.5px; background: rgba(255,255,255,.55); }
.thumb.clay { background: linear-gradient(140deg, #B8632C, #E08A4B); }
.thumb.grass { background: linear-gradient(140deg, #3F6B57, #6E9C82); }
.thumb.grass::before { left: 9px; right: 9px; top: 50%; bottom: auto; width: auto; height: 1.5px; }
.venue b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.venue small { color: var(--fg-faint); font-size: 13px; }
.venue .meta { text-align: right; font-size: 13px; color: var(--fg-muted); white-space: nowrap; }
.partner { display: inline-block; margin-left: 6px; font: 800 10.5px/1 "Archivo", sans-serif; letter-spacing: .8px; padding: 3px 6px; border-radius: 6px; background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); vertical-align: 2px; }

.match { border-radius: 20px; background: var(--raised); padding: 18px; display: grid; gap: 14px; }
.match-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.match-top b { font: 700 19px/1.25 "Urbanist", sans-serif; display: block; }
.match-top small { color: var(--fg-muted); font-size: 14px; }
.lvl { flex: none; font: 800 10.5px/1 "Archivo", sans-serif; letter-spacing: .8px; padding: 7px 9px; border-radius: 9px; border: 1px solid var(--strong); color: var(--ink); }
.players { display: flex; align-items: center; gap: 12px; }
.seats { display: flex; }
.seat { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--raised); margin-right: -8px; display: grid; place-items: center; font: 700 12px/1 system-ui; color: #0B0C10; }
.seat:nth-child(1) { background: #87A2C4; } .seat:nth-child(2) { background: #C9D8EA; } .seat:nth-child(3) { background: #4F6A8C; color: #ECEEF2; }
.seat.open { background: transparent; border: 1.5px dashed var(--fg-faint); color: var(--fg-faint); }
.seat.you { background: var(--orange); color: #0B0C10; border-color: var(--raised); }
.js .seat.you { animation: pop .5s var(--spring, cubic-bezier(.2,.8,.2,1)); }
@keyframes pop { 0% { transform: scale(.4); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.players small { color: var(--fg-muted); font-size: 14px; }
.chat { display: grid; gap: 6px; }
.msg { justify-self: start; max-width: 80%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.msg.me { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.msg small { display: block; font-size: 11px; color: var(--fg-faint); }

.score { display: flex; align-items: baseline; gap: 14px; }
.score .num { font: 800 64px/1 "Archivo", sans-serif; letter-spacing: -1px; font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.score b { font: 700 20px/1.2 "Urbanist", sans-serif; display: block; }
.score small { color: var(--fg-muted); font-size: 14px; }
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 30px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--highlight) var(--p, 70%), var(--line) var(--p, 70%)); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--highlight); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--fg); border: 4px solid var(--canvas); box-shadow: 0 0 0 1px var(--strong); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--fg); border: 4px solid var(--canvas); }
.wave { width: 100%; height: 110px; color: var(--highlight); overflow: visible; }
.wave .area { fill: color-mix(in srgb, var(--highlight) 15%, transparent); }
.wave path { transition: d .5s cubic-bezier(.2,.7,.2,1); }
.wave circle { transition: cy .5s cubic-bezier(.2,.7,.2,1); }
.log-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.log-row small { color: var(--fg-faint); font-size: 13px; }
.streak { font-size: 14px; color: var(--fg-muted); }
.streak b { color: var(--fg); }

/* ---------- beta ----------
   At a glance (three big facts), what you can do (three feature cards), and a quieter strip of what isn't in it yet. */
.beta-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .beta-facts { grid-template-columns: repeat(3, 1fr); } }
.beta-facts li {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: end;
  padding: 22px 24px; border-radius: 22px; border: 1px solid var(--card-edge);
  background: radial-gradient(120% 140% at 0% 0%, #1C2029, #111318 70%); box-shadow: var(--card-shadow);
}
.fact-n { grid-row: 1 / span 2; font: 800 clamp(64px, 9vw, 88px)/0.85 "Urbanist", sans-serif; letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ECEEF2 20%, #6F7C8E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact-k { font: 800 12px/1.2 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink); }
.fact-v { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--fg); }
/* Phones: one panel with three full-width rows, ruled apart: the number on the left, what it counts and the
   details beside it. Room to breathe instead of three squeezed tiles. */
@media (max-width: 699px) {
  .beta-facts { gap: 0; border-radius: 24px; border: 1px solid var(--card-edge); overflow: hidden;
    background: radial-gradient(120% 140% at 0% 0%, #1C2029, #111318 70%); box-shadow: var(--card-shadow); }
  .beta-facts li { grid-template-columns: 64px 1fr; column-gap: 18px; align-items: center; padding: 22px 22px;
    border: 0; border-radius: 0; background: none; box-shadow: none; }
  .beta-facts li + li { border-top: 1px solid var(--line); }
  .fact-n { font-size: 60px; text-align: center; }
  .fact-k { align-self: end; }
  .fact-v { align-self: start; font-size: 16px; }
}

.beta-sub { margin: 64px 0 18px; font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.beta-features { display: grid; gap: 12px; }
@media (min-width: 760px) { .beta-features { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.feat {
  position: relative; padding: 24px 24px 26px; border-radius: 22px; border: 1px solid var(--card-edge);
  background: linear-gradient(165deg, var(--card-a), var(--card-b) 70%); box-shadow: var(--card-shadow);
}
.feat::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, var(--highlight), transparent); }
.feat-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(142, 163, 186, 0.12); border: 1px solid rgba(142, 163, 186, 0.22); }
.feat-ic svg { width: 24px; height: 24px; fill: none; stroke: #C7D0DB; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin-top: 18px; font-size: 21px; }
.feat p { margin-top: 8px; color: var(--fg-muted); font-size: 16px; line-height: 1.5; }

.beta-not { margin-top: 64px; padding: 24px; border-radius: 22px; border: 1px dashed rgba(199, 208, 219, 0.18); }
.beta-not-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.beta-not .beta-sub { margin: 0; font-size: 20px; color: var(--fg-muted); }
.beta-not ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .beta-not ul { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.beta-not li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--fg-muted); font-size: 15px; line-height: 1.5; }
.beta-not li b { color: var(--fg); font-weight: 600; }
.beta-not svg { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--fg-faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- passport ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { border-radius: 16px; background: var(--raised); padding: 14px 16px; }
.tile small { display: block; color: var(--fg-faint); font-size: 13px; }
.tile b { display: block; margin-top: 6px; font: 800 32px/1 "Archivo", sans-serif; font-variant-numeric: tabular-nums; }

/* ---------- planned: the trail ahead ----------
   A footpath that draws itself as you scroll (app.js section 4b builds the path through the waypoint markers).
   Faint dashed track underneath, bright ink on top. Each feature is a signpost planted beside the trail: a pole
   with a swallowtail pennant carrying the name, and a short line of text under it. The pennant unfurls from the
   pole when the ink reaches its waypoint. Orange flag = you are here (the beta); blue flags = planned.
   Phones: one column, trail down the left. Wide screens: signs alternate sides of a winding path.
   Without JS (or with reduced motion) everything is simply shown. */
.trail { position: relative; --mx: 22px; }
.trail-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trail-track { fill: none; stroke: rgba(199, 208, 219, 0.16); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.trail-ink { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.trail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 64px; }

/* A waypoint: marker on the trail, then the signpost. The marker sits at the foot of the pole. */
.wp { position: relative; display: grid; grid-template-columns: calc(var(--mx) * 2) minmax(0, 1fr); align-items: end; gap: 14px; }
.wp-mark {
  position: relative; z-index: 1; justify-self: center; width: 16px; height: 16px; margin-bottom: -8px; border-radius: 50%;
  background: var(--canvas); border: 2px solid rgba(199, 208, 219, 0.28); transition: border-color .4s, background-color .4s;
}
.wp.reached .wp-mark { border-color: var(--accent); background: var(--accent); }
.wp-here .wp-mark { border-color: var(--orange); background: var(--orange); }

/* The signpost: the pole is the sign's left edge; the pennant flies from its top. */
.sign { position: relative; padding: 0 0 2px 18px; max-width: 30em; }
.sign::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: linear-gradient(#C7D0DB, #8D929D); }
/* a short path from the trail to the foot of the pole */
.sign::after { content: ""; position: absolute; left: -14px; bottom: 0; width: 14px; height: 2px; background: rgba(199, 208, 219, 0.28); }
.sign-flag {
  display: inline-block; margin: 0 0 14px -18px; padding-left: 3px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
  transform-origin: 0 50%; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1);
}
.sign-flag span {
  display: block; padding: 11px 34px 11px 14px; color: #fff;
  font: 800 13px/1.2 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: 1.4px; text-transform: uppercase;
  background: linear-gradient(100deg, color-mix(in srgb, var(--tint) 80%, #fff 20%), var(--tint) 55%, color-mix(in srgb, var(--tint) 70%, #0B0C10));
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 50%, 100% 100%, 0 100%);
}
.wp-here .sign-flag span { color: #0B0C10; }
.sign .wp-step { display: block; font: 800 11px/1.2 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink); }
.wp-here .sign .wp-step { color: var(--orange); }
.sign p { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--fg-muted); }
.sign a { color: var(--fg); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Before the ink arrives the pennant is furled against the pole and the text waits, faded. */
.js .trail[data-live] .wp:not(.wp-here) .sign-flag { transform: scaleX(0.04); }
.js .trail[data-live] .wp:not(.wp-here) .sign > :not(.sign-flag) { opacity: 0; transform: translateY(10px); transition: opacity .5s ease .25s, transform .6s ease .25s; }
.js .trail[data-live] .wp.reached .sign-flag { transform: none; }
.js .trail[data-live] .wp.reached .sign > :not(.sign-flag) { opacity: 1; transform: none; }

@media (min-width: 860px) {
  .trail { --mx: 0px; }
  .trail-list { gap: 40px; }
  /* Wide: the marker on the centre line; signs alternate sides, left-hand ones mirrored (pole on the right). */
  .wp { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 0; }
  .wp-mark { grid-column: 2; grid-row: 1; }
  .sign { grid-row: 1; grid-column: 3; justify-self: start; margin-left: 14px; }
  .wp:nth-child(even) .sign { grid-column: 1; justify-self: end; margin: 0 14px 0 0; padding: 0 18px 2px 0; text-align: right; }
  .wp:nth-child(even) .sign::before { left: auto; right: 0; }
  .wp:nth-child(even) .sign::after { left: auto; right: -14px; }
  .wp:nth-child(even) .sign-flag { margin: 0 -18px 14px 0; padding: 0 3px 0 0; transform-origin: 100% 50%; }
  .wp:nth-child(even) .sign-flag span { padding: 11px 14px 11px 34px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 16px 50%); }
  .sign-flag span { font-size: 15px; padding-top: 13px; padding-bottom: 13px; }
}

/* ---------- privacy, terms, contact ---------- */
/* Long text set for reading: one narrow column, clear section heads, muted body. [ph] marks details still to fill in. */
.legal { max-width: 720px; }
.legal h1 { margin-top: 12px; }
.legal-meta { margin-top: 12px; font-size: 13px; color: var(--fg-faint); }
.legal-lede { margin-top: 24px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 17px; line-height: 1.55; }
.legal h2 { margin-top: 44px; font-size: 21px; font-weight: 700; line-height: 1.3; scroll-margin-top: 100px; }
.legal p, .legal li { color: var(--fg-muted); font-size: 16px; line-height: 1.65; }
.legal p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.legal b { color: var(--fg); font-weight: 600; }
.legal a, .contact-topics a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--strong); text-underline-offset: 3px; }
@media (hover: hover) { .legal a:hover { text-decoration-color: var(--fg); } }
.ph { color: var(--orange); }

.contact-mail {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 16px; max-width: 720px; margin-top: 8px;
  padding: 26px 28px; border-radius: 24px; text-decoration: none; color: var(--fg);
  border: 1px solid var(--card-edge); background: radial-gradient(120% 120% at 0% 0%, #1A1E27, #0F1116 70%); box-shadow: var(--card-shadow);
}
.contact-label { grid-column: 1; font: 800 11px/1.2 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink); }
.contact-addr { grid-column: 1; font: 800 clamp(24px, 5vw, 40px)/1.1 "Urbanist", sans-serif; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.contact-go { grid-column: 2; grid-row: 1 / span 2; font-size: 28px; color: var(--ink); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .contact-mail:hover .contact-go { transform: translateX(6px); } }
.contact-topics { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; max-width: 1000px; }
@media (min-width: 760px) { .contact-topics { grid-template-columns: repeat(3, 1fr); } }
.contact-topics li { padding: 22px 22px 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.contact-topics h2 { font-size: 18px; font-weight: 700; }
.contact-topics p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--fg-muted); }
.contact-topics a { display: inline-block; margin-top: 14px; font-size: 15px; font-weight: 600; }
.contact-post { margin-top: 32px; font-size: 14px; color: var(--fg-faint); }

/* ---------- close ---------- */

.cta-panel {
  position: relative; overflow: hidden; border-radius: 34px; padding: 56px 24px; text-align: center;
  background: #0B0C10; color: #ECEEF2; border: 1px solid #262A33;
}
@media (min-width: 720px) { .cta-panel { padding: 80px 48px; } }
.cta-panel .contours { color: rgba(199, 208, 219, .07); }
.cta-panel > * { position: relative; }
.cta-panel > .contours { position: absolute; }
.cta-panel .eyebrow { color: #BCC8D6; }
.cta-panel h2 { margin-top: 12px; }
.cta-panel p { color: #A6ABB6; margin: 14px auto 28px; max-width: 30em; }
.cta-panel .btn-primary { background: #C7D0DB; color: #0B0C10; }

/* Home closing panel: copy left, a tilted beta pass right. A soft light from the top left and contour lines that fade
   out give the panel depth without a glow. */
.cta-close {
  display: grid; gap: 40px; align-items: center; text-align: left;
  background: radial-gradient(120% 90% at 0% 0%, #1A1E27 0%, #0F1116 55%, #0B0C10 100%);
}
.cta-close .contours { -webkit-mask: linear-gradient(100deg, #000 10%, transparent 75%); mask: linear-gradient(100deg, #000 10%, transparent 75%); }
.cta-close h2 { font-size: clamp(34px, 5vw, 56px); max-width: 11em; }
.cta-close p { margin: 16px 0 0; max-width: 26em; font-size: 18px; }
.close-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.close-note { font-size: 13px; font-weight: 600; color: var(--fg-faint); }
@media (min-width: 860px) { .cta-close { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; padding: 72px 64px; } }

.pass {
  --notch: 14px;
  justify-self: center; width: min(100%, 340px); padding: 24px 24px 0; border-radius: 22px;
  background: linear-gradient(160deg, #262A34, #171A21 70%); border: 1px solid rgba(236, 238, 242, 0.09);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: rotate(4deg); color: var(--fg);
}
@media (max-width: 859px) { .pass { transform: rotate(-2deg); width: min(100%, 300px); } }
/* ---------- the ticket machine ----------
   A matte printer head with a slot; the ticket feeds down out of the slot in small steps, like a receipt printer,
   and a blade runs along the slot to cut it free. Only the area above the slot is clipped, so the ticket looks like
   it comes out of the machine while its shadow still shows. States (set by app.js): printing → printed → cutting → cut. */
.printer { --pw: min(100%, 320px); justify-self: center; width: var(--pw); display: grid; justify-items: center; }
.printer-head {
  position: relative; z-index: 2; width: 100%; height: 64px; border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, #2B2F39 0%, #1B1E25 62%, #121419 100%);
  border: 1px solid rgba(236, 238, 242, 0.08); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.printer-head .wordmark { position: absolute; left: 20px; top: 16px; width: 74px; color: rgba(236, 238, 242, 0.32); }
.printer-led { position: absolute; right: 20px; top: 19px; width: 7px; height: 7px; border-radius: 50%; background: #3A3F4B; }
.printer.printing .printer-led { background: var(--orange); animation: led-blink .32s steps(2, jump-none) infinite; }
.printer.printed .printer-led, .printer.cut .printer-led { background: #7FB98F; }
@keyframes led-blink { 50% { opacity: .25; } }
.printer-slot { position: absolute; left: 14px; right: 14px; bottom: 9px; height: 6px; border-radius: 3px; background: #050608; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(255, 255, 255, 0.05); overflow: hidden; }
.printer-blade { position: absolute; top: 1px; left: -18px; width: 18px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, #DDE3EA); opacity: 0; }
.printer.cutting .printer-blade { animation: blade-run .38s ease-in-out forwards; }
@keyframes blade-run { 0% { left: -18px; opacity: 1; } 100% { left: 100%; opacity: 1; } }
.printer.cutting .printer-head { animation: head-nudge .38s ease-in-out; }
@keyframes head-nudge { 40% { transform: translateY(1px); } }
.printer-feed { position: relative; z-index: 1; width: calc(100% - 36px); margin-top: -12px; clip-path: inset(12px -60px -120px -60px); }
.printer.cut .printer-feed { clip-path: none; }
.printer .ticket { width: 100%; transform: translateY(-101%); transition: transform 1.8s steps(18, end); text-align: left; }
.printer.printing .ticket, .printer.printed .ticket, .printer.cutting .ticket { transform: translateY(0); }
.printer.cut .ticket { transform: translateY(18px) rotate(-4deg); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
/* After the cut, the top edge of the next ticket peeks out of the slot. */
.printer-feed::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; border-radius: 0 0 6px 6px; background: #20232B; border-bottom: 1.5px dashed rgba(236, 238, 242, 0.16); transform: translateY(-100%); transition: transform .5s ease .5s; }
.printer.cut .printer-feed::before { transform: translateY(6px); }
@media (prefers-reduced-motion: reduce) {
  .printer .ticket, .printer.cut .ticket, .printer-feed::before { transition: none; }
  .printer.printing .printer-led, .printer.cutting .printer-blade, .printer.cutting .printer-head { animation: none; }
}
.cta-panel .pass .pass-no { margin: 26px 0 0; font: 800 44px/1 "Urbanist", sans-serif; letter-spacing: -0.02em; color: var(--fg); }
.join-form[hidden], .join-done[hidden] { display: none; }
/* Room for the Turnstile bot check (65px tall when it shows), so the button doesn't jump when it loads. */
.ts-box { min-height: 65px; }
.ts-box:empty { min-height: 0; }
/* After sign-up Kri-Kri moves from under the copy to sit on top of the machine (feet at 91.5% of the image). */
.printer { position: relative; }
.kk-sit { --kw: 96px; position: absolute; z-index: 3; right: 14%; top: calc(var(--kw) * 900 / 793 * -0.915 + 3px); width: var(--kw); height: auto; pointer-events: none; }
.join-done { display: grid; gap: 40px; justify-items: center; align-content: start; padding-top: 104px; /* room for Kri-Kri on the machine */ }
.cta-panel .join-done-msg { margin: 0; text-align: center; color: var(--fg); font-size: 16px; max-width: 24em; min-height: 3em; }
.join-done-msg small { display: block; margin-top: 6px; color: var(--fg-faint); font-size: 13px; }
.pass-top { display: flex; align-items: center; justify-content: space-between; }
.pass .wordmark { width: 104px; color: var(--fg); }
.pass-tag { font: 800 10px/1 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: 1.6px; text-transform: uppercase; color: #0B0C10; background: var(--orange); padding: 6px 9px; border-radius: 999px; }
.pass-rows { margin: 20px 0 0; display: grid; gap: 12px; }
.pass-rows div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.pass-rows dt { color: var(--fg-faint); }
.pass-rows dd { margin: 0; color: var(--fg); font-weight: 600; text-align: right; }
/* Tear-off stub: a dashed perforation with round notches cut from both edges. */
.pass-stub {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 22px -24px 0; padding: 18px 24px 20px; border-top: 1.5px dashed rgba(236, 238, 242, 0.16);
  font-size: 13px; color: var(--fg-faint);
}
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; top: calc(var(--notch) / -2 - 1px); width: var(--notch); height: var(--notch); border-radius: 50%; background: #0D0F14; }
.pass-stub::before { left: calc(var(--notch) / -2); }
.pass-stub::after { right: calc(var(--notch) / -2); }
/* A bar code drawn with stripes. */
.pass-code { width: 92px; height: 26px; opacity: .55; background: repeating-linear-gradient(90deg, var(--fg) 0 2px, transparent 2px 4px, var(--fg) 4px 5px, transparent 5px 8px, var(--fg) 8px 11px, transparent 11px 12px); }

/* The beta list form, in the dark panel. */
.join { display: grid; gap: 32px; text-align: left; padding: 40px 20px; }
@media (min-width: 720px) { .join { padding: 64px 48px; } }
@media (min-width: 960px) { .join { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }
.join .join-copy p { margin: 14px 0 0; }
/* Same look as the home page's closing panel: soft light from the top left, contour lines fading out, bigger headline. */
.cta-panel.join { background: radial-gradient(120% 90% at 0% 0%, #1A1E27 0%, #0F1116 55%, #0B0C10 100%); }
.cta-panel.join .contours { -webkit-mask: linear-gradient(100deg, #000 10%, transparent 75%); mask: linear-gradient(100deg, #000 10%, transparent 75%); }
.join .join-copy .h2 { font-size: clamp(34px, 5vw, 56px); max-width: 11em; }
.join .join-copy > p:not(.eyebrow):not(.close-note) { font-size: 18px; max-width: 26em; }
.join .join-copy .close-note { margin-top: 20px; color: var(--fg-faint); font-size: 13px; }
.join-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: #ECEEF2; }
.field input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; font: inherit; font-size: 16px;
  background: #14161C; color: #ECEEF2; border: 1px solid #3A3F4B; transition: border-color .2s;
}
.field input:focus { outline: none; border-color: #8EA3BA; box-shadow: 0 0 0 3px rgba(142, 163, 186, .25); }
.field input[aria-invalid="true"] { border-color: #E08A4B; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; color: #A6ABB6; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #C7D0DB; }
.err { color: #F0A877; font-size: 13px; min-height: 0; }
.err:empty { display: none; }
.join-form .btn { justify-self: start; margin-top: 4px; }
.join-form .form-status { margin: 0; }
.form-status { font-size: 14px; color: #A6ABB6; min-height: 1.4em; }
.form-status.ok { color: #C7D0DB; }
.form-status.bad { color: #F0A877; }

footer { padding: 0 0 calc(40px + env(safe-area-inset-bottom)); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
footer .wordmark { width: 108px; }
footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 14px; }
footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg-muted); text-decoration: none; }
@media (hover: hover) { footer nav a:hover { color: var(--fg); } }
footer small { color: var(--fg-faint); font-size: 13px; width: 100%; }

/* ---------- touch ---------- */
/* On touch screens every control gets at least a 44px tap area. The visible pill stays its size;
   an invisible ::after extends what a finger can hit. */
@media (pointer: coarse), (max-width: 859px) {
  .nav-links a, .nav .btn, .chip, .brand { position: relative; }
  .nav-links a::after, .chip::after { content: ""; position: absolute; inset: -4px 0; }
  .nav .btn::after { content: ""; position: absolute; inset: -2px 0; }
  .brand::after { content: ""; position: absolute; inset: -9px -4px; }
}

/* ---------- moving between pages ---------- */
/* Browsers that support it cross-fade one page into the next; the header stays put. Others just load the page. */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-old(root) { animation: page-out .16s ease both; }
::view-transition-new(root) { animation: page-in .34s cubic-bezier(.2,.7,.2,1) both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

/* Reduced motion: everything is simply there and nothing moves on its own. */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .fan.gathered > li { opacity: 1 !important; transform: none !important; transition: none !important; }
  .kk .breathe, .js .panel:not([hidden]), .js .venues.swap .venue, .js .seat.you { animation: none !important; }
  .fan > li { transition: none; }
  .js .trail .sign-flag, .js .trail .sign > *, .wp-mark { transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .more-link span { transition: none; }
}
