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

:root {
	--bg: #ffffff;              /* background */
	--bg-soft: #f1f1f1;         /* backgroundSecondary */
	--surface: #e4e4e4;         /* backgroundTertiary */
	--text: #14171c;            /* label */
	--text-dim: #6b707a;        /* labelSecondary */
	--text-faint: #999ea8;      /* labelTertiary */
	--accent: #0e9f8e;          /* accent */
	--track: #008c4d;           /* track */
	--border: rgba(26, 51, 92, 0.14); /* separator */
	--max-width: 760px;
	font-size: 16px;
	color-scheme: light 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 1 1 1);
		--bg-soft: color(display-p3 0.945 0.945 0.945);
		--surface: color(display-p3 0.894 0.894 0.894);
		--text: color(display-p3 0.080 0.090 0.110);
		--text-dim: color(display-p3 0.420 0.440 0.480);
		--text-faint: color(display-p3 0.600 0.620 0.660);
		--accent: color(display-p3 0.055 0.624 0.557);
		--track: color(display-p3 0 0.550 0.300);
		--border: color(display-p3 0.100 0.200 0.360 / 0.14);
	}
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0b0d0f;
		--bg-soft: #161a21;
		--surface: #1f242b;
		--text: #f2f2f2;
		--text-dim: #8f8f8f;
		--text-faint: #595959;
		--accent: #2fbfad;
		--track: #52e68f;
		--border: rgba(194, 220, 255, 0.1);
	}
	@supports (color: color(display-p3 1 1 1)) {
		:root {
			--bg: color(display-p3 0.045 0.050 0.060);
			--bg-soft: color(display-p3 0.086 0.100 0.130);
			--surface: color(display-p3 0.120 0.140 0.170);
			--text: color(display-p3 0.950 0.950 0.950);
			--text-dim: color(display-p3 0.560 0.560 0.560);
			--text-faint: color(display-p3 0.350 0.350 0.350);
			--accent: color(display-p3 0.184 0.749 0.678);
			--track: color(display-p3 0.320 0.900 0.560);
			--border: color(display-p3 0.760 0.860 1 / 0.1);
		}
	}
}

* { 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: 600; }

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

.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) 60%, transparent), var(--bg));
}
.app-icon {
	width: 104px;
	height: 104px;
	display: block;
	margin: 0 auto 30px;
	border-radius: 22.4%;
	filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.25));
}
.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;
}
.hero p.note {
	color: var(--text-faint);
	font-size: 0.9rem;
	max-width: 440px;
	margin: 22px auto 0;
}

/* App Store button: the app's PrimaryButton, accent fill, white label, capsule. */
.appstore-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: var(--accent);
	color: #ffffff;
	padding: 14px 26px;
	border-radius: 999px;
	font-weight: 600;
	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; }

/* Legal / content pages */
.content { padding: 56px 0 72px; flex: 1; }
.content .back { color: var(--text-dim); font-size: 0.9rem; display: inline-block; margin-bottom: 28px; }
.content .back:hover { color: var(--text); text-decoration: none; }
.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-dim); }
.content p { margin-bottom: 14px; }
.content ul { margin: 0 0 14px 22px; }
.content li { margin-bottom: 8px; }
.content strong { color: var(--text); font-weight: 600; }
.content a { color: var(--accent); word-break: break-word; }

.callout {
	background: color-mix(in srgb, var(--accent) 8%, transparent);
	border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
	border-radius: 16px;
	padding: 16px 20px;
	margin-bottom: 14px;
}
.callout p { color: var(--text); margin-bottom: 0; }

/* Support page FAQ */
.faq details {
	border-top: 1px solid var(--border);
	padding: 14px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
	cursor: pointer;
	color: var(--text);
	font-weight: 600;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-faint); font-weight: 500; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 10px 0 0; }

.site-footer {
	border-top: 1px solid var(--border);
	padding: 32px 0;
	color: var(--text-faint);
	font-size: 0.8rem;
	font-weight: 500;
}
.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 { color: var(--text-faint); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

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

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