:root {
	--bg: #0A0E17;
	--surface: #121826;
	--fg: #E8EDF4;
	--muted: #8892A6;
	--line: #1C2230;
	--accent: #5B8DEF;
	--accent-ink: #0A0E17;
	--accent-deep: #2554D8;
	--warn: #F5A623;
	--danger: #E5484D;
	--ok: #30A46C;
	--radius: 10px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--fg);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.num { font-family: var(--mono); font-feature-settings: "tnum" 1; }

main { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
header {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 72px;
}
.brand { display: flex; gap: 10px; align-items: center; }
.brand img { height: 32px; width: auto; display: block; }
.brand-label { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.cta-nav {
	color: var(--fg); text-decoration: none;
	border: 1px solid var(--line); padding: 8px 14px;
	border-radius: var(--radius); font-size: 14px; font-weight: 500;
	transition: border-color .15s ease;
}
.cta-nav:hover { border-color: var(--accent); }

h1 {
	font-size: clamp(36px, 5vw, 56px);
	line-height: 1.05;
	margin: 0 0 20px;
	letter-spacing: -0.02em;
	font-weight: 700;
}
.lede { font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 60ch; }

.waitlist {
	display: flex; gap: 8px; flex-wrap: wrap;
	margin-bottom: 10px;
}
.waitlist input[type=email] {
	flex: 1 1 260px;
	padding: 14px 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--fg);
	font: inherit;
}
.waitlist input[type=email]::placeholder { color: var(--muted); }
.waitlist input[type=email]:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.25);
}
.waitlist button {
	padding: 14px 22px;
	background: var(--accent);
	color: var(--accent-ink);
	border: 0;
	border-radius: var(--radius);
	font-weight: 600;
	cursor: pointer;
	font: inherit;
	transition: background .15s ease;
}
.waitlist button:hover { background: var(--accent-deep); color: var(--fg); }

.wl-msg { color: var(--muted); min-height: 1.4em; margin: 0 0 12px; font-size: 15px; }
.supports { color: var(--muted); font-size: 14px; margin: 0; }

.why { margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line); }
.why h2, .faq h2 { font-size: 22px; margin: 0 0 20px; letter-spacing: -0.01em; font-weight: 600; }
.why ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.why li {
	padding-left: 36px; position: relative;
}
.why li::before {
	content: ""; position: absolute; left: 0; top: 6px;
	width: 20px; height: 20px;
	background: var(--accent);
	-webkit-mask: var(--icon) center / contain no-repeat;
	        mask: var(--icon) center / contain no-repeat;
}
.why li[data-icon="vial"] { --icon: url("/assets/icon-vial.svg"); }
.why li[data-icon="log"]  { --icon: url("/assets/icon-log.svg"); }
.why li[data-icon="cal"]  { --icon: url("/assets/icon-cal.svg"); }
.why li strong { display: block; margin-bottom: 4px; font-weight: 600; font-size: 17px; }
.why li span { color: var(--muted); font-size: 16px; }

.mock {
	margin-top: 56px; padding: 28px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	text-align: center;
}
.mock p { margin: 0; color: var(--muted); font-size: 15px; }
.mock code { font-family: var(--mono); color: var(--fg); background: var(--bg); padding: 2px 6px; border-radius: 4px; }

.safety {
	margin: 72px -24px 0;
	padding: 18px 24px;
	background: var(--surface);
	border-left: 4px solid var(--warn);
	color: var(--muted);
	font-size: 14px;
	line-height: 1.55;
}
.safety strong { color: var(--fg); font-weight: 600; }

.faq { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); }
.faq details {
	border-bottom: 1px solid var(--line);
	padding: 16px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
	cursor: pointer; list-style: none;
	font-weight: 500; font-size: 17px;
	display: flex; justify-content: space-between; align-items: center;
	gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "";
	width: 12px; height: 12px; flex: 0 0 12px;
	border-right: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	transform: rotate(45deg);
	transition: transform .2s ease;
	margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq details p { color: var(--muted); font-size: 16px; margin: 12px 0 0; max-width: 62ch; }

footer {
	margin-top: 72px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
	text-align: center;
}
footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--accent); }

.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;
}

@media (prefers-reduced-motion: no-preference) {
	h1 { animation: fadeUp .6s ease-out both; }
	.lede { animation: fadeUp .7s ease-out both; animation-delay: .08s; }
	.waitlist { animation: fadeUp .8s ease-out both; animation-delay: .14s; }
	.supports { animation: fadeUp .8s ease-out both; animation-delay: .20s; }
}
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* --- Calculator ------------------------------------------------------- */

.hero-sm { margin-bottom: 32px; }
.hero-sm h1 { font-size: clamp(32px, 4.5vw, 44px); }

.nav-links { display: flex; gap: 14px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--fg); }

.calc {
	margin-top: 8px; padding: 28px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
}
.c-form { display: grid; gap: 20px; }
.c-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.c-row { display: flex; flex-direction: column; gap: 6px; }
.c-row label { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.c-row input,
.c-row select {
	font: inherit;
	padding: 12px 14px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--fg);
}
.c-row input:focus,
.c-row select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.25);
}
.c-notes { color: var(--muted); font-size: 14px; margin: 0; min-height: 1.2em; }

.c-output { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.c-headline {
	font-family: var(--mono);
	font-size: 19px;
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: var(--radius);
	background: var(--bg);
}
.c-headline.c-ok   { border-left: 4px solid var(--ok); }
.c-headline.c-warn { border-left: 4px solid var(--warn); }
.c-err { color: var(--muted); font-size: 15px; margin: 0; }

.c-stats {
	display: grid; gap: 12px; margin: 0 0 12px;
	grid-template-columns: repeat(3, 1fr);
}
.c-stats > div {
	padding: 12px 14px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.c-stats dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 4px; font-weight: 500; }
.c-stats dd { font-family: var(--mono); font-size: 16px; margin: 0; color: var(--fg); }
.c-muted { color: var(--muted); font-weight: 400; }

.c-warn {
	list-style: none; padding: 14px 16px; margin: 0;
	background: var(--bg);
	border-left: 4px solid var(--warn);
	border-radius: var(--radius);
	color: var(--fg);
	font-size: 14px;
}
.c-warn li + li { margin-top: 8px; }

.how { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.how h2 { font-size: 22px; margin: 0 0 16px; letter-spacing: -0.01em; font-weight: 600; }
.how ol { color: var(--muted); margin: 0 0 16px; padding-left: 20px; }
.how ol li { margin-bottom: 8px; }
.how ol li strong { color: var(--fg); font-weight: 600; }
.how p.c-muted { font-size: 14px; margin: 0; }

@media (max-width: 560px) {
	.c-grid { grid-template-columns: 1fr; }
	.c-stats { grid-template-columns: 1fr; }
	.calc { padding: 20px; }
}
