/* ==========================================================================
   LifyX — token listing page. Everything here sits on top of the homepage's
   own layers (tokens, base, components, sections, responsive): the header
   pills, CTA, glass cards, stat band, network marquee, FAQ and footer are
   theirs, unchanged. This file adds only what the listing page has and the
   homepage does not — the reach diagram, the steps and the form.

   Same frame as the homepage's in-flow content: a 96.667vw column with a
   2.222vw inner gutter on the artboard, rem/px stacks below 1024.
   ========================================================================== */

:root {
  --danger: #ff7b7b;
  --field-bg: #0a0a0d;
  --field-line: rgba(253, 253, 253, 0.16);
  --radius-field: 0px;
  --radius-panel: 0px;
}

/* No WebGL stage on this page: the scene's resting colour, painted once.
   The same wash body.no-scene uses on the homepage. */
body.listing {
  background:
    radial-gradient(90% 60% at 78% 0%, rgba(88, 46, 255, 0.22) 0%, transparent 60%),
    radial-gradient(120% 80% at 50% 0%, #170a2b 0%, #07040f 50%, #000 100%) no-repeat;
  background-color: var(--black);
}

/* The bar arrives as on the homepage: html.is-ready (set by js/listing.js
   once fonts are in) clears the homepage's own translate and fades it in.
   No override here — one used to sit at (0,2,0) and lose to the homepage's
   html:not(.is-ready) .bar at (0,2,1), parking the bar 8px high for good. */

/* Until js/listing.js arms the reveals, their targets are not painted. */
html.lx-arming [data-flow] { opacity: 0; }
/* Scroll restoration on reload must land, not glide down from the top. */
html.lx-loading { scroll-behavior: auto; }
.bar__nav a[aria-current="page"] { color: var(--chalk); background: rgba(255, 255, 255, 0.08); }
.sheet nav a[aria-current="page"] { color: var(--signal); }

/* Content floats over the fixed scene canvas, as .flow does on the homepage. */
.lst { position: relative; z-index: var(--z-flow); }
.lst [id] { scroll-margin-top: 6rem; }

.lst-hero,
.lst-band,
.lst-sect,
.apply {
  width: 96.667vw;
  margin-inline: auto;
  padding-inline: 2.222vw;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.lst-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2vw;
  min-height: min(100svh, 62vw);
  padding-top: 9rem;
  padding-bottom: 4vw;
}

.lst-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6vw;
  color: var(--chalk-55);
  font-size: max(12px, 0.833vw);
  letter-spacing: var(--track-hud);
}
.lst-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: var(--glow-signal);
}

.lst-hero__title { font-size: max(2.5rem, 5.2vw); }
.lst-hero__title .hl { font-weight: 400; }
.lst-hero__line { display: block; }

.lst-hero__body {
  max-width: 34vw;
  margin-top: 2vw;
}

.lst-hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5vw;
  margin-top: 2.6vw;
}

.lst-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: max(15px, 1.111vw);
  color: var(--chalk-70);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease-out);
}
.lst-link:hover { color: var(--signal); }

/* --- Reach: one mark, sixty venues -------------------------------------- */

.reach {
  position: relative;
  justify-self: center;
  width: min(100%, 42vw);
  aspect-ratio: 1;
}

.reach__svg { width: 100%; height: 100%; overflow: visible; }

/* With the WebGL scene running, the slot is a window onto it: the scene draws
   the form into this box (js/listing-scene.js). The SVG ring and the mark are
   the fallback for no JS, no WebGL or a failed shader — body.has-scene is set
   only once the scene has actually built. */
.has-scene .reach__svg,
.has-scene .reach__mark { visibility: hidden; }

.reach__orbit {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}
.reach__orbit--inner { stroke: var(--line-soft); stroke-dasharray: 2 6; }

.reach__spokes {
  fill: none;
  stroke: rgba(108, 243, 163, 0.12);
  stroke-width: 0.75;
}

/* Sixty venues lit in turn — a slow sweep, not a spinner. */
.reach__net circle {
  fill: rgba(253, 253, 253, 0.35);
  animation: reach-pulse 6s var(--ease-out) infinite;
  animation-delay: calc(var(--i) * 0.1s);
}

@keyframes reach-pulse {
  0%, 12%, 100% { fill: rgba(253, 253, 253, 0.35); }
  3%            { fill: var(--signal); }
}

.reach__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22%;
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 2.5vw rgba(88, 46, 255, 0.55));
}

