/* =========================================================================
   ClubRise marketing site
   Court Series (editorial × court geometry)
   ========================================================================= */

:root {
	/* ── Court Series palette (the "source" colour layer) ───────────────
	   Brand accents and a few constants. Don't reference these directly
	   in component styles for surface/text/border concerns — go through
	   the semantic tokens below so dark mode can override them.        */
	--court-navy: #1A3A5C;
	--deep-court: #0F2440;
	--deeper-court: #081628;
	--ace-teal: #0D9488;
	--ace-teal-soft: #14B8A6;
	--match-gold: #D4A017;
	--match-gold-soft: #E5B83A;
	--chalk: #F5F5F0;
	--chalk-50: #FAFAF7;
	--chalk-100: #EDEDE5;
	--ink: #0A1A2A;
	--ink-mute: #5C6B7A;
	--ink-quiet: #8896A4;
	--line: #D8D8CE;
	--line-strong: #BFBFB3;

	/* ── Semantic tokens (light mode defaults) ──────────────────────────
	   Component styles reference *these*. Dark mode redefines them in
	   the [data-theme="dark"] block at the bottom of the file.        */

	/* Surfaces */
	--bg: var(--chalk);
	--bg-elevated: var(--chalk-50);
	--bg-sunken: var(--chalk-100);
	--surface: #FFFFFF;
	--surface-hover: #FFFFFF;

	/* Text */
	--fg: var(--ink);
	--fg-mute: var(--ink-mute);
	--fg-quiet: var(--ink-quiet);

	/* Borders */
	--border: var(--line);
	--border-strong: var(--line-strong);

	/* Header (sticky, blurred backdrop) */
	--header-bg: rgba(245, 245, 240, 0.85);
	--header-bg-scrolled: rgba(245, 245, 240, 0.95);

	/* Hero — intentionally dark in BOTH themes (this is the brand moment) */
	--hero-bg-1: var(--deep-court);
	--hero-bg-2: var(--deeper-court);
	--hero-fg: var(--chalk);
	--hero-fg-mute: rgba(245, 245, 240, 0.78);
	--hero-fg-quiet: rgba(245, 245, 240, 0.6);
	--hero-card-bg: rgba(15, 36, 64, 0.6);
	--hero-card-bg-hover: rgba(15, 36, 64, 0.78);
	--hero-card-border: rgba(245, 245, 240, 0.14);
	--hero-court-line: rgba(245, 245, 240, 0.16);
	--hero-court-line-strong: rgba(245, 245, 240, 0.28);

	/* CTA band — intentionally dark in both themes */
	--cta-bg-1: var(--deep-court);
	--cta-bg-2: var(--deeper-court);
	--cta-fg: var(--chalk);
	--cta-fg-mute: rgba(245, 245, 240, 0.7);

	/* Discount cards inside pricing — dark by design */
	--discount-bg: var(--deep-court);
	--discount-fg: var(--chalk);
	--discount-fg-mute: rgba(245, 245, 240, 0.78);

	/* Footer — intentionally dark in both themes */
	--footer-bg-1:     var(--deep-court);
	--footer-bg-2:     var(--deeper-court);
	--footer-fg:       var(--chalk);
	--footer-fg-mute:  rgba(245, 245, 240, 0.75);
	--footer-fg-quiet: rgba(245, 245, 240, 0.45);
	--footer-border:   rgba(245, 245, 240, 0.08);

	/* Hero court-line SVG fills */
	--hero-court-fill: rgba(212, 160, 23, 0.55);

	/* Browser-chrome dots in screen-frame mockups */
	--chrome-dot: var(--chalk-100);
	--chrome-dot-edge: var(--line-strong);

	/* Pillars / module cards */
	--pillar-bg: var(--chalk-50);
	--pillar-bg-hover: #FFFFFF;
	--pillar-core-bg-1: var(--chalk-50);
	--pillar-core-bg-2: var(--chalk-100);

	/* Pricing */
	--pricing-popular-bg: var(--chalk);

	/* Shadows (under elevated surfaces) */
	--shadow-color:        rgba(15, 36, 64, 0.28);
	--shadow-color-soft:   rgba(15, 36, 64, 0.18);
	--shadow-color-strong: rgba(15, 36, 64, 0.45);
	--shadow-gold:         rgba(212, 160, 23, 0.55);

	/* Subtle background grids (used in device-placeholder, etc.) */
	--grid-line: rgba(15, 36, 64, 0.04);
	--code-bg:   rgba(15, 36, 64, 0.06);

	/* Buttons */
	--btn-primary-bg: var(--court-navy);
	--btn-primary-bg-hover: var(--deep-court);
	--btn-primary-fg: var(--chalk);
	--btn-ghost-fg: var(--ink);
	--btn-ghost-border: var(--ink);

	/* Brand mark in header (auto-flips in dark mode) */
	--brand-fg: var(--court-navy);

	/* Type */
	--font-display: 'Fraunces', 'Times New Roman', serif;
	--font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono: 'Geist Mono', ui-monospace, 'Cascadia Code', monospace;

	/* Layout */
	--wrap: 1240px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section-y: clamp(4rem, 10vw, 8rem);
	--radius: 4px;
	--radius-lg: 10px;

	/* Motion */
	--ease: cubic-bezier(0.22, 1, 0.36, 1);

	/* Reusable grain noise overlay (applied to .hero-grain / .cta-grain) */
	--grain-svg: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── Dark mode ─────────────────────────────────────────────────────────
   The inline <head> script chooses a theme and sets data-theme on <html>
   before paint (explicit choice → OS prefers-color-scheme → light), so
   we only need a single declaration block keyed off the attribute. With
   JS disabled the page falls back to light mode regardless of OS prefs
   — a deliberate trade-off to keep the dark token set in one place. */
[data-theme="dark"] {
	--bg:           #0A1420;
	--bg-elevated:  #0F1A2A;
	--bg-sunken:    #060F1B;
	--surface:      #14202F;
	--surface-hover:#1B2838;

	--fg:           var(--chalk);
	--fg-mute:      rgba(245, 245, 240, 0.72);
	--fg-quiet:     rgba(245, 245, 240, 0.55);

	--border:        rgba(245, 245, 240, 0.10);
	--border-strong: rgba(245, 245, 240, 0.18);

	--header-bg:          rgba(10, 20, 32, 0.82);
	--header-bg-scrolled: rgba(10, 20, 32, 0.94);

	/* Hero gets pushed even darker so it still feels distinct */
	--hero-bg-1: var(--deeper-court);
	--hero-bg-2: #02060E;

	/* Browser-chrome dots invert on dark */
	--chrome-dot:      rgba(245, 245, 240, 0.10);
	--chrome-dot-edge: rgba(245, 245, 240, 0.18);

	--pillar-bg:         #14202F;
	--pillar-bg-hover:   #1B2838;
	--pillar-core-bg-1:  #161E2C;
	--pillar-core-bg-2:  #0E1623;

	--pricing-popular-bg: #1B2838;

	--shadow-color:        rgba(0, 0, 0, 0.6);
	--shadow-color-soft:   rgba(0, 0, 0, 0.4);
	--shadow-color-strong: rgba(0, 0, 0, 0.8);
	--shadow-gold:         rgba(212, 160, 23, 0.42);

	--grid-line: rgba(245, 245, 240, 0.04);
	--code-bg:   rgba(245, 245, 240, 0.08);

	/* On dark, the primary button reads stronger as gold-on-navy */
	--btn-primary-bg:        var(--match-gold);
	--btn-primary-bg-hover:  var(--match-gold-soft);
	--btn-primary-fg:        var(--deep-court);
	--btn-ghost-fg:          var(--chalk);
	--btn-ghost-border:      rgba(245, 245, 240, 0.22);

	--brand-fg: var(--chalk);
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	color: var(--fg);
	background: var(--bg);
	font-feature-settings: 'ss01', 'cv11';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: inherit;
	text-decoration: none;
	transition: color 200ms var(--ease);
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--deep-court);
	color: var(--chalk);
	padding: 12px 16px;
	z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* =========================================================================
   Typography
   ========================================================================= */

.display {
	font-family: var(--font-display);
	font-weight: 480;
	font-variation-settings: 'opsz' 36;
	font-size: clamp(2.6rem, 6.2vw, 5.2rem);
	line-height: 1;
	letter-spacing: -0.03em;
	margin: 0;
	color: var(--hero-fg);
}

.display em {
	font-style: italic;
	font-weight: 420;
	color: var(--match-gold-soft);
}

.display-2 {
	font-family: var(--font-display);
	font-weight: 480;
	font-variation-settings: 'opsz' 36;
	font-size: clamp(2rem, 4.2vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
	margin: 0 0 0 0;
	color: var(--fg);
	max-width: 22ch;
}

.display-2 em {
	font-style: italic;
	font-weight: 420;
	color: var(--court-navy);
}

.display-light { color: var(--cta-fg); }
.display-light em { color: var(--match-gold-soft); }

/* In dark mode the navy accent on a dark surface vanishes; swap to gold. */
[data-theme="dark"] .display-2 em { color: var(--match-gold-soft); }

.kicker {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ace-teal);
	margin: 0 0 1rem 0;
}
.kicker-light { color: var(--ace-teal-soft); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	font-family: var(--font-mono);
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(245, 245, 240, 0.7);
	margin: 0 0 2rem 0;
}
.eyebrow-dot {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--match-gold);
	box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.18);
}

