/* The waitlist dialog, drawn with the site's own tokens and controls (.btn, .input, .h-display). */
dialog.wl {
	width: min(100vw - 32px, 480px);
	max-width: none;
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: oklch(var(--foreground));
	overflow: visible;
}
dialog.wl::backdrop {
	background: oklch(0.14 0.004 286 / 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.wl-card {
	position: relative;
	padding: 32px;
	border-radius: var(--round-card, 16px);
	background: oklch(var(--popover, var(--card)));
	outline: var(--rule, 1px) solid oklch(var(--border));
	outline-offset: calc(var(--rule, 1px) * -1);
	box-shadow: 0 24px 80px oklch(0 0 0 / 0.45);
}
.wl-title {
	margin: 0;
	padding-right: 32px;
	font-size: 28px;
	line-height: 34px;
	text-wrap: balance;
}
.wl-lead {
	margin: 12px 0 0;
	font-size: var(--type-base, 16px);
	line-height: var(--type-base-line, 24px);
	text-wrap: pretty;
	overflow-wrap: anywhere;
}
.wl-github {
	display: flex;
	width: 100%;
	margin-top: 24px;
	gap: 10px;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}
.wl-or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 16px 0 0;
	font-size: var(--type-sm, 14px);
	line-height: 20px;
	color: oklch(var(--muted-foreground));
}
.wl-or::before,
.wl-or::after {
	content: "";
	flex: 1 1 0;
	height: var(--rule, 1px);
	background: oklch(var(--border));
}
.wl-row {
	display: flex;
	gap: 8px;
	margin-top: 24px;
}
.wl-or + .wl-row {
	margin-top: 16px;
}
.wl-row .wl-email {
	flex: 1 1 0;
	height: var(--control-lg, 44px);
	font-size: var(--type-base, 16px);
	outline: 0;
}
.wl-row .wl-email:focus-visible {
	box-shadow: inset 0 0 0 2px oklch(var(--main));
}
.wl-row .wl-email[aria-invalid="true"] {
	box-shadow: inset 0 0 0 2px oklch(var(--destructive));
}
.wl-send[disabled] {
	opacity: 0.6;
	cursor: progress;
}
.wl-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.wl-note:empty {
	display: none;
}
.wl-note {
	margin: 12px 0 0;
	font-size: var(--type-sm, 14px);
	line-height: 20px;
	color: oklch(var(--destructive));
}
.wl-joined .wl-done {
	margin-top: 24px;
}
.wl-close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: var(--round-control, 8px);
	font-size: 22px;
	line-height: 1;
	color: oklch(var(--muted-foreground));
	cursor: pointer;
}
.wl-close:hover {
	background: oklch(var(--accent-strong, 1 0 0 / 0.08));
	color: oklch(var(--foreground));
}
.wl-close:focus-visible,
.wl-card .btn:focus-visible {
	outline: 2px solid oklch(var(--main));
	outline-offset: 2px;
}
.wl [hidden] {
	display: none;
}
@media (max-width: 480px) {
	.wl-card {
		padding: 24px;
	}
	.wl-row {
		flex-direction: column;
	}
	.wl-row .wl-email {
		flex: none;
	}
}
@media (prefers-reduced-motion: no-preference) {
	dialog.wl[open] .wl-card {
		animation: wl-in 160ms ease-out;
	}
	@keyframes wl-in {
		from {
			opacity: 0;
			transform: translateY(8px);
		}
	}
}
