/* Elusive — landing page. The interactive client recreation has its own stylesheet (menu.css). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-Regular.woff') format('woff');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter-Medium.woff') format('woff');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-SemiBold.woff') format('woff');
}
/* Cormorant Garamond italic (SIL OFL): the editorial accent inside headings. */
@font-face {
  font-family: 'Cormorant';
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url('../fonts/CormorantGaramond-Italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant';
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url('../fonts/CormorantGaramond-Italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-raised: #0b0b0e;
  --line: rgb(255 255 255 / 0.075);
  --line-strong: rgb(255 255 255 / 0.13);
  --text: #eceef2;
  --muted: #8d9099;
  --faint: #5c5f68;
  --accent: #9dbcf8;
  --accent-deep: #7ea6f4;
  --ok: #66cc9f;
  --radius: 24px;
  --max: 1240px;
  --gutter: 24px;
  --section: 160px;
  --serif: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
/* the script glides the page itself; a smooth CSS scroll on top would fight every frame */
html.has-smooth { scroll-behavior: auto; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
}
.skip:focus { top: 16px; }

kbd {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 -1px 0 rgb(255 255 255 / 0.04);
  font: 500 12px/1 'Inter', system-ui, sans-serif;
  color: var(--text);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- navigation */

.nav {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 6px 0 16px;
  border-radius: 999px;
  background: rgb(10 12 18 / 0.5);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / 0.06), 0 10px 40px rgb(0 0 0 / 0.3);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled .nav-pill { background: rgb(12 13 17 / 0.8); }
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-brand .blade { width: 18px; height: 18px; color: var(--accent); }
.nav-links { position: relative; display: flex; align-items: center; }
.nav-links a {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.is-current { color: var(--text); }
.nav-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  height: 32px;
  width: 0;
  margin-top: -16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
  opacity: 0;
  pointer-events: none;
  transition: translate 0.55s cubic-bezier(0.3, 1.25, 0.5, 1), width 0.55s cubic-bezier(0.3, 1.25, 0.5, 1), opacity 0.3s;
}
.nav-cta {
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--text);
  color: #08080a;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.nav-cta:hover { background: #fff; transform: translateY(-1px); }

/* ---------------------------------------------------------------- type */

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--accent);
}
h1, h2 {
  font-weight: 600;
  text-wrap: balance;
}
h1 {
  font-size: clamp(52px, 8.4vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}
h2 {
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
/* The second phrase of a heading steps back in a quieter colour. */
h1 em, h2 em {
  font-style: normal;
  color: var(--faint);
}
/* The serif italic is kept for the two headings that open and close the page; it is set a touch larger
   because its x-height is small. */
h1 em.serif, h2 em.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.1em;
  line-height: 0;
  letter-spacing: -0.02em;
  padding-right: 0.04em;
  color: color-mix(in srgb, var(--accent) 55%, var(--text));
}
h1 .w, h2 .w { color: inherit; }
.section-lead {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.25s, box-shadow 0.3s var(--ease), color 0.25s;
}
.btn:active { transform: translateY(0) scale(0.98); }
/* the main button is a lit surface: a highlight along the top, a hairline of shadow under it */
.btn-primary {
  background: linear-gradient(to bottom, #ffffff, #e3e6ee);
  color: #08080a;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.35), 0 12px 32px -14px rgb(0 0 0 / 0.7);
}
.btn-primary:hover {
  /* still a gradient, so the resting one can fade into it: a flat colour would drop the gradient at once and flash dark */
  background: linear-gradient(to bottom, #ffffff, #ffffff);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgb(0 0 0 / 0.3), 0 16px 44px -10px color-mix(in srgb, var(--accent) 45%, transparent);
}
.btn-arrow { flex: none; width: 16px; height: 16px; margin-right: -4px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0.65; transition: translate 0.35s var(--ease), opacity 0.2s; }
.btn:hover .btn-arrow { translate: 0 2px; opacity: 1; }
.btn:hover .btn-arrow.is-up { translate: 0 -2px; }
.btn-ghost {
  background: rgb(255 255 255 / 0.05);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgb(255 255 255 / 0.09); transform: translateY(-2px); }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Headings reveal word by word, sharpening out of a soft blur. */
[data-words] .w {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  translate: 0 0.3em;
  transition: opacity 0.8s var(--ease), filter 0.8s var(--ease), translate 0.9s var(--ease);
  transition-delay: calc(var(--delay, 0s) + var(--i) * 60ms);
}
[data-words].is-in .w, .is-in [data-words] .w { opacity: 1; filter: blur(0); translate: 0 0; }
.no-js [data-words] .w { opacity: 1; filter: none; translate: none; }


/* ---------------------------------------------------------------- hero */

/* The world behind the menu. It reaches past the menu and dissolves into the page. */
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-mask: linear-gradient(to bottom, #000 56%, rgb(0 0 0 / 0.7) 72%, rgb(0 0 0 / 0.3) 86%, transparent);
  mask: linear-gradient(to bottom, #000 56%, rgb(0 0 0 / 0.7) 72%, rgb(0 0 0 / 0.3) 86%, transparent);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  margin-bottom: 34px;
  padding: 0 12px 0 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.25s;
}
.hero-badge:hover { background: rgb(255 255 255 / 0.09); }
.hero-badge svg { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate 0.3s var(--ease); }
.hero-badge:hover svg { translate: 2px 0; }
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgb(102 204 159 / 0.16), 0 0 12px rgb(102 204 159 / 0.7);
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 38px; }

/* ---------------------------------------------------------------- stage (the menu) */

.stage-shell {
  position: relative;
  width: min(100% - var(--gutter) * 2, 1240px);
  margin: 72px auto 0;
  perspective: 2400px;
}
.stage-frame {
  position: relative;
  transform-origin: 50% 0%;
  will-change: transform;
}
.stage-frame.is-tilted .stage-host { pointer-events: none; }
.stage-host { position: relative; min-height: 300px; }
.stage-host .sm-stage:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 20px; }
.stage-noscript { padding: 40px; color: var(--muted); text-align: center; }
.stage-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(10 11 14 / 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
  cursor: pointer;
}
.stage-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.stage-frame.is-full {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  transform: none !important;
}
.stage-frame.is-full .stage-host, .stage-frame.is-full .stage-host .sm-stage { width: 100%; height: 100%; }
.stage-frame.is-full .stage-host { pointer-events: auto; }
.stage-frame.is-full .stage-close { display: grid; }
/* perspective on the shell would turn the fixed full-screen frame into a child of the shell */
.stage-shell.is-full { perspective: none; z-index: 200; }
.stage-rotate {
  position: absolute;
  left: 50%;
  bottom: 18px;
  translate: -50% 0;
  z-index: 5;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgb(10 11 14 / 0.8);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  pointer-events: none;
}
body.is-locked { overflow: hidden; }

/* ---------------------------------------------------------------- chips and toast */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px 0 11px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.chip:hover { color: var(--text); background: rgb(255 255 255 / 0.07); }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip .mute { display: none; }
.chip[aria-pressed='false'] .wave { display: none; }
.chip[aria-pressed='false'] .mute { display: block; }
.chip[aria-pressed='true'] { color: var(--text); }


.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  translate: -50% 0;
  max-width: calc(100% - 32px);
  padding: 11px 16px;
  border-radius: 12px;
  background: rgb(16 17 22 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 16px 40px rgb(0 0 0 / 0.45);
  font-size: 14px;
  color: var(--text);
  animation: toast-in 0.4s var(--ease);
}
.toast.is-leaving { opacity: 0; translate: -50% 8px; transition: opacity 0.3s, translate 0.3s; }
@keyframes toast-in { from { opacity: 0; translate: -50% 10px; } }

/* ---------------------------------------------------------------- modules marquee */

.marquee {
  display: grid;
  gap: 12px;
  position: relative;
  margin-top: 64px;
  /* room above and below, so a lifted module is never cut by the edge */
  padding-block: 14px;
  overflow: hidden;
  -webkit-mask: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.marquee-row { display: flex; width: max-content; }
.marquee-track {
  display: flex;
  gap: 12px;
  padding-right: 12px;
  animation: marquee var(--dur, 80s) linear infinite;
  animation-direction: var(--dir, normal);
}
/* the rows keep moving under the mouse (a hovered module lifts out instead), and stop only for keyboard focus */
.marquee:has(:focus-visible) .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { translate: -100% 0; } }
.module-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, color 0.25s;
}
.module-chip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s;
}
.module-chip small { font-size: 12px; font-weight: 500; color: var(--faint); }
.module-chip:hover {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.module-chip:hover svg { stroke: var(--accent); }

/* ---------------------------------------------------------------- the term card */

.term-card {
  position: relative;
  padding: 36px;
  border-radius: 28px;
  background:
    radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--accent-deep) 15%, transparent), transparent 70%),
    linear-gradient(to bottom, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015));
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 100px -40px rgb(0 0 0 / 0.9), 0 0 90px -30px color-mix(in srgb, var(--accent-deep) 40%, transparent);
  --delay: 0.1s;
}
.term-card::before {
  /* light along the top edge */
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--accent) 70%, #fff), transparent);
}
.segmented {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  padding: 4px;
  border-radius: 14px;
  background: rgb(0 0 0 / 0.35);
  box-shadow: inset 0 0 0 1px var(--line);
}
.segmented button {
  position: relative;
  z-index: 1;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s;
}
.segmented button:hover, .segmented button[aria-checked='true'] { color: var(--text); }
.segmented-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / var(--n, 4));
  border-radius: 10px;
  background: rgb(255 255 255 / 0.09);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 4px 14px rgb(0 0 0 / 0.35);
  translate: calc(var(--k, 0) * 100%) 0;
  transition: translate 0.5s cubic-bezier(0.3, 1.25, 0.5, 1);
}
.term-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; margin-top: 40px; }
.term-name { font-size: 16px; font-weight: 500; }
.term-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
  transition: opacity 0.3s, translate 0.4s var(--ease);
}
.term-badge.is-hidden { opacity: 0; translate: 0 4px; visibility: hidden; }
.term-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.term-price small { font-size: 0.42em; font-weight: 500; letter-spacing: -0.02em; color: var(--muted); }
.term-month { margin-top: 14px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.term-card .btn { width: 100%; margin-top: 36px; }
.term-foot { margin-top: 16px; font-size: 13px; color: var(--faint); text-align: center; }

.pricing-note {
  width: min(100% - var(--gutter) * 2, 620px);
  margin: 28px auto 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.035);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px;
  color: var(--muted);
  text-align: center;
  animation: note-in 0.5s var(--ease);
}
.pricing-note a { color: var(--accent); }
.pricing-note a:hover { text-decoration: underline; }
@keyframes note-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------------------------------------------------------------- faq and changelog */

