/* ═══════════════════════════════════════════════════════
   Wrist Assistant site pages: gallery, changelog, support, import
   True black, system type, hairlines. The home page has its own
   home.css with the same tokens; keep the two in step.
   ═══════════════════════════════════════════════════════ */

:root {
	/* The site is dark only. Saying so stops a browser's automatic dark mode
	   from repainting it, which turned small dark previews white. */
	color-scheme: dark;
	--bg: #000;
	--bg-card: #0c0c0e;
	--bg-card-hover: #131315;
	--border: rgba(255, 255, 255, 0.07);
	--border-hover: rgba(255, 255, 255, 0.14);
	--text: #a1a1a6;
	--text-bright: #f5f5f7;
	--text-muted: #6e6e73;
	--teal: #2dd4bf;
	--teal-dim: rgba(45, 212, 191, 0.1);
	--teal-glow: rgba(45, 212, 191, 0.15);
	--blue: #60a5fa;
	--font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
		"Helvetica Neue", "Inter", system-ui, sans-serif;
	--font-body: var(--font-display);
	--ease: cubic-bezier(0.23, 1, 0.32, 1);
	--radius: 16px;
	--radius-lg: 20px;
	--max-w: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Keyboard focus — visible ring for keyboard users */
:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 3px;
	border-radius: 6px;
}

/* Respect Reduce Motion: neutralize animations, reveals, and smooth scroll */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.anim-fade-up,
	.anim-reveal {
		opacity: 1 !important;
		transform: none !important;
	}
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* The film grain overlay is retired; the div stays in old markup. */
.grain { display: none; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; }

/* Once a teal-to-blue gradient; headlines are plain white now. */
.gradient-text,
h1 .gradient-text {
	color: var(--text-bright);
}

/* ── Animations ────────────────────────────────────── */

@keyframes fade-up {
	from { opacity: 0; transform: translateY(28px); }
	to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up {
	animation: fade-up 0.8s var(--ease) both;
}
.anim-d1 { animation-delay: 0.1s; }
.anim-d2 { animation-delay: 0.2s; }
.anim-d3 { animation-delay: 0.35s; }
.anim-d4 { animation-delay: 0.5s; }

.anim-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.anim-reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Header ────────────────────────────────────────── */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: 52px;
	padding: 0 24px;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: saturate(1.8) blur(20px);
	-webkit-backdrop-filter: saturate(1.8) blur(20px);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	max-width: var(--max-w);
	height: 100%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 32px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 15px;
	color: var(--text-bright);
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.brand img {
	width: 24px;
	height: 24px;
	border-radius: 6px;
}

.site-nav {
	display: flex;
	gap: 28px;
	margin-left: auto;
	font-size: 13px;
	color: var(--text);
}

.site-nav a {
	transition: color 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text-bright); }

.nav-cta {
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--text-bright);
	color: #000;
	font-weight: 600;
	font-size: 13px;
	transition: background 0.2s ease;
	white-space: nowrap;
}
.nav-cta:hover { background: #fff; }

/* ── Hero ──────────────────────────────────────────── */

.hero {
	position: relative;
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 100px 20px 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	overflow: visible;
}

.hero-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(120px);
	pointer-events: none;
	z-index: -1;
}
.hero-glow-1 {
	width: 700px; height: 700px;
	top: -200px; left: 50%;
	transform: translateX(-50%);
	background: rgba(45, 212, 191, 0.07);
}
.hero-glow-2 {
	width: 500px; height: 500px;
	top: -50px; left: 10%;
	background: rgba(96, 165, 250, 0.05);
}
.hero-glow-3 {
	width: 400px; height: 400px;
	top: 40px; right: 10%;
	background: rgba(45, 212, 191, 0.04);
}

.hero-content {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(45, 212, 191, 0.2);
	background: var(--teal-dim);
	font-size: 0.78rem;
	font-weight: 600;
	font-family: var(--font-display);
	color: var(--teal);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 28px;
}

.badge-dot {
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--teal);
	box-shadow: 0 0 8px var(--teal);
	animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

h1 {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(40px, 6vw, 72px);
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -0.03em;
	color: var(--text-bright);
}

