/* Start free = get in line: the join dialog (the idea and the email, then the confirm email) and
   the spot, a full-screen moment at sunrise. Only tokens; the yellow is a fill, or text on dark. */

/* The join dialog */
.wl {
  position: relative;
  max-height: calc(100dvh - 2 * var(--gutter));
  overflow-y: auto;
  background:
    radial-gradient(
      120% 70% at 50% -20%,
      color-mix(in srgb, var(--sun-amber) 22%, transparent),
      transparent 62%
    ),
    var(--surface);
}
.wl-x {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
}
.wl-step {
  display: grid;
  gap: var(--space-5);
}
.wl-step[hidden] {
  display: none;
}
.wl h2 {
  margin: 0;
  padding-right: var(--space-10);
  font-size: var(--size-h3);
}
.wl-doors {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.wl-doors i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: wl-pulse 2.4s var(--ease-out) infinite;
}
@keyframes wl-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}
.wl-lead {
  color: var(--text-muted);
  font-size: 16px;
  line-height: var(--leading-ui);
}
.wl-lead b {
  color: var(--text-strong);
  font-weight: var(--weight-medium);
  overflow-wrap: anywhere;
}
.wl-opt {
  color: var(--text-subtle);
  font-weight: var(--weight-regular);
}
.wl .textarea {
  min-height: 0;
  resize: none;
}
.wl-err {
  min-height: 0;
  font-size: 13px;
  color: var(--danger);
}
.wl-err:empty {
  display: none;
}
.wl-micro {
  margin-top: calc(-1 * var(--space-2));
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}
.wl-inbox {
  justify-self: start;
}
.wl-inbox .icon {
  width: 14px;
  height: 14px;
}

/* The confirm email, as it arrives (the draft shows it in place) */
.wl-mail {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border: var(--border) dashed var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--bg-canvas);
}
.wl-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-subtle);
}
.wl-from {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
}
.wl-from img {
  width: 24px;
  height: 24px;
}
.wl-from b {
  color: var(--text-strong);
}
.wl-from small {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-subtle);
}
.wl-subject {
  font-size: 17px;
  color: var(--text-strong);
  font-weight: var(--weight-semibold);
}
.wl-mail p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: var(--leading-ui);
}
.wl-mail .btn {
  justify-self: start;
}
.wl-link {
  justify-self: start;
  min-height: var(--target);
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-strong);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* The spot: full screen, at sunrise */
.spotview {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg-canvas);
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.spotview::backdrop {
  background: var(--sun-night);
}
.sv-sky {
  position: absolute;
  inset: 0 0 auto;
  height: 800px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 74%, transparent);
  mask-image: linear-gradient(#000 74%, transparent);
}
.sv-sun {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
.sv-x {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 3;
}
.sv-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-10);
  width: min(100% - 2 * var(--gutter), 960px);
  margin-inline: auto;
  padding: var(--space-20) 0 var(--space-16);
}