.faq-list { border-top: 1px solid var(--line); --delay: 0.1s; }
.faq-item { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.3s, transform 0.45s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--muted);
  translate: -50% -50%;
  transition: rotate 0.45s var(--ease), background 0.3s;
}
.faq-icon::after { rotate: 90deg; }
.faq-item[open] .faq-icon { background: color-mix(in srgb, var(--accent) 14%, transparent); transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { rotate: 0deg; }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: var(--accent); }
.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }
.faq-answer { padding: 0 56px 26px 40px; font-size: 15.5px; color: var(--muted); text-wrap: pretty; }
.faq-answer a { color: var(--accent); }
.faq-answer a:hover { text-decoration: underline; }

/* changelog */
.releases { --delay: 0.1s; }
.release {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.release:last-child { border-bottom: 1px solid var(--line); }
.release-meta { display: flex; flex-direction: column; gap: 6px; }
.release-version { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.release-date { font-size: 14px; color: var(--muted); }
.release-title { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.release-group { margin-top: 22px; }
.release-group h4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.release-group h4::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--dot, var(--accent)); }
.release-group.is-fix { --dot: #e8a26b; }
.release-group.is-improve { --dot: var(--ok); }
.release-group li { position: relative; padding-left: 14px; font-size: 15px; color: var(--muted); }
.release-group li + li { margin-top: 6px; }
.release-group li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 4px; height: 1px; background: var(--faint); }

.release-empty { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.empty-card {
  padding: 30px;
  border-radius: var(--radius);
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.01));
  box-shadow: inset 0 0 0 1px var(--line);
}
.empty-card .empty-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.empty-card .empty-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.empty-card h3 { margin-top: 22px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.empty-card p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.empty-card .btn { margin-top: 24px; height: 40px; padding: 0 18px; font-size: 14px; }
.sample-card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px dashed rgb(255 255 255 / 0.12);
  user-select: none;
}
.sample-label {
  position: absolute;
  top: -10px;
  left: 24px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
}
.sample-card .skeleton { opacity: 0.5; }
.sk { display: block; height: 8px; border-radius: 4px; background: rgb(255 255 255 / 0.08); }
.sk + .sk { margin-top: 9px; }
.sample-head { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 13px; }
.sample-head b { color: var(--text); font-weight: 600; }
.sample-card .release-group { margin-top: 18px; }