.lede {
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.5;
	color: var(--fg-mute);
	max-width: 52ch;
	margin: 1rem 0 0 0;
}

/* =========================================================================
   Header
   ========================================================================= */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--header-bg-scrolled);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom: 1px solid transparent;
	transition: border-color 220ms var(--ease), background 220ms var(--ease);
}
.site-header.scrolled {
	border-bottom-color: var(--border);
	background: var(--header-bg-scrolled);
}

.header-wrap {
	display: flex;
	align-items: center;
	gap: 2rem;
	min-height: 72px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--brand-fg);
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.2rem;
	letter-spacing: -0.01em;
}
.brand-mark { width: 26px; height: 26px; }
.brand-word { font-feature-settings: 'ss01'; }

.brand-light { color: var(--chalk); }

.primary-nav {
	display: flex;
	gap: 1.6rem;
	margin-left: auto;
	font-size: 0.94rem;
	color: var(--fg-mute);
}
.primary-nav a {
	position: relative;
	padding-bottom: 4px;
}
.primary-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%; bottom: 0;
	height: 1.5px;
	background: var(--match-gold);
	transition: right 240ms var(--ease);
}
.primary-nav a:hover { color: var(--fg); }
.primary-nav a:hover::after { right: 0; }

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-left: auto;
}
/* On pages with a primary nav, the nav already pushes itself to the right,
   so header-actions falls in next to it instead of taking the full slack. */
.primary-nav ~ .header-actions { margin-left: 0; }

.link-quiet {
	color: var(--fg-mute);
	font-size: 0.94rem;
}
.link-quiet:hover { color: var(--fg); }

.nav-toggle {
	display: none;
	border: 0;
	background: transparent;
	width: 36px;
	height: 36px;
	margin-left: auto;
	cursor: pointer;
	padding: 8px;
}
.nav-toggle span {
	display: block;
	height: 1.5px;
	background: var(--fg);
	margin: 4px 0;
	transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav { display: none; }
.mobile-nav:not([hidden]) {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	padding: 1rem var(--gutter) 1.6rem;
	background: var(--bg-elevated);
	border-top: 1px solid var(--border);
}
/* :not(.btn) keeps buttons (.btn .btn-primary) from being repainted by the
   generic .mobile-nav a colour — without it, the gold/navy Get started CTA
   loses its own foreground and ends up washed-out in both themes. */
.mobile-nav a:not(.btn) { font-size: 1.05rem; color: var(--fg); }
.mobile-nav .btn { align-self: flex-start; }

/* Force mobile-nav closed at desktop widths even if its hidden flag was left off. */
@media (min-width: 721px) {
	.mobile-nav { display: none !important; }
}

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.95rem 1.4rem;
	font-family: var(--font-body);
	font-size: 0.96rem;
	font-weight: 500;
	letter-spacing: -0.005em;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
	white-space: nowrap;
}

.btn-sm { padding: 0.6rem 1rem; font-size: 0.9rem; }

.btn-primary {
	background: var(--btn-primary-bg);
	color: var(--btn-primary-fg);
	box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 24px -10px var(--shadow-color);
}
.btn-primary:hover {
	background: var(--btn-primary-bg-hover);
	transform: translateY(-1px);
	box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 14px 28px -10px var(--shadow-color-strong);
}

