/* ============================================================
   TOKENS  (identical to 1a — keep in one shared stylesheet)
   Single-page join: username + email + password + plan on one screen.
   ============================================================ */
:root {
  --bg-0: #0b0d10;
  --bg-1: #111418;
  --bg-2: #15181d;
  --bg-3: #1b1f26;
  --border-1: #1f232b;
  --border-2: #2a2f39;
  --border-3: #363c48;
  --text-1: #ffffff;
  --text-2: #c8cedb;
  --text-3: #8b93a1;
  --text-4: #6f7787;
  --orange-400: #ff8c5f;
  --orange-500: #ff6b35;
  --orange-600: #e5541f;
  --orange-glow: rgba(255, 107, 53, 0.09);
  --green: #63c98a;
  --tier-text: #111110;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 10px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  background: var(--bg-1);
  color: var(--text-1);
  font: 400 14px/1.5 var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--orange-500);
  text-decoration: none;
}
a:hover {
  color: var(--orange-400);
  text-decoration: underline;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0;
}

/* ============================================================
   SHELL
   ============================================================ */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
.topbar {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 52px;
  padding: 0 16px;
  background: var(--bg-0);
  border-bottom: 1px solid var(--border-1);
}
.logo {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.logo span {
  color: var(--orange-500);
}

/* live pill */
.live {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}
.live i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--orange-500);
  animation: pulse 1.6s ease-in-out infinite;
}
.live span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   SCENE STAGE
   ============================================================ */
.stage {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--bg-0);
  overflow: hidden;
}
.stage-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.stage-img[data-current] {
  opacity: 1;
}
.stage-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 100%);
}
.chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.chip i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--orange-500);
  animation: pulse 1.6s ease-in-out infinite;
}
.chip span {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
.stage-copy {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stage-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-400);
}
.stage-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.stage-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.75);
}
.stage-lede {
  display: none;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 48ch;
  text-wrap: pretty;
}

/* ============================================================
   RECENT-RELEASE RAIL
   ============================================================ */
.rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 0 4px;
  border-bottom: 1px solid var(--border-1);
}
.rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
}
.rail-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-4);
}
.rail-track {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.rail-track::-webkit-scrollbar {
  height: 6px;
}
.rail-track::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 3px;
}
.thumb {
  flex: none;
  width: 132px;
  padding: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  transition: border-color 0.15s ease;
}
.thumb:hover {
  border-color: var(--border-3);
}
.thumb[aria-current="true"] {
  border-color: var(--orange-500);
}
.thumb:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.thumb-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-0);
}
.thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
}
.thumb-dur,
.thumb-tag {
  position: absolute;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  padding: 2px 5px;
  border-radius: var(--r-sm);
}
.thumb-dur {
  left: 6px;
  bottom: 6px;
}
.thumb-tag {
  right: 6px;
  top: 6px;
}
.thumb-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px;
  min-width: 0;
}
.thumb-name {
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thumb-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   JOIN FORM
   ============================================================ */
.join {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 16px 32px;
}
.join-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.join-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.join-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-3);
}
.fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  font: 400 16px/1 var(--font-sans);
  color: var(--text-1);
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.input::placeholder {
  color: var(--text-4);
}
.input:hover {
  border-color: var(--border-3);
}
.input:focus-visible {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.plans-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.plans-note {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-4);
}
.plans {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.plan:hover {
  border-color: var(--border-3);
}
.plan[aria-checked="true"] {
  border-color: var(--orange-500);
  background: var(--bg-3);
}
.plan:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.plan[data-recommended] {
  order: -1;
} /* recommended first on mobile */
.radio {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--border-3);
  display: grid;
  place-items: center;
}
.radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--orange-500);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.plan[aria-checked="true"] .radio::after {
  opacity: 1;
}
.plan[aria-checked="true"] .radio {
  border-color: var(--orange-500);
}
.plan-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plan-name {
  font-size: 13.5px;
  font-weight: 600;
}
.plan-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
}
.plan-price {
  flex: none;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tier-text);
  background: var(--orange-500);
  padding: 2px 5px;
  border-radius: 3px;
  margin-left: 6px;
}
.plans-toggle {
  align-self: flex-start;
  order: 9;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--orange-500);
  font-size: 12.5px;
}
.plans-toggle:hover {
  text-decoration: underline;
}
.plans[data-collapsed] .plan:not([data-recommended]) {
  display: none;
}
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.payment-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 10px 12px;
  text-align: left;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.payment-method:hover {
  border-color: var(--border-3);
}
.payment-method[aria-checked="true"] {
  border-color: var(--orange-500);
  background: var(--bg-3);
}
.payment-method[aria-checked="true"] .radio {
  border-color: var(--orange-500);
}
.payment-method[aria-checked="true"] .radio::after {
  opacity: 1;
}
.payment-method:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.payment-icon {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--text-3);
}
.payment-icon svg {
  width: 100%;
  height: 100%;
}
.payment-method[aria-checked="true"] .payment-icon {
  color: var(--text-1);
}
.payment-name {
  font-size: 12.5px;
  font-weight: 600;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--orange-500);
  border: 1px solid transparent;
  border-radius: var(--r);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.3);
  transition: background-color 0.15s ease;
}
.btn:hover {
  background: var(--orange-600);
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--orange-glow);
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.legal {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--text-4);
  text-wrap: pretty;
}

/* ============================================================
   DESKTOP  (≥1000px)  — stage becomes the page background,
   form docks to a translucent right rail
   ============================================================ */
@media (max-width: 1000px) {
  .left .stage-copy {
    display: none;
  }
}
@media (min-width: 1000px) {
  .topbar {
    height: 56px;
    padding: 0 24px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .live {
    display: flex;
  }
  .page {
    overflow: hidden;
  }
  .stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    aspect-ratio: auto;
  }
  .stage::after {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.25) 100%);
  }
  .chip {
    display: none;
  }
  .stage-copy,
  .rail,
  .join {
    position: relative;
    z-index: 2;
  }
  .layout {
    flex-direction: row;
    align-items: stretch;
  }
  .left {
    width: 56%;
    min-width: 0;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
  }
  .stage-copy {
    position: static;
    inset: auto;
    gap: 16px;
    pointer-events: auto;
  }
  .stage-title {
    font-size: 42px;
    line-height: 1.03;
    max-width: 20ch;
  }
  .stage-meta {
    font-size: 12px;
  }
  .stage-lede {
    display: block;
  }
  .rail {
    border-bottom: 0;
    padding: 0;
    gap: 10px;
  }
  .rail-head {
    padding: 0;
  }
  .rail-track {
    padding: 0 0 6px;
    gap: 10px;
  }
  .thumb {
    width: 158px;
  }
  .thumb-name {
    font-size: 11.5px;
  }
  .thumb-sub {
    font-size: 9.5px;
  }
  .join {
    width: 44%;
    flex: none;
    min-width: 0;
    overflow-y: auto;
    padding: 32px 36px;
    gap: 16px;
    background: rgba(11, 13, 16, 0.86);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
  .join-title {
    font-size: 22px;
  }
  .input {
    height: 48px;
    font-size: 14px;
  }
  .btn {
    min-height: 50px;
    font-size: 14.5px;
  }
  .plans[data-collapsed] .plan {
    display: flex;
  } /* always show all 3 on desktop */
  .plans-toggle {
    display: none;
  }
  .legal {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-1);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  .stage-img {
    opacity: 1;
  }
  .stage-img:not([data-current]) {
    display: none;
  }
}