.hero-sub {
	margin: 28px auto 0;
	max-width: 580px;
	font-size: 1.15rem;
	line-height: 1.7;
	color: var(--text);
}

.hero-tagline {
	margin: 20px auto 0;
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--teal);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-top: 36px;
}

/* ── Buttons ───────────────────────────────────────── */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 999px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: -0.01em;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
	cursor: pointer;
}

.btn-primary {
	background: var(--text-bright);
	color: #000;
}
.btn-primary:hover { background: #fff; }

.btn-ghost {
	background: transparent;
	border: 1px solid var(--border-hover);
	color: var(--text-bright);
}
.btn-ghost:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.25);
}

.app-store-badge {
	display: inline-flex;
	align-self: center;
	transition: transform 0.2s var(--ease);
}
.app-store-badge img {
	display: block;
	height: 54px;
	width: auto;
}
.app-store-badge:hover {
	transform: translateY(-2px);
}

/* Platform-aware install CTAs.
   Hidden by default; the inline head script adds .is-ios or .is-desktop to <html>
   to reveal the right one. No-JS users see the iOS badge as a safe fallback. */
.install-ios { display: none; }
.install-desktop { display: none; }
html.is-ios .install-ios { display: inline-flex; }
html.is-desktop .install-desktop { display: inline-flex; }
html:not(.is-ios):not(.is-desktop) .install-ios { display: inline-flex; }

.install-qr {
	display: none;
	align-items: center;
	gap: 14px;
	padding: 10px 16px 10px 10px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border);
	backdrop-filter: blur(12px);
	transition: border-color 0.2s ease, background 0.2s ease;
}
html.is-desktop .install-qr { display: inline-flex; }
.install-qr:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--border-hover);
}
.install-qr-code {
	display: block;
	width: 88px;
	height: 88px;
	border-radius: 8px;
	background: #fff;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
	transform-origin: 50% 100%;
	transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.install-qr:hover .install-qr-code {
	transform: translateY(-120px) scale(3);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.install-qr-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-align: left;
	max-width: 200px;
}
.install-qr-eyebrow {
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--text-bright);
	letter-spacing: -0.01em;
}
.install-qr-line {
	font-size: 0.82rem;
	color: var(--text-muted);
	line-height: 1.35;
}


/* ── Stats ─────────────────────────────────────────── */

.stats {
	max-width: var(--max-w);
	margin: 24px auto 0;
	padding: 28px 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	backdrop-filter: blur(12px);
}

.stat {
	flex: 1;
	text-align: center;
	padding: 8px 16px;
}

.stat-divider {
	width: 1px;
	height: 40px;
	background: var(--border);
	flex-shrink: 0;
}

.stat-num {
	display: block;
	font-family: var(--font-display);
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--text-bright);
}

.stat-label {
	display: block;
	margin-top: 4px;
	font-size: 0.82rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 500;
}

/* ── Section common ────────────────────────────────── */

.bento, .how, .closing {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 80px 20px 0;
}

.section-label {
	display: block;
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--teal);
}

.label-line { display: none; }

.section-title {
	margin: 0 0 48px;
	font-family: var(--font-display);
	font-size: clamp(32px, 4.6vw, 56px);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.02em;
	color: var(--text-bright);
}

/* ── Bento grid ────────────────────────────────────── */

.bento-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 14px;
}

.bento-card {
	padding: 28px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
	position: relative;
	overflow: hidden;
}

.bento-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.3), transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.bento-card:hover {
	border-color: var(--border-hover);
	background: var(--bg-card-hover);
	transform: translateY(-2px);
}

.bento-card:hover::before {
	opacity: 1;
}

/* Row 1: wide (7) + normal (5) */
.bento-card:nth-child(1) { grid-column: span 7; }
.bento-card:nth-child(2) { grid-column: span 5; }
/* Row 2: normal (4) + normal (4) + normal (4) — but we only have 2, so 5+7 */
.bento-card:nth-child(3) { grid-column: span 5; }
.bento-card:nth-child(4) { grid-column: span 7; }
/* Row 3: wide accent full */
.bento-card:nth-child(5) { grid-column: span 12; }

