/* ============================================================
   Yipshanks landing — yipshanks.com
   Brand-aligned to app.yipshanks.com (dark forest + brass + cream).
   Fraunces for display, Inter for body. Mobile-first, centered marketing.
   ============================================================ */

:root {
	--bg-base: #050d09;
	--bg: #0a1f18;
	--surface: #112a20;
	--border-soft: rgba(245, 241, 232, 0.1);

	--cream: #f5f1e8;
	--text: #f5f1e8;
	--text-secondary: #c8d1c7;
	--text-muted: #97a69d;

	--brass-300: #e8d6a4;
	--brass-400: #d4ba78;
	--brass-500: #b89656;
	--brass-600: #957641;

	--fairway-500: #2f7a5c;
	--fairway-700: #1a4632;

	--glass-bg: rgba(20, 50, 38, 0.45);
	--glass-edge: rgba(245, 241, 232, 0.1);
	--glass-edge-strong: rgba(245, 241, 232, 0.2);

	--font-sans:
		'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--font-display:
		'Fraunces', 'Cormorant Garamond', 'Iowan Old Style', Palatino, Georgia, serif;

	--container: 64rem;
	--container-narrow: 44rem;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background-color: var(--bg-base);
	color: var(--text);
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	scroll-behavior: smooth;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100dvh;
	overflow-x: hidden;
	background:
		radial-gradient(ellipse 60% 40% at 50% -10%, rgba(184, 150, 86, 0.18) 0, transparent 65%),
		radial-gradient(ellipse 80% 50% at 25% 110%, rgba(47, 122, 92, 0.22) 0, transparent 70%),
		radial-gradient(ellipse 50% 30% at 50% 50%, rgba(20, 50, 38, 0.35) 0, transparent 80%),
		linear-gradient(180deg, #050d09 0%, #081813 30%, #0a1f18 65%, #050d09 100%);
	background-attachment: fixed;
	background-size: cover;
	font-size: 16px;
	line-height: 1.55;
	color: var(--text);
	overflow-wrap: break-word;
}

img,
svg {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* ============================================================
   Skip link
   ============================================================ */
.skip-link {
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100;
	padding: 0.5rem 0.75rem;
	background: var(--cream);
	color: var(--bg-base);
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-150%);
	transition: transform 150ms ease-out;
}
.skip-link:focus,
.skip-link:focus-visible {
	transform: translateY(0);
	outline: 2px solid var(--brass-400);
	outline-offset: 2px;
}

/* ============================================================
   Container
   ============================================================ */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 1.25rem;
}

@media (min-width: 768px) {
	.container {
		padding: 0 2rem;
	}
}

.hero-stack,
.diff-stack,
.cta-stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
	position: sticky;
	top: 0;
	z-index: 30;
	backdrop-filter: blur(20px) saturate(170%);
	-webkit-backdrop-filter: blur(20px) saturate(170%);
	background: rgba(5, 13, 9, 0.72);
	border-bottom: 1px solid var(--border-soft);
}

.nav-inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

@media (min-width: 768px) {
	.nav-inner {
		padding: 1rem 2rem;
	}
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	color: var(--cream);
	text-decoration: none;
	font-weight: 600;
	min-width: 0;
}

.brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	border-radius: 0.5rem;
	background: linear-gradient(140deg, #f0d997 0%, #d4ba78 50%, #957641 100%);
	color: var(--bg-base);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.45) inset,
		0 -1px 1px rgba(0, 0, 0, 0.18) inset,
		0 4px 12px -4px rgba(0, 0, 0, 0.4);
}

.brand-mark span {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.125rem;
	line-height: 1;
}

