:root {
	--paper: #f3f0ea;
	--cream: #faf8f4;
	--ink: #161513;
	--ink-soft: #5c5954;
	--line: #d9d3c8;
	--forest: #1e3d32;
	--forest-hover: #163028;
	--moss: #4a7a62;
	--amber: #b45309;
	--rose: #b42318;
	--ok: #1e3d32;
}

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

html,
body {
	height: 100%;
}

body {
	margin: 0;
	display: flex;
	flex-direction: column;
	color: var(--ink);
	background: var(--paper);
	font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--forest);
	color: var(--cream);
}

a {
	color: inherit;
	text-decoration: none;
}

h1,
p,
ul {
	margin: 0;
}

button,
input {
	font: inherit;
}

.font-display {
	font-family: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
	font-optical-sizing: auto;
	font-variation-settings: 'SOFT' 20, 'WONK' 0.4;
}

.grain {
	pointer-events: none;
	position: fixed;
	inset: 0;
	z-index: 1;
	opacity: 0.04;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header {
	position: relative;
	z-index: 2;
	padding: 1.25rem 1.5rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.hero {
	position: relative;
	z-index: 2;
	flex: 1;
	display: grid;
	align-items: center;
	gap: 3.5rem;
	width: min(72rem, calc(100% - 3rem));
	margin: 0 auto 4rem;
	padding: 2rem 0 3rem;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--cream);
	padding: 0.25rem 0.75rem;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.dot {
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 999px;
	background: var(--moss);
}

h1 {
	font-size: clamp(2.4rem, 6vw, 3.2rem);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.08;
}

.lede {
	margin-top: 1.5rem;
	font-size: 17px;
	line-height: 1.7;
	color: var(--ink-soft);
}

.waitlist {
	margin-top: 2rem;
}

.form-stack {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hp {
	display: none;
}

input[type='email'],
input[type='text'] {
	width: 100%;
	height: 3rem;
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	background: var(--cream);
	color: var(--ink);
	padding: 0 1rem;
	font-size: 14px;
	outline: none;
}

input::placeholder {
	color: color-mix(in srgb, var(--ink-soft) 70%, transparent);
}

input:focus {
	border-color: var(--forest);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 20%, transparent);
}

.btn {
	height: 3rem;
	border: 0;
	border-radius: 0.75rem;
	background: var(--forest);
	color: var(--cream);
	padding: 0 1.25rem;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.02em;
	cursor: pointer;
}

.btn:hover {
	background: var(--forest-hover);
}

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.success {
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	background: var(--cream);
	padding: 0.75rem 1rem;
	font-size: 14px;
	color: var(--ink-soft);
}

.error {
	margin: 0.75rem 0 0;
	font-size: 14px;
	color: var(--rose);
}

.error:empty {
	display: none;
}

.note {
	margin-top: 0.75rem;
	font-size: 12px;
	color: var(--ink-soft);
}

.preview {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 1rem;
	background: var(--cream);
	box-shadow: 0 24px 80px -24px rgb(22 21 19 / 0.28);
}

.preview-head,
.preview-row {
	display: flex;
	align-items: center;
}

.preview-head {
	justify-content: space-between;
	border-bottom: 1px solid var(--line);
	padding: 0.9rem 1.25rem;
}

.preview-live {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.live-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: var(--moss);
}

.kicker {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.preview-kpis {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	border-bottom: 1px solid var(--line);
}

.kpi {
	padding: 1rem 1.25rem;
}

.kpi + .kpi {
	border-left: 1px solid var(--line);
}

.kpi-label {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.kpi-value {
	margin-top: 0.25rem;
	font-size: 28px;
	font-weight: 500;
	line-height: 1;
}

.kpi-alert {
	color: var(--rose);
}

.preview-list {
	list-style: none;
	padding: 0;
}

.preview-row {
	gap: 0.75rem;
	padding: 0.75rem 1.25rem;
	border-top: 1px solid var(--line);
}

.status {
	width: 0.375rem;
	height: 0.375rem;
	flex-shrink: 0;
	border-radius: 999px;
}

.status-soon {
	background: var(--amber);
}

.status-upcoming {
	background: var(--moss);
}

.status-overdue {
	background: var(--rose);
}

.status-ok {
	background: color-mix(in srgb, var(--ok) 40%, transparent);
}

.client {
	min-width: 0;
	flex: 1;
}

.client-name {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: -0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.client-item {
	font-size: 12px;
	color: var(--ink-soft);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.when {
	flex-shrink: 0;
	font-size: 12px;
	color: var(--ink-soft);
}

.when-soon {
	font-weight: 500;
	color: var(--amber);
}

.when-overdue {
	font-weight: 500;
	color: var(--rose);
}

@media (min-width: 1024px) {
	.hero {
		grid-template-columns: 1.05fr 0.95fr;
	}
}

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