@font-face {
	font-family: "Outfit";
	src: url("./assets/outfit-variable.ttf") format("truetype");
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
}

@font-face {
	font-family: "Nasalization";
	src: url("./assets/nasalization.otf") format("opentype");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

:root {
	--purple: #7c05d8;
	--purple-deep: #6000a8;
	--magenta: #e558ce;
	--paper: #ffffff;
	--ink: #17121d;
	--muted: #716a78;
	--line: #e8e1eb;
	--soft-purple: #f5effa;
	--error: #a72b3a;
	--error-bg: #fff0f2;
	--success: #17613f;
	--success-bg: #eaf8f0;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	background: var(--paper);
	color-scheme: light;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-width: 320px;
	min-height: 100vh;
	min-height: 100svh;
	background: var(--paper);
	color: var(--ink);
	font-family: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

button,
input {
	font: inherit;
}

button,
a,
input {
	-webkit-tap-highlight-color: transparent;
}

::selection {
	background: var(--magenta);
	color: #fff;
}

.waitlist-shell {
	display: flex;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
}

.brand-panel,
.form-panel {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
}

.brand-panel {
	z-index: 2;
	display: grid;
	flex: 0 0 54%;
	grid-template-rows: auto 1fr auto;
	align-items: center;
	padding: clamp(2rem, 4.5vw, 4.75rem) clamp(6rem, 10vw, 10.5rem)
		clamp(2rem, 4vw, 4rem) clamp(2rem, 5.8vw, 6rem);
	background: var(--purple);
	color: #fff;
	isolation: isolate;
}

.brand-grid {
	position: absolute;
	z-index: -1;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.22) 0.75px, transparent 0.75px);
	background-size: 24px 24px;
	-webkit-mask-image: linear-gradient(120deg, transparent 8%, rgba(0, 0, 0, 0.62) 58%, transparent 94%);
	mask-image: linear-gradient(120deg, transparent 8%, rgba(0, 0, 0, 0.62) 58%, transparent 94%);
	opacity: 0.2;
}

.brand-logo {
	display: inline-flex;
	width: clamp(9.5rem, 13vw, 12rem);
	border-radius: 0.5rem;
	outline: none;
}

.brand-logo img {
	display: block;
	width: 100%;
	height: auto;
}

.brand-logo:focus-visible {
	box-shadow: 0 0 0 3px var(--purple), 0 0 0 6px rgba(255, 255, 255, 0.8);
}

.brand-copy {
	width: min(100%, 42rem);
	padding: clamp(2.5rem, 6vh, 5.5rem) 0;
}

.brand-copy h1,
.form-content h2 {
	margin: 0;
	font-weight: 520;
	letter-spacing: -0.055em;
}

.brand-copy h1 {
	max-width: 12ch;
	font-size: clamp(3.2rem, 5.45vw, 6rem);
	line-height: 0.94;
	text-wrap: balance;
}

.brand-intro {
	max-width: 31rem;
	margin: clamp(1.7rem, 3vw, 2.5rem) 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(1.05rem, 1.55vw, 1.3rem);
	font-weight: 350;
	line-height: 1.52;
}

