/* Coming-soon page (docs/LANDING.md). Builds on site.css: same fonts, gold frames and buttons. */
.soon {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas: 'copy art';
  align-items: stretch;
  min-height: 640px;
  margin-bottom: 8px;
  background:
    radial-gradient(ellipse at 18% 0, #2a65cf 0, transparent 52%),
    radial-gradient(ellipse at 0 100%, #0e2f73 0, transparent 60%), #0b2a68;
  isolation: isolate;
}
.soon-copy {
  grid-area: copy;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px 40px 48px;
}
.soon-art {
  grid-area: art;
  position: relative;
  min-height: 100%;
  overflow: hidden;
}
.soon-art img {
  /* The whole scene (phone, Cookie, paw) stands on the bottom edge; its top and left melt into the panel. */
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 9%), linear-gradient(180deg, transparent 0, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 9%), linear-gradient(180deg, transparent 0, #000 22%);
  mask-composite: intersect;
}
/* Marquee lights: a row of gold bulbs along the top and bottom rails, chasing each other. */
.marquee {
  position: absolute;
  left: 26px;
  right: 26px;
  z-index: 3;
  height: 12px;
  background: radial-gradient(
      circle at 50% 50%,
      #fff7c7 0 2.5px,
      #ffcf5a 3.5px,
      #b9791a 5px,
      transparent 6px
    )
    0 0 / 24px 12px repeat-x;
  filter: drop-shadow(0 0 3px #ffc94d);
  animation: chase 2.4s steps(6) infinite;
  pointer-events: none;
}
.marquee-top {
  top: 9px;
}
.marquee-bottom {
  bottom: 9px;
  animation-direction: reverse;
}
@keyframes chase {
  to {
    background-position: 24px 0;
  }
}
.soon .frame-star {
  z-index: 3;
}
.soon .star-left {
  left: 14px;
  bottom: 26px;
}
.soon .star-right {
  right: 14px;
  top: 26px;
}
.soon .coming-badge {
  margin-bottom: 14px;
  font-size: 12px;
  padding: 4px 14px;
  box-shadow: 0 2px 0 #6d4a12;
}
.soon h1 {
  margin: 0 0 14px;
  font-size: 50px;
  line-height: 1.04;
}
.soon h1 span {
  display: block;
}
.soon-lead {
  max-width: 520px;
  margin: 0;
  color: #e8efff;
  font-size: 17px;
  line-height: 1.45;
}

/* The sign-up: a velvet panel in a gold rim. */
.join {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-top: 20px;
  padding: 20px 20px 18px;
  border: 3px solid #efc365;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% -25%, #9b2147 0, transparent 62%),
    repeating-linear-gradient(45deg, #ffffff0a 0 2px, transparent 2px 7px),
    linear-gradient(#5c1030, #2a0616);
  box-shadow:
    0 0 0 1px #55360f,
    inset 0 0 0 2px #3a0a1b,
    inset 0 2px 0 #ffffff29,
    0 16px 34px #02082080;
}
.join-title {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.15;
  color: var(--gold);
  text-shadow: 0 2px 0 #3a0a1b;
}
.field label,
.platforms legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  color: #ffe9b0;
  font-size: 14px;
  letter-spacing: 0.3px;
}
.field input {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 10px 16px;
  border: 3px solid #efc365;
  border-radius: 13px;
  background: #fff7de;
  color: #2b1a05;
  font: inherit;
  font-size: 18px;
  box-shadow: inset 0 3px 0 #0000001a;
}
.field input::placeholder {
  color: #6b5832;
  opacity: 1;
}
.field input:focus-visible,
.field input[aria-invalid='true']:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.field input[aria-invalid='true'] {
  border-color: #ff9a92;
}
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}
.platforms legend {
  flex-basis: 100%;
  float: left;
  width: 100%;
}
.platform {
  position: relative;
  flex: 1 1 0;
  min-width: 88px;
}
.platform input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.platform span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 12px;
  border: 2px solid #efc365;
  border-radius: 12px;
  background: #3e0c20;
  color: #fff2c8;
  font-family: CasinoDisplay, Arial, sans-serif;
  font-size: 17px;
  text-align: center;
}
.platform input:checked + span {
  background: linear-gradient(#ffeaa7, #ecb641 60%, #d69525);
  color: #513406;
  box-shadow: 0 2px 0 #855020;
}
.platform input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
/* The robot trap: out of sight and out of the tab order. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.join-button {
  width: 100%;
  min-height: 60px;
  margin-top: 16px;
  padding-inline: 18px;
  border: 3px solid #f6d37a;
  line-height: 1.1;
}
.join-button .join-label {
  font-size: 22px;
}
.join-button:disabled {
  filter: grayscale(0.4) brightness(0.9);
  cursor: progress;
}
.join-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.consent {
  margin: 12px 0 0;
  color: #f3dfc9;
  font-size: 13px;
  line-height: 1.45;
}
.consent a {
  color: #fff2c8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* The four answers. Hidden until the script (class .show) or the address (:target) picks one. */
.wl-msg {
  display: none;
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 2px solid;
  border-radius: 13px;
  font-size: 16px;
  line-height: 1.45;
  scroll-margin-top: 24px;
}
.wl-msg:target,
.wl-msg.show {
  display: block;
}
.wl-msg.hide {
  display: none;
}
.wl-ok {
  border-color: #86e8aa;
  background: #0d3b21;
  color: #eafff1;
}
.wl-bad {
  border-color: #ff9a92;
  background: #4b1019;
  color: #fff1ef;
}
.wl-msg:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
/* Done: the form gives way to the confirmation. */
.join.is-done .join-form,
.join:has(#waitlist-ok:target) .join-form {
  display: none;
}

/* What is coming. */
.preview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.preview-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 26px;
  background: radial-gradient(ellipse at 50% 0, #235dbe, #0c2b69 78%);
  text-align: center;
}
.preview-list img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 8px #03153877);
}
.preview-list h3 {
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--gold);
  text-shadow: 0 2px #071d43;
}
.preview-list p {
  margin: 0;
  max-width: 28ch;
  color: #e3ebff;
  font-size: 16px;
}
.preview-note {
  max-width: 640px;
  margin: 26px auto 0;
  color: #d4e1ff;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 1000px) {
  .soon {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      'art'
      'copy';
    min-height: 0;
  }
  .soon-art {
    min-height: 0;
    aspect-ratio: 1200 / 800;
    max-height: 420px;
    width: 100%;
  }
  .soon-art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 36% 36%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .soon-art {
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
  .soon-copy {
    padding: 8px 32px 46px;
    align-items: center;
    text-align: center;
  }
  .soon-lead {
    max-width: 560px;
  }
  .join {
    text-align: left;
  }
  .preview-list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    margin-inline: auto;
  }
}
@media (max-width: 640px) {
  .soon {
    border-radius: 22px;
  }
  .soon-art {
    aspect-ratio: 1200 / 860;
  }
  .soon-copy {
    padding: 4px 16px 40px;
  }
  .soon h1 {
    font-size: 38px;
  }
  .soon-lead {
    font-size: 16px;
  }
  .join {
    margin-top: 20px;
    padding: 18px 14px 16px;
  }
  .join-title {
    font-size: 23px;
  }
  .join-button .join-label {
    font-size: 19px;
  }
  .marquee {
    left: 18px;
    right: 18px;
  }
}
@media (max-width: 380px) {
  .soon h1 {
    font-size: 33px;
  }
  .platforms {
    gap: 6px;
  }
  .platform {
    min-width: 0;
  }
  .platform span {
    padding: 0 2px;
    font-size: 14px;
  }
  .preview .section-heading {
    gap: 12px;
  }
  .preview .section-heading h2 {
    font-size: 26px;
    white-space: nowrap;
  }
  .preview .heading-line {
    width: 28px;
  }
  .join-button .join-label {
    font-size: 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
  }
}
