:root {
	--body-top: #ebebeb;
	--body-mid: #e5e5e5;
	--body-low: #d4d4d4;
	--body-end: #e3e3e3;
	--text: #1c1c1e;
	--text-dim: rgba(0, 0, 0, 0.58);
	--text-faint: rgba(0, 0, 0, 0.4);
	--accent: #e8302e;
	--window: #080808;
	--rim: rgba(0, 0, 0, 0.14);
	--key-top: #f4f4f4;
	--key-bottom: #dcdcdc;
	--key-edge: rgba(0, 0, 0, 0.16);
	--highlight: rgba(255, 255, 255, 0.7);
	--border: rgba(0, 0, 0, 0.1);
	--brush: rgba(255, 255, 255, 0.05);
	--max-width: 720px;
	font-size: 16px;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--body-top: #1d1d1f;
		--body-mid: #19191b;
		--body-low: #111112;
		--body-end: #171718;
		--text: #f2f2f2;
		--text-dim: rgba(255, 255, 255, 0.6);
		--text-faint: rgba(255, 255, 255, 0.38);
		--window: #050505;
		--rim: rgba(0, 0, 0, 0.6);
		--key-top: #2a2a2c;
		--key-bottom: #1c1c1e;
		--key-edge: rgba(0, 0, 0, 0.7);
		--highlight: rgba(255, 255, 255, 0.08);
		--border: rgba(255, 255, 255, 0.08);
		--brush: rgba(255, 255, 255, 0.012);
	}
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--body-low); }

body {
	background:
		repeating-linear-gradient(90deg, var(--brush) 0 1px, transparent 1px 3px),
		linear-gradient(180deg, var(--body-top), var(--body-mid) 35%, var(--body-low) 80%, var(--body-end));
	background-attachment: fixed;
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

h1, h2, h3 { font-weight: 600; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
	width: 100%;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.hero {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	padding: 64px 0;
}
.app-icon {
	width: 120px;
	height: 120px;
	display: block;
	margin: 0 auto 28px;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}
.eyebrow {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	color: var(--text-faint);
	margin-bottom: 10px;
}
.hero h1 {
	font-size: clamp(2.3rem, 7vw, 3.4rem);
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin-bottom: 16px;
}
.hero h1 .dot { color: var(--accent); }
.hero p.lede {
	color: var(--text-dim);
	font-size: 1.2rem;
	max-width: 480px;
	margin: 0 auto;
}

.window {
	max-width: 420px;
	margin: 40px auto 0;
	padding: 18px 20px;
	background: var(--window);
	border-radius: 18px;
	box-shadow:
		inset 0 2px 6px rgba(0, 0, 0, 0.8),
		0 0 0 1px var(--rim),
		0 1px 0 1.5px var(--highlight);
	position: relative;
	overflow: hidden;
}
.window::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 40%, transparent 41%);
	pointer-events: none;
}
.meter {
	display: grid;
	grid-template-columns: repeat(16, 1fr);
	gap: 5px;
	height: 92px;
}
.meter span {
	display: block;
	height: 100%;
	background:
		repeating-linear-gradient(180deg, transparent 0 5px, var(--window) 5px 8px),
		linear-gradient(180deg, #ff453a 0 16%, #ffd23f 16% 40%, #4cd964 40%);
	-webkit-mask: linear-gradient(0deg, #000 var(--level), rgba(0, 0, 0, 0.14) var(--level));
	mask: linear-gradient(0deg, #000 var(--level), rgba(0, 0, 0, 0.14) var(--level));
	border-radius: 2px;
	animation: bounce 1.6s ease-in-out infinite alternate;
}
@property --level {
	syntax: "<percentage>";
	inherits: false;
	initial-value: 50%;
}
@keyframes bounce {
	0% { --level: var(--a); }
	50% { --level: var(--b); }
	100% { --level: var(--c); }
}
@media (prefers-reduced-motion: reduce) {
	.meter span { animation: none; --level: var(--b); }
}
.now {
	display: flex;
	justify-content: space-between;
	margin-top: 12px;
	font: 600 0.72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.45);
}
.now .live { color: var(--accent); }

.pill {
	display: inline-block;
	margin-top: 36px;
	padding: 12px 26px;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--key-top), var(--key-bottom));
	box-shadow: 0 0 0 1px var(--key-edge), inset 0 1px 0 var(--highlight), 0 2px 4px rgba(0, 0, 0, 0.12);
	color: var(--text-dim);
	font-weight: 600;
	font-size: 0.95rem;
}
.pill .led {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 8px var(--accent);
	vertical-align: 1px;
}
.hero p.note {
	color: var(--text-faint);
	font-size: 0.9rem;
	margin-top: 16px;
}

.content { flex: 1; padding: 64px 0 80px; }
.content .back {
	display: inline-block;
	color: var(--text-dim);
	font-size: 0.95rem;
	margin-bottom: 28px;
}
.content h1 { font-size: 2.2rem; line-height: 1.15; margin-bottom: 8px; }
.content h2 { font-size: 1.15rem; margin: 36px 0 10px; }
.content p, .content ul { color: var(--text-dim); margin-bottom: 14px; }
.content ul { padding-left: 22px; }
.content li { margin-bottom: 6px; }
.content strong { color: var(--text); font-weight: 600; }
.content .updated { color: var(--text-faint); font-size: 0.95rem; margin-bottom: 28px; }

.faq details {
	background: linear-gradient(180deg, var(--key-top), var(--key-bottom));
	box-shadow: 0 0 0 1px var(--key-edge), inset 0 1px 0 var(--highlight);
	border-radius: 14px;
	margin-bottom: 12px;
	padding: 0 20px;
}
.faq summary {
	cursor: pointer;
	list-style: none;
	padding: 16px 0;
	font-weight: 600;
	color: var(--text);
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-faint); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 6px; }

.site-footer {
	border-top: 1px solid var(--border);
	padding: 28px 0;
	color: var(--text-faint);
	font-size: 0.9rem;
}
.footer-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-dim); }