.sv-head {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  text-align: center;
}
.sv-ok {
  border-color: var(--accent-line);
  background: var(--accent-tint);
  color: var(--accent-text);
}
.sv-ok .icon {
  width: 14px;
  height: 14px;
}
.sv-label {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
.sv-num {
  margin: 0;
  font-size: clamp(112px, 17vw, 196px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
  text-shadow: 0 0 64px color-mix(in srgb, var(--sun-amber) 50%, transparent);
}
.sv-num:focus {
  outline: none;
}
.sv-num > [aria-hidden]:not([data-rank]) {
  margin-right: 0.04em;
  font-size: 0.45em;
  vertical-align: 0.75em;
  color: var(--text-muted);
}
.sv-num.up {
  animation: sv-glow 1100ms var(--ease-out);
}
@keyframes sv-glow {
  30% {
    text-shadow: 0 0 96px color-mix(in srgb, var(--sun-hot) 90%, transparent);
    transform: scale(1.04);
  }
}
.sv-of {
  font-size: 17px;
  color: var(--text-muted);
}
.sv-quip {
  margin-top: var(--space-2);
  font-size: 19px;
  font-weight: var(--weight-medium);
  color: var(--text-strong);
}

/* The ticket */
.sv-ticket {
  position: relative;
  justify-self: center;
  width: min(100%, 760px);
  margin-top: var(--space-8);
}
.sv-ape {
  position: absolute;
  z-index: 2;
  top: -86px;
  right: 34px;
  width: 128px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}
.sv-pass {
  --stub: 216px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub);
  overflow: hidden;
  border-radius: 20px;
  border: var(--border) solid var(--line-strong);
  background:
    radial-gradient(
      90% 140% at 0% 0%,
      color-mix(in srgb, var(--sun-amber) 14%, transparent),
      transparent 60%
    ),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-window);
  -webkit-mask:
    radial-gradient(circle 13px at calc(100% - var(--stub)) 0, transparent 97%, #000) top / 100% 51%
    no-repeat,
    radial-gradient(circle 13px at calc(100% - var(--stub)) 100%, transparent 97%, #000) bottom /
    100% 51% no-repeat;
  mask:
    radial-gradient(circle 13px at calc(100% - var(--stub)) 0, transparent 97%, #000) top / 100% 51%
    no-repeat,
    radial-gradient(circle 13px at calc(100% - var(--stub)) 100%, transparent 97%, #000) bottom /
    100% 51% no-repeat;
}
/* One sweep of light across the ticket as it lands */
.sv-pass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.09) 50%,
    transparent 62%
  );
  transform: translateX(-110%);
  pointer-events: none;
}
.sv-main {
  display: grid;
  align-content: center;
  gap: var(--space-3);
  padding: var(--space-10) var(--space-8);
}
.sv-k {
  font-family: var(--font-mono);
  font-size: var(--size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent-text);
}
.sv-idea {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.22;
  letter-spacing: var(--tracking-heading);
  font-weight: var(--weight-semibold);
  color: var(--text-strong);
  overflow-wrap: anywhere;
}
.sv-idea.empty {
  color: var(--text-muted);
}
.sv-saved {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--text-muted);
}
.sv-saved .icon {
  width: 16px;
  height: 16px;
  color: var(--text-strong);
}
.sv-stub {
  display: grid;
  align-content: center;
  gap: var(--space-4);
  margin: 0;
  padding: var(--space-16) var(--space-6) var(--space-8);
  border-left: 2px dashed var(--line-strong);
}
.sv-stub dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-subtle);
}
.sv-stub dd {
  margin: 2px 0 0;
  white-space: nowrap;
  font-size: 20px;
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}
.sv-stub dd[data-code] {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* Move up, and what happens next */
.sv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.sv-card {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  padding: var(--space-8);
  border: var(--border) solid var(--line);
  border-radius: var(--radius-window);
  background: var(--surface);
}
.sv-card h3,
.sv-perks h3 {
  font-size: var(--size-h4);
}
.sv-jump {
  font-size: 21px;
  line-height: 1.35;
  font-weight: var(--weight-medium);
  color: var(--text-strong);
}
.sv-jump b {
  color: var(--accent-text);
  font-weight: var(--weight-semibold);
}
.sv-share {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2);
}
.sv-share .input {
  font-family: var(--font-mono);
  font-size: 14px;
}
.sv-code {
  font-size: 15px;
  color: var(--text-muted);
}
.sv-code b {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--text-strong);
}
.sv-miles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sv-track {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sv;
}
.sv-track li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 0 0 var(--space-5) 44px;
  counter-increment: sv;
}
.sv-track li:last-child {
  padding-bottom: 0;
}
.sv-track li::before {
  content: counter(sv);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: var(--border) solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.sv-track li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}
.sv-track .done::before {
  content: "✓";
  border-color: transparent;
  background: var(--accent);
  color: var(--text-on-accent);
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
}
.sv-track .done::after {
  background: var(--accent) !important;
}
.sv-track .now::before {
  border-color: var(--accent);
  color: var(--text-strong);
  animation: wl-pulse 2.4s var(--ease-out) infinite;
}
.sv-track b {
  font-size: 16px;
  color: var(--text-strong);
}
.sv-track span {
  font-size: 14px;
  line-height: var(--leading-ui);
  color: var(--text-muted);
}