.brand-name {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 1.125rem;
	letter-spacing: -0.01em;
	color: var(--cream);
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.nav-link {
	display: none;
	padding: 0.5rem 0.625rem;
	color: var(--text-secondary);
	font-size: 0.875rem;
	text-decoration: none;
	border-radius: 0.5rem;
	transition: color 120ms ease-out;
	white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
	color: var(--cream);
}

@media (min-width: 768px) {
	.nav-link {
		display: inline-flex;
	}
}

.nav-cta {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 0.875rem;
	border-radius: 0.625rem;
	background: linear-gradient(180deg, #e8d6a4 0%, #d4ba78 50%, #b89656 100%);
	color: var(--bg-base);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	white-space: nowrap;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.45) inset,
		0 6px 14px -6px rgba(184, 150, 86, 0.4);
	transition: transform 120ms ease-out;
}

.nav-cta:hover {
	transform: translateY(-1px);
}

.nav-cta:active {
	transform: translateY(0);
}

/* ============================================================
   Section spacing
   ============================================================ */
.hero,
.diff,
.section,
.privacy,
.builder,
.cta {
	padding: 4rem 0;
}

@media (min-width: 768px) {
	.hero,
	.diff,
	.section,
	.privacy,
	.builder,
	.cta {
		padding: 6rem 0;
	}
}

.hero {
	padding-top: 3rem;
}

@media (min-width: 768px) {
	.hero {
		padding-top: 5rem;
	}
}

.eyebrow {
	font-size: 0.6875rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--brass-400);
	font-weight: 600;
	margin: 0 0 1rem;
}

.section-header {
	max-width: var(--container-narrow);
	margin: 0 auto 3rem;
	text-align: center;
}

.section-sub {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-secondary);
	margin: 0.75rem auto 0;
	max-width: 38rem;
}

@media (min-width: 768px) {
	.section-sub {
		font-size: 1.0625rem;
	}
}

/* ============================================================
   Hero
   ============================================================ */
