/* Section 6 — Waitlist CTA (replaces gallery.css) */
.waitlist {
  background: #f7f6f4;
  text-align: center;
}

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

.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;
}