.bento-accent {
	background:
		radial-gradient(ellipse at 20% 50%, rgba(45, 212, 191, 0.04), transparent 60%),
		var(--bg-card);
	border-color: rgba(45, 212, 191, 0.1);
}

.bento-icon {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--teal-dim);
	color: var(--teal);
	margin-bottom: 18px;
}

.bento-card h3 {
	margin: 0 0 10px;
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text-bright);
}

.bento-card p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--text);
}

/* ── Showcase ──────────────────────────────────────── */

.showcase {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 80px 20px 0;
}

.showcase-row {
	display: flex;
	gap: 14px;
}

.showcase-row + .showcase-row {
	margin-top: 14px;
}

.showcase-row-iphone .showcase-item {
	flex: 1;
	min-width: 0;
}

.showcase-row-watch {
	justify-content: center;
}

.showcase-item {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--bg-card);
	border: 1px solid var(--border);
	transition: border-color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.showcase-item::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.3), transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 2;
}

.showcase-item:hover {
	border-color: var(--border-hover);
	transform: translateY(-4px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.showcase-item img,
.showcase-item video {
	transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
}

.showcase-item:hover img,
.showcase-item:hover video {
	filter: brightness(1.08);
}

.showcase-watch:hover {
	transform: translateY(-4px) scale(1.03);
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.4),
		0 0 40px rgba(45, 212, 191, 0.08),
		0 0 0 1px rgba(45, 212, 191, 0.1);
}

.showcase-watch:hover img,
.showcase-watch:hover video {
	filter: brightness(1.12);
}

.showcase-item:hover::before {
	opacity: 1;
}

.showcase-item img,
.showcase-item video {
	width: 100%;
	display: block;
}

.showcase-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 48px 18px 16px;
	background: linear-gradient(to top, rgba(10, 13, 20, 0.92) 0%, rgba(10, 13, 20, 0.6) 50%, transparent 100%);
	z-index: 1;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.showcase-item:hover .showcase-caption {
	opacity: 1;
	transform: translateY(0);
}

.showcase-caption strong {
	display: block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--text-bright);
	margin-bottom: 3px;
}

.showcase-caption span {
	font-size: 0.8rem;
	color: var(--text-muted);
	line-height: 1.4;
}

/* Row labels */
.showcase-row-label {
	margin-top: 32px;
	margin-bottom: 14px;
	font-family: var(--font-display);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: center;
}

.showcase-row-label:first-of-type {
	margin-top: 0;
}

.showcase-row-label-iphone {
	margin-top: 48px;
}

/* Watch items: larger, more presence */
.showcase-watch {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background:
		radial-gradient(ellipse at 50% 50%, rgba(45, 212, 191, 0.04), transparent 65%),
		var(--bg-card);
	border-color: rgba(255, 255, 255, 0.08);
}

.showcase-watch img,
.showcase-watch video {
	width: 88%;
	border-radius: 28px;
	margin: 0 auto;
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(255, 255, 255, 0.06);
}

.showcase-row-watch .showcase-item {
	flex: 0 1 210px;
}

@media (max-width: 960px) {
	.showcase-row-iphone {
		flex-wrap: wrap;
	}
	.showcase-row-iphone .showcase-item {
		flex: 1 1 calc(50% - 7px);
	}
}

@media (max-width: 640px) {
	.showcase-row {
		gap: 10px;
	}
	.showcase-row + .showcase-row {
		margin-top: 10px;
	}
	.showcase-row-iphone {
		flex-wrap: wrap;
	}
	.showcase-row-iphone .showcase-item {
		flex: 1 1 calc(50% - 5px);
	}
}

/* ── Steps ─────────────────────────────────────────── */

.steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 14px;
}

.step {
	display: flex;
	gap: 24px;
	padding: 28px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: border-color 0.3s ease, transform 0.3s var(--ease);
}

.step:hover {
	border-color: var(--border-hover);
	transform: translateX(4px);
}

.step-num {
	font-family: var(--font-display);
	font-size: 2.4rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: rgba(45, 212, 191, 0.15);
	line-height: 1;
	flex-shrink: 0;
	min-width: 56px;
}

.step-body h3 {
	margin: 0 0 8px;
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text-bright);
}

.step-body p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--text);
}

/* ── Closing ───────────────────────────────────────── */