.hero h1 {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(2.25rem, 7vw, 4.25rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
	margin: 0 0 1.5rem;
	color: var(--cream);
	max-width: 18ch;
}

.hero h1 .accent {
	color: var(--brass-300);
	font-style: italic;
}

.tm {
	font-size: 0.4em;
	vertical-align: super;
	letter-spacing: 0;
	color: var(--brass-400);
	margin-left: 0.05em;
}

.hero-sub {
	font-size: 1rem;
	line-height: 1.65;
	color: var(--text-secondary);
	max-width: 38rem;
	margin: 0 auto 2rem;
}

@media (min-width: 768px) {
	.hero-sub {
		font-size: 1.125rem;
	}
}

@media (max-width: 540px) {
	.hero-sub br {
		display: none;
	}
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin: 0 0 1.25rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.875rem 1.5rem;
	border-radius: 0.875rem;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: 0.01em;
	transition:
		transform 120ms ease-out,
		box-shadow 120ms ease-out,
		background 120ms ease-out;
	border: 1px solid transparent;
	cursor: pointer;
	white-space: nowrap;
	font-family: inherit;
}

.btn-primary {
	background: linear-gradient(180deg, #f0d997 0%, #d4ba78 50%, #b89656 100%);
	color: var(--bg-base);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.45) inset,
		0 -1px 0 rgba(0, 0, 0, 0.18) inset,
		0 14px 28px -10px rgba(184, 150, 86, 0.5);
}

.btn-primary:hover,
.btn-primary:focus-visible {
	transform: translateY(-1px);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.45) inset,
		0 -1px 0 rgba(0, 0, 0, 0.18) inset,
		0 18px 34px -10px rgba(184, 150, 86, 0.6);
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-ghost {
	background: var(--glass-bg);
	color: var(--cream);
	border-color: var(--glass-edge);
	backdrop-filter: blur(20px) saturate(170%);
	-webkit-backdrop-filter: blur(20px) saturate(170%);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
	background: rgba(20, 50, 38, 0.65);
	border-color: var(--glass-edge-strong);
}

.hero-platforms {
	font-size: 0.8125rem;
	color: var(--text-muted);
	max-width: 36rem;
	line-height: 1.6;
	margin: 0 0 3rem;
}

/* ============================================================
   Phone mockup
   ============================================================ */
.phone-mock {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.phone-frame {
	width: min(20rem, 88vw);
	border-radius: 2.25rem;
	padding: 0.625rem;
	background: linear-gradient(160deg, rgba(245, 241, 232, 0.2) 0%, rgba(245, 241, 232, 0.05) 50%, rgba(0, 0, 0, 0.3) 100%);
	border: 1px solid var(--glass-edge);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.18) inset,
		0 30px 60px -20px rgba(0, 0, 0, 0.7),
		0 14px 30px -8px rgba(184, 150, 86, 0.18);
}

.phone-screen {
	border-radius: 1.65rem;
	background:
		radial-gradient(ellipse 70% 40% at 80% 0%, rgba(184, 150, 86, 0.16) 0, transparent 60%),
		radial-gradient(ellipse 80% 60% at 20% 110%, rgba(47, 122, 92, 0.28) 0, transparent 65%),
		linear-gradient(180deg, #081813 0%, #0a1f18 100%);
	padding: 1.125rem 1rem 1.25rem;
	overflow: hidden;
	border: 1px solid rgba(245, 241, 232, 0.06);
	font-size: 0.8125rem;
	text-align: left;
}

.mock-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.mock-back {
	display: inline-flex;
	width: 2rem;
	height: 2rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.625rem;
	background: var(--glass-bg);
	border: 1px solid var(--glass-edge);
	color: var(--text-secondary);
	font-size: 0.875rem;
}

.mock-title {
	flex: 1;
	text-align: center;
	min-width: 0;
}

.mock-eyebrow {
	font-size: 0.5625rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-muted);
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mock-finish {
	display: inline-flex;
	padding: 0.375rem 0.625rem;
	border-radius: 0.625rem;
	background: linear-gradient(180deg, #f0d997 0%, #d4ba78 50%, #b89656 100%);
	color: var(--bg-base);
	font-weight: 600;
	font-size: 0.6875rem;
}

.mock-hole {
	background: var(--glass-bg);
	border: 1px solid var(--glass-edge);
	border-radius: 0.875rem;
	padding: 0.875rem 1rem;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 0.625rem;
}

.mock-right {
	text-align: right;
}

.mock-label {
	margin: 0;
	font-size: 0.5625rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.mock-big {
	margin: 0.125rem 0 0;
	font-family: var(--font-display);
	font-weight: 200;
	font-size: 1.875rem;
	line-height: 1;
	color: var(--cream);
	font-variant-numeric: tabular-nums;
}

.mock-of {
	color: var(--text-muted);
}

.mock-par {
	color: var(--brass-300);
}

.mock-strip {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 0.625rem;
}

.mock-chip {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem 0;
	border-radius: 0.375rem;
	font-size: 0.6875rem;
	font-weight: 600;
	background: var(--glass-bg);
	border: 1px solid var(--glass-edge);
	color: var(--text-muted);
	font-variant-numeric: tabular-nums;
}

.mock-chip-done {
	background: rgba(26, 70, 50, 0.6);
	border-color: rgba(47, 122, 92, 0.4);
	color: var(--cream);
}

.mock-chip-active {
	background: linear-gradient(180deg, #f0d997 0%, #d4ba78 50%, #b89656 100%);
	border-color: transparent;
	color: var(--bg-base);
}

.mock-card {
	background: var(--glass-bg);
	border: 1px solid var(--glass-edge);
	border-radius: 0.875rem;
	padding: 0.75rem 0.875rem;
	margin-bottom: 0.5rem;
}

.mock-card-quiet {
	opacity: 0.85;
}

.mock-card-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.mock-name {
	font-weight: 600;
	color: var(--cream);
	font-size: 0.8125rem;
}

.mock-badge {
	display: inline-flex;
	padding: 0.125rem 0.5rem;
	border-radius: 999px;
	border: 1px solid #d4ba78;
	color: #d4ba78;
	font-size: 0.625rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.mock-badge-flat {
	border-color: rgba(245, 241, 232, 0.4);
	color: var(--text-secondary);
}

.mock-stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.mock-stepper-quiet {
	opacity: 0.7;
}

.mock-minus,
.mock-plus {
	display: inline-flex;
	width: 2.25rem;
	height: 2.25rem;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 300;
}

.mock-minus {
	background: var(--glass-bg);
	border: 1px solid var(--glass-edge);
	color: var(--cream);
}

.mock-plus {
	background: linear-gradient(180deg, #f0d997 0%, #d4ba78 50%, #b89656 100%);
	color: var(--bg-base);
}

.mock-score {
	font-family: var(--font-display);
	font-weight: 200;
	font-size: 2.5rem;
	line-height: 1;
	color: var(--cream);
	font-variant-numeric: tabular-nums;
}

.phone-caption {
	margin: 1rem 0 0;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
	color: var(--text-muted);
	text-align: center;
}

/* ============================================================
   Differentiator
   ============================================================ */
.diff {
	background: linear-gradient(180deg, transparent 0%, rgba(20, 50, 38, 0.4) 100%);
	border-top: 1px solid var(--border-soft);
	border-bottom: 1px solid var(--border-soft);
}

.diff h2 {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(1.625rem, 5vw, 2.625rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--cream);
	margin: 0 0 1rem;
	max-width: 22ch;
}

.diff h2 .accent {
	color: var(--brass-300);
	font-style: italic;
}

.diff-sub {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--text-secondary);
	max-width: 42rem;
	margin: 0;
}

@media (min-width: 768px) {
	.diff-sub {
		font-size: 1.0625rem;
	}
}

/* ============================================================
   Features
   ============================================================ */
.section h2 {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(1.75rem, 5vw, 2.75rem);
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--cream);
	margin: 0 auto 0.5rem;
	max-width: 22ch;
	text-align: center;
}

.features-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	max-width: var(--container);
	margin: 0 auto;
}

@media (min-width: 640px) {
	.features-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.features-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.feature {
	background: var(--glass-bg);
	backdrop-filter: blur(20px) saturate(170%);
	-webkit-backdrop-filter: blur(20px) saturate(170%);
	border: 1px solid var(--glass-edge);
	border-radius: 1rem;
	padding: 1.5rem;
	box-shadow:
		0 1px 0 var(--glass-edge-strong) inset,
		0 18px 36px -18px rgba(0, 0, 0, 0.5);
	min-width: 0;
	transition:
		transform 180ms ease-out,
		border-color 180ms ease-out;
}

.feature:hover {
	transform: translateY(-2px);
	border-color: var(--glass-edge-strong);
}

.feature-highlight {
	border-color: rgba(212, 186, 120, 0.35);
	box-shadow:
		0 1px 0 rgba(232, 214, 164, 0.18) inset,
		0 22px 42px -18px rgba(149, 118, 65, 0.25);
}

.feature h3 {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 400;
	color: var(--cream);
	margin: 0 0 0.625rem;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.feature p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--text-secondary);
}

/* ============================================================
   Privacy
   ============================================================ */
.privacy {
	background: linear-gradient(180deg, rgba(20, 50, 38, 0.3) 0%, transparent 100%);
}

.privacy h2 {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(1.75rem, 5vw, 2.75rem);
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--cream);
	margin: 0 auto 0.5rem;
	max-width: 22ch;
	text-align: center;
}

.privacy-list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.875rem;
	max-width: var(--container);
}

@media (min-width: 768px) {
	.privacy-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}

.privacy-list li {
	background: var(--glass-bg);
	backdrop-filter: blur(20px) saturate(170%);
	-webkit-backdrop-filter: blur(20px) saturate(170%);
	border: 1px solid var(--glass-edge);
	border-radius: 1rem;
	padding: 1.125rem 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--text-secondary);
	min-width: 0;
}

.privacy-list strong {
	display: block;
	color: var(--cream);
	font-weight: 600;
	margin-bottom: 0.25rem;
	font-size: 0.96875rem;
}

/* ============================================================
   Builder card
   ============================================================ */
.builder {
	border-top: 1px solid var(--border-soft);
}

.builder .container {
	max-width: var(--container-narrow);
}

.builder-card {
	background: var(--glass-bg);
	backdrop-filter: blur(22px) saturate(180%);
	-webkit-backdrop-filter: blur(22px) saturate(180%);
	border: 1px solid var(--glass-edge);
	border-radius: 1.25rem;
	padding: 2rem 1.5rem;
	box-shadow:
		0 1px 0 var(--glass-edge-strong) inset,
		0 22px 50px -20px rgba(0, 0, 0, 0.6);
	text-align: center;
}

@media (min-width: 768px) {
	.builder-card {
		padding: 3rem 2.5rem;
	}
}

.builder-card .eyebrow {
	margin-bottom: 0.5rem;
}

.builder-card h2 {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.15;
	color: var(--cream);
	margin: 0 0 1rem;
	letter-spacing: -0.01em;
	max-width: none;
	text-align: center;
}

.builder-card p {
	margin: 0 auto 1rem;
	color: var(--text-secondary);
	line-height: 1.65;
	max-width: 42rem;
	font-size: 0.9375rem;
}

@media (min-width: 768px) {
	.builder-card p {
		font-size: 1rem;
	}
}

.builder-aside {
	font-style: italic;
	color: var(--text-muted) !important;
}

.builder-links {
	margin-top: 1.5rem !important;
	font-size: 0.9375rem;
	color: var(--text-secondary);
}

.builder-links a {
	color: var(--brass-300);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 120ms ease-out;
}

.builder-links a:hover,
.builder-links a:focus-visible {
	border-bottom-color: var(--brass-400);
}

.builder-links .sep {
	color: var(--text-muted);
	margin: 0 0.5rem;
}

/* ============================================================
   Final CTA
   ============================================================ */
.cta {
	border-top: 1px solid var(--border-soft);
	background: linear-gradient(180deg, transparent 0%, rgba(20, 50, 38, 0.3) 100%);
}

.cta h2 {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(2rem, 6vw, 3.25rem);
	line-height: 1.05;
	color: var(--cream);
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
	max-width: none;
}

.cta-sub {
	font-size: 1rem;
	color: var(--text-secondary);
	margin: 0 auto 1.75rem;
	max-width: 32rem;
}

.cta-support {
	margin-top: 2rem;
	font-size: 0.875rem;
	color: var(--text-muted);
}

.cta-support a {
	color: var(--brass-300);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 120ms ease-out;
}

.cta-support a:hover,
.cta-support a:focus-visible {
	border-bottom-color: var(--brass-400);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
	border-top: 1px solid var(--border-soft);
	background: rgba(5, 13, 9, 0.55);
	padding: 3rem 0 2rem;
	color: var(--text-secondary);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.footer-grid {
		grid-template-columns: 1.6fr 1fr 1fr 1fr;
	}
}

.footer-brand p {
	margin: 0.875rem 0 0;
	font-size: 0.875rem;
	color: var(--text-muted);
	line-height: 1.6;
	max-width: 22rem;
}

.footer-brand a {
	color: var(--text-secondary);
	border-bottom: 1px solid var(--border-soft);
	text-decoration: none;
}

.footer-brand a:hover,
.footer-brand a:focus-visible {
	color: var(--cream);
	border-bottom-color: var(--brass-400);
}

.site-footer h3 {
	font-size: 0.6875rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--text-muted);
	font-weight: 600;
	margin: 0 0 0.875rem;
}