.btn-gold {
	background: var(--match-gold);
	color: var(--deep-court);
	box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 24px -10px var(--shadow-gold);
}
.btn-gold:hover {
	background: var(--match-gold-soft);
	transform: translateY(-1px);
}

/* Ghost on light backgrounds (pricing CTAs, modules CTAs, etc.). */
.btn-ghost {
	background: transparent;
	color: var(--btn-ghost-fg);
	border-color: var(--btn-ghost-border);
}
.btn-ghost:hover {
	background: var(--bg-elevated);
	border-color: var(--fg);
}

/* Ghost on intentionally-dark backgrounds (hero, CTA band).
   Forces the dark-context palette regardless of light/dark theme. */
.hero .btn-ghost,
.cta-final .btn-ghost,
.btn-ghost-light {
	color: var(--chalk);
	border-color: rgba(245, 245, 240, 0.32);
}
.hero .btn-ghost:hover,
.cta-final .btn-ghost:hover,
.btn-ghost-light:hover {
	background: rgba(245, 245, 240, 0.08);
	border-color: rgba(245, 245, 240, 0.6);
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
	position: relative;
	background:
		radial-gradient(ellipse at 80% 0%, rgba(13, 148, 136, 0.18), transparent 60%),
		radial-gradient(ellipse at 0% 80%, rgba(212, 160, 23, 0.08), transparent 55%),
		linear-gradient(180deg, var(--hero-bg-1) 0%, var(--hero-bg-2) 100%);
	color: var(--hero-fg);
	padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
	overflow: hidden;
	isolation: isolate;
}

.hero-grain {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.5;
	mix-blend-mode: overlay;
	background-image: var(--grain-svg);
	z-index: 0;
}

.hero-court {
	position: absolute;
	top: 0;
	right: -6%;
	height: 110%;
	width: auto;
	z-index: 0;
	opacity: 0.85;
}

.hero-wrap {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: clamp(2.5rem, 5vw, 5rem);
	align-items: end;
}

.hero-copy { max-width: 720px; }

.hero-sub {
	margin: 1.6rem 0 2.4rem;
	font-size: clamp(1.1rem, 1.6vw, 1.3rem);
	line-height: 1.45;
	color: var(--hero-fg-mute);
	max-width: 38ch;
}

.hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	margin-bottom: 2.5rem;
}

.hero-trust {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.4rem;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	color: var(--hero-fg-quiet);
}
.hero-trust li {
	position: relative;
	padding-left: 18px;
}
.hero-trust li::before {
	content: "";
	position: absolute;
	left: 0; top: 50%;
	transform: translateY(-50%);
	width: 10px; height: 1.5px;
	background: var(--match-gold);
}

.hero-promises {
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--hero-card-border);
	border: 1px solid var(--hero-card-border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.hero-promises .promise {
	background: var(--hero-card-bg);
	backdrop-filter: blur(6px);
	padding: 1.4rem 1.5rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	position: relative;
	transition: background 240ms var(--ease);
}
.hero-promises .promise:hover {
	background: var(--hero-card-bg-hover);
}
.hero-promises .promise::before {
	content: "";
	position: absolute;
	left: 1.5rem;
	top: 1.5rem;
	width: 22px;
	height: 1.5px;
	background: var(--match-gold);
}
.promise-tag {
	font-family: var(--font-display);
	font-weight: 480;
	font-variation-settings: 'opsz' 36;
	font-size: 1.05rem;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: var(--chalk);
	margin: 0;
	padding-top: 0.85rem;
}
.promise-body {
	font-family: var(--font-body);
	font-size: 0.88rem;
	letter-spacing: 0.005em;
	color: var(--hero-fg-mute);
	line-height: 1.5;
	margin: 0;
}

/* Stagger entrance */
.stagger {
	opacity: 0;
	transform: translateY(14px);
	animation: rise 900ms var(--ease) forwards;
	animation-delay: var(--d, 0ms);
}
@keyframes rise {
	to { opacity: 1; transform: translateY(0); }
}

/* =========================================================================
   Section heads
   ========================================================================= */

.section-head {
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head-narrow { max-width: 720px; }
.section-head .display-2 { max-width: 26ch; }

/* =========================================================================
   Pillars
   ========================================================================= */

.pillars {
	padding: var(--section-y) 0;
	background: var(--bg);
	position: relative;
}
.pillars::before {
	content: "";
	position: absolute;
	left: var(--gutter);
	right: var(--gutter);
	top: 0;
	height: 1px;
	background: var(--border);
}

.pillar-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.pillar {
	background: var(--bg-elevated);
	padding: 2.4rem 2rem 2.6rem;
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
	transition: background 240ms var(--ease);
}
.pillar:hover { background: var(--pillar-bg-hover); }

.pillar-art {
	width: 120px;
	height: 80px;
	color: var(--court-navy);
	opacity: 0.75;
}
.pillar-art svg { width: 100%; height: 100%; }

.pillar h3 {
	font-family: var(--font-display);
	font-weight: 460;
	font-variation-settings: 'opsz' 60;
	font-size: 1.55rem;
	letter-spacing: -0.015em;
	margin: 0;
	color: var(--fg);
}

.pillar p {
	margin: 0;
	color: var(--fg-mute);
	font-size: 0.98rem;
	line-height: 1.55;
}

.pillar-list {
	list-style: none;
	padding: 0;
	margin: auto 0 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	border-top: 1px solid var(--border);
	padding-top: 1.2rem;
}
.pillar-list li {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: var(--fg);
	padding-left: 18px;
	position: relative;
}
.pillar-list li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.55em;
	width: 10px; height: 1.5px;
	background: var(--match-gold);
}

/* =========================================================================
   Module tour (Scheduling / Competitions) — a two-column copy intro
   (narrative + scannable bullets) above a full-width screenshot per module.
   Replaces the old standalone .preview sections: the copy is told once here,
   and the screenshots keep their original full-width size rather than being
   squeezed into a half-width column.
   ========================================================================= */

.module-tour {
	display: flex;
	flex-direction: column;
	gap: clamp(3rem, 7vw, 5.5rem);
	margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.module-intro {
	margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
/* Tag + title sit full-width on top so the bullets read as belonging under
   the title, not floating above it beside the tag. */
.module-head {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}
/* Hook (narrative) and bullets (scannable) share a row beneath the title. */
.module-detail {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}
.module-title {
	font-family: var(--font-display);
	font-weight: 460;
	font-variation-settings: 'opsz' 60;
	font-size: clamp(1.8rem, 3.2vw, 2.4rem);
	letter-spacing: -0.02em;
	margin: 0;
	color: var(--fg);
}
.module-hook {
	margin: 0;
	color: var(--fg-mute);
	font-size: 1.02rem;
	line-height: 1.55;
	max-width: 46ch;
}
/* Bullets reuse .pillar-list but aren't pinned to a card bottom. */
.module-bullets {
	margin: 0;
	border-top: 0;
	padding-top: 0;
}
/* The screenshot / gallery spans the full content width below the intro;
   spacing comes from .module-intro's bottom margin, not the frame's own. */
.module-block .screen-frame,
.module-block .competition-gallery { margin-top: 0; }

.screen-frame {
	margin: clamp(2rem, 5vw, 3rem) 0 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	position: relative;
	box-shadow:
		0 30px 60px -30px var(--shadow-color),
		0 14px 24px -16px var(--shadow-color-soft);
}

.screen-frame-chrome {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.75rem 1rem;
	background: var(--bg-elevated);
	border-bottom: 1px solid var(--border);
}
.screen-frame-chrome .dot {
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--chrome-dot);
	border: 1px solid var(--chrome-dot-edge);
}
.screen-frame-url {
	margin-left: auto;
	font-family: var(--font-mono);
	font-size: 0.74rem;
	color: var(--fg-quiet);
	letter-spacing: 0.04em;
}

.screen-frame-body {
	background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-sunken) 100%);
	position: relative;
	overflow: hidden;
}
.screen-frame-body img {
	display: block;
	width: 100%;
	height: auto;
}