/* ---------------------------------------------------------------- finale */

.finale {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(92vh, 860px);
  padding: 120px 0 96px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.finale-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-mask: linear-gradient(to bottom, transparent, #000 30%);
  mask: linear-gradient(to bottom, transparent, #000 30%);
}
.finale::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(45% 40% at 50% 45%, rgb(3 4 9 / 0.5), transparent 80%);
  pointer-events: none;
}
.finale-copy { display: flex; flex-direction: column; align-items: center; padding: 0 var(--gutter); }
.finale h2 { font-size: clamp(56px, 9vw, 136px); line-height: 0.92; letter-spacing: -0.05em; }
.finale .section-lead { margin-top: 26px; color: color-mix(in srgb, var(--text) 70%, transparent); --delay: 0.2s; }
.finale .hero-actions { --delay: 0.3s; }

.channels { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 64px; --delay: 0.4s; }
.channel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px 0 8px;
  border-radius: 999px;
  background: rgb(10 12 18 / 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.25s, box-shadow 0.25s, transform 0.35s var(--ease);
}
a.channel:hover { background: rgb(18 20 28 / 0.7); box-shadow: inset 0 0 0 1px var(--line-strong); transform: translateY(-2px); }
.channel-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tint, rgb(255 255 255 / 0.06));
  color: var(--ink, var(--text));
}
.channel-icon svg { width: 16px; height: 16px; }
.channel-arrow { width: 14px; height: 14px; fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.25s, transform 0.35s var(--ease); }
a.channel:hover .channel-arrow { stroke: var(--text); transform: translate(1px, -1px); }
.channel-soon { font-size: 12px; font-weight: 500; color: var(--faint); }
.channel.is-soon { color: var(--muted); }
.channel.is-discord { --tint: rgb(88 101 242 / 0.2); --ink: #a3abff; }
.channel.is-telegram { --tint: rgb(42 171 238 / 0.18); --ink: #7cd0fb; }
.channel.is-youtube { --tint: rgb(255 48 48 / 0.16); --ink: #ff8c8c; }
.channel.is-changelog { --tint: color-mix(in srgb, var(--accent) 15%, transparent); --ink: var(--accent); }

/* ---------------------------------------------------------------- footer */

.footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.4));
}
.footer-inner { width: min(100% - var(--gutter) * 2, var(--max)); margin: 0 auto; padding: 60px 0 36px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.7fr)); gap: 36px 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.footer-brand .blade { width: 18px; height: 18px; color: var(--accent); }
.footer-about p { max-width: 320px; margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.footer-about a { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: border-color 0.2s; }
.footer-about a:hover { border-color: var(--text); }
.footer-col h4 { margin: 4px 0 16px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col .is-soon { font-size: 14.5px; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-col .is-soon { color: var(--faint); cursor: default; }
.footer-col .is-soon small { margin-left: 7px; font-size: 11.5px; letter-spacing: 0.02em; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.footer-note { max-width: 560px; font-size: 13px; line-height: 1.5; color: var(--faint); text-wrap: pretty; }
/* the wordmark, huge and almost gone, closes the page */
.footer-mark {
  display: block;
  width: min(100% - var(--gutter) * 2, var(--max));
  margin: 8px auto -0.14em;
  font-size: clamp(110px, 19.5vw, 290px);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.065em;
  text-align: center;
  color: transparent;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.075), rgb(255 255 255 / 0.01));
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  pointer-events: none;
}

.stop-a { stop-color: color-mix(in srgb, var(--accent) 45%, #eef2fa); }
.stop-c { stop-color: color-mix(in srgb, var(--accent) 80%, #ffffff); }

/* ---------------------------------------------------------------- living background */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ---------------------------------------------------------------- home: first screen */

/* Everything a visitor needs first — what it is, for which versions, the price, how to start —
   then the live menu right under it. */
.home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 104px 0 40px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.home-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - var(--gutter) * 2, 880px);
}
/* a dark pool behind the text keeps it readable over the sky */
.home-copy::before {
  content: '';
  position: absolute;
  inset: -40px -120px;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(3 4 9 / 0.6), transparent);
  pointer-events: none;
}
.home-copy .hero-badge { margin: 0; }
.home-copy h1 { margin: 18px 0 14px; font-size: clamp(44px, 5.4vw, 84px); line-height: 0.95; }
.home-lead { max-width: 780px; font-size: 17px; line-height: 1.55; color: color-mix(in srgb, var(--text) 74%, transparent); text-wrap: pretty; }
.home-hero .hero-actions { margin-top: 28px; }
/* the price rides on the main button, set apart by a hairline */
.btn-note {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid rgb(8 8 10 / 0.16);
  font-weight: 500;
  color: rgb(8 8 10 / 0.58);
  font-variant-numeric: tabular-nums;
}

.home-menu { width: min(100% - var(--gutter) * 2, 1240px); margin-top: 20px; }
.home-menu .stage-shell { width: 100%; margin: 0; }
/* one glass toolbar under the menu: demos on the left, the menu's own controls on the right */
.home-menu-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin: 16px auto 0;
  padding: 5px;
  border-radius: 999px;
  background: rgb(10 12 18 / 0.55);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgb(255 255 255 / 0.05), 0 14px 40px -14px rgb(0 0 0 / 0.7);
}
.bar-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.bar-sep { width: 1px; height: 18px; margin: 0 6px; background: var(--line-strong); }
.home-menu-bar .chip { height: 32px; background: transparent; box-shadow: none; }
.home-menu-bar .chip:hover { background: rgb(255 255 255 / 0.07); }
.home-menu-bar .chip[aria-pressed='true'] { background: rgb(255 255 255 / 0.06); }

/* ---------------------------------------------------------------- home: everything else on one screen */

.home-summary { padding: 72px 0 48px; }
.home-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 14px;
  width: min(100% - var(--gutter) * 2, 1360px);
  margin: 0 auto;
}
.home-tile {
  min-width: 0;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.012));
  box-shadow: inset 0 0 0 1px var(--line);
}
.home-tile h2 { font-size: clamp(28px, 2.6vw, 40px); }
.home-tile .eyebrow { margin-bottom: 14px; }
.home-why { display: flex; flex-direction: column; }
/* four reasons as four small tiles that fill the column next to the price */
.home-why ul { display: grid; flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; margin-top: 28px; }
.home-why li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 20px 22px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.025);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.3s, box-shadow 0.3s;
}
.home-why li:hover { background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line-strong); }
.home-why svg {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-why b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.home-why span { display: block; margin-top: 5px; font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.home-buy { display: flex; flex-direction: column; }
.home-buy .term-card { margin-top: 18px; padding: 22px; border-radius: 20px; }
.home-buy .term-head { margin-top: 22px; }
.home-buy .term-price { font-size: clamp(52px, 4.6vw, 72px); }
.home-buy [data-term-action] .btn { margin-top: 22px; }
/* how to start, right where the purchase happens */
.buy-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.buy-steps li { display: flex; align-items: center; gap: 8px; }
.buy-steps span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.home-modules { grid-column: 1 / -1; padding: 30px 0 26px; overflow: hidden; }
.home-modules-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 30px; }
.home-modules-head p { max-width: 380px; font-size: 14.5px; color: var(--muted); }
.home-modules .marquee { margin-top: 8px; }

/* questions and updates in tabs */
.home-info { padding: 72px 0 112px; }
/* the heading and the tabs stay on the left while the answers scroll on the right */
.home-info-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 40px 80px;
  width: min(100% - var(--gutter) * 2, 1200px);
  margin: 0 auto;
}
.home-info-head { position: sticky; top: 104px; align-self: start; }
.home-info-head h2 { font-size: clamp(34px, 3.8vw, 56px); }
.home-info-head .section-lead { margin-top: 18px; font-size: 16px; }
.home-info-body { min-width: 0; }
.home-tabs {
  display: flex;
  width: fit-content;
  margin: 28px 0 0;
  padding: 4px;
  border-radius: 14px;
  background: rgb(0 0 0 / 0.35);
  box-shadow: inset 0 0 0 1px var(--line);
}
.home-tabs button {
  padding: 10px 20px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.home-tabs button:hover { color: var(--text); }
.home-tabs button[aria-selected='true'] { color: var(--text); }
.home-tabs { position: relative; }
.home-tabs button { position: relative; z-index: 1; }
.home-tabs-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: var(--w, 0);
  border-radius: 10px;
  background: rgb(255 255 255 / 0.09);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
  translate: var(--x, 0) 0;
  transition: translate 0.5s cubic-bezier(0.3, 1.25, 0.5, 1), width 0.5s cubic-bezier(0.3, 1.25, 0.5, 1);
}

