/* Waitlist dialog — opened by every "Join waitlist" CTA.
   Borrows the footer's ground (near-black, editorial serif, mono eyebrow) so it
   reads as the page's own closing CTA brought forward, and takes its one colour
   from --flech-accent in 02-accent.css. */
.waitlist {
  --wl-ease: var(--ease-out-quint, cubic-bezier(0.23, 1, 0.32, 1));
  --wl-line: rgba(255, 255, 255, 0.14);
  --wl-muted: rgba(255, 255, 255, 0.55);
  width: min(432px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: #0f0f10;
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.14), 0 24px 80px rgba(10, 11, 13, 0.5);
  font-family: Inter, system-ui, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.waitlist::backdrop {
  background: rgba(10, 11, 13, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.waitlist[open] {
  animation: waitlist-in 0.36s var(--wl-ease);
}

.waitlist[open]::backdrop {
  animation: waitlist-fade 0.24s ease-out;
}

@keyframes waitlist-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
}

@keyframes waitlist-fade {
  from { opacity: 0; }
}

.waitlist-panel {
  position: relative;
  padding: 36px 32px 32px;
}

.waitlist-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--wl-muted);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.waitlist-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

.waitlist-eyebrow,
.waitlist-field > span {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wl-muted);
}

.waitlist-title {
  margin-top: 10px;
  font-family: editorialFont, 'editorialFont Fallback', Georgia, Cambria, 'Times New Roman', serif;
  font-size: 34px;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  outline: none;
}

.waitlist-lede {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.62);
  text-wrap: pretty;
}

.waitlist-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.waitlist-field {
  display: grid;
  gap: 8px;
}

.waitlist-field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--wl-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  /* 16px stops iOS zooming the page when the field takes focus */
  font-size: 16px;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.waitlist-field input:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.waitlist-field input:focus-visible {
  outline: none;
  border-color: var(--flech-accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(185, 157, 249, 0.22);
}

.waitlist-field input[aria-invalid='true'] {
  border-color: #f0958a;
}

/* honeypot: off-screen rather than display:none, which some bots skip */
.waitlist-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-error {
  color: #f6aaa0;
  font-size: 14px;
}

.waitlist-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 4px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--flech-accent);
  color: var(--flech-accent-ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s var(--wl-ease), transform 0.2s var(--wl-ease);
}

.waitlist-submit:hover {
  background: var(--flech-accent-hover);
}

.waitlist-submit:active {
  background: var(--flech-accent-active);
  transform: scale(0.98);
}

.waitlist-submit:focus-visible,
.waitlist-close:focus-visible {
  outline: 2px solid var(--flech-accent);
  outline-offset: 3px;
}

.waitlist-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.waitlist-done .waitlist-submit {
  width: 100%;
  margin-top: 28px;
}

@media (max-width: 480px) {
  .waitlist-panel { padding: 32px 22px 24px; }
  .waitlist-title { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .waitlist[open],
  .waitlist[open]::backdrop { animation: none; }
}