.screen-frame-caption {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.08em;
	color: var(--fg-mute);
	text-transform: uppercase;
	margin: 0.9rem 0 0;
}

/* Competition gallery — 2x2 grid */
.competition-gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 2rem;
	margin-top: clamp(2rem, 5vw, 3rem);
}
.competition-gallery .screen-frame { margin: 0; }

/* =========================================================================
   How it works (numbered steps)
   ========================================================================= */

.how {
	padding: var(--section-y) 0;
	background: var(--bg);
	border-top: 1px solid var(--border);
}

.steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	counter-reset: step;
}
.steps li {
	padding: 0 2rem 0 0;
	border-right: 1px solid var(--border);
	position: relative;
}
.steps li:last-child { border-right: 0; padding-right: 0; }
.steps li + li { padding-left: 2rem; }

.step-num {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	color: var(--match-gold);
	display: block;
	margin-bottom: 1rem;
}
.steps h3 {
	font-family: var(--font-display);
	font-weight: 440;
	font-variation-settings: 'opsz' 60;
	font-size: 1.5rem;
	letter-spacing: -0.015em;
	margin: 0 0 0.8rem 0;
	color: var(--fg);
}
.steps p {
	margin: 0;
	color: var(--fg-mute);
	font-size: 0.98rem;
	line-height: 1.55;
}

/* =========================================================================
   Audience
   ========================================================================= */

.audience {
	padding: var(--section-y) 0;
	background: var(--bg-elevated);
	border-top: 1px solid var(--border);
}
.audience-grid {
	list-style: none;
	padding: 0;
	margin: 3rem 0 0 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.6rem 3rem;
	max-width: 900px;
}
.audience-grid li {
	font-size: 1.05rem;
	line-height: 1.45;
	color: var(--fg-mute);
	padding-left: 1.4rem;
	border-left: 2px solid var(--match-gold);
}
.audience-grid li strong {
	display: block;
	color: var(--fg);
	font-weight: 500;
	font-family: var(--font-display);
	font-variation-settings: 'opsz' 48;
	font-size: 1.25rem;
	margin-bottom: 0.2rem;
	letter-spacing: -0.01em;
}

/* =========================================================================
   FAQ
   ========================================================================= */

.faq {
	padding: var(--section-y) 0;
	background: var(--bg);
	border-top: 1px solid var(--border);
}
.faq-wrap { max-width: 900px; }

.faq-list {
	margin-top: 2.4rem;
	border-top: 1px solid var(--border);
}
.faq-list details {
	border-bottom: 1px solid var(--border);
	padding: 1.3rem 0;
}
.faq-list summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-family: var(--font-display);
	font-weight: 440;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
	color: var(--fg);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
	content: "+";
	font-family: var(--font-mono);
	font-size: 1.4rem;
	font-weight: 400;
	color: var(--ace-teal);
	transition: transform 220ms var(--ease);
}
.faq-list details[open] summary::after {
	content: "−";
	color: var(--match-gold);
}
.faq-list details p {
	margin: 0.9rem 0 0 0;
	color: var(--fg-mute);
	font-size: 1rem;
	line-height: 1.55;
	max-width: 70ch;
}

/* =========================================================================
   Final CTA
   ========================================================================= */

.cta-final {
	position: relative;
	background:
		radial-gradient(ellipse at 20% 100%, rgba(212, 160, 23, 0.16), transparent 55%),
		radial-gradient(ellipse at 100% 0%, rgba(13, 148, 136, 0.12), transparent 50%),
		linear-gradient(180deg, var(--cta-bg-2) 0%, var(--cta-bg-1) 100%);
	color: var(--cta-fg);
	padding: clamp(5rem, 10vw, 8rem) 0;
	overflow: hidden;
	isolation: isolate;
}
.cta-grain {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.35;
	mix-blend-mode: overlay;
	background-image: var(--grain-svg);
	z-index: 0;
}
.cta-wrap {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 760px;
}
.cta-wrap .kicker { margin-bottom: 1.2rem; }
.cta-wrap .display-2 { margin: 0 auto; max-width: 18ch; }
.cta-sub {
	margin: 1.4rem auto 2.5rem;
	color: var(--cta-fg-mute);
	font-size: 1.1rem;
	line-height: 1.5;
	max-width: 50ch;
}
.cta-wrap .hero-ctas {
	justify-content: center;
	margin-bottom: 0;
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
	background: var(--footer-bg-2);
	color: var(--footer-fg-mute);
	padding: 4rem 0 2rem;
	font-size: 0.92rem;
}
.footer-wrap {
	display: grid;
	grid-template-columns: 1.6fr repeat(3, 1fr);
	gap: 2rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid var(--footer-border);
}
.footer-brand { max-width: 320px; }
.footer-tag {
	margin: 1rem 0 0 0;
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 360;
	color: var(--footer-fg-quiet);
	font-size: 1rem;
	line-height: 1.4;
}
.footer-col {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}
.footer-col-head {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--footer-fg-quiet);
	margin: 0 0 0.4rem 0;
}
.footer-col a {
	color: var(--footer-fg-mute);
	transition: color 200ms var(--ease);
}
.footer-col a:hover { color: var(--footer-fg); }