.finale { min-height: 0; padding: 140px 0 96px; }
.finale .channels { margin-top: 48px; }

/* Appears once the first screen is scrolled away, hides where the page has its own buy button. */
.buy-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
  background: rgb(12 13 18 / 0.84);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 20px 50px rgb(0 0 0 / 0.5);
  translate: -50% 140%;
  opacity: 0;
  pointer-events: none;
  transition: translate 0.5s var(--ease), opacity 0.4s var(--ease);
}
.buy-bar.is-shown { translate: -50% 0; opacity: 1; pointer-events: auto; }
.buy-bar-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.buy-bar-name .blade { width: 15px; height: 15px; color: var(--accent); }
.buy-bar-price { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.buy-bar .btn { height: 40px; padding: 0 20px; font-size: 14px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1000px) {
  .home-bento { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .release { grid-template-columns: 1fr; gap: 14px; }
  .release-empty { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .home-why ul { grid-template-columns: minmax(0, 1fr); }
  .home-modules-head { flex-direction: column; align-items: flex-start; padding: 0 22px; }
  .home-tile { padding: 22px; }
  .home-modules { padding: 22px 0; }
  .buy-bar { left: 12px; right: 12px; justify-content: space-between; translate: 0 140%; }
  .buy-bar.is-shown { translate: 0 0; }
  .buy-bar-name { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .nav { inset: 10px 0 auto; }
  .nav-pill { height: 46px; padding-left: 14px; }
  .nav-cta { height: 34px; padding: 0 14px; font-size: 13.5px; }
  .home-hero { padding-top: 92px; }
  .home-lead { font-size: 16px; }
  .home-hero .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .home-menu { width: calc(100% - 16px); }
  .section-lead { font-size: 15.5px; }
  .module-chip { height: 46px; font-size: 14px; }
  .term-card { padding: 24px 20px; border-radius: 22px; }
  .segmented button { font-size: 13px; }
  .faq-item summary { font-size: 16px; padding: 18px 2px; }
  .faq-answer { padding: 0 8px 20px 2px; }
  .faq-num { display: none; }
  .empty-card, .sample-card { padding: 24px; }
  .finale { padding: 110px 0 80px; }
  .channels { margin-top: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-inner { padding-top: 44px; }
  .footer-bottom { margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none !important; }
}

/* ---------------------------------------------------------------- accounts (with the Elusive server) */

.nav-account {
  display: inline-flex;
  align-items: center;
  height: 36px;
  max-width: 160px;
  padding: 0 12px;
  border-radius: 999px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav-account:hover { color: var(--text); background: rgb(255 255 255 / 0.05); }
.nav-account.is-signed-in { color: var(--text); }
.nav-account.is-signed-in::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ok);
}
[data-term-action] .btn { width: 100%; margin-top: 36px; }
.form-error, .buy-error { margin-top: 10px; font-size: 13.5px; color: #f0a08e; }
.btn.is-busy { pointer-events: none; opacity: 0.7; }
.btn.is-busy::after {
  content: '';
  width: 14px;
  height: 14px;
  margin-left: 4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

.field { display: grid; gap: 8px; }
.field > span { font-size: 13px; color: var(--muted); }
.field small { font-size: 12.5px; color: var(--faint); }
.field input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: rgb(0 0 0 / 0.35);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: box-shadow 0.2s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.field .code-input { font: 600 20px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: 0.18em; text-transform: uppercase; }

.auth-form { display: grid; gap: 16px; margin-top: 26px; }
.auth-form .btn { width: 100%; margin-top: 4px; }
.auth-form .form-error { margin-top: -4px; }
.auth-alt { margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-alt a, .link-btn { color: var(--accent); }
.auth-alt a:hover, .link-btn:hover:not(:disabled) { text-decoration: underline; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.link-btn:disabled { color: var(--faint); cursor: default; }
.auth-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 12px;
  background: rgb(0 0 0 / 0.35);
  box-shadow: inset 0 0 0 1px var(--line);
}
.auth-tabs a { padding: 7px 16px; border-radius: 9px; font-size: 14px; font-weight: 500; text-align: center; color: var(--muted); }
.auth-tabs a { position: relative; z-index: 1; transition: color 0.25s; }
.auth-tabs a[aria-selected='true'] { color: var(--text); }
.auth-tabs { position: relative; }
/* one thumb slides between the two tabs */
.auth-tabs-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 9px;
  background: rgb(255 255 255 / 0.09);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
  translate: calc(var(--k, 0) * 100%) 0;
  transition: translate 0.45s cubic-bezier(0.3, 1.25, 0.5, 1);
}
.buy-note, .dev-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
}
.buy-note { background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.buy-note b, .dev-note b { color: var(--text); font-weight: 600; }
.dev-note { background: rgb(232 162 107 / 0.1); box-shadow: inset 0 0 0 1px rgb(232 162 107 / 0.3); }
.dev-note code { font: 600 15px ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: 0.12em; color: #f3c49c; }

.account-card { width: min(640px, 100%); }
.account-card h1 { overflow-wrap: anywhere; }
.profile-head p { color: var(--muted); overflow-wrap: anywhere; }
.acc-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.acc-section h2 { font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; }
.acc-section > p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.acc-section .order-actions { margin-top: 18px; }
.acc-section .order-details { margin-top: 18px; }
.acc-big { margin-top: 10px !important; font-size: 26px !important; font-weight: 600; letter-spacing: -0.03em; color: var(--text) !important; }
.acc-buy { padding: 22px; border: 0; border-radius: 18px; background: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); }
.connect-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-top: 18px; }
.connect-form .btn { width: auto; height: 50px; margin: 0; }
.acc-orders { display: grid; margin-top: 14px; border-top: 1px solid var(--line); }
.acc-orders a {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr auto;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.acc-orders a:hover { color: var(--text); background: rgb(255 255 255 / 0.02); }
.acc-order-status { font-weight: 500; }
.acc-order-status.is-paid { color: var(--ok); }
.acc-order-status.is-pending { color: #e8c26b; }
.acc-details { margin-top: 14px; }
.acc-details summary { cursor: pointer; font-size: 15px; font-weight: 500; color: var(--accent); }
.acc-details .auth-form { margin-top: 16px; }
.acc-section .media-app { margin-top: 16px; }
.acc-section .media-app .order-actions { margin-top: 0; }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
@media (max-width: 640px) {
  .connect-form { grid-template-columns: 1fr; }
  .connect-form .btn { width: 100%; }
  .acc-orders a { grid-template-columns: 1fr 1fr; }
  .nav-account { max-width: 110px; }
}

/* ---------------------------------------------------------------- order page */

.order-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 120px var(--gutter) 64px;
  isolation: isolate;
  overflow: hidden;
}
.order-page .hero-scene { -webkit-mask: linear-gradient(to bottom, #000 60%, transparent); mask: linear-gradient(to bottom, #000 60%, transparent); }
.order-card {
  width: min(560px, 100%);
  padding: 36px;
  border-radius: 28px;
  background: rgb(12 13 18 / 0.72);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 100px -30px rgb(0 0 0 / 0.9);
  animation: note-in 0.6s var(--ease);
}
.order-card h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1; letter-spacing: -0.04em; margin: 18px 0 14px; }
.order-card > p { color: var(--muted); text-wrap: pretty; }
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 500;
}
.order-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--muted)); }
.order-status.is-paid { --dot: var(--ok); }
.order-status.is-pending { --dot: #e8c26b; }
.order-status.is-pending::before { animation: blip 1.4s ease-in-out infinite; }
.order-status.is-bad { --dot: #e8806b; }
.order-test {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #e8a26b;
}
.order-key {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 10px 10px 18px;
  border-radius: 16px;
  background: rgb(0 0 0 / 0.4);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.order-key code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font: 600 clamp(15px, 2.6vw, 19px)/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace;
  letter-spacing: 0.04em;
  color: var(--text);
  user-select: all;
}
.order-key .btn { flex: none; height: 40px; padding: 0 16px; font-size: 14px; }
.order-details { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.order-details div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.order-details dt { color: var(--muted); }
.order-details dd { text-align: right; }
.order-hint { margin-top: 20px; font-size: 13.5px; color: var(--faint); }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.order-actions .btn { height: 44px; font-size: 14.5px; }
@media (max-width: 640px) {
  .order-card { padding: 26px 20px; border-radius: 22px; }
  .order-key { flex-direction: column; align-items: stretch; }
}

/* ---------------------------------------------------------------- motion details */

/* fields: typed letters ease into place. The input keeps the caret and the selection; its text is drawn by a
   mirror right on top of it, letter by letter, so each new letter can fade in. */
.type-box { position: relative; }
.field .type-box input {
  color: transparent;
  caret-color: var(--text);
  /* the mirror is drawn glyph by glyph, so the input must not kern or join letters either */
  font-kerning: none;
  font-variant-ligatures: none;
}
.field .type-box input::selection { color: transparent; background: color-mix(in srgb, var(--accent) 35%, transparent); }
.type-mirror {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 18px;
  overflow: hidden;
  font-size: 15px;
  white-space: pre;
  color: var(--text);
  font-kerning: none;
  font-variant-ligatures: none;
  pointer-events: none;
}
.type-clip { flex: 1; min-width: 0; overflow: hidden; }
.type-clip > span { display: inline-block; will-change: transform; }
/* how a new letter arrives — chosen by data-typing (assets/js/fields.js) */
.type-char { position: relative; }
.type-char.is-fade { animation: char-fade 0.32s var(--ease) both; }
@keyframes char-fade { from { opacity: 0; top: 0.32em; filter: blur(3px); } }
.type-char.is-rise, .type-char.is-stamp { display: inline-block; }
.type-char.is-rise { animation: char-rise 0.42s cubic-bezier(0.3, 1.5, 0.5, 1) both; }
@keyframes char-rise { from { opacity: 0; transform: translateY(0.75em); } 40% { opacity: 1; } }
.type-char.is-stamp { animation: char-stamp 0.3s cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes char-stamp { from { opacity: 0; transform: scale(1.9); filter: blur(2px); } }
.type-char.is-glow { animation: char-glow 0.9s ease-out both; }
@keyframes char-glow {
  from { opacity: 0; color: var(--accent); text-shadow: 0 0 14px var(--accent); }
  20% { opacity: 1; color: color-mix(in srgb, var(--accent) 70%, #fff); text-shadow: 0 0 12px var(--accent); }
}
.type-char.is-decoding { color: var(--accent); opacity: 0.85; }
@media (prefers-reduced-motion: reduce) {
  .type-char { animation: none; }
}

/* code fields: one cell per character */
.code-box { position: relative; }
.code-box input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  opacity: 0;
  font-size: 16px; /* no zoom on focus on phones */
  cursor: text;
}
.code-cells { display: flex; align-items: center; gap: 8px; }
.code-cell {
  position: relative;
  display: grid;
  flex: 1 1 0;
  place-items: center;
  min-width: 0;
  max-width: 54px;
  height: 56px;
  border-radius: 12px;
  background: rgb(0 0 0 / 0.35);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font: 600 22px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color: var(--text);
  transition: box-shadow 0.25s, background 0.25s;
}
.code-cell.is-filled { background: rgb(255 255 255 / 0.05); }
.code-cell.is-active { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 75%, transparent), 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.code-cell.is-active:empty::after {
  content: '';
  width: 2px;
  height: 24px;
  border-radius: 1px;
  background: var(--accent);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.code-dash { flex: none; color: var(--faint); font-size: 18px; }
.connect-form .code-cell { height: 50px; font-size: 19px; }

/* the "change password" block opens like the FAQ */
.acc-details { interpolate-size: allow-keywords; }
.acc-details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.acc-details[open]::details-content { block-size: auto; }
.acc-details summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.acc-details summary::-webkit-details-marker { display: none; }
.acc-details summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  transition: rotate 0.35s var(--ease), margin 0.35s var(--ease);
}
.acc-details[open] summary::after { rotate: 225deg; margin-top: 3px; }

/* presses: small things give a little under the finger */
.chip, .module-chip, .segmented button, .price-row, .home-tabs button, .auth-tabs a, .link-btn { transition-property: color, background, box-shadow, transform; transition-duration: 0.25s; }
.chip:active, .module-chip:active, .segmented button:active, .home-tabs button:active, .auth-tabs a:active, .channel:active { transform: scale(0.96); }

/* things that appear once the page knows about them */
.nav-account:not([hidden]) { animation: appear 0.5s var(--ease); }
.form-error:not([hidden]), .buy-error:not([hidden]) { animation: appear 0.35s var(--ease); }
.home-menu .stage-host .sm-stage { animation: menu-in 0.6s var(--ease) both; }
@keyframes appear { from { opacity: 0; translate: 0 -4px; } }
/* opacity only: moving the window would knock the menu off its pixel grid */
@keyframes menu-in { from { opacity: 0; } }

/* full screen opens from the page instead of snapping */
.stage-frame.is-full { animation: full-in 0.45s var(--ease); }
@keyframes full-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .home-menu .stage-host .sm-stage, .stage-frame.is-full { animation: none; }
}

/* ---------------------------------------------------------------- modules: the hovered one steps forward */

/* The module under the mouse lifts out of its row and stays under the cursor; the rows keep flowing behind it,
   dimmed, and the module drifts back into its place when the cursor leaves. */
.marquee-track .module-chip { transition: background 0.25s, box-shadow 0.25s, color 0.25s, opacity 0.4s var(--ease), filter 0.4s var(--ease); }
.marquee.is-dimmed .marquee-track .module-chip { opacity: 0.28; filter: saturate(0.4); }
.marquee .module-chip.is-ghost { opacity: 0 !important; }
.module-chip.is-lifted {
  position: absolute;
  z-index: 3;
  background: rgb(16 18 28 / 0.94);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent),
    0 18px 40px -14px rgb(0 0 0 / 0.8),
    0 0 34px -8px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: translate 0.45s var(--ease), scale 0.45s var(--ease), opacity 0.3s var(--ease);
}
.module-chip.is-lifted svg { stroke: var(--accent); }
.module-chip.is-lifted small { color: var(--muted); }

/* ---------------------------------------------------------------- first-visit intro */

.intro {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
  animation: intro-out 0.6s var(--ease) 1.05s forwards;
}
.intro.is-skipped { animation: intro-out 0.25s ease-out forwards; }
.intro-blade {
  position: relative;
  width: 76px;
  height: 76px;
  color: var(--accent);
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--accent) 60%, transparent));
  animation: intro-blade 1.1s var(--ease) both;
}
/* the streak runs along the blade's own angle */
.intro-slash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170vmax;
  height: 2px;
  translate: -50% -50%;
  rotate: 45deg;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 70%, transparent) 40%, #fff 50%, color-mix(in srgb, var(--accent) 70%, transparent) 60%, transparent);
  box-shadow: 0 0 18px 2px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: intro-slash 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.35s both;
}
@keyframes intro-blade {
  from { opacity: 0; scale: 0.6; filter: blur(10px) drop-shadow(0 0 0 transparent); }
  45% { opacity: 1; scale: 1; filter: blur(0) drop-shadow(0 0 24px color-mix(in srgb, var(--accent) 60%, transparent)); }
  to { scale: 1.06; }
}
@keyframes intro-slash {
  from { opacity: 0; scale: 0 1; }
  35% { opacity: 1; }
  to { opacity: 0; scale: 1 1; }
}
@keyframes intro-out { to { opacity: 0; visibility: hidden; scale: 1.03; } }
/* the first screen waits for the intro before it rises in */
body.has-intro .home-hero { --delay: 1.05s; }

/* ---------------------------------------------------------------- home: bonuses */

.home-center { width: min(100% - var(--gutter) * 2, 760px); margin: 0 auto; text-align: center; }
.home-center .eyebrow { justify-content: center; }
.home-bonus { padding: 64px 0 48px; }
.bonus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  width: min(100% - var(--gutter) * 2, 1360px);
  margin: 40px auto 0;
}
.bonus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 30px;
  border-radius: 24px;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.012));
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), translate 0.45s var(--ease);
}
.bonus-card:hover { box-shadow: inset 0 0 0 1px var(--line-strong); translate: 0 -3px; }
.bonus-card.is-main {
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent-deep) 18%, transparent), transparent 60%),
    linear-gradient(to bottom, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.bonus-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.bonus-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bonus-card h3 { margin-top: 6px; font-size: 21px; letter-spacing: -0.02em; }
.bonus-card p { font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.bonus-card p b { color: var(--text); font-weight: 600; }
.bonus-card .btn { align-self: flex-start; margin-top: auto; }
.bonus-card.is-main .btn { margin-top: 8px; }

/* ---------------------------------------------------------------- home: ideas */

.home-ideas { padding: 48px 0 48px; }
.ideas-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  width: min(100% - var(--gutter) * 2, 1360px);
  margin: 0 auto;
  padding: 44px;
  border-radius: 28px;
  background:
    radial-gradient(70% 120% at 100% 50%, rgb(88 101 242 / 0.22), transparent 70%),
    linear-gradient(to bottom, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.012));
  box-shadow: inset 0 0 0 1px rgb(88 101 242 / 0.28);
  overflow: hidden;
}
.ideas-copy h2 { font-size: clamp(32px, 3.6vw, 52px); }
.ideas-copy .section-lead { margin-top: 18px; }
.ideas-action { margin-top: 28px; }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 10px 30px -10px rgb(88 101 242 / 0.7); }
.btn-discord:hover { background: #6b77f5; transform: translateY(-2px); }
.ideas-action .btn { white-space: nowrap; }
.ideas-action .btn svg { flex: none; width: 20px; height: 20px; }
.btn.is-disabled { pointer-events: none; opacity: 0.6; }
/* suggestions drifting up, like messages in a channel */
.ideas-bubbles { position: relative; height: 220px; }
.ideas-bubbles span {
  position: absolute;
  padding: 10px 16px;
  border-radius: 16px 16px 16px 4px;
  background: rgb(14 16 26 / 0.85);
  box-shadow: inset 0 0 0 1px rgb(88 101 242 / 0.35), 0 12px 30px -12px rgb(0 0 0 / 0.7);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
  animation: bubble 7s ease-in-out infinite;
}
.ideas-bubbles span::before { content: '+ '; color: #8b95ff; font-weight: 600; }
.ideas-bubbles span:nth-child(1) { left: 6%; top: 8%; animation-delay: 0s; }
.ideas-bubbles span:nth-child(2) { right: 4%; top: 30%; animation-delay: -1.8s; }
.ideas-bubbles span:nth-child(3) { left: 14%; top: 56%; animation-delay: -3.6s; }
.ideas-bubbles span:nth-child(4) { right: 12%; top: 78%; animation-delay: -5.2s; }
@keyframes bubble { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (max-width: 1000px) {
  .bonus-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bonus-card.is-main { grid-column: 1 / -1; }
  .ideas-card { grid-template-columns: minmax(0, 1fr); }
  .ideas-bubbles { height: 170px; }
}
@media (max-width: 640px) {
  .bonus-grid { grid-template-columns: minmax(0, 1fr); }
  .bonus-card, .ideas-card { padding: 24px; }
  .ideas-bubbles span { font-size: 13px; }
}

/* the referral link in the profile */
.ref-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 8px 8px 8px 16px;
  border-radius: 14px;
  background: rgb(0 0 0 / 0.35);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.ref-link code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 14px/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color: var(--text);
  user-select: all;
}
.ref-link .btn { flex: none; height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 640px) {
  .ref-link { flex-direction: column; align-items: stretch; padding: 12px; }
  .ref-link code { white-space: normal; overflow-wrap: anywhere; }
}

/* ---------------------------------------------------------------- finish: texture, selection, scrollbar */

::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: #fff; }
html { scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 0.14) transparent; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: rgb(255 255 255 / 0.14) padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgb(255 255 255 / 0.24) padding-box; }

/* A film grain over the page (under the navigation and popups): it takes the banding out of the dark gradients
   and gives the glass surfaces a texture. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* Headings are lit from above: white at the top of the glyphs, a touch dimmer at the baseline. */
h1 > .w, h2 > .w,
.home-tile h2, .home-center h2, .ideas-copy h2, .home-info-head h2 {
  background: linear-gradient(to bottom, #fff 25%, rgb(255 255 255 / 0.72));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h1 em, h2 em { -webkit-text-fill-color: var(--faint); }
h1 em.serif, h2 em.serif { -webkit-text-fill-color: color-mix(in srgb, var(--accent) 55%, var(--text)); }

/* ---------------------------------------------------------------- modules: the categories */

.module-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.module-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.module-cat svg { width: 14px; height: 14px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.module-cat b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- bonuses: the flow and the marks */

/* you → a friend → days: the referral programme in one line */
.ref-flow {
  display: flex;
  align-items: center;
  margin: 4px 0 10px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgb(0 0 0 / 0.32);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ref-node { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ref-node i { font-style: normal; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.ref-node small { font-size: 12px; color: var(--faint); white-space: nowrap; }
.ref-node.is-bonus i { color: var(--accent); }
.ref-line {
  position: relative;
  flex: 1;
  height: 1px;
  margin: 0 16px;
  background: linear-gradient(to right, var(--line-strong), color-mix(in srgb, var(--accent) 45%, transparent));
}
/* a spark runs along each line */
.ref-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: ref-spark 3.2s linear infinite;
}
.ref-line + .ref-node + .ref-line::after { animation-delay: 1.6s; }
@keyframes ref-spark {
  from { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  to { left: calc(100% - 5px); opacity: 0; }
}

.bonus-card .bonus-meta { margin-top: auto; }
.bonus-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
}
.bonus-meta-label { margin-right: 4px; font-size: 13px; color: var(--faint); }
.bonus-chan {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px 0 6px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.3);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, box-shadow 0.2s;
}
.bonus-chan i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--tint, rgb(255 255 255 / 0.06)); color: var(--ink, var(--text)); }
.bonus-chan svg { width: 11px; height: 11px; }
.bonus-chan small { font-size: 11.5px; color: var(--faint); }
a.bonus-chan:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.bonus-chan.is-discord { --tint: rgb(88 101 242 / 0.22); --ink: #a3abff; }
.bonus-chan.is-telegram { --tint: rgb(42 171 238 / 0.2); --ink: #7cd0fb; }
/* the card's own icon again, big and faint, in the corner */
.bonus-mark {
  position: absolute;
  right: -22px;
  bottom: -26px;
  z-index: -1;
  width: 160px;
  height: 160px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.11;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), translate 0.6s var(--ease);
}
.bonus-card:hover .bonus-mark { opacity: 0.2; translate: -6px -6px; }

/* ---------------------------------------------------------------- questions: numbering */

.faq-item summary { align-items: center; }
.faq-num {
  flex: none;
  width: 36px;
  font: 500 12px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace;
  letter-spacing: 0.06em;
  color: var(--faint);
  transition: color 0.3s;
}
.faq-q { flex: 1; min-width: 0; }
.faq-item[open] .faq-num, .faq-item summary:hover .faq-num { color: var(--accent); }

/* ---------------------------------------------------------------- cards that answer the cursor */

/* A soft glow inside the card and a brighter stretch of its border follow the pointer (assets/js/site.js sets
   --mx/--my). Both live under the content, so nothing on the card changes. */
[data-spot] { position: relative; isolation: isolate; }
[data-spot]::before, [data-spot]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
[data-spot]::before {
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%);
}
[data-spot]::after {
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
@media (hover: hover) and (pointer: fine) {
  [data-spot]:hover::before, [data-spot]:hover::after { opacity: 1; }
}

/* ---------------------------------------------------------------- account and order cards */

.order-card { position: relative; }
.order-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--accent) 60%, #fff), transparent);
  pointer-events: none;
}

/* ---------------------------------------------------------------- finish: small screens */

@media (max-width: 900px) {
  .home-info-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .home-info-head { position: static; }
}
@media (max-width: 640px) {
  .home-menu-bar { border-radius: 22px; padding: 6px; }
  .bar-sep { display: none; }
  .ref-flow { padding: 14px; }
  .ref-line { margin: 0 10px; }
  .module-cat { height: 28px; font-size: 12.5px; }
  .footer-mark { margin-bottom: -0.1em; }
}
@media (max-width: 480px) {
  .ref-node small { display: none; }
  .ref-node i { font-size: 14px; }
}

/* ---------------------------------------------------------------- home: media partners */

.home-media { padding: 48px 0; }
.media-inner { width: min(100% - var(--gutter) * 2, 1360px); margin: 0 auto; }
.media-head { max-width: 760px; }
.media-head h2 { font-size: clamp(32px, 4vw, 56px); }
.media-head .section-lead { margin-top: 18px; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}
.media-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.012));
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: box-shadow 0.35s var(--ease), translate 0.45s var(--ease);
}
.media-card:hover { box-shadow: inset 0 0 0 1px var(--line-strong); translate: 0 -3px; }
.media-card.is-youtube { --tint: rgb(255 48 48 / 0.16); --ink: #ff8c8c; }
.media-card.is-tiktok { --tint: rgb(37 244 238 / 0.12); --ink: #7ff0ec; }
.media-card.is-offer {
  --tint: color-mix(in srgb, var(--accent) 14%, transparent);
  --ink: var(--accent);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent-deep) 18%, transparent), transparent 60%),
    linear-gradient(to bottom, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}
