:root {
	/* RunGuard palette — see product/branding.md for rationale.
	   Never introduce new colors; pick from this token list. */
	--bg: #0a0a0a;
	--bg-elev: #141416;
	--fg: #f5f5f7;
	--muted: #9aa0a6;
	--line: #222226;
	--accent: #f97316;   /* electric amber — brand primary, "caution signal" */
	--break: #ef4444;    /* tripped-breaker red — used sparingly for alert state */
	--ok: #10b981;       /* healthy-run green — used only in dashboards, not landing */
	--radius: 10px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
	--font-mono: ui-monospace, "SF Mono", "JetBrains Mono", 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);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

main { max-width: 720px; margin: 0 auto; padding: 48px 24px 64px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 80px; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 18px; }
.brand img { border-radius: 8px; }

h1 {
	font-size: clamp(36px, 5vw, 56px);
	line-height: 1.05;
	margin: 0 0 16px;
	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: 12px;
}
.waitlist input[type=email] {
	flex: 1 1 260px;
	padding: 14px 16px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--fg);
	font: inherit;
}
.waitlist input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.waitlist button {
	padding: 14px 22px;
	background: var(--accent);
	color: #111;
	border: 0;
	border-radius: var(--radius);
	font-weight: 600;
	cursor: pointer;
	font: inherit;
	transition: filter .15s ease, transform .1s ease;
}
.waitlist button:hover { filter: brightness(1.08); }
.waitlist button:active { transform: translateY(1px); }

/* Inline code snippet style — used by the Developer-first landing variant */
code, .mono { font-family: var(--font-mono); font-size: 14px; }
pre.snippet {
	background: var(--bg-elev);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px 18px;
	margin: 20px 0 32px;
	overflow-x: auto;
	font-family: var(--font-mono);
	font-size: 13.5px;
	line-height: 1.55;
}
pre.snippet .tok-fn { color: var(--accent); }
pre.snippet .tok-str { color: var(--ok); }
pre.snippet .tok-com { color: var(--muted); }

/* "Tripped breaker" callout — used by the Incident-first landing variant */
.incident {
	background: var(--bg-elev);
	border: 1px solid var(--line);
	border-left: 3px solid var(--break);
	border-radius: var(--radius);
	padding: 18px 22px;
	margin: 24px 0 32px;
}
.incident .tag {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--break);
	margin-bottom: 6px;
}
.incident strong { color: var(--fg); }

.wl-msg { color: var(--muted); min-height: 1.4em; margin: 0; }

.install { margin-top: 64px; }
.install h2 { font-size: 22px; margin: 0 0 14px; letter-spacing: -0.01em; }
.snippet-note { color: var(--muted); font-size: 14px; margin: 0; }

.compare { margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line); }
.compare h2 { font-size: 22px; margin: 0 0 12px; letter-spacing: -0.01em; }
.compare p { color: var(--muted); margin: 0; max-width: 62ch; }
.compare em { color: var(--fg); font-style: normal; border-bottom: 1px solid var(--accent); }

.why { margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line); }
.why h2 { font-size: 22px; margin: 0 0 16px; letter-spacing: -0.01em; }
.why ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.why li {
	padding-left: 28px; position: relative;
}
.why li::before {
	content: "›"; position: absolute; left: 8px; top: 0;
	color: var(--accent); font-weight: 700;
}
.why li strong { color: var(--fg); margin-right: 4px; }
.why li code, .install code, .incident code {
	font-family: var(--font-mono); font-size: 13px;
	background: var(--bg-elev); padding: 1px 6px;
	border: 1px solid var(--line); border-radius: 6px;
}

footer { margin-top: 96px; color: var(--muted); font-size: 14px; text-align: center; }
footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.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; }
}
@keyframes fadeUp {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}