.footer-meta {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 2rem;
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.06em;
	color: var(--footer-fg-quiet);
}

.footer-legal {
	padding-top: 0.6rem;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	color: var(--footer-fg-quiet);
	opacity: 0.7;
}
.footer-legal p { margin: 0; }

/* =========================================================================
   Scroll reveal
   ========================================================================= */

.reveal {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.stagger, .reveal {
		animation: none;
		opacity: 1;
		transform: none;
		transition: none;
	}
	html { scroll-behavior: auto; }
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 960px) {
	.hero-wrap {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	.hero-court { right: -30%; opacity: 0.5; }

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

	.steps { grid-template-columns: 1fr; gap: 0; }
	.steps li {
		border-right: 0;
		border-bottom: 1px solid var(--border);
		padding: 2rem 0;
	}
	.steps li:first-child { padding-top: 0; }
	.steps li:last-child { border-bottom: 0; }
	.steps li + li { padding-left: 0; }

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

	.competition-gallery { grid-template-columns: 1fr; gap: 1.4rem; }

	.footer-wrap { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: span 2; }
}

@media (max-width: 720px) {
	.primary-nav, .header-actions { display: none; }
	.nav-toggle { display: block; margin-left: auto; }

	.hero { padding-top: clamp(3rem, 9vw, 5rem); }

	.footer-wrap { grid-template-columns: 1fr; }
	.footer-brand { grid-column: span 1; }
	.footer-meta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
	.hero-trust { gap: 0.6rem 1.2rem; }
	.btn { padding: 0.85rem 1.15rem; }
	/* nothing to do at this breakpoint for the screen-frame; aspect ratio handles it */
}

/* =========================================================================
   Focus states (always-on accessibility)
   ========================================================================= */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--match-gold);
	outline-offset: 3px;
	border-radius: 2px;
}

/* =========================================================================
   Language toggle (header + mobile)
   ========================================================================= */

.lang-menu {
	position: relative;
	display: inline-flex;
	margin-right: 0.25rem;
}

.lang-menu-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.55rem 0.35rem 0.65rem;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--fg-quiet);
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}
.lang-menu-trigger:hover,
.lang-menu-trigger[aria-expanded="true"] {
	color: var(--fg);
	border-color: var(--border-strong);
	background: var(--surface);
}
.lang-menu-current {
	font-weight: 600;
}
.lang-menu-chevron {
	width: 10px;
	height: 7px;
	transition: transform 200ms var(--ease);
}
.lang-menu-trigger[aria-expanded="true"] .lang-menu-chevron {
	transform: rotate(180deg);
}

.lang-menu-pop {
	position: absolute;
	top: calc(100% + 0.4rem);
	right: 0;
	z-index: 50;
	min-width: 9.5rem;
	padding: 0.3rem;
	background: var(--bg-elevated);
	border: 1px solid var(--border);
	border-radius: 8px;
	box-shadow: 0 14px 36px -18px var(--shadow-color), 0 2px 6px -2px var(--shadow-color-soft);
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	transform-origin: top right;
	animation: lang-menu-in 140ms var(--ease);
}
.lang-menu-pop[hidden] { display: none; }

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

.lang-menu-item {
	display: grid;
	grid-template-columns: 2.4rem 1fr;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 0.7rem;
	background: transparent;
	border: 0;
	border-radius: 6px;
	color: var(--fg-mute);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background 140ms var(--ease), color 140ms var(--ease);
}
.lang-menu-item:hover,
.lang-menu-item:focus-visible {
	background: var(--surface-hover);
	color: var(--fg);
	outline: none;
}
.lang-menu-item[aria-checked="true"] {
	color: var(--fg);
}
.lang-menu-item-code {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fg-quiet);
	transition: color 140ms var(--ease);
}
.lang-menu-item[aria-checked="true"] .lang-menu-item-code {
	color: var(--match-gold);
}
.lang-menu-item-name {
	font-family: var(--font-body);
	font-size: 0.92rem;
}
/* In mobile-nav (inside the drawer), float the pop towards the start so it
   doesn't get cut off when the menu sits flush against the left edge. */
.mobile-toggles .lang-menu-pop {
	right: auto;
	left: 0;
	transform-origin: top left;
}

.mobile-toggles {
	margin: 0.5rem 0 0;
	padding: 0.5rem 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
/* Inside the mobile drawer, finger taps replace mouse clicks — bump the
   theme toggle and lang trigger up to a comfortable ~44px tap target. */
.mobile-toggles .theme-toggle {
	width: 44px;
	height: 44px;
}
.mobile-toggles .lang-menu-trigger {
	padding: 0.6rem 0.8rem 0.6rem 0.95rem;
}

/* =========================================================================
   Theme toggle (sun / moon)
   ========================================================================= */

.theme-toggle {
	background: none;
	border: 0;
	padding: 0.35rem;
	width: 32px;
	height: 32px;
	color: var(--fg-mute);
	cursor: pointer;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 0.4rem;
	transition: color 200ms var(--ease), background 200ms var(--ease);
}
.theme-toggle:hover {
	color: var(--fg);
	background: var(--bg-elevated);
}
.theme-icon { width: 18px; height: 18px; }

/* Show the icon representing the action — moon in light mode (click to go dark),
   sun in dark mode (click to go light). The inline <head> script always sets
   data-theme so there's no FOUC. */
.theme-icon-sun  { display: none; }
.theme-icon-moon { display: block; }
[data-theme="dark"] .theme-icon-sun  { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

/* =========================================================================
   Pillar additions — tag + core variant
   ========================================================================= */

.pillar-tag {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fg-quiet);
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.pillar-module .pillar-tag::before,
.pillar-builtin .pillar-tag::before {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--match-gold);
}
.pillar-builtin .pillar-tag::before { background: var(--ace-teal); }

/* Built-in essentials card — same chrome as the paid modules, with a teal
   tag dot and a faint gradient so "free with every plan" reads as its own
   category. (Was .pillar-core, a full-width banner, before the modules
   section became screenshot-led.) */
.pillar-builtin {
	background: linear-gradient(180deg, var(--pillar-core-bg-1) 0%, var(--pillar-core-bg-2) 100%);
}
.pillar-builtin:hover { background: linear-gradient(180deg, var(--pillar-bg-hover) 0%, var(--pillar-core-bg-1) 100%); }

/* Payments + built-in essentials sit below the tour as a two-up card row. */
.module-extras { grid-template-columns: 1fr 1fr; }

/* "Coming soon" module variant — same card, gold dot in the tag,
   slightly muted body text so it reads as forthcoming, not active. */
.pillar-soon .pillar-tag { color: var(--match-gold); }
.pillar-soon .pillar-tag::before {
	background: var(--match-gold);
	box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.18);
}
.pillar-soon .pillar-art { opacity: 0.55; }
.pillar-soon > p { opacity: 0.82; }