/* The perks */
.sv-perks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8);
  border: var(--border) solid var(--accent-line);
  border-radius: var(--radius-window);
  background: linear-gradient(110deg, var(--accent-tint), transparent 70%), var(--surface);
}
.sv-perks p {
  margin-top: var(--space-2);
  font-size: 15px;
  line-height: var(--leading-ui);
  color: var(--text-muted);
}
.sv-tiers {
  display: flex;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sv-tiers li {
  display: grid;
  gap: 2px;
  padding: var(--space-3) var(--space-4);
  border: var(--border) solid var(--line-strong);
  border-radius: var(--radius-card);
  background: var(--bg-canvas);
  text-align: center;
  transition:
    background var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out);
}
.sv-tiers b {
  font-size: 15px;
  color: var(--text-strong);
  white-space: nowrap;
}
.sv-tiers span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.sv-tiers .on {
  border-color: transparent;
  background: var(--accent);
}
.sv-tiers .on b,
.sv-tiers .on span {
  color: var(--text-on-accent);
}

.sv-end {
  display: grid;
  justify-items: center;
  gap: var(--space-6);
  padding-top: var(--space-6);
  text-align: center;
}
.sv-end h2 {
  font-size: var(--size-h2);
}
.sv-end .fine-print {
  max-width: 560px;
}

.sv-toast {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: var(--space-6);
  max-width: calc(100% - 2 * var(--gutter));
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--text-strong);
  color: var(--bg-canvas);
  font-size: 15px;
  font-weight: var(--weight-medium);
  text-align: center;
  opacity: 0;
  translate: -50% 16px;
  pointer-events: none;
  transition:
    opacity var(--duration-base) var(--ease-out),
    translate var(--duration-base) var(--ease-rise);
}
.sv-toast.show {
  opacity: 1;
  translate: -50% 0;
}

/* The arrival: the sun rises (the SVG's own animation), then the number, the ticket, the ape */
.spotview.rise .sv-head > *,
.spotview.rise .sv-grid,
.spotview.rise .sv-perks,
.spotview.rise .sv-end {
  animation: sv-in 800ms var(--ease-rise) both;
}
.spotview.rise .sv-head > :nth-child(1) {
  animation-delay: 150ms;
}
.spotview.rise .sv-head > :nth-child(2) {
  animation-delay: 300ms;
}
.spotview.rise .sv-num {
  animation: sv-num 1100ms var(--ease-rise) 350ms both;
}
.spotview.rise .sv-head > :nth-child(4) {
  animation-delay: 700ms;
}
.spotview.rise .sv-head > :nth-child(5) {
  animation-delay: 1300ms;
}
.spotview.rise .sv-ticket {
  animation: sv-ticket 1000ms var(--ease-rise) 1000ms both;
}
.spotview.rise .sv-pass::after {
  animation: sv-sheen 1400ms var(--ease-out) 1900ms both;
}
.spotview.rise .sv-ape {
  animation: sv-ape 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 1700ms both;
}
.spotview.rise .sv-grid {
  animation-delay: 1500ms;
}
.spotview.rise .sv-perks {
  animation-delay: 1650ms;
}
.spotview.rise .sv-end {
  animation-delay: 1800ms;
}
@keyframes sv-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes sv-num {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
    filter: blur(8px);
  }
}
@keyframes sv-ticket {
  from {
    opacity: 0;
    transform: translateY(48px) rotate(-2.5deg);
  }
}
@keyframes sv-sheen {
  to {
    transform: translateX(110%);
  }
}
@keyframes sv-ape {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.7) rotate(8deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spotview *,
  .wl-doors i {
    animation: none !important;
  }
}

