/* FOZ-1126: FozziLogic_Palette.pdf, brand colour system v3. Layout follows the "coming soon" mockup. */
:root {
	color-scheme: light;
	--brand: #E11771;
	--brand-hover: #C61463;
	--ink: #201626;
	--pink-soft: #FBD8E7;
	--cream: #FFF9FB;
	--teal: #0F7F74;
	padding-top: env(safe-area-inset-top, 0px);
	accent-color: var(--brand);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--ink: #F5EEF2;
		--pink-soft: #3A1E2C;
		--cream: #1B1216;
		--teal: #35D6C4;
	}
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--ink: #F5EEF2;
	--pink-soft: #3A1E2C;
	--cream: #1B1216;
	--teal: #35D6C4;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
button, input { font: inherit; }
[hidden] { display: none !important; }

body {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	position: relative;
	overflow-x: hidden;
	background: var(--cream);
	color: var(--ink);
	font-family: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.scribble-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0.05;
}
.scribble-bg svg { width: 100%; height: 100%; }
.scribble-bg path { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; }

main {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 8vh 1.5rem 6vh;
	text-align: center;
}

.wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 34rem;
}

.logo {
	width: min(78vw, 320px);
	height: auto;
	margin-bottom: 2.6rem;
	animation: settle 0.7s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes settle {
	from { opacity: 0; transform: translateY(10px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

h1 {
	font-family: "Baloo 2", "Karla", sans-serif;
	font-weight: 700;
	font-size: clamp(1.9rem, 5vw, 2.75rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.9rem;
}

.lede {
	max-width: 30rem;
	margin: 0 0 2.4rem;
	font-size: clamp(1.02rem, 2.2vw, 1.15rem);
	line-height: 1.55;
	opacity: 0.72;
}

form {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	width: 100%;
}

.field { flex: 1 1 260px; }

input[type="email"] {
	width: 100%;
	padding: 0.95rem 1.15rem;
	border: 2px solid var(--pink-soft);
	border-radius: 999px;
	background: var(--cream);
	color: var(--ink);
	font-size: 1rem;
	outline: none;
	transition: border-color 0.2s ease;
}
input[type="email"]::placeholder { color: var(--ink); opacity: 0.4; }
input[type="email"]:focus { border-color: var(--brand); }

.submit {
	flex: 0 0 auto;
	padding: 0.95rem 1.8rem;
	border: none;
	border-radius: 999px;
	background: var(--brand);
	color: #FFFFFF;
	font-family: "Baloo 2", sans-serif;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}
.submit:hover { background: var(--brand-hover); }
.submit:active { transform: scale(0.97); }
.submit:disabled { opacity: 0.6; cursor: wait; }

:where(button, input):focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.note {
	margin: 1rem 0 0;
	font-size: 0.85rem;
	opacity: 0.55;
}

.confirm {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0.9rem 1.4rem;
	border-radius: 999px;
	background: var(--pink-soft);
	color: var(--teal);
	font-family: "Baloo 2", sans-serif;
	font-weight: 600;
	font-size: 1.05rem;
}
.confirm:focus { outline: none; }

.form-error {
	margin: 1rem 0 0;
	font-size: 0.9rem;
	color: var(--brand);
}

footer {
	position: relative;
	z-index: 1;
	padding: 1.5rem 1rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
	text-align: center;
	font-size: 0.8rem;
	opacity: 0.4;
}

.visually-hidden, .honeypot {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.logo { animation: none; }
	* { transition: none !important; }
}