.site-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.site-footer li {
	margin: 0 0 0.5rem;
}

.site-footer li a {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 0.9375rem;
	transition: color 120ms ease-out;
}

.site-footer li a:hover,
.site-footer li a:focus-visible {
	color: var(--brass-300);
}

.footer-bottom {
	max-width: var(--container);
	margin: 2.5rem auto 0;
	padding: 1.5rem 1.25rem 0;
	border-top: 1px solid var(--border-soft);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: center;
	text-align: center;
}

@media (min-width: 768px) {
	.footer-bottom {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
		padding: 1.5rem 2rem 0;
	}
}

.footer-bottom .copyright {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--text-muted);
}

.footer-bottom .motto {
	margin: 0;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	opacity: 0.85;
}

/* ============================================================
   Focus rings — global
   ============================================================ */
:focus-visible {
	outline: 2px solid var(--brass-400);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ============================================================
   Themes — match the app's named themes.
   The default is forest. The picker writes data-theme on <html>.
   ============================================================ */
:root[data-theme='champagne'] {
	--bg-base: #1c1610;
	--bg: #2a2218;
	--surface: #3a2f22;
	--cream: #fbf6ea;
	--text: #fbf6ea;
	--text-secondary: #e7d9bd;
	--text-muted: #b3a288;
	--brass-300: #f3e2b8;
	--brass-400: #e6cb8a;
	--brass-500: #cba65a;
	--brass-600: #9d7f3e;
	--fairway-500: #8a7a4d;
	--fairway-700: #4a3f25;
	--glass-bg: rgba(60, 48, 32, 0.5);
	--glass-edge: rgba(251, 246, 234, 0.1);
	--glass-edge-strong: rgba(251, 246, 234, 0.22);
}

:root[data-theme='champagne'] body {
	background:
		radial-gradient(ellipse 60% 40% at 50% -10%, rgba(230, 203, 138, 0.22) 0, transparent 65%),
		radial-gradient(ellipse 80% 50% at 25% 110%, rgba(138, 122, 77, 0.18) 0, transparent 70%),
		linear-gradient(180deg, #1c1610 0%, #2a2218 35%, #2a2218 65%, #1c1610 100%);
	background-attachment: fixed;
}

:root[data-theme='linksland'] {
	--bg-base: #14150f;
	--bg: #1d1f17;
	--surface: #2a2c20;
	--cream: #f3eede;
	--text: #f3eede;
	--text-secondary: #d3cfba;
	--text-muted: #97947e;
	--brass-300: #d8c98a;
	--brass-400: #b9a25c;
	--brass-500: #8a7635;
	--brass-600: #5e521f;
	--fairway-500: #5e7d44;
	--fairway-700: #2c3b1d;
	--glass-bg: rgba(35, 40, 22, 0.55);
	--glass-edge: rgba(243, 238, 222, 0.1);
	--glass-edge-strong: rgba(243, 238, 222, 0.22);
}

:root[data-theme='linksland'] body {
	background:
		radial-gradient(ellipse 60% 40% at 50% -10%, rgba(185, 162, 92, 0.18) 0, transparent 65%),
		radial-gradient(ellipse 80% 50% at 25% 110%, rgba(94, 125, 68, 0.22) 0, transparent 70%),
		linear-gradient(180deg, #14150f 0%, #1d1f17 35%, #1d1f17 65%, #14150f 100%);
	background-attachment: fixed;
}

:root[data-theme='midnight'] {
	--bg-base: #050608;
	--bg: #0a0c10;
	--surface: #131820;
	--cream: #f0f1f4;
	--text: #f0f1f4;
	--text-secondary: #b9bdc6;
	--text-muted: #7e8492;
	--brass-300: #e8d6a4;
	--brass-400: #d4ba78;
	--brass-500: #b89656;
	--brass-600: #957641;
	--fairway-500: #2e6489;
	--fairway-700: #15314a;
	--glass-bg: rgba(15, 24, 38, 0.55);
	--glass-edge: rgba(240, 241, 244, 0.08);
	--glass-edge-strong: rgba(240, 241, 244, 0.2);
}

:root[data-theme='midnight'] body {
	background:
		radial-gradient(ellipse 60% 40% at 50% -10%, rgba(212, 186, 120, 0.16) 0, transparent 65%),
		radial-gradient(ellipse 80% 50% at 25% 110%, rgba(46, 100, 137, 0.18) 0, transparent 70%),
		linear-gradient(180deg, #050608 0%, #0a0c10 35%, #0a0c10 65%, #050608 100%);
	background-attachment: fixed;
}

/* ============================================================
   Theme picker — custom menu, glass aesthetic, modern dropdown.
   ============================================================ */
.theme-picker {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.theme-picker-trigger {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4375rem 0.625rem 0.4375rem 0.4375rem;
	border-radius: 0.625rem;
	background: var(--glass-bg);
	border: 1px solid var(--glass-edge);
	color: var(--text-secondary);
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	cursor: pointer;
	backdrop-filter: blur(20px) saturate(170%);
	-webkit-backdrop-filter: blur(20px) saturate(170%);
	transition:
		color 140ms ease-out,
		border-color 140ms ease-out,
		background 140ms ease-out;
}

.theme-picker-trigger:hover,
.theme-picker-trigger:focus-visible {
	color: var(--cream);
	border-color: var(--glass-edge-strong);
	background: rgba(20, 50, 38, 0.65);
}

.theme-picker-trigger[aria-expanded='true'] {
	color: var(--cream);
	border-color: var(--brass-400);
}

.theme-chevron {
	color: var(--text-muted);
	transition: transform 180ms ease-out;
}

.theme-picker-trigger[aria-expanded='true'] .theme-chevron {
	transform: rotate(180deg);
}

.theme-swatch {
	width: 1.125rem;
	height: 1.125rem;
	border-radius: 9999px;
	border: 1px solid rgba(245, 241, 232, 0.25);
	flex-shrink: 0;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.18) inset,
		0 1px 3px rgba(0, 0, 0, 0.35);
}

.theme-swatch[data-theme-value='forest'] {
	background:
		radial-gradient(circle at 30% 30%, #1a4632 0%, #0a1f18 100%);
	border-color: rgba(212, 186, 120, 0.4);
}

.theme-swatch[data-theme-value='champagne'] {
	background:
		radial-gradient(circle at 30% 30%, #f3e2b8 0%, #cba65a 100%);
	border-color: rgba(245, 230, 190, 0.5);
}

.theme-swatch[data-theme-value='linksland'] {
	background:
		radial-gradient(circle at 30% 30%, #5e7d44 0%, #2c3b1d 100%);
	border-color: rgba(216, 201, 138, 0.4);
}

.theme-swatch[data-theme-value='midnight'] {
	background:
		radial-gradient(circle at 30% 30%, #2e6489 0%, #050608 100%);
	border-color: rgba(212, 186, 120, 0.4);
}

.theme-picker-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	z-index: 60;
	min-width: 11rem;
	padding: 0.375rem;
	border-radius: 0.875rem;
	background: rgba(10, 31, 24, 0.92);
	border: 1px solid var(--glass-edge);
	backdrop-filter: blur(24px) saturate(180%);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.06) inset,
		0 22px 48px -16px rgba(0, 0, 0, 0.6);
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	animation: theme-menu-in 160ms ease-out;
}

.theme-picker-menu[hidden] {
	display: none;
}

@keyframes theme-menu-in {
	from {
		opacity: 0;
		transform: translateY(-4px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.theme-option {
	appearance: none;
	display: flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.5rem 0.75rem 0.5rem 0.5rem;
	border-radius: 0.5rem;
	background: transparent;
	border: 1px solid transparent;
	color: var(--text-secondary);
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	cursor: pointer;
	text-align: left;
	transition:
		background 140ms ease-out,
		color 140ms ease-out;
}

.theme-option:hover,
.theme-option:focus-visible {
	background: rgba(245, 241, 232, 0.06);
	color: var(--cream);
	outline: none;
}

.theme-option[aria-checked='true'] {
	background: rgba(212, 186, 120, 0.12);
	color: var(--cream);
	border-color: rgba(212, 186, 120, 0.35);
}

.theme-option[aria-checked='true']::after {
	content: '';
	margin-left: auto;
	width: 0.875rem;
	height: 0.875rem;
	border-radius: 9999px;
	background: linear-gradient(180deg, #f0d997 0%, #d4ba78 50%, #b89656 100%);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
	.theme-picker-trigger .theme-label {
		display: none;
	}
}

/* ============================================================
   Legal pages — privacy, terms
   ============================================================ */
.legal {
	padding: 4rem 0 5rem;
}

@media (min-width: 768px) {
	.legal {
		padding: 6rem 0 7rem;
	}
}

.legal .container {
	max-width: var(--container-narrow);
}

.legal h1 {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--cream);
	margin: 0 0 1rem;
}

.legal .updated {
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin: 0 0 2.5rem;
}

.legal h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 1.375rem;
	color: var(--cream);
	margin: 2.25rem 0 0.625rem;
	letter-spacing: -0.01em;
}

.legal p,
.legal li {
	color: var(--text-secondary);
	line-height: 1.7;
	font-size: 0.9375rem;
}

.legal p {
	margin: 0 0 1rem;
}

.legal ul {
	padding-left: 1.25rem;
	margin: 0 0 1rem;
}

.legal li {
	margin: 0 0 0.5rem;
}

.legal a {
	color: var(--brass-300);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 120ms ease-out;
}

.legal a:hover,
.legal a:focus-visible {
	border-bottom-color: var(--brass-400);
}
