/* Section 6 — Waitlist CTA (replaces gallery.css) */
.waitlist {
  /* Dreamy pastel sky background. Fallback lilac matches the image's upper band
     so the section blends before the webp loads. */
  background: #d9cdf2 url('../assets/cta-sky-bg.webp') center / cover no-repeat;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Feathered top edge: the sky image's top band is a more-saturated purple than
   the Section-5 bottom (#d9cdf2), which left a hard horizontal seam. This layer
   paints the exact Section-5 lilac at the very top, fading to transparent, so
   the boundary dissolves and the saturated sky eases in below it. Sits above
   the image, below the content (.waitlist-inner z-index:1). */
.waitlist::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 240px;
  background: linear-gradient(
    180deg,
    #d9cdf2 0%,
    rgba(217, 205, 242, 0.7) 40%,
    rgba(217, 205, 242, 0) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.waitlist-inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
  position: relative;
  z-index: 1;
}

.waitlist h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-heading);
  color: var(--c-navy);
  line-height: 1.1;
}

.waitlist-sub {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  color: var(--c-slate);
  max-width: 460px;
  margin: var(--sp-sm) auto var(--sp-md);
  line-height: 1.6;
}

.waitlist-form {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.waitlist-input {
  flex: 1 1 260px;
  max-width: 340px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--c-navy-10);
  background: var(--c-white);
  font-family: var(--ff-body);
  font-size: var(--fs-small);
  color: var(--c-navy);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.waitlist-input:focus {
  border-color: var(--c-lilac);
  box-shadow: 0 0 0 3px var(--c-lilac-15);
}

.waitlist-input.is-invalid {
  border-color: #d9534f;
  box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.15);
}

.waitlist-error {
  font-family: var(--ff-body);
  font-size: var(--fs-small);
  color: #d9534f;
  margin-top: var(--sp-sm);
}

.waitlist-btn {
  background: var(--c-navy);
  color: var(--c-white);
  border: none;
  cursor: pointer;
}

.waitlist-micro {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  color: var(--c-slate);
  opacity: 0.6;
  margin-top: var(--sp-sm);
}

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: var(--sp-md);
  padding: 0.55rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--c-navy-10);
  background: var(--c-white);
  color: var(--c-navy);
  opacity: 0.85;
}

.appstore-badge svg {
  width: 22px;
  height: 22px;
}

.appstore-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.1;
}

.appstore-top {
  font-family: var(--ff-body);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

.appstore-big {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: var(--fw-heading);
}

.waitlist-success {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  color: var(--c-navy);
  margin-top: var(--sp-md);
}

/* The `hidden` attribute must win over the class display rules above.
   `.waitlist-form { display:flex }` / `.appstore-badge { display:inline-flex }`
   are author rules that otherwise override the UA `[hidden]{display:none}`,
   so without these the success-swap leaves the form + badge visible. */
.waitlist-form[hidden],
.appstore-badge[hidden] {
  display: none;
}