.reach__caption {
  position: absolute;
  left: 50%;
  bottom: -0.5rem;
  transform: translateX(-50%);
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  background: rgba(5, 3, 12, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--font-tag);
  font-size: max(12px, 0.833vw);
  letter-spacing: var(--track-hud);
  text-transform: uppercase;
  color: var(--chalk-70);
  white-space: nowrap;
}
.reach__caption b { font-weight: 500; color: var(--chalk); }

/* --------------------------------------------------------------------------
   Band, sections, cards, steps
   -------------------------------------------------------------------------- */

.lst-band { padding-block: 2vw 4vw; }

.lst-sect { padding-block: 5vw 2vw; }

.lst-sect__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3vw;
  margin-bottom: 2.6vw;
}
.lst-sect__title { font-size: max(2rem, 3.6vw); }
.lst-sect__note { max-width: 28vw; }

.lst-cards .gcard { border-radius: 0px; padding: 1.8vw 1.8vw 2vw; }
.lst-card__title {
  margin-top: 1.4vw;
  font-size: max(18px, 1.5vw);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.lst-cards .gcard__detail { margin-top: 0.8vw; line-height: 1.5; color: var(--chalk-70); }

.lst-networks { padding-top: 5vw; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.steps__item {
  padding: 1.8vw 2vw 0 0;
}
.steps__item + .steps__item { padding-left: 2vw; border-left: 1px solid var(--line-soft); }
.steps__num {
  font-family: var(--font-tag);
  font-size: max(12px, 0.833vw);
  letter-spacing: var(--track-hud);
  color: var(--signal);
}
.steps__title {
  margin-top: 1.2vw;
  font-size: max(20px, 1.8vw);
  font-weight: 300;
  letter-spacing: var(--track-title);
}
.steps__body {
  margin-top: 0.6vw;
  max-width: 24vw;
  color: var(--chalk-70);
}

/* --------------------------------------------------------------------------
   Application — black panel, rounded fields, one solid button.
   -------------------------------------------------------------------------- */

.apply {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 4vw;
  align-items: start;
  margin-top: 6vw;
  padding-block: 4vw;
}

.apply__title { font-size: max(2rem, 3.6vw); }
.apply__lede { max-width: 28vw; margin-top: 1.4vw; }

.apply__points {
  display: grid;
  gap: 0.9rem;
  margin-top: 2.2vw;
}
.apply__points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--chalk-70);
}
.apply__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.35rem;
  border-left: 1.5px solid var(--signal);
  border-bottom: 1.5px solid var(--signal);
  transform: rotate(-45deg);
}

.apply__panel {
  padding: 2.6vw;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--black);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 40px 120px -40px rgba(88, 46, 255, 0.45);
}

.form { display: grid; gap: 1.25rem; }
.form[hidden] { display: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.field { display: grid; gap: 0.5rem; align-content: start; }

.field__label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: max(14px, 0.9375rem);
  color: var(--chalk);
}
.field__req { color: var(--signal); }
.field__opt {
  margin-left: auto;
  font-family: var(--font-tag);
  font-size: max(11px, 0.75rem);
  letter-spacing: var(--track-hud);
  text-transform: uppercase;
  color: var(--chalk-35);
}

/* 16px minimum on the input itself: anything smaller and iOS zooms the
   page on focus. */
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-field);
  background: var(--field-bg);
  color: var(--chalk);
  font: inherit;
  font-size: max(16px, 1rem);
  line-height: 1.3;
  outline: none;
  transition: border-color var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out),
              background-color var(--t-fast) var(--ease-out);
}
.field__input::placeholder { color: var(--chalk-35); }
.field__input:hover { border-color: rgba(253, 253, 253, 0.3); }
.field__input:focus,
.field__input:focus-visible {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(108, 243, 163, 0.16);
  background: #0d0d11;
}
.field__input:-webkit-autofill {
  -webkit-text-fill-color: var(--chalk);
  -webkit-box-shadow: 0 0 0 100px var(--field-bg) inset;
  caret-color: var(--chalk);
}

.field.is-invalid .field__input { border-color: var(--danger); }
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 3px rgba(255, 123, 123, 0.16); }

.field__error {
  min-height: 0;
  font-size: max(13px, 0.8125rem);
  color: var(--danger);
}
.field__error:empty { display: none; }

.form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__privacy {
  font-size: max(13px, 0.8125rem);
  line-height: 1.55;
  color: var(--chalk-55);
}
.form__privacy a {
  color: var(--chalk);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--chalk-35);
}
.form__privacy a:hover { color: var(--signal); text-decoration-color: currentColor; }

.form__captcha { display: grid; gap: 0.5rem; min-height: 65px; }