@media (max-width: 720px) {
  .wl {
    padding: var(--space-6);
  }
  .sv-wrap {
    gap: var(--space-8);
    padding-top: var(--space-16);
  }
  .sv-sky {
    height: 520px;
  }
  .sv-ticket {
    margin-top: var(--space-12);
  }
  .sv-ape {
    top: -64px;
    right: 14px;
    width: 92px;
  }
  .sv-pass {
    grid-template-columns: 1fr;
    -webkit-mask: none;
    mask: none;
  }
  .sv-main {
    padding: var(--space-8) var(--space-6) var(--space-6);
  }
  .sv-stub {
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6);
    border-left: 0;
    border-top: 2px dashed var(--line-strong);
  }
  .sv-stub dd {
    font-size: 17px;
  }
  .sv-grid,
  .sv-perks {
    grid-template-columns: 1fr;
  }
  .sv-card,
  .sv-perks {
    padding: var(--space-6);
  }
  .sv-perks {
    gap: var(--space-5);
  }
  .sv-tiers {
    flex-wrap: wrap;
  }
  .sv-tiers li {
    flex: 1 1 0;
    padding-inline: var(--space-2);
  }
  .sv-tiers b {
    font-size: 14px;
  }
  .sv-end h2 {
    font-size: var(--size-h3);
  }
}

/* Live (buffape.com/next): the bot check, the share row, who's signed in and the page's toast */
.wl-bot:empty {
  display: none;
}
.wl-checking {
  margin-top: calc(-1 * var(--space-2));
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}
.wl-checking[hidden],
.sv-saved[hidden],
.sv-ok[hidden],
.sv-of[hidden],
.sv-perks[hidden],
.sv-num [hidden] {
  display: none;
}
.wl .fine-print a {
  color: var(--text);
}
.sv-shares {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.sv-shares .btn {
  --btn-h: var(--target);
  min-height: var(--target);
}
.sv-who {
  font-size: 14px;
  color: var(--text-muted);
}
.sv-who span {
  color: var(--text-strong);
  overflow-wrap: anywhere;
}
.sv-who .wl-link {
  display: inline-flex;
  align-items: center;
}
.wl-toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: var(--space-6);
  max-width: calc(100% - 2 * var(--gutter));
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  background: var(--text-strong);
  color: var(--bg-canvas);
  font-size: 15px;
  font-weight: var(--weight-medium);
  text-align: center;
  opacity: 0;
  translate: -50% 16px;
  pointer-events: none;
  transition:
    opacity var(--duration-base) var(--ease-out),
    translate var(--duration-base) var(--ease-rise);
}
.wl-toast.show {
  opacity: 1;
  translate: -50% 0;
}

/* The terms, the privacy notice and the referral rules (legal.js; the words are the catalog's) */
.wl.legal[open] {
  display: grid;
  gap: var(--space-5);
}
.wl.legal h2 {
  padding-inline-end: var(--space-8);
}
.wl-legal {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding-inline-start: var(--space-5);
  color: var(--text-muted);
  font-size: 15px;
  line-height: var(--leading-ui);
}
.wl.legal > .btn-secondary {
  justify-self: end;
}

/* After "check your email": send it again, use another address, or meet the team meanwhile. */
.wl-again {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-3);
  color: var(--text-subtle);
}
.wl-discord a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--target);
  color: var(--text-strong);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.wl-discord a:hover {
  color: var(--accent-text);
}

/* The spot's first row: what they'll build, and Discord when it's set. */
/* Under the ticket, so the sunrise's rim stays clear of words. */
.sv-lead {
  max-width: 560px;
  margin: var(--space-10) auto var(--space-6);
  text-align: center;
  font-size: var(--size-body);
  color: var(--text-muted);
}
.sv-first {
  margin-bottom: var(--space-4);
}
.sv-first:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
}
.sv-project form {
  display: grid;
  gap: var(--space-3);
}
.sv-project label {
  font-size: 15px;
  color: var(--text-muted);
}
.sv-project textarea {
  min-height: 88px;
  resize: vertical;
  font: inherit;
}
.sv-project .btn,
.sv-discord .btn {
  justify-self: start;
}
.sv-discord p {
  color: var(--text-muted);
}
