:root {
	--bg: #0d0f1a;
	--card: #151827;
	--line: #262a3d;
	--text: #ece9e2;
	--muted: #8d8b93;
	--ember: #ff5a2b;
	--ember-soft: rgba(255, 90, 43, 0.18);
	--head: "Barlow Condensed", system-ui, sans-serif;
	--body: "Geist", system-ui, sans-serif;
	--spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html,
body {
	height: 100%;
}
body {
	background: var(--bg);
	color: var(--text);
	font: 400 17px / 1.5 var(--body);
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
	overflow-x: hidden;
}
a {
	color: inherit;
}
button {
	font: inherit;
	color: inherit;
	cursor: pointer;
	border: 0;
	background: none;
}

/* ember: the one warm light that follows the user */
.ember {
	position: fixed;
	width: 420px;
	height: 420px;
	left: 50%;
	top: 22%;
	translate: -50% -50%;
	background: radial-gradient(
		circle,
		rgba(255, 90, 43, 0.22) 0%,
		rgba(255, 90, 43, 0) 65%
	);
	pointer-events: none;
	transition:
		top 0.9s var(--ease),
		opacity 0.9s;
	animation: breathe 5s ease-in-out infinite;
	z-index: 0;
}
@keyframes breathe {
	50% {
		scale: 1.12;
		opacity: 0.8;
	}
}

.top {
	padding: 20px 24px;
	position: relative;
	z-index: 1;
}
.mark {
	font: 700 28px / 1 var(--head);
	letter-spacing: 0.01em;
	text-decoration: none;
}
.dot {
	color: var(--ember);
}

main {
	flex: 1;
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	padding: 8px 24px 32px;
	display: grid;
}

/* screens stack in one grid cell and cross-fade */
.screen {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	gap: 18px;
	opacity: 0;
	visibility: hidden;
	translate: 0 16px;
	transition:
		opacity 0.45s var(--ease),
		translate 0.45s var(--ease),
		visibility 0s 0.45s;
}
.screen.is-active {
	opacity: 1;
	visibility: visible;
	translate: 0 0;
	transition:
		opacity 0.55s var(--ease) 0.1s,
		translate 0.55s var(--ease) 0.1s,
		visibility 0s;
}
.screen.leave {
	translate: 0 -16px;
}

/* HERO */
.hero {
	padding-top: 6vh;
}
.kicker {
	color: var(--ember);
	font-weight: 600;
	letter-spacing: 0.02em;
}
.headline {
	font: 700 clamp(48px, 13vw, 76px) / 0.95 var(--head);
	text-transform: uppercase;
	letter-spacing: 0.005em;
}
.headline .line {
	display: block;
	opacity: 0;
	translate: 0 24px;
	animation: rise 0.8s var(--ease) forwards;
}
.headline .line:nth-child(2) {
	animation-delay: 0.9s;
}
.headline .accent {
	color: var(--ember);
}
@keyframes rise {
	to {
		opacity: 1;
		translate: 0 0;
	}
}

.path {
	width: 100%;
	max-width: 320px;
	height: 24px;
	overflow: visible;
}
.path path {
	fill: none;
	stroke: var(--ember);
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-dasharray: 400;
	stroke-dashoffset: 400;
	filter: drop-shadow(0 0 6px rgba(255, 90, 43, 0.8));
	animation: draw 1.4s var(--ease) 1.4s forwards;
}
@keyframes draw {
	to {
		stroke-dashoffset: 0;
	}
}

.lead {
	color: var(--muted);
	font-size: 18px;
	max-width: 34ch;
}
.hero .lead,
.hero .proof,
.hero .fine {
	opacity: 0;
	animation: rise 0.7s var(--ease) 1.9s forwards;
}
.hero .btn:not(:disabled) {
	opacity: 0;
	animation:
		rise 0.7s var(--ease) 1.9s forwards,
		pulse 2.6s ease-out 3.2s infinite;
}
.proof {
	color: var(--muted);
	font-size: 15px;
}
.proof b {
	color: var(--text);
	font-variant-numeric: tabular-nums;
}
.fine {
	color: var(--muted);
	font-size: 14px;
	margin-top: -8px;
}

/* BUTTON */
.btn {
	width: 100%;
	min-height: 56px;
	border-radius: 14px;
	background: var(--ember);
	color: var(--bg);
	font: 700 22px / 1 var(--head);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 0 0 0 rgba(255, 90, 43, 0.5);
	transition:
		transform 0.2s var(--spring),
		opacity 0.2s,
		box-shadow 0.3s;
}
.btn:not(:disabled) {
	animation: pulse 2.6s ease-out infinite 3s;
}
.btn:active:not(:disabled) {
	transform: scale(0.97);
}
.btn:disabled {
	opacity: 0.35;
	cursor: default;
	animation: none;
}
.btn.ghost {
	background: transparent;
	color: var(--text);
	border: 1.5px solid var(--line);
	animation: none;
}
.btn.loading {
	pointer-events: none;
	opacity: 0.7;
}
@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 90, 43, 0.45);
	}
	70%,
	100% {
		box-shadow: 0 0 0 14px rgba(255, 90, 43, 0);
	}
}