.pillar-list li b {
	font-weight: 700;
	color: var(--court-navy);
	font-family: var(--font-mono);
}
/* Navy on the dark card surface is unreadable; swap to gold in dark mode. */
[data-theme="dark"] .pillar-list li b { color: var(--match-gold-soft); }

/* =========================================================================
   Devices section (laptop / tablet / phone mockups)
   ========================================================================= */

.devices {
	padding: var(--section-y) 0;
	background: var(--bg);
	position: relative;
}
.devices::before {
	content: "";
	position: absolute;
	left: var(--gutter);
	right: var(--gutter);
	top: 0;
	height: 1px;
	background: var(--border);
}

.device-stage {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	grid-template-rows: auto auto;
	gap: 2rem;
	align-items: end;
	margin-top: clamp(2.5rem, 5vw, 4rem);
}
.device-laptop { grid-row: span 2; }

.device {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.device-bezel {
	background: var(--deep-court);
	padding: 14px 14px 0;
	border-radius: 14px 14px 4px 4px;
	box-shadow:
		0 30px 60px -28px var(--shadow-color-strong),
		0 10px 18px -10px var(--shadow-color-soft);
	position: relative;
	overflow: hidden;
}

.device-laptop .device-bezel {
	padding: 18px 18px 0;
	border-radius: 16px 16px 0 0;
}
.device-laptop .device-base {
	height: 14px;
	background: linear-gradient(180deg, var(--deep-court) 0%, var(--deeper-court) 60%, #050c18 100%);
	border-radius: 0 0 22px 22px;
	margin-top: -1px;
	position: relative;
}
.device-laptop .device-base::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 4px;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: var(--deeper-court);
	border-radius: 0 0 8px 8px;
}

.device-tablet .device-bezel {
	padding: 18px 14px;
	border-radius: 18px;
}
.device-phone {
	max-width: 240px;
	justify-self: end;
}
.device-phone .device-bezel {
	padding: 22px 10px;
	border-radius: 28px;
}

.device-screen {
	background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-sunken) 100%);
	border-radius: 3px;
	overflow: hidden;
	position: relative;
}
.device-tablet .device-screen { border-radius: 4px; }
.device-phone .device-screen { border-radius: 18px; }

.device-screen img {
	display: block;
	width: 100%;
	height: auto;
}

.device-caption {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.08em;
	color: var(--fg-mute);
	text-transform: uppercase;
}

/* Hover-to-zoom on the competition gallery cards and device frames.
   Scoped to true mouse devices: touch screens get sticky :hover which
   would trap users in the zoomed state on first tap. Mobile keeps its
   responsive sizing. */
@media (hover: hover) and (pointer: fine) {
	.competition-gallery .screen-frame,
	.device .device-bezel {
		cursor: zoom-in;
		transition:
			transform 280ms var(--ease),
			box-shadow 280ms var(--ease),
			z-index 0s linear 280ms;
	}
	.competition-gallery .screen-frame:hover,
	.device .device-bezel:hover {
		/* --hover-tx/ty are set by JS on mouseenter to fly the card to the
		   centre of the current viewport. Default 0px if JS hasn't run yet. */
		transform: translate(var(--hover-tx, 0px), var(--hover-ty, 0px)) scale(1.8);
		z-index: 20;
		transition:
			transform 320ms var(--ease),
			box-shadow 320ms var(--ease),
			z-index 0s linear 0s;
	}
	.competition-gallery .screen-frame:hover {
		box-shadow:
			0 40px 80px -28px var(--shadow-color-strong),
			0 20px 36px -16px var(--shadow-color);
	}
	.device .device-bezel:hover {
		box-shadow:
			0 40px 80px -26px var(--shadow-color-strong),
			0 18px 32px -14px var(--shadow-color);
	}
}

/* =========================================================================
   Partners section
   ========================================================================= */

.partners {
	padding: var(--section-y) 0;
	background: var(--bg);
	position: relative;
}
.partners::before {
	content: "";
	position: absolute;
	left: var(--gutter);
	right: var(--gutter);
	top: 0;
	height: 1px;
	background: var(--border);
}

.partners-list {
	list-style: none;
	margin: clamp(2rem, 5vw, 3rem) 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	justify-content: center;
}

.partner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: min(440px, 100%);
	height: 240px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	position: relative;
	transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.partner:hover {
	transform: translateY(-2px);
	border-color: var(--match-gold);
	box-shadow: 0 12px 24px -18px var(--shadow-color);
}
.partner img {
	max-width: 75%;
	max-height: 70%;
	object-fit: contain;
}

/* A partner shown for recognition but not (yet) linkable: no lift, no cursor,
   no hover border — it must not read as clickable. */
.partner-static { cursor: default; }
.partner-static:hover {
	transform: none;
	border-color: var(--border);
	box-shadow: none;
}

.partner-cta {
	position: absolute;
	bottom: 0.75rem;
	right: 1rem;
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--match-gold);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 200ms var(--ease), transform 200ms var(--ease);
	pointer-events: none;
}
.partner:hover .partner-cta,
.partner:focus-visible .partner-cta {
	opacity: 1;
	transform: translateX(0);
}

