/* Wachtlijstvariant: melding boven de titel, het venster en het inschrijfformulier.
   Vormtaal uit de app (dashboard-style-guide.md): dialoog radius 24 met shadow-float en een overlay
   met een lichte waas (3.8 en 6.4), invoervelden zonder rand op --subtle met een zachte halo bij focus. */

/* ---------- Melding "Lanceert midden december" ---------- */
.launch-pill {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 auto 22px;
  padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-raised);
  font-size: 13.5px; color: var(--subtle-foreground);
}
.fp-hero-copy > .launch-pill { display: flex; width: fit-content; }
.launch-dot {
  position: relative; width: 8px; height: 8px; border-radius: 99px; background: var(--green); flex: none;
}
.launch-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: inherit; background: var(--green); opacity: 0.35;
  animation: launch-pulse 2.4s var(--ease-out-expo) infinite;
}
@keyframes launch-pulse { 0% { transform: scale(0.5); opacity: 0.45; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.hero-copy > .launch-pill { margin-bottom: 0; }

/* ---------- Venster ---------- */
.wl-dialog {
  width: min(460px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; background: transparent; color: var(--foreground);
  overflow: visible;
}
.wl-dialog::backdrop { background: rgb(0 0 0 / 0.1); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.dark .wl-dialog::backdrop { background: rgb(0 0 0 / 0.4); }
.wl-dialog-card {
  position: relative; padding: 28px; border-radius: 24px; background: var(--popover); box-shadow: var(--shadow-float);
}
/* In- en uitfaden (waar de browser @starting-style kent; anders gewoon meteen) */
.wl-dialog[open] .wl-dialog-card { animation: wl-in 460ms var(--ease-out-expo); }
.wl-dialog[open]::backdrop { animation: wl-fade 260ms var(--ease-hover); }
.wl-dialog.closing .wl-dialog-card { animation: wl-out 180ms ease-in forwards; }
.wl-dialog.closing::backdrop { animation: wl-fade 180ms ease-in reverse forwards; }
@keyframes wl-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes wl-out { to { opacity: 0; transform: translateY(6px) scale(0.985); } }
@keyframes wl-fade { from { opacity: 0; } }

.wl-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 999px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--muted-foreground); font-size: 15px;
  transition: background-color 200ms var(--ease-hover), color 200ms var(--ease-hover);
}
.wl-close:hover { background: var(--subtle); color: var(--foreground); }
.wl-close:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.wl-ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 24px;
  background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green-ink);
}
.wl-title { margin-top: 18px; font-size: 22px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; }
.wl-text { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted-foreground); text-wrap: pretty; }
.wl-dialog .wl-form { margin-top: 22px; }
/* In het venster: knop onder het veld, over de volle breedte */
.wl-dialog .wl-row { flex-direction: column; }
.wl-dialog .wl-submit { width: 100%; }
.wl-dialog .wl-input { flex: none; width: 100%; }

/* ---------- Formulier ---------- */
.wl-form { display: grid; min-width: 0; }
.wl-form > * { min-width: 0; }
.wl-state, .wl-done { grid-area: 1 / 1; transition: opacity 260ms var(--ease-hover), transform 460ms var(--ease-out-expo), visibility 0s; }
.wl-done { opacity: 0; visibility: hidden; transform: translateY(6px); }
.wl-form.is-done .wl-state { opacity: 0; visibility: hidden; transform: translateY(-6px); height: 0; overflow: hidden; }
.wl-form.is-done .wl-done { opacity: 1; visibility: visible; transform: none; }

.wl-label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 8px; }
.wl-row { display: flex; gap: 8px; }
.wl-input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid transparent;
  background: var(--subtle); color: var(--foreground); font: 400 16px/1 var(--font-sans);
  transition: background-color 200ms var(--ease-hover), border-color 200ms var(--ease-hover), box-shadow 200ms var(--ease-hover);
}
.wl-input::placeholder { color: color-mix(in srgb, var(--muted-foreground) 80%, transparent); }
.wl-input:hover { background: color-mix(in srgb, var(--subtle), var(--foreground) 3%); }
.wl-input:focus { outline: 0; border-color: var(--input); background: var(--card); box-shadow: 0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent); }
.wl-form.has-error .wl-input { border-color: color-mix(in srgb, var(--red) 55%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 10%, transparent); }
.wl-frame .wl-input { background: var(--card); box-shadow: inset 0 0 0 1px var(--hairline); }
.wl-frame .wl-input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent); }

.wl-submit { position: relative; height: 48px; padding: 0 22px; flex: none; }
.wl-spinner {
  position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 99px; opacity: 0;
  border: 2px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor;
}
.wl-form.is-busy .wl-submit { pointer-events: none; }
.wl-form.is-busy .wl-submit-label { opacity: 0; }
.wl-form.is-busy .wl-spinner { opacity: 1; animation: wl-spin 700ms linear infinite; }
@keyframes wl-spin { to { transform: rotate(360deg); } }

.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-fine { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted-foreground); text-wrap: pretty; }
.wl-fine a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
.wl-fine a:hover { color: var(--foreground); text-decoration-color: currentColor; }
.wl-error { margin-top: 8px; font-size: 13.5px; color: var(--red-ink); min-height: 0; }
.wl-error:empty { display: none; }

.wl-done { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--green) 10%, transparent); outline: 0; align-self: start; }
.wl-done-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 22px; background: var(--card); color: var(--green-ink); box-shadow: var(--shadow-raised); }
.wl-done b { display: block; font-weight: 500; font-size: 15.5px; }
.wl-done div > span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--subtle-foreground); }

/* ---------- Blok onderaan de pagina ---------- */
.cta-wl .wl-form { margin-top: 28px; max-width: 480px; }

/* ---------- Footer: knop die eruitziet als een link ---------- */
.foot-link { all: unset; width: fit-content; cursor: pointer; color: var(--subtle-foreground); transition: color 200ms var(--ease-hover); }
.foot-link:hover { color: var(--foreground); }
.foot-link:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

@media (max-width: 360px) {
  .nav-actions .btn-sm[data-waitlist] { padding: 0 12px; font-size: 13px; }
  .nav-in { gap: 8px; }
  .nav-actions { gap: 2px; }
}
@media (max-width: 480px) {
  .wl-row { flex-direction: column; }
  .wl-submit { width: 100%; }
  .wl-input { flex: none; width: 100%; }
  .wl-dialog-card { padding: 24px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .launch-dot::after { animation: none; }
  .wl-dialog[open] .wl-dialog-card, .wl-dialog[open]::backdrop, .wl-dialog.closing .wl-dialog-card { animation: none; }
}