.closing {
	padding-bottom: 40px;
}

.closing-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 14px;
}

.closing-card {
	padding: 32px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.closing-card-main {
	background:
		radial-gradient(ellipse at 10% 80%, rgba(45, 212, 191, 0.05), transparent 50%),
		var(--bg-card);
	border-color: rgba(45, 212, 191, 0.1);
	display: flex;
	flex-direction: column;
}

.closing-eyebrow {
	font-family: var(--font-display);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--teal);
	margin-bottom: 16px;
}

.closing-card h2 {
	margin: 0 0 16px;
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.035em;
	color: var(--text-bright);
}

.closing-card p {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text);
	margin: 0;
}

.closing-card .btn {
	margin-top: auto;
	padding-top: 24px;
	align-self: flex-start;
}

.req-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 14px;
}

.req-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	color: var(--text);
}

.req-list svg {
	flex-shrink: 0;
	color: var(--teal);
}

/* ── Support Page ─────────────────────────────────── */

.support-page {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 72px 20px 40px;
}

.support-hero {
	max-width: 780px;
}

.support-hero h1 {
	font-size: clamp(40px, 6vw, 72px);
}

.support-lede {
	margin: 20px 0 0;
	font-size: 19px;
	line-height: 1.5;
	color: var(--text);
}

.support-contact {
	margin-top: 32px;
	display: inline-grid;
	gap: 8px;
	padding: 22px 24px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}

.support-contact span {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--teal);
}

.support-contact a {
	font-family: var(--font-display);
	font-size: clamp(20px, 3vw, 28px);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--text-bright);
}
.support-contact a:hover { text-decoration: underline; }

.support-contact small {
	color: var(--text-muted);
}

.support-grid {
	margin-top: 56px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.support-card,
.support-detail {
	background: var(--bg-card);
	box-shadow: inset 0 0 0 1px var(--border);
	border-radius: var(--radius-lg);
}

.support-card {
	padding: 28px;
	display: flex;
	flex-direction: column;
	min-height: 300px;
	transition: box-shadow 0.3s ease, background 0.3s ease;
}

.support-card:hover {
	box-shadow: inset 0 0 0 1px var(--border-hover);
	background: var(--bg-card-hover);
}

.support-icon {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--teal-dim);
	color: var(--teal);
	margin-bottom: 18px;
}

.support-card h2,
.support-detail h2 {
	margin: 0 0 10px;
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--text-bright);
}

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

.support-link {
	margin-top: auto;
	padding-top: 22px;
	font-size: 15px;
	font-weight: 500;
	color: var(--teal);
}
.support-link:hover { text-decoration: underline; }