.partner-placeholder {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	text-align: center;
	padding: 1rem;
	width: 100%;
	height: 100%;
}
.partner-placeholder-tag {
	font-family: var(--font-mono);
	font-size: 0.62rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--match-gold);
}
.partner-placeholder-name {
	font-family: var(--font-display);
	font-weight: 480;
	font-variation-settings: 'opsz' 36;
	font-size: 1.1rem;
	color: var(--fg);
}
.partner-placeholder-msg {
	font-family: var(--font-mono);
	font-size: 0.68rem;
	color: var(--fg-quiet);
}
.partner-placeholder-msg code {
	background: var(--code-bg);
	padding: 0.1rem 0.4rem;
	border-radius: 3px;
}

/* =========================================================================
   Impressions section (testimonials + submission form)
   ========================================================================= */

.impressions {
	padding: var(--section-y) 0;
	background: var(--bg);
	position: relative;
}
.impressions::before {
	content: "";
	position: absolute;
	left: var(--gutter);
	right: var(--gutter);
	top: 0;
	height: 1px;
	background: var(--border);
}

.impressions-stage {
	margin: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.impressions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}

.impression-card {
	position: relative;
	padding: 2.2rem 1.75rem 1.5rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.impression-card::before {
	content: "\201C";
	position: absolute;
	top: 0.05em;
	left: 1.1rem;
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 400;
	font-variation-settings: 'opsz' 144;
	font-size: 5.5rem;
	line-height: 1;
	color: var(--match-gold);
	opacity: 0.32;
	pointer-events: none;
}
.impression-card:hover {
	transform: translateY(-2px);
	border-color: var(--match-gold);
	box-shadow: 0 12px 24px -18px var(--shadow-color);
}

.impression-quote {
	position: relative;
	margin: 0 0 1.6rem;
	font-family: var(--font-body);
	font-weight: 450;
	font-size: 1.1rem;
	line-height: 1.65;
	color: var(--fg);
}

.impression-byline {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
}
.impression-avatar {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--court-navy);
	color: var(--chalk);
}
.impression-avatar-initials {
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
}
.impression-meta {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}
.impression-name {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--fg);
}
.impression-role {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ace-teal);
}
[data-theme="dark"] .impression-role { color: var(--ace-teal-soft); }

.impressions-empty {
	position: relative;
	padding: clamp(3rem, 7vw, 4.5rem) 1.5rem;
	background: var(--surface);
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius-lg);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0.9rem;
	overflow: hidden;
}
.impressions-empty::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(transparent calc(50% - 0.5px), var(--border) calc(50% - 0.5px), var(--border) calc(50% + 0.5px), transparent calc(50% + 0.5px)),
		linear-gradient(90deg, transparent calc(50% - 0.5px), var(--border) calc(50% - 0.5px), var(--border) calc(50% + 0.5px), transparent calc(50% + 0.5px));
	background-size: 100% 100%, 100% 100%;
	background-repeat: no-repeat;
	opacity: 0.45;
	pointer-events: none;
}
.impressions-empty > * { position: relative; z-index: 1; }
.impressions-empty-mark {
	width: 56px;
	height: 56px;
	color: var(--match-gold);
	opacity: 0.9;
}
.impressions-empty-h {
	margin: 0;
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 380;
	font-variation-settings: 'opsz' 60;
	font-size: clamp(1.4rem, 3vw, 1.75rem);
	line-height: 1.2;
	color: var(--fg);
}
.impressions-empty-sub {
	margin: 0;
	max-width: 32ch;
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--fg-quiet);
}

