/* ChartGuessr — shared design system. Dark navy + gold, matches the app. */

:root {
	--bg: #0a0e14;
	--bg-soft: #0f1419;
	--surface: #131a24;
	--surface-2: #1a2230;
	--border: #232d3d;
	--text: #e9edf4;
	--muted: #9aa7b8;
	--gold: #fbbf24;
	--gold-2: #f59e0b;
	--green: #22c55e;
	--red: #ef4444;
	--radius: 16px;
	--radius-lg: 24px;
	--maxw: 1120px;
	--gold-grad: linear-gradient(100deg, #fbbf24, #f59e0b);
}

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

html {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	* {
		animation: none !important;
		transition: none !important;
	}
}

body {
	background: var(--bg);
	color: var(--text);
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
		sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}
a {
	color: var(--gold);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
	border-radius: 4px;
}

.wrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Nav ---------- */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10, 14, 20, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}
.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	gap: 16px;
}
.nav-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 1.15rem;
	color: var(--text);
}
.nav-brand:hover {
	text-decoration: none;
}
.nav-brand img {
	width: 32px;
	height: 32px;
	border-radius: 8px;
}
.nav-brand .gold {
	background: var(--gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.nav-links {
	display: flex;
	align-items: center;
	gap: 22px;
	font-size: 0.95rem;
}
.nav-links a {
	color: var(--muted);
	font-weight: 500;
}
.nav-links a:hover {
	color: var(--text);
	text-decoration: none;
}
@media (max-width: 720px) {
	.nav-links .hide-m {
		display: none;
	}
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 700;
	border-radius: 12px;
	padding: 12px 22px;
	font-size: 1rem;
	cursor: pointer;
	border: 0;
	white-space: nowrap;
}
.btn:hover {
	text-decoration: none;
}
.btn-gold {
	background: var(--gold-grad);
	color: #171204;
	box-shadow: 0 8px 24px rgba(245, 158, 11, 0.28);
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease;
}
.btn-gold:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4);
}
.btn-ghost {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--border);
	transition: border-color 0.15s ease;
}
.btn-ghost:hover {
	border-color: var(--gold);
}
.btn-sm {
	padding: 9px 16px;
	font-size: 0.9rem;
}

