:root {
	--red: #D94040;
	--yellow: #F5C842;
	--blue: #4A7FD9;
	--green: #4CAF6E;
	--purple: #9B59B6;
	--orange: #E08A3C;
	--teal: #3CB4A8;
	--pink: #E8609A;

	--bg: #F2F1EC;
	--surface: #FFFFFF;
	--text: #1C1C1C;
	--muted: #5B5B5B;
	--border: #E2DFD6;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #15161A;
		--surface: #202127;
		--text: #F1F1F1;
		--muted: #B4B4B4;
		--border: #33343B;
	}
}

/* Explicit overrides win over prefers-color-scheme (see /theme.js) */
:root[data-theme="light"] {
	--bg: #F2F1EC;
	--surface: #FFFFFF;
	--text: #1C1C1C;
	--muted: #5B5B5B;
	--border: #E2DFD6;
}

:root[data-theme="dark"] {
	--bg: #15161A;
	--surface: #202127;
	--text: #F1F1F1;
	--muted: #B4B4B4;
	--border: #33343B;
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
}

h1, h2, h3, p {
	margin: 0;
}

a {
	color: inherit;
}

.wrap {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 24px;
}

/* --- Nav (clickable — pill + border, the reference "this is a link" style) --- */

nav.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 0;
}

.brand {
	font-weight: 800;
	font-size: 20px;
	text-decoration: none;
}

.brand span {
	color: var(--red);
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.navlinks {
	display: flex;
	gap: 10px;
	font-size: 14px;
}

.navlinks a {
	text-decoration: none;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--surface);
	border: 2px solid var(--border);
	font-weight: 600;
}

.theme-toggle {
	display: flex;
	gap: 2px;
	padding: 3px;
	border-radius: 999px;
	background: var(--surface);
	border: 2px solid var(--border);
}

.theme-toggle button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
	line-height: 1;
	font-size: 14px;
}

.theme-toggle button[aria-pressed="true"] {
	background: var(--bg);
	color: var(--text);
	box-shadow: inset 0 0 0 1px var(--border);
}

/* --- Hero --- */

.hero {
	padding: 56px 0 40px;
	text-align: center;
	margin-top: 8px;
}

.hero h1 {
	font-size: 52px;
	line-height: 1.05;
	margin: 0 0 14px;
	font-weight: 800;
	letter-spacing: -.01em;
}

.hero h1 .hook {
	color: var(--red);
}

.hero p {
	font-size: 18px;
	color: var(--muted);
	max-width: 560px;
	margin: 0 auto 28px;
	font-weight: 500;
}

/* --- Store links (clickable, but muted/dim until real — "Coming soon") --- */

.store-row {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-bottom: 36px;
	flex-wrap: wrap;
}

.store {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	border: 2px solid var(--border);
	background: var(--surface);
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.store .soon {
	color: var(--red);
	font-weight: 800;
	text-transform: uppercase;
	font-size: 10.5px;
	letter-spacing: .03em;
	margin-left: 2px;
}

.ico {
	display: inline-block;
	width: 13px;
	height: 13px;
	flex: none;
	background: var(--muted);
	opacity: .5;
}

.ico-steam {
	border-radius: 50%;
}

.ico-appstore {
	border-radius: 4px;
}

.ico-play {
	background: none;
	width: 0;
	height: 0;
	border-left: 9px solid var(--muted);
	border-top: 5.5px solid transparent;
	border-bottom: 5.5px solid transparent;
	opacity: .5;
}

/* --- Hero screenshot placeholder (neutral — no gradient) --- */

.shot {
	background: var(--surface);
	border: 2px solid var(--border);
	border-radius: 16px;
	height: 240px;
	max-width: 680px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--muted);
	font-weight: 600;
	font-size: 14px;
}

/* --- Pillars divider (NOT button-shaped — a plain-text divider band) --- */

.pillars {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 30px;
	padding: 22px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	flex-wrap: wrap;
}

.pillar {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
}

.pillar i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}

/* --- Feature cards (content blocks — bordered, NOT button-shaped/filled) --- */

.features {
	padding: 20px 0 40px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}

.card {
	border-radius: 10px;
	padding: 22px;
	background: var(--surface);
	border: 2px solid var(--border);
}

.card .bar {
	width: 30px;
	height: 4px;
	border-radius: 2px;
	margin-bottom: 14px;
}

.card h3 {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 800;
	color: var(--text);
}