.brand-footer {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 2rem;
	color: rgba(255, 255, 255, 0.64);
	font-size: 0.71rem;
	font-weight: 530;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.brand-signature {
	font-family: "Nasalization", "Outfit", sans-serif;
	letter-spacing: 0.1em;
}

.wave-edge {
	position: absolute;
	z-index: 5;
	display: block;
	color: var(--purple);
	overflow: visible;
	pointer-events: none;
}

.wave-edge path {
	fill: currentColor;
}

.wave-edge--desktop {
	--wave-width: clamp(9rem, 13vw, 12rem);

	top: 0;
	bottom: 0;
	right: calc(2.25rem - var(--wave-width));
	width: var(--wave-width);
	height: 100%;
}

.wave-edge--mobile {
	display: none;
}

.form-panel {
	z-index: 1;
	display: flex;
	flex: 1 1 46%;
	align-items: center;
	justify-content: center;
	padding: clamp(3rem, 7vw, 7rem) clamp(2rem, 6vw, 6.5rem) clamp(3rem, 7vw, 7rem)
		clamp(7.5rem, 12vw, 13rem);
	background:
		radial-gradient(circle at 92% 4%, rgba(124, 5, 216, 0.045), transparent 26%),
		var(--paper);
}

.form-content {
	width: min(100%, 29rem);
}

.form-content h2 {
	font-size: clamp(3.3rem, 5.5vw, 5.9rem);
	line-height: 0.94;
}

.form-intro {
	margin: 1.5rem 0 clamp(2rem, 4vw, 3.2rem);
	color: var(--muted);
	font-size: clamp(1rem, 1.4vw, 1.16rem);
	font-weight: 380;
}

.waitlist-form {
	display: grid;
	gap: 0.85rem;
	margin: 0;
}

.form-field,
.form__entry,
.form__label-row {
	margin: 0;
	padding: 0;
}

.field-label {
	display: inline-block;
	margin: 0 0 0.58rem;
	color: var(--ink);
	font-size: 0.73rem;
	font-weight: 680;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.entry__field {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.entry__field::after {
	position: absolute;
	right: 1.15rem;
	width: 0.38rem;
	height: 0.38rem;
	border-radius: 50%;
	background: var(--magenta);
	box-shadow: 0 0 0 4px rgba(229, 88, 206, 0.1);
	content: "";
	pointer-events: none;
}

.input {
	width: 100%;
	height: 4rem;
	margin: 0;
	padding: 0 3rem 0 1.2rem;
	border: 1px solid var(--line);
	border-radius: 1rem;
	outline: none;
	background: #fff;
	box-shadow: 0 0.5rem 1.8rem rgba(42, 20, 55, 0.035);
	color: var(--ink);
	font-size: 1rem;
	font-weight: 420;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.input::placeholder {
	color: #aaa2ae;
	opacity: 1;
}

.input:hover {
	border-color: #d4c9d9;
}

.input:focus {
	border-color: var(--purple);
	box-shadow: 0 0 0 4px rgba(124, 5, 216, 0.1), 0 0.8rem 2rem rgba(42, 20, 55, 0.06);
}

.submit-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 4rem;
	margin: 0;
	padding: 0 1rem 0 1.25rem;
	border: 0;
	border-radius: 1rem;
	background: var(--purple);
	box-shadow: 0 0.85rem 2rem rgba(124, 5, 216, 0.2);
	color: #fff;
	cursor: pointer;
	font-size: 0.98rem;
	font-weight: 630;
	letter-spacing: 0.01em;
	transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button-arrow {
	display: grid;
	width: 2.1rem;
	height: 2.1rem;
	margin-left: auto;
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: 50%;
	place-items: center;
	font-size: 1rem;
	line-height: 1;
	transition: background-color 160ms ease, transform 160ms ease;
}

.submit-button:hover:not(:disabled) {
	background: var(--purple-deep);
	box-shadow: 0 1rem 2.3rem rgba(124, 5, 216, 0.27);
	transform: translateY(-2px);
}

.submit-button:hover:not(:disabled) .button-arrow {
	background: rgba(255, 255, 255, 0.12);
	transform: rotate(7deg);
}

.submit-button:focus-visible {
	outline: 3px solid rgba(124, 5, 216, 0.24);
	outline-offset: 3px;
}

.submit-button:active:not(:disabled) {
	transform: translateY(0);
}

.submit-button:disabled {
	cursor: wait;
	opacity: 0.72;
}

.submit-button:disabled .button-arrow {
	display: none;
}

.button-spinner {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	margin-left: 0.75rem;
	animation: spin 700ms linear infinite;
	fill: currentColor;
}

.sib-hide-loader-icon,
.input--hidden,
.g-recaptcha-v3 {
	display: none !important;
}

.entry__error {
	display: none;
	margin: 0.55rem 0 0;
	color: var(--error);
	font-size: 0.83rem;
	font-weight: 520;
}

.sib-entry_errored .entry__error {
	display: block;
}

.sib-entry_errored .input {
	border-color: var(--error);
	box-shadow: 0 0 0 4px rgba(167, 43, 58, 0.09);
}

.sib-form-message-panel {
	display: none;
}

.sib-form-message-panel--active {
	display: flex;
}

.form-notice {
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 1rem;
	padding: 0.8rem 0.95rem;
	border: 1px solid transparent;
	border-radius: 0.85rem;
	font-size: 0.88rem;
	font-weight: 500;
	line-height: 1.35;
}

.form-notice--error {
	border-color: rgba(167, 43, 58, 0.15);
	background: var(--error-bg);
	color: var(--error);
}

.form-notice--success {
	border-color: rgba(23, 97, 63, 0.15);
	background: var(--success-bg);
	color: var(--success);
}

.notice-mark {
	display: grid;
	flex: 0 0 auto;
	width: 1.4rem;
	height: 1.4rem;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 0.76rem;
	font-weight: 740;
	place-items: center;
}

.privacy-note {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 1rem 0 0;
	color: #948c99;
	font-size: 0.78rem;
	font-weight: 420;
}

.privacy-note > span {
	display: inline-block;
	width: 0.38rem;
	height: 0.38rem;
	border-radius: 50%;
	background: var(--purple);
	box-shadow: 0 0 0 4px var(--soft-purple);
}

.form-brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-top: clamp(1.8rem, 4vw, 2.8rem);
	color: #857c8b;
	font-family: "Nasalization", "Outfit", sans-serif;
	font-size: 0.82rem;
	letter-spacing: 0.08em;
}

.form-brand img {
	display: block;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes enter-up {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.brand-logo,
	.brand-copy > *,
	.brand-footer,
	.form-content > * {
		animation: enter-up 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
	}

	.brand-copy > :nth-child(1) {
		animation-delay: 80ms;
	}

	.brand-copy > :nth-child(2) {
		animation-delay: 140ms;
	}

	.brand-footer {
		animation-delay: 210ms;
	}

	.form-content > :nth-child(1) {
		animation-delay: 160ms;
	}

	.form-content > :nth-child(2) {
		animation-delay: 220ms;
	}

	.form-content > :nth-child(3) {
		animation-delay: 280ms;
	}

	.form-content > :nth-child(n + 4) {
		animation-delay: 340ms;
	}
}

@media (min-width: 961px) and (max-height: 720px) {
	.brand-panel {
		padding-top: 2rem;
		padding-bottom: 2rem;
	}

	.brand-copy {
		padding: 1.5rem 0;
	}

	.brand-copy h1 {
		font-size: clamp(3.2rem, 7.8vh, 5rem);
	}

	.brand-intro {
		margin-top: 1.2rem;
	}

	.form-panel {
		padding-top: 2rem;
		padding-bottom: 2rem;
	}

	.form-content h2 {
		font-size: clamp(3.2rem, 7.8vh, 5rem);
	}

	.form-intro {
		margin: 1rem 0 1.5rem;
	}
}

@media (max-width: 1080px) and (min-width: 961px) {
	.brand-panel {
		flex-basis: 52%;
		padding-right: 6rem;
		padding-left: 2.5rem;
	}

	.brand-copy h1 {
		font-size: clamp(3.5rem, 6.4vw, 5rem);
	}

	.form-panel {
		padding-right: 2rem;
		padding-left: 9rem;
	}

	.form-content h2 {
		font-size: clamp(3.5rem, 6vw, 4.7rem);
	}
}

@media (max-width: 960px) {
	.waitlist-shell {
		display: block;
		overflow: hidden;
	}

	.brand-panel,
	.form-panel {
		min-height: auto;
	}

	.brand-panel {
		display: grid;
		min-height: 54svh;
		grid-template-rows: auto 1fr;
		padding: 1.5rem 1.4rem clamp(6.8rem, 19vw, 9rem);
	}

	.brand-logo {
		width: 9.5rem;
	}

	.brand-copy {
		align-self: center;
		padding: 2.5rem 0 1rem;
	}

	.brand-copy h1 {
		font-size: clamp(3.25rem, 13.5vw, 5.4rem);
	}

	.brand-intro {
		max-width: 28rem;
		font-size: clamp(1rem, 4.2vw, 1.15rem);
	}

	.brand-footer {
		display: none;
	}

	.wave-edge--desktop {
		display: none;
	}

	.wave-edge--mobile {
		top: calc(100% - 2px);
		left: 0;
		display: block;
		width: 100%;
		height: clamp(6rem, 20vw, 8rem);
	}

	.form-panel {
		min-height: 52svh;
		align-items: flex-start;
		justify-content: flex-start;
		padding: clamp(7.5rem, 24vw, 10rem) 1.4rem 3.5rem;
	}

	.form-content {
		width: min(100%, 32rem);
		margin: 0 auto;
	}

	.form-content h2 {
		font-size: clamp(3.25rem, 13vw, 5rem);
	}
}

@media (max-width: 440px) {
	.brand-panel {
		min-height: 58svh;
		padding-right: 1.15rem;
		padding-left: 1.15rem;
	}

	.brand-logo {
		width: 8.6rem;
	}

	.brand-copy {
		padding-top: 2rem;
	}

	.brand-intro {
		margin-top: 1.35rem;
	}

	.form-panel {
		padding-right: 1.15rem;
		padding-left: 1.15rem;
	}

	.form-intro {
		margin-bottom: 2rem;
	}

	.input,
	.submit-button {
		min-height: 3.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