.support-details {
	margin-top: 14px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.support-detail {
	padding: 28px;
}

.support-detail ul {
	margin: 0;
	padding-left: 20px;
	display: grid;
	gap: 10px;
}

.support-detail li {
	line-height: 1.6;
}

.support-detail a {
	color: var(--teal);
	font-weight: 500;
}
.support-detail a:hover { text-decoration: underline; }

/* ── Footer ────────────────────────────────────────── */

.site-footer {
	border-top: 1px solid var(--border);
	margin-top: 120px;
	font-size: 13px;
	color: var(--text-muted);
}

.footer-inner {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 32px 24px 48px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.site-footer img {
	width: min(160px, 40vw);
	opacity: 0.4;
}

.footer-links {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--text-muted);
}

.footer-links a {
	transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--text-bright); }

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 960px) {
	.hero {
		padding-top: 64px;
		padding-bottom: 40px;
	}

	.bento-grid {
		grid-template-columns: 1fr 1fr;
	}
	.bento-card:nth-child(1),
	.bento-card:nth-child(2),
	.bento-card:nth-child(3),
	.bento-card:nth-child(4) { grid-column: span 1; }
	.bento-card:nth-child(5) { grid-column: span 2; }

	.closing-grid {
		grid-template-columns: 1fr;
	}
	.closing-card-main { grid-row: auto; }

	.support-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.site-nav { display: none; }
	.nav-cta { margin-left: auto; }

	h1 {
		font-size: clamp(2.2rem, 8vw, 3rem);
	}

	.hero {
		padding-top: 48px;
		padding-bottom: 32px;
	}

	.stats {
		flex-direction: column;
		gap: 0;
		padding: 20px;
	}
	.stat { padding: 14px 16px; }
	.stat-divider { width: 60%; height: 1px; }

	.bento-grid {
		grid-template-columns: 1fr;
	}
	.bento-card:nth-child(1),
	.bento-card:nth-child(2),
	.bento-card:nth-child(3),
	.bento-card:nth-child(4),
	.bento-card:nth-child(5) { grid-column: auto; }

	.section-title {
		font-size: clamp(1.6rem, 6vw, 2.2rem);
	}

	.step {
		flex-direction: column;
		gap: 12px;
	}

	.closing-grid {
		grid-template-columns: 1fr;
	}

	.support-page {
		padding-top: 48px;
	}

	.support-grid,
	.support-details {
		grid-template-columns: 1fr;
	}

	.support-card {
		min-height: auto;
	}

	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ── Changelog Page ───────────────────────────────── */

.changelog-page {
	max-width: var(--max-w);
	margin: 0 auto;
	padding: 72px 20px 40px;
}

.changelog-hero {
	max-width: 780px;
}

.changelog-hero h1 {
	font-size: clamp(40px, 6vw, 72px);
}

.changelog-lede {
	margin: 20px 0 0;
	font-size: 19px;
	line-height: 1.5;
	color: var(--text);
}

.changelog-list {
	margin-top: 64px;
}

/* Each release: meta aside + body, separated by a hairline timeline */
.cl-entry {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 40px;
	padding: 40px 0;
	border-top: 1px solid var(--border);
}

.cl-entry:first-child {
	border-top: none;
	padding-top: 0;
}

.cl-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	position: sticky;
	top: 96px;
	align-self: start;
}

.cl-version {
	font-family: var(--font-display);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--text-bright);
}

.cl-date {
	font-size: 13px;
	color: var(--text-muted);
}

.cl-body {
	min-width: 0;
}

.cl-title {
	margin: 0 0 8px;
	font-family: var(--font-display);
	font-size: clamp(22px, 2.5vw, 28px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--text-bright);
}

.cl-intro {
	margin: 0 0 8px;
	line-height: 1.6;
	color: var(--text);
}

/* Category labels: small uppercase, one tint each */
.cl-cat {
	display: inline-block;
	margin: 28px 0 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 4px 10px;
	border-radius: 999px;
}

.cl-cat-new {
	color: var(--teal);
	background: rgba(45, 212, 191, 0.12);
}

.cl-cat-improved {
	color: var(--blue);
	background: rgba(96, 165, 250, 0.12);
}

.cl-cat-fixed {
	color: #f4a261;
	background: rgba(244, 162, 97, 0.12);
}

.cl-body ul {
	margin: 0;
	padding-left: 1.2rem;
	display: grid;
	gap: 8px;
}

.cl-body li {
	font-size: 16px;
	line-height: 1.55;
	color: var(--text);
}

.cl-body li::marker {
	color: var(--text-muted);
}

.cl-body li strong {
	color: var(--text-bright);
	font-weight: 600;
}

.changelog-footnote {
	margin: 56px 0 0;
	padding-top: 32px;
	border-top: 1px solid var(--border);
	font-size: 15px;
	color: var(--text-muted);
}

.changelog-footnote a {
	color: var(--teal);
	font-weight: 500;
}

.changelog-footnote a:hover {
	text-decoration: underline;
}

@media (max-width: 720px) {
	.changelog-page {
		padding-top: 48px;
	}

	.changelog-list {
		margin-top: 40px;
	}

	.cl-entry {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 32px 0;
	}

	.cl-meta {
		position: static;
		flex-direction: row;
		align-items: baseline;
		gap: 12px;
	}

	.cl-version {
		font-size: 1.3rem;
	}
}

/* ── Selection ─────────────────────────────────────── */
::selection {
	background: rgba(45, 212, 191, 0.3);
	color: var(--text-bright);
}

/* Tone the leftover display weights down to the home page's 600. */
.stat-num, .bento-card h3, .step-body h3, .closing-card h2,
.showcase-caption strong, .install-qr-eyebrow, .hero-badge {
	font-weight: 600;
}
