/* L8R site styles, matched to the app's color tokens (Assets.xcassets/Colors/UI) */

:root {
	--bg: #080808;              /* background */
	--bg-soft: #121212;         /* secondaryBackground */
	--surface: #1a1a1a;         /* tertiaryBackground */
	--text: #f4f4f2;            /* label */
	--text-dim: #a3a29d;        /* secondaryLabel */
	--text-faint: #585854;      /* tertiaryLabel */
	--accent: #e8c24e;          /* accent, warm amber */
	--border: rgba(255, 255, 255, 0.08); /* separator */
	--max-width: 760px;
	--radius: 20px;
	font-size: 16px;
	color-scheme: dark;
}

/* App tokens are authored in Display P3; match them exactly where supported. */
@supports (color: color(display-p3 1 1 1)) {
	:root {
		--bg: color(display-p3 0.031 0.031 0.031);
		--bg-soft: color(display-p3 0.071 0.071 0.071);
		--surface: color(display-p3 0.102 0.102 0.102);
		--text: color(display-p3 0.957 0.957 0.949);
		--text-dim: color(display-p3 0.639 0.635 0.616);
		--text-faint: color(display-p3 0.345 0.345 0.329);
		--accent: color(display-p3 0.910 0.761 0.306);
		--border: color(display-p3 0.996 1 1 / 0.08);
	}
}

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
	background: var(--bg);
	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: 500; }

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

/* Mechanical caps labels, the app's caption style. */
.caption {
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

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

/* Hero */
.hero {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	padding: 40px 0;
	background: linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 50%, transparent), var(--bg));
}
.app-icon {
	width: 104px;
	height: 104px;
	display: block;
	margin: 0 auto 30px;
	filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.45));
}
.hero .eyebrow {
	color: var(--text-faint);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.hero h1 {
	font-size: clamp(2.4rem, 7vw, 3.6rem);
	line-height: 1.05;
	margin: 16px 0 18px;
	letter-spacing: 0.01em;
}
.hero p.lede {
	color: var(--text-dim);
	font-size: 1.15rem;
	max-width: 540px;
	margin: 0 auto 34px;
}

/* App Store button: the app's RectangleButton: white slab, dark text. */
.appstore-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: var(--text);
	color: var(--bg);
	padding: 14px 22px;
	border-radius: 12px;
	font-weight: 500;
	font-size: 1.02rem;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.appstore-btn:hover { transform: translateY(-2px); text-decoration: none; opacity: 0.92; }
.appstore-btn svg { width: 26px; height: 26px; }
.appstore-btn .small { display: block; font-size: 0.7rem; font-weight: 500; opacity: 0.7; line-height: 1; margin-bottom: 2px; }
.appstore-btn .big { display: block; font-size: 1.05rem; line-height: 1.1; }

/* Download redirect page hint (in-app browser escape). */
.hint {
	color: var(--text-dim);
	font-size: 0.9rem;
	max-width: 360px;
	margin: 26px auto 0;
}
.hint strong { color: var(--text); font-weight: 500; }

/* Legal / content pages */
.content { padding: 56px 0 72px; flex: 1; }
.content h1 { font-size: 2rem; margin-bottom: 6px; }
.content .updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 36px; }
.content h2 { font-size: 1.25rem; margin: 34px 0 12px; }
.content p, .content li { color: var(--text); }
.content p { margin-bottom: 14px; }
.content ul { margin: 0 0 14px 22px; }
.content li { margin-bottom: 8px; }
.content a { color: var(--accent); word-break: break-word; }

/* Footer: quiet caps, like the app's legal row. */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 32px 0;
	color: var(--text-faint);
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a, .footer-inner > a { color: var(--text-faint); }
.footer-links a:hover, .footer-inner > a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 520px) {
	.hero { padding: 32px 0; }
}