/* Store badges */
.badges {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
}
.store-badge {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	background: #000;
	border: 1px solid #3a4356;
	border-radius: 12px;
	padding: 9px 18px 9px 14px;
	color: #fff;
	min-width: 170px;
	transition:
		transform 0.15s ease,
		border-color 0.15s ease;
}
.store-badge:hover {
	transform: translateY(-2px);
	border-color: var(--gold);
	text-decoration: none;
}
.store-badge svg {
	width: 26px;
	height: 26px;
	flex: none;
}
.store-badge .sb-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	text-align: left;
}
.store-badge .sb-top {
	font-size: 0.65rem;
	color: #cbd5e1;
	letter-spacing: 0.02em;
}
.store-badge .sb-bottom {
	font-size: 1.08rem;
	font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	padding: 72px 0 40px;
	overflow: hidden;
}
.hero-bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(
			600px 420px at 85% 10%,
			rgba(251, 191, 36, 0.09),
			transparent 65%
		),
		radial-gradient(
			520px 380px at 8% 85%,
			rgba(34, 197, 94, 0.07),
			transparent 65%
		);
}
.hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 48px;
	align-items: center;
}
@media (max-width: 860px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}
}
.hero h1 {
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	line-height: 1.12;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-bottom: 18px;
}
.hero h1 .gold {
	background: var(--gold-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero .sub {
	color: var(--muted);
	font-size: clamp(1.02rem, 2vw, 1.2rem);
	max-width: 34em;
	margin-bottom: 28px;
}
.hero-proof {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
	margin-top: 26px;
	color: var(--muted);
	font-size: 0.92rem;
}
.hero-proof strong {
	color: var(--text);
	font-weight: 700;
}
.hero-proof .stars {
	color: var(--gold);
	letter-spacing: 2px;
}
.hero-shot {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 0;
}
.hero-shot img {
	width: min(230px, 46vw);
	border-radius: 28px;
	border: 1px solid var(--border);
	box-shadow:
		0 30px 80px rgba(0, 0, 0, 0.55),
		0 0 60px rgba(251, 191, 36, 0.08);
	transform: rotate(-3deg);
	position: relative;
	z-index: 2;
	flex: none;
}
.hero-shot-2 {
	margin-left: 10px;
	transform: rotate(3deg);
}

/* ---------- Sections ---------- */
.section {
	padding: 72px 0;
}
.section-alt {
	background: var(--bg-soft);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.kicker {
	color: var(--gold);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
	margin-bottom: 10px;
}
.section h2 {
	font-size: clamp(1.6rem, 3.5vw, 2.3rem);
	font-weight: 800;
	letter-spacing: -0.01em;
	margin-bottom: 12px;
}
.section .lead {
	color: var(--muted);
	max-width: 46em;
	margin-bottom: 36px;
	font-size: 1.05rem;
}
.center {
	text-align: center;
}
.center .lead {
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Screenshot gallery ---------- */
.shots {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(240px, 62vw);
	gap: 18px;
	overflow-x: auto;
	padding: 8px 4px 18px;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--border) transparent;
}
.shots figure {
	scroll-snap-align: start;
}
.shots img {
	border-radius: 22px;
	border: 1px solid var(--border);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.shots figcaption {
	color: var(--muted);
	font-size: 0.88rem;
	margin-top: 10px;
	text-align: center;
}

/* ---------- Cards / grids ---------- */
.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}
@media (max-width: 860px) {
	.grid-3 {
		grid-template-columns: 1fr;
	}
	.grid-2 {
		grid-template-columns: 1fr;
	}
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 26px;
}
.card h3 {
	font-size: 1.12rem;
	font-weight: 700;
	margin-bottom: 8px;
}
.card p {
	color: var(--muted);
	font-size: 0.95rem;
}
.card .num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	margin-bottom: 16px;
	background: rgba(251, 191, 36, 0.12);
	color: var(--gold);
	font-weight: 800;
	font-size: 1.1rem;
}
.card .emoji {
	font-size: 1.6rem;
	margin-bottom: 14px;
	display: block;
}

/* Step cards with screenshots */
.step-shot {
	border-radius: 14px;
	border: 1px solid var(--border);
	margin-top: 18px;
}

/* Guide cards */
.guide-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--text);
	transition:
		border-color 0.15s ease,
		transform 0.15s ease;
}
.guide-card:hover {
	border-color: var(--gold);
	transform: translateY(-3px);
	text-decoration: none;
}
.guide-card .tag {
	color: var(--gold);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.guide-card h3 {
	font-size: 1.08rem;
	font-weight: 700;
	line-height: 1.35;
}
.guide-card p {
	color: var(--muted);
	font-size: 0.92rem;
	flex: 1;
}
.guide-card .more {
	color: var(--gold);
	font-size: 0.9rem;
	font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq {
	max-width: 780px;
	margin: 0 auto;
}
.faq details {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin-bottom: 12px;
	overflow: hidden;
}
.faq details[open] {
	border-color: rgba(251, 191, 36, 0.45);
}
.faq summary {
	cursor: pointer;
	padding: 18px 22px;
	font-weight: 700;
	font-size: 1.02rem;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 14px;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary::after {
	content: "+";
	color: var(--gold);
	font-size: 1.4rem;
	font-weight: 400;
	flex: none;
	transition: transform 0.2s ease;
}
.faq details[open] summary::after {
	transform: rotate(45deg);
}
.faq .faq-a {
	padding: 0 22px 20px;
	color: var(--muted);
	font-size: 0.97rem;
}
.faq .faq-a a {
	font-weight: 600;
}

/* ---------- CTA band ---------- */
.cta-band {
	background:
		radial-gradient(
			480px 260px at 50% 0%,
			rgba(251, 191, 36, 0.12),
			transparent 70%
		),
		var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 56px 28px;
	text-align: center;
}
.cta-band h2 {
	font-size: clamp(1.6rem, 3.5vw, 2.2rem);
	font-weight: 800;
	margin-bottom: 10px;
}
.cta-band p {
	color: var(--muted);
	margin-bottom: 26px;
}
.cta-band .badges {
	justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
	border-top: 1px solid var(--border);
	padding: 48px 0 40px;
	background: var(--bg-soft);
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 32px;
	margin-bottom: 32px;
}
@media (max-width: 860px) {
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 520px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}
.footer h4 {
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--muted);
	margin-bottom: 14px;
}
.footer ul {
	list-style: none;
}
.footer li {
	margin-bottom: 9px;
}
.footer a {
	color: var(--text);
	font-size: 0.93rem;
	opacity: 0.85;
}
.footer a:hover {
	color: var(--gold);
	opacity: 1;
	text-decoration: none;
}
.footer .about {
	color: var(--muted);
	font-size: 0.92rem;
	max-width: 30em;
}
.footer .about .brandline {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	color: var(--text);
	font-weight: 800;
}
.footer .about img {
	width: 28px;
	height: 28px;
	border-radius: 7px;
}
.footer-bottom {
	border-top: 1px solid var(--border);
	padding-top: 22px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	color: var(--muted);
	font-size: 0.85rem;
}

/* ---------- Article / guide pages ---------- */
.article {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 20px 24px;
}
.article .crumbs {
	font-size: 0.85rem;
	color: var(--muted);
	margin-bottom: 26px;
}
.article .crumbs a {
	color: var(--muted);
}
.article .crumbs a:hover {
	color: var(--gold);
}
.article h1 {
	font-size: clamp(1.9rem, 4.5vw, 2.7rem);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-bottom: 16px;
}
.article .byline {
	color: var(--muted);
	font-size: 0.9rem;
	margin-bottom: 32px;
}
.article h2 {
	font-size: 1.5rem;
	font-weight: 800;
	margin: 40px 0 14px;
	letter-spacing: -0.01em;
}
.article h3 {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 28px 0 10px;
}
.article p {
	margin-bottom: 16px;
	color: #c6cfdc;
}
.article ul,
.article ol {
	margin: 0 0 16px 22px;
	color: #c6cfdc;
}
.article li {
	margin-bottom: 8px;
}
.article strong {
	color: var(--text);
}
.article .shot-inline {
	width: min(300px, 80vw);
	border-radius: 20px;
	border: 1px solid var(--border);
	margin: 26px auto;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.article .tip {
	background: rgba(251, 191, 36, 0.07);
	border: 1px solid rgba(251, 191, 36, 0.3);
	border-radius: var(--radius);
	padding: 18px 20px;
	margin: 22px 0;
	font-size: 0.96rem;
	color: #d8dee9;
}
.article .tip strong {
	color: var(--gold);
}
.article table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 0.93rem;
	display: block;
	overflow-x: auto;
}
.article th,
.article td {
	border: 1px solid var(--border);
	padding: 10px 14px;
	text-align: left;
}
.article th {
	background: var(--surface);
	color: var(--text);
}
.article td {
	color: #c6cfdc;
}

/* Quiz reveal blocks inside articles */
.article details {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	margin: 0 0 14px;
	overflow: hidden;
}
.article details[open] {
	border-color: rgba(251, 191, 36, 0.45);
}
.article summary {
	cursor: pointer;
	padding: 15px 20px;
	font-weight: 700;
	font-size: 0.98rem;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	color: var(--text);
}
.article summary::-webkit-details-marker {
	display: none;
}
.article summary::after {
	content: "+";
	color: var(--gold);
	font-size: 1.3rem;
	font-weight: 400;
	flex: none;
}
.article details[open] summary::after {
	content: "–";
}
.article details > *:not(summary) {
	padding-left: 20px;
	padding-right: 20px;
}
.article details > p:last-child,
.article details > div:last-child {
	padding-bottom: 16px;
}
.article details p {
	margin-bottom: 10px;
}

/* In-article CTA */
.article-cta {
	background: var(--surface);
	border: 1px solid rgba(251, 191, 36, 0.35);
	border-radius: var(--radius-lg);
	padding: 30px 26px;
	margin: 40px 0;
	text-align: center;
}
.article-cta h3 {
	margin: 0 0 8px;
	font-size: 1.25rem;
}
.article-cta p {
	color: var(--muted);
	margin-bottom: 18px;
}
.article-cta .badges {
	justify-content: center;
}

/* Related guides strip */
.related {
	border-top: 1px solid var(--border);
	margin-top: 48px;
	padding-top: 32px;
}
.related h2 {
	font-size: 1.25rem;
	margin: 0 0 18px;
}