/* QUESTIONS */
.step {
	color: var(--muted);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
}
.q {
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.q legend,
.q-label {
	font: 700 26px / 1.1 var(--head);
	margin-bottom: 10px;
}
.opt {
	font: 400 14px var(--body);
	color: var(--muted);
	margin-left: 6px;
}
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.chips button {
	padding: 11px 16px;
	border-radius: 999px;
	background: var(--card);
	border: 1.5px solid var(--line);
	font-size: 16px;
	transition:
		transform 0.25s var(--spring),
		border-color 0.2s,
		background 0.2s,
		color 0.2s;
}
.chips button:active {
	transform: scale(0.94);
}
.chips button[aria-pressed="true"] {
	border-color: var(--ember);
	background: var(--ember-soft);
	color: #fff;
	transform: scale(1.04);
}

/* EMAIL */
form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
input[type="email"],
input.text {
	width: 100%;
	min-height: 56px;
	padding: 0 18px;
	border-radius: 14px;
	background: var(--card);
	border: 1.5px solid var(--line);
	color: var(--text);
	font: 400 18px var(--body);
	outline: none;
	transition:
		border-color 0.2s,
		box-shadow 0.2s;
}
input[type="email"]:focus,
input.text:focus {
	border-color: var(--ember);
	box-shadow: 0 0 0 4px var(--ember-soft);
}
input::placeholder {
	color: #5d5c66;
}
.hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.consent {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 15px;
	color: var(--muted);
	cursor: pointer;
}
.consent input {
	appearance: none;
	flex: none;
	width: 24px;
	height: 24px;
	margin-top: 1px;
	border-radius: 7px;
	border: 1.5px solid var(--line);
	background: var(--card);
	display: grid;
	place-content: center;
	transition:
		background 0.2s,
		border-color 0.2s;
}
.consent input::after {
	content: "";
	width: 12px;
	height: 7px;
	border: solid var(--bg);
	border-width: 0 0 2.5px 2.5px;
	rotate: -45deg;
	translate: 0 -1px;
	scale: 0;
	transition: scale 0.25s var(--spring);
}
.consent input:checked {
	background: var(--ember);
	border-color: var(--ember);
}
.consent input:checked::after {
	scale: 1;
}
.err {
	color: var(--ember);
	font-size: 15px;
	min-height: 1em;
}
.back {
	color: var(--muted);
	font-size: 15px;
	align-self: flex-start;
	padding: 8px 0;
}

/* DONE */
.done {
	align-items: center;
	text-align: center;
	padding-top: 4vh;
}
.pixel {
	width: min(240px, 60vw);
	height: auto;
	image-rendering: pixelated;
}
.big {
	font: 700 clamp(44px, 12vw, 64px) / 1 var(--head);
	text-transform: uppercase;
}
.pos {
	color: var(--muted);
}
.pos b {
	color: var(--ember);
	font: 700 28px var(--head);
}
.share {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 8px;
}
.link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 6px 6px 16px;
	border-radius: 14px;
	background: var(--card);
	border: 1.5px dashed var(--line);
	font-size: 15px;
}
.link span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.link button {
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--line);
	font-weight: 600;
	font-size: 14px;
	flex: none;
}
.refs {
	color: var(--muted);
	font-size: 15px;
}
.refs b {
	color: var(--ember);
}

.foot {
	position: relative;
	z-index: 1;
	text-align: center;
	color: var(--muted);
	font-size: 13px;
	padding: 16px;
}
.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* legal page */
.legal {
	max-width: 640px;
	margin: 0 auto;
	padding: 8px 24px 48px;
	position: relative;
	z-index: 1;
}
.legal h1 {
	font: 700 44px / 1 var(--head);
	text-transform: uppercase;
	margin-bottom: 20px;
}
.legal h2 {
	font: 700 24px / 1.1 var(--head);
	margin: 24px 0 8px;
}
.legal p,
.legal li {
	color: #c9c6c0;
	margin-bottom: 8px;
}
.legal ul {
	padding-left: 20px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		/* biome-ignore lint/complexity/noImportantStyles: reduced motion must beat every animation */
		animation: none !important;
		/* biome-ignore lint/complexity/noImportantStyles: reduced motion must beat every transition */
		transition: none !important;
	}
	.headline .line,
	.hero .lead,
	.hero .btn,
	.hero .proof,
	.hero .fine {
		opacity: 1;
		translate: 0 0;
	}
	.path path {
		stroke-dashoffset: 0;
	}
}

.other {
	margin-top: 4px;
	animation: rise 0.35s var(--ease);
}