.card p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--muted);
}

/* --- Status tag (small rectangular tag — a label, NOT a button pill) --- */

.badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: .03em;
}

.badge.now {
	color: var(--green);
	background: color-mix(in srgb, var(--green) 16%, transparent);
}

.badge.next {
	color: var(--blue);
	background: color-mix(in srgb, var(--blue) 16%, transparent);
}

.badge.later {
	color: var(--muted);
	background: color-mix(in srgb, var(--muted) 16%, transparent);
}

/* --- Swatches (decorative curling-stone colors) --- */

.swatches {
	display: flex;
	gap: 8px;
	justify-content: center;
	padding: 28px 0 48px;
}

.swatch {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid var(--surface);
}

/* --- Footer --- */

footer.site-footer {
	border-top: 1px solid var(--border);
	padding: 28px 0;
	text-align: center;
	font-size: 12px;
	color: var(--muted);
	font-weight: 600;
}

footer.site-footer .privacy {
	max-width: 520px;
	margin: 0 auto 10px;
	font-weight: 400;
	line-height: 1.5;
}

footer.site-footer .foot-links {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-bottom: 12px;
	flex-wrap: wrap;
	font-weight: 400;
}

footer.site-footer .foot-links .soon {
	color: var(--muted);
	font-style: italic;
}

/* --- Generic page header (Roadmap / Leaderboard / FAQ) --- */

.page-header {
	padding: 48px 0 8px;
	text-align: center;
}

.page-header h1 {
	font-size: 36px;
	font-weight: 800;
	margin-bottom: 8px;
}

.page-header .sub {
	color: var(--muted);
	font-size: 15px;
}

/* --- Roadmap --- */

.roadmap-group {
	padding: 28px 0;
}

.roadmap-group ul {
	list-style: none;
	padding: 0;
	margin: 16px 0 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.roadmap-group li {
	padding: 14px 16px;
	border: 2px solid var(--border);
	border-radius: 10px;
	background: var(--surface);
	font-size: 14px;
	color: var(--text);
}

/* --- Leaderboard --- */

.stat-counter {
	text-align: center;
	padding: 32px 0 8px;
}

.stat-counter .value {
	font-size: 56px;
	font-weight: 800;
	color: var(--text);
	display: block;
}

.stat-counter .label {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--muted);
	font-weight: 700;
}

.lb-caption {
	text-align: center;
	color: var(--muted);
	font-size: 13px;
	margin-top: 4px;
	padding-bottom: 8px;
}

.lb-table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0 56px;
}

.lb-table th {
	text-align: left;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--muted);
	padding: 10px 12px;
	border-bottom: 2px solid var(--border);
}

.lb-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
	font-size: 14px;
}

/* --- FAQ (zero-JS <details> accordion) --- */

.faq-list {
	padding: 20px 0 56px;
}

.faq-item {
	border: 2px solid var(--border);
	border-radius: 10px;
	margin-bottom: 10px;
	background: var(--surface);
}

.faq-item summary {
	padding: 14px 44px 14px 18px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	position: relative;
}

.faq-item summary::-webkit-details-marker {
	display: none;
}

.faq-item summary::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 12px;
	color: var(--muted);
	font-weight: 800;
}

.faq-item[open] summary::after {
	content: "\2212";
}

.faq-item .answer {
	padding: 0 18px 16px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
}

.faq-item .answer p {
	margin: 0 0 10px;
}

.faq-item .answer p:last-child {
	margin-bottom: 0;
}

/* --- Mobile --- */

@media (max-width: 640px) {
	.wrap {
		padding: 0 16px;
	}

	nav.site-nav {
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 12px;
		padding: 16px 0;
	}

	.nav-right {
		display: contents;
	}

	.navlinks {
		order: 2;
		flex-basis: 100%;
		flex-wrap: wrap;
		justify-content: center;
	}

	.theme-toggle {
		order: 1;
		gap: 4px;
	}

	.theme-toggle button {
		width: 34px;
		height: 34px;
	}

	.navlinks a {
		padding: 6px 10px;
	}

	.hero h1 {
		font-size: 34px;
	}

	.hero p {
		font-size: 16px;
	}

	.store-row {
		gap: 8px;
	}

	.shot {
		height: 160px;
	}

	.lb-table th,
	.lb-table td {
		padding: 8px 8px;
		font-size: 13px;
	}

	.lb-table td {
		word-break: break-word;
	}
}