.media-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: var(--tint, rgb(255 255 255 / 0.06));
  color: var(--ink, var(--text));
  font-size: 13px;
  font-weight: 600;
}
.media-badge svg { width: 16px; height: 16px; }
.media-card h3 { font-size: 20px; letter-spacing: -0.02em; }
.media-req { display: grid; margin: 0; }
.media-req div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.media-req div:last-child { border-bottom: 1px solid var(--line); }
.media-req dt { color: var(--muted); }
.media-req dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.media-note { margin-top: auto; font-size: 13px; line-height: 1.5; color: var(--faint); text-wrap: pretty; }
.media-perks { display: grid; gap: 14px; }
.media-perks li { position: relative; display: grid; gap: 3px; padding-left: 16px; }
.media-perks li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.media-perks b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.media-perks span { font-size: 13.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.media-apply {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 14px;
  padding: 18px 24px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
}
.media-apply .buy-steps { margin: 0; justify-content: flex-start; }
.media-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.media-actions .btn { height: 44px; padding: 0 20px; font-size: 14.5px; }
.media-actions .btn svg { flex: none; width: 18px; height: 18px; }
.btn-telegram { background: #2aabee; color: #fff; box-shadow: 0 10px 30px -10px rgb(42 171 238 / 0.7); }
.btn-telegram:hover { background: #45b8f2; transform: translateY(-2px); }
@media (max-width: 1000px) {
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-card.is-offer { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .media-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 28px; }
  .media-card { padding: 22px; }
  .media-apply { padding: 18px; }
  .media-actions, .media-actions .btn { width: 100%; }
}

/* the application block: the steps, then the form / the code / the review result */
.media-apply { display: grid; gap: 22px; padding: 24px 26px 22px; }
.media-apply-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 28px; }
.media-apply-head .eyebrow { margin-bottom: 8px; }
.media-apply-head h3 { font-size: 24px; letter-spacing: -0.02em; }
.media-form-slot { display: grid; gap: 14px; }
.media-form-note { font-size: 14.5px; color: var(--muted); text-wrap: pretty; }
.media-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 12px;
  align-items: end;
  padding: 20px;
  border-radius: 16px;
  background: rgb(0 0 0 / 0.3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.media-form .segmented { grid-column: 1 / -1; max-width: 320px; }
.media-form .field small { margin-left: 6px; }
.media-form .form-error { grid-column: 1 / -1; margin: 0; }
.media-form .btn { grid-column: 1 / -1; justify-self: start; }
.media-app {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 16px;
  background: rgb(0 0 0 / 0.3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.media-app-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.media-app-channel { font-size: 14.5px; font-weight: 500; overflow-wrap: anywhere; }
.media-app-channel a { color: var(--accent); }
.media-app-channel a:hover { text-decoration: underline; }
.media-app > p { font-size: 14.5px; color: var(--muted); text-wrap: pretty; }
.media-app > p b { color: var(--text); font-weight: 600; }
.media-app .ref-link { margin-top: 0; }
.media-app .ref-link code { font-size: 17px; font-weight: 600; letter-spacing: 0.08em; }
.media-app .order-actions, .media-app .order-hint { margin-top: 0; }
.media-fine { font-size: 13px; line-height: 1.5; color: var(--faint); text-wrap: pretty; }
.acc-order-status.is-approved { color: var(--ok); }
.acc-order-status.is-new { color: #e8c26b; }
.acc-order-status.is-rejected { color: #e8806b; }
@media (max-width: 760px) {
  .media-form { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .media-apply { padding: 20px 18px; }
  .media-form .btn { justify-self: stretch; }
}
