/* Beta waitlist section (#liste-attente) and the Worker's answer page.
   Kept apart from styles.css: it goes away once the download link exists. */

.waitlist {
  padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(24px, 4vw, 48px);
  display: grid;
  place-items: center;
}

.waitlist-card {
  position: relative;
  width: min(100%, 720px);
  background: var(--yellow);
  color: var(--ink);
  padding: clamp(26px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  --hb: var(--ink);
  --h: #fff;
}

.waitlist-card .display {
  font-size: clamp(40px, 8vw, 96px);
}

.waitlist-card .lead {
  margin: 0;
  max-width: 34em;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.45;
}

.waitlist-shin {
  position: absolute;
  top: -30px;
  right: clamp(16px, 6vw, 56px);
  width: 64px;
  height: 64px;
  color: var(--blue);
  transform: rotate(8deg);
  filter: drop-shadow(0 6px 10px rgb(0 0 30 / 0.2));
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(100%, 520px);
}

.waitlist-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 16px;
  font: 500 16px/1.2 var(--body);
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 0;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--ink-soft);
}

.waitlist-form input[type="email"]:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

.waitlist-form .btn {
  flex: 0 0 auto;
}

.waitlist-form[aria-busy="true"] .btn {
  opacity: 0.6;
  pointer-events: none;
}

/* Honeypot: off-screen, for bots only. */
.waitlist-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.waitlist-status {
  margin: 0;
  min-height: 1.4em;
  font-weight: 650;
}

.waitlist-status:empty {
  display: none;
}

.waitlist-status[data-kind="error"] {
  color: #b0002a;
}

.waitlist-fine {
  margin: 0;
  max-width: 40em;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.waitlist-remove {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.waitlist-remove summary {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.waitlist-remove[open] summary {
  margin-bottom: 12px;
}

.waitlist-remove .waitlist-status {
  margin-top: 10px;
}

/* The Worker's answer page, for visitors without JavaScript. */
body.api-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