/* The bar's solid pill, at form scale: the one filled thing on the panel. */
.form__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 56px;
  border-radius: 9999px;
  background: var(--chalk);
  color: var(--ink);
  font-size: max(15px, 1rem);
  font-weight: 500;
  transition: background-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              opacity var(--t-fast) var(--ease-out);
}
.form__submit:hover { background: var(--signal); color: #06130b; }
.form__submit:disabled { cursor: progress; opacity: 0.7; }
.form__submit:disabled:hover { background: var(--chalk); color: var(--ink); }

.form__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: lst-spin 0.8s linear infinite;
}
.form.is-sending .form__spinner { display: block; }

@keyframes lst-spin { to { transform: rotate(360deg); } }

.form__status {
  font-size: max(14px, 0.875rem);
  color: var(--chalk-70);
}
.form__status:empty { display: none; }
.form__status.is-error { color: var(--danger); }
.form__status a { text-decoration: underline; }

/* --- Confirmation ------------------------------------------------------- */

.done {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding-block: 1rem;
  outline: none;
}
.done[hidden] { display: none; }
.done__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(108, 243, 163, 0.5);
  border-radius: 50%;
  color: var(--signal);
  box-shadow: 0 0 30px rgba(108, 243, 163, 0.18);
}
.done__icon svg { width: 26px; height: 26px; }
.done__title {
  font-size: max(26px, 2.4vw);
  font-weight: 300;
  letter-spacing: var(--track-title);
  line-height: 1.1;
}
.done__body { max-width: 34rem; color: var(--chalk-70); }
.done .cta { margin-top: 0.5rem; }

.lst-faq { padding-top: 6vw; }

/* --------------------------------------------------------------------------
   Below the artboard — purpose-built stacks, in rem/px like responsive.css.
   -------------------------------------------------------------------------- */

@media (max-width: 1023.98px) {
  .lst-hero,
  .lst-band,
  .lst-sect,
  .apply {
    width: calc(100% - 3rem);
    padding-inline: 0;
  }

  .lst-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 3rem;
    padding-top: 7.5rem;
    padding-bottom: 2.5rem;
  }
  .lst-eyebrow { margin-bottom: 1.25rem; font-size: 0.75rem; }
  .lst-hero__title { font-size: 3.25rem; }
  .lst-hero__body { max-width: 36rem; margin-top: 1.25rem; }
  .lst-hero__cta { gap: 1.25rem; margin-top: 1.75rem; }
  .lst-hero__cta .cta { min-height: 48px; padding: 0.75rem 1.4rem; gap: 0.6rem; }

  .reach { width: min(100%, 26rem); }
  .reach__mark { filter: drop-shadow(0 0 24px rgba(88, 46, 255, 0.55)); }
  .reach__caption { font-size: 0.75rem; }

  .lst-band { padding-block: 1.5rem 2.5rem; }

  .lst-sect { padding-block: 3rem 1rem; }
  .lst-sect__head { flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.75rem; }
  .lst-sect__title, .apply__title { font-size: 2.25rem; }
  .lst-sect__note, .apply__lede { max-width: 36rem; }

  .lst-cards .gcard { padding: 1.25rem 1.25rem 1.4rem; }
  .lst-card__title { margin-top: 0.75rem; font-size: 1.125rem; }
  .lst-cards .gcard__detail { margin-top: 0.4rem; }

  .lst-networks { padding-top: 3rem; }

  .steps { grid-template-columns: 1fr; }
  .steps__item, .steps__item + .steps__item {
    padding: 1.25rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .steps__num { font-size: 0.75rem; }
  .steps__title { margin-top: 0.5rem; font-size: 1.5rem; }
  .steps__body { margin-top: 0.35rem; max-width: 36rem; }

  .apply {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-block: 2rem;
  }
  .apply__lede { margin-top: 1rem; }
  .apply__points { margin-top: 1.5rem; }
  .apply__panel { padding: 1.75rem; }

  .done__title { font-size: 1.75rem; }

  .lst-faq { padding-top: 3rem; }
}

@media (max-width: 639.98px) {
  .lst-hero,
  .lst-band,
  .lst-sect,
  .apply { width: calc(100% - 2rem); }

  .lst-hero { padding-top: 6.5rem; }
  .lst-hero__title { font-size: 2.6rem; }

  .apply__panel { padding: 1.25rem; border-radius: 22px; }
  .form__row { grid-template-columns: 1fr; }
}

@media (max-width: 359.98px) {
  .lst-hero__title { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reach__net circle { animation: none; }
  .form__spinner { animation: none; border-right-color: currentColor; opacity: 0.6; }
}