.impressions-form {
	max-width: 760px;
	margin-inline: auto;
	padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.5rem, 4vw, 2.5rem);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	position: relative;
}
.impressions-form-kicker {
	margin: 0 0 0.35rem;
}
.impressions-form-h {
	margin: 0 0 1.6rem;
	font-family: var(--font-display);
	font-weight: 400;
	font-variation-settings: 'opsz' 60;
	font-size: clamp(1.35rem, 2.8vw, 1.65rem);
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: var(--fg);
}
.impressions-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.2rem;
}
@media (max-width: 640px) {
	.impressions-form-grid { grid-template-columns: 1fr; }
}
.impressions-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
}
.impressions-field-full {
	grid-column: 1 / -1;
}
.impressions-field-label {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fg-quiet);
}
.impressions-field-meta {
	font-family: var(--font-body);
	font-size: 0.72rem;
	letter-spacing: 0;
	text-transform: none;
	color: var(--fg-quiet);
	margin-left: 0.4rem;
}
.impressions-field input,
.impressions-field select,
.impressions-field textarea {
	width: 100%;
	padding: 0.72rem 0.85rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--fg);
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 6px;
	transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
	appearance: none;
	-webkit-appearance: none;
}
.impressions-field textarea {
	resize: vertical;
	min-height: 7rem;
}
.impressions-field input::placeholder,
.impressions-field textarea::placeholder {
	color: var(--fg-quiet);
}
.impressions-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	padding-right: 2.2rem;
}
.impressions-field input:focus,
.impressions-field select:focus,
.impressions-field textarea:focus {
	outline: none;
	border-color: var(--ace-teal);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ace-teal) 22%, transparent);
}
.impressions-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.impressions-form-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 1.6rem;
	flex-wrap: wrap;
}
.impressions-form-note {
	margin: 0;
	max-width: 44ch;
	font-family: var(--font-body);
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--fg-quiet);
}
.impressions-form-status {
	margin: 1.2rem 0 0;
	padding: 0.8rem 1rem;
	border-radius: 6px;
	font-family: var(--font-body);
	font-size: 0.9rem;
	display: none;
}
.impressions-form-status.is-success {
	display: block;
	background: color-mix(in srgb, var(--ace-teal) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--ace-teal) 35%, transparent);
	color: var(--fg);
}
.impressions-form-status.is-error {
	display: block;
	background: color-mix(in srgb, #DC2626 12%, transparent);
	border: 1px solid color-mix(in srgb, #DC2626 35%, transparent);
	color: var(--fg);
}

/* =========================================================================
   Pricing section
   ========================================================================= */

.pricing {
	padding: var(--section-y) 0;
	background: var(--bg-elevated);
	position: relative;
}
.pricing::before {
	content: "";
	position: absolute;
	left: var(--gutter);
	right: var(--gutter);
	top: 0;
	height: 1px;
	background: var(--border);
}

.pricing-table {
	margin-top: clamp(2rem, 5vw, 3.5rem);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--bg-elevated);
}
.pricing-row {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
.pricing-row + .pricing-row { border-top: 1px solid var(--border); }
.pricing-cell {
	padding: 1.4rem 1.6rem;
	border-right: 1px solid var(--border);
	background: var(--bg-elevated);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.3rem;
}
.pricing-cell:last-child { border-right: 0; }

.pricing-head .pricing-cell {
	background: var(--bg-sunken);
	padding-top: 1.6rem;
	padding-bottom: 1.6rem;
}
.pricing-row .pricing-cell-popular {
	background: var(--pricing-popular-bg);
	box-shadow: inset 0 0 0 2px var(--match-gold);
	position: relative;
	z-index: 1;
}

.pricing-tier-name {
	font-family: var(--font-display);
	font-weight: 460;
	font-variation-settings: 'opsz' 36;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
	color: var(--fg);
	margin: 0;
}
.pricing-tier-size {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	color: var(--fg-mute);
	margin: 0;
}
.pricing-tier-badge {
	font-family: var(--font-mono);
	font-size: 0.66rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--match-gold);
	margin: 0.2rem 0 0;
}

.pricing-module-name {
	font-family: var(--font-display);
	font-weight: 460;
	font-variation-settings: 'opsz' 36;
	font-size: 1.2rem;
	color: var(--fg);
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	flex-wrap: wrap;
}
.pricing-module-tag {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	color: var(--fg-quiet);
	margin: 0;
}

.pricing-cell-num {
	font-family: var(--font-display);
	font-weight: 360;
	font-variation-settings: 'opsz' 96;
	font-size: clamp(2rem, 4vw, 2.8rem);
	color: var(--court-navy);
	letter-spacing: -0.02em;
	line-height: 1;
	flex-direction: row;
	align-items: baseline;
	gap: 0.1rem;
}
/* Navy prices vanish on dark; flip to chalk. */
[data-theme="dark"] .pricing-cell-num,
[data-theme="dark"] .ex-price { color: var(--fg); }
[data-theme="dark"] .pricing-row-soon .pricing-cell-num { color: var(--fg-mute); }
.pricing-currency {
	font-size: 0.55em;
	color: var(--fg-mute);
	margin-right: 0.05em;
}

.pricing-discounts {
	margin-top: 2rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.pricing-discounts-3 { grid-template-columns: repeat(3, 1fr); }
.pricing-module-soon {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 0.6rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--match-gold);
	padding: 0.18rem 0.45rem;
	border: 1px solid var(--match-gold);
	border-radius: 100px;
	white-space: nowrap;
	line-height: 1;
}
.pricing-row-soon .pricing-cell-num {
	color: var(--fg-mute);
}
.discount {
	display: flex;
	align-items: center;
	gap: 1.4rem;
	padding: 1.4rem 1.8rem;
	background: var(--discount-bg);
	color: var(--discount-fg);
	border-radius: var(--radius-lg);
}
.discount-num {
	font-family: var(--font-display);
	font-weight: 360;
	font-variation-settings: 'opsz' 96;
	font-size: clamp(2.5rem, 4.5vw, 3.4rem);
	color: var(--match-gold);
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 0;
}
.discount-pct { font-size: 0.55em; color: var(--match-gold-soft); margin-left: 0.05em; }
.discount-label {
	margin: 0;
	color: var(--discount-fg-mute);
	font-size: 0.92rem;
	line-height: 1.5;
}
.discount-label b { color: var(--chalk); font-weight: 600; }

.pricing-examples {
	margin-top: 2rem;
	padding: 1.6rem 2rem;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}
.pricing-examples-head {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fg-quiet);
	margin: 0 0 1rem;
}
.pricing-examples-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.pricing-examples-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px dashed var(--border);
}
.pricing-examples-list li:last-child { border-bottom: 0; }
.ex-label { color: var(--fg-mute); font-size: 0.95rem; }
.ex-price {
	font-family: var(--font-display);
	font-weight: 460;
	font-variation-settings: 'opsz' 60;
	font-size: 1.4rem;
	color: var(--court-navy);
	letter-spacing: -0.015em;
	white-space: nowrap;
}
.ex-price small {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	color: var(--fg-quiet);
}

.pricing-ctas {
	margin-top: 2.2rem;
	display: flex;
	gap: 0.8rem;
	flex-wrap: wrap;
}

/* =========================================================================
   Responsive overrides for new sections
   ========================================================================= */

@media (max-width: 960px) {
	.device-stage {
		grid-template-columns: 1fr;
		grid-template-rows: auto auto auto;
	}
	.device-laptop { grid-row: auto; }
	.device-phone { justify-self: start; max-width: 200px; }

	.pricing-row { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
	.pricing-cell { padding: 1.1rem 1rem; }
	.pricing-cell-num { font-size: clamp(1.6rem, 5vw, 2.2rem); }

	.pricing-discounts,
	.pricing-discounts-3 { grid-template-columns: 1fr; }

	.module-extras { grid-template-columns: 1fr; }

	.module-detail { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 720px) {
	.lang-menu { margin-right: 0; }

	.pricing-table {
		border: 0;
		background: transparent;
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}
	.pricing-row {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		border: 1px solid var(--border);
		border-radius: var(--radius-lg);
		overflow: hidden;
		background: var(--bg-elevated);
	}
	.pricing-row + .pricing-row { border-top: 1px solid var(--border); }
	.pricing-row.pricing-head { display: none; }
	.pricing-cell { border-right: 1px solid var(--border); padding: 1rem 0.8rem; text-align: center; align-items: center; }
	.pricing-cell-label {
		grid-column: span 3;
		border-right: 0;
		border-bottom: 1px solid var(--border);
		background: var(--bg-sunken);
		text-align: left;
		align-items: flex-start;
	}
	/* Stack the tier label above the price at narrow widths. */
	.pricing-cell-num { flex-direction: column; align-items: center; gap: 0; }
	.pricing-cell-num .pricing-cell-tier {
		display: block;
		font-family: var(--font-mono);
		font-size: 0.62rem;
		font-weight: 400;
		letter-spacing: 0.12em;
		text-transform: uppercase;
		color: var(--fg-quiet);
		margin-bottom: 0.3rem;
	}

	.pricing-examples-list li { flex-direction: column; align-items: flex-start; gap: 0.2rem; padding: 0.7rem 0; }
	.ex-price { font-size: 1.2rem; }
}

/* The per-cell tier label is mobile-only — the desktop pricing table
   already has a dedicated header row, so hide the inline labels there. */
.pricing-cell-tier { display: none; }
