/* ──────────────────────────────────────────────────────────
   Enrichr — landing + policy styles
   Design: mirrors the extension itself — same neutral cool-gray palette
   and blue selection accent that echoes what the product does to your
   text — but warmer and more editorial in voice: Bricolage Grotesque
   (a little irregular, handmade) for headlines, Karla (calm, humanist)
   for body copy. One developer's tool, not a startup's SaaS template.
   Full dark mode.
   ────────────────────────────────────────────────────────── */

:root {
	color-scheme: light dark;

	/* Palette — matched to the extension's globals.css (light) */
	--bg: #f3f5f7;
	--surface: #ffffff;
	--surface-muted: #f7f9fb;
	--surface-strong: #edf2f7;
	--text: #172030;
	--muted: #556070;
	--subtle: #738094;
	--border: #d8e0ea;
	--border-strong: #c8d2de;
	--ring: rgba(20, 33, 61, 0.18);

	/* Near-black button ink (extension --accent) */
	--ink: #1a1a1a;
	--ink-hover: #2a2a2a;
	--on-ink: #f8fafc;

	/* The blue "selection" accent — the product metaphor */
	--accent: #2f6fdb;
	--accent-strong: #1f57bd;
	--accent-soft: #e8eef8;
	--highlight: #bcd6fb;

	/* Semantic (extension) */
	--success: #1f7a4f;
	--success-soft: #e6f4ec;
	--success-border: #bfe1cc;

	/* Shadows (extension) */
	--shadow-sm: 0 1px 2px rgba(20, 33, 61, 0.04);
	--shadow-md: 0 8px 24px rgba(20, 33, 61, 0.08);
	--shadow-lg: 0 18px 44px rgba(20, 33, 61, 0.12);

	--radius: 28px;
	--radius-md: 18px;
	--radius-sm: 12px;
	--pill: 9999px;

	--space-xs: 4px;
	--space-sm: 8px;
	--space-md: 12px;
	--space-lg: 16px;
	--space-xl: 24px;
	--space-2xl: clamp(5.5rem, 11vw, 10rem);

	--font-body:
		"Karla", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--font-display:
		"Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--font-mono:
		"Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

	font-family: var(--font-body);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #1c1c1c;
		--surface: #2a2a2a;
		--surface-muted: #232323;
		--surface-strong: #303030;
		--text: #e4e4e4;
		--muted: #a0a0a0;
		--subtle: #808080;
		--border: #3a3a3a;
		--border-strong: #4a4a4a;
		--ring: rgba(138, 180, 248, 0.28);

		--ink: #f0f0f0;
		--ink-hover: #ffffff;
		--on-ink: #1c1c1c;

		--accent: #8ab4f8;
		--accent-strong: #a9c8fb;
		--accent-soft: #2d2d2d;
		--highlight: rgba(138, 180, 248, 0.34);

		--success: #6fc69a;
		--success-soft: #1a2e22;
		--success-border: #2e4a38;

		--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
		--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
		--shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.5);
	}
}

* { box-sizing: border-box; }

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

[id] { scroll-margin-top: 6rem; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	line-height: 1.55;
	letter-spacing: 0.16px;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { color: inherit; }

::selection {
	background: color-mix(in srgb, var(--highlight) 90%, transparent);
	color: var(--text);
}

/* ─── Skip link ─── */

.skip-link {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 60;
	padding: 0.6rem 1rem;
	border-radius: var(--radius-sm);
	background: var(--ink);
	color: var(--on-ink);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	transform: translateY(-160%);
	transition: transform 160ms ease;
}
.skip-link:focus-visible { transform: translateY(0); }

/* ─── Layout containers ─── */

.site-header,
.site-footer,
.section,
.hero,
.policy-page {
	width: min(1180px, calc(100% - 3rem));
	margin-inline: auto;
}

/* ─── Header ─── */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-lg);
	min-height: 4.75rem;
	margin-block: 0;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color 200ms ease, background 200ms ease;
}
.site-header {
	width: 100%;
	padding-inline: max(1.5rem, calc((100% - 1180px) / 2));
}
.site-header.is-scrolled {
	border-bottom-color: var(--border);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-decoration: none;
}
.brand img {
	border-radius: 8px;
	object-fit: cover;
}

nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 1.35rem;
	font-size: 0.9rem;
	color: var(--muted);
}
nav a {
	position: relative;
	text-decoration: none;
	transition: color 140ms ease;
}
nav a:not(.nav-store)::after {
	position: absolute;
	left: 0;
	bottom: -0.35rem;
	width: 100%;
	height: 1.5px;
	background: var(--accent);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
	content: "";
}
nav a:not(.nav-store):hover::after { transform: scaleX(1); }
nav a:hover,
.text-link:hover { color: var(--text); }

.nav-store {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--pill);
	color: var(--text);
	font-weight: 600;
	transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.nav-store:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-1px); }

/* ─── Typography ─── */

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 var(--space-lg);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent-strong);
}
.eyebrow::before {
	width: 1.5rem;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	opacity: 0.7;
	content: "";
}

h1, h2, h3 {
	font-family: var(--font-display);
	font-optical-sizing: auto;
	letter-spacing: -0.03em;
	line-height: 1.04;
	text-wrap: balance;
}

p, li { text-wrap: pretty; }
h1 {
	margin: 0;
	max-width: 13ch;
	font-size: clamp(3rem, 6.4vw, 5.75rem);
	font-weight: 800;
}
h1 mark {
	background: none;
	color: inherit;
	position: relative;
	isolation: isolate;
	white-space: nowrap;
}
h1 mark::before {
	position: absolute;
	inset: 0.14em -0.12em 0.1em;
	z-index: -1;
	background: color-mix(in srgb, var(--highlight) 92%, transparent);
	border-radius: 0.18em;
	transform: rotate(-1.2deg) scaleX(0);
	transform-origin: left;
	animation: mark-in 620ms cubic-bezier(0.22, 1, 0.36, 1) 340ms both;
	content: "";
}
@keyframes mark-in {
	to { transform: rotate(-1.2deg) scaleX(1); }
}
h2 {
	margin: 0;
	max-width: 16ch;
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 750;
}
h3 { margin: 0; font-size: 1.2rem; font-weight: 700; }

/* ─── Buttons ─── */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 3.1rem;
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--ink);
	border-radius: var(--pill);
	font-size: 0.95rem;
	font-weight: 650;
	text-decoration: none;
	transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-secondary {
	background: var(--surface);
	color: var(--text);
	border-color: var(--border-strong);
	box-shadow: var(--shadow-sm);
}
.button-secondary:hover { border-color: var(--text); box-shadow: var(--shadow-md); }

.store-note {
	margin: 1rem 0 0;
	color: var(--muted);
	font-size: 0.82rem;
}

/* ─── Chrome Web Store badge (realistic) ─── */

.cws-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	padding: 0.55rem 1.3rem 0.55rem 0.6rem;
	border-radius: var(--pill);
	background: var(--ink);
	color: var(--on-ink);
	text-decoration: none;
	box-shadow: 0 0.6rem 1.4rem color-mix(in srgb, var(--ink) 22%, transparent);
	transition: transform 160ms ease, box-shadow 160ms ease;
}
.cws-badge:hover {
	transform: translateY(-2px);
	box-shadow: 0 1rem 2rem color-mix(in srgb, var(--ink) 30%, transparent);
}
.cws-logo {
	position: relative;
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 50%;
	background: conic-gradient(from -90deg,
		#ea4335 0deg 120deg,
		#34a853 120deg 240deg,
		#fbbc05 240deg 360deg);
}
.cws-logo::before {
	position: absolute;
	inset: 8px;
	border-radius: 50%;
	background: #fff;
	content: "";
}
.cws-logo::after {
	position: absolute;
	inset: 11px;
	border-radius: 50%;
	background: #4285f4;
	content: "";
}
.cws-badge-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	text-align: left;
}
.cws-badge-kicker {
	font-size: 0.68rem;
	letter-spacing: 0.02em;
	opacity: 0.72;
}
.cws-badge-title {
	font-family: var(--font-display);
	font-size: 1.02rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.store-rating {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 1.1rem 0 0;
	font-size: 0.85rem;
	color: var(--muted);
}
.store-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.15rem 0.6rem;
	border-radius: var(--pill);
	background: var(--success-soft);
	border: 1px solid var(--success-border);
	color: var(--success);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.store-rating .divider { color: var(--border-strong); }

/* ─── Buy Me a Coffee ─── */

.bmc-button {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 3.1rem;
	padding: 0.7rem 1.5rem;
	border: 1px solid #e6c700;
	border-radius: var(--pill);
	background: #ffdd00;
	color: #0d0c22;
	font-family: var(--font-display);
	font-size: 0.98rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 0.6rem 1.4rem rgba(255, 221, 0, 0.35);
	transition: transform 160ms ease, box-shadow 160ms ease;
}
.bmc-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 1rem 2rem rgba(255, 221, 0, 0.45);
}
.bmc-button svg { width: 22px; height: 22px; }

/* ─── Hero ─── */

.hero {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	align-items: center;
	gap: clamp(2.5rem, 6vw, 5.5rem);
	padding-block: clamp(3rem, 7vw, 5.5rem) var(--space-2xl);
}
.hero-copy > * { animation: rise 640ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.hero-copy > .eyebrow { animation-delay: 40ms; }
.hero-copy > h1 { animation-delay: 120ms; }
.hero-copy > .hero-lede { animation-delay: 220ms; }
.hero-copy > .hero-actions { animation-delay: 320ms; }
.hero-copy > .store-rating { animation-delay: 400ms; }
@keyframes rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}
.hero-lede {
	max-width: 46ch;
	margin: var(--space-xl) 0 0;
	color: var(--muted);
	font-size: 1.14rem;
}
.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: var(--space-xl);
}

/* Signature scene: document + live selection + Enrichr context menu */
.hero-visual {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 3.15;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}
.hero-visual-inner {
	position: absolute;
	inset: 0;
	padding: clamp(1.5rem, 4vw, 2.6rem);
}
.hero-visual-inner::before {
	position: absolute;
	inset: clamp(1.1rem, 3vw, 1.9rem) clamp(1.5rem, 4vw, 2.6rem) auto;
	height: 0.6rem;
	border-radius: var(--pill);
	background: var(--surface-strong);
	content: "";
}
.hero-visual-inner::after {
	position: absolute;
	inset: clamp(3.2rem, 7vw, 4.4rem) clamp(1.5rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 2.6rem);
	background: repeating-linear-gradient(
		to bottom,
		transparent 0 1.85rem,
		var(--surface-strong) 1.85rem 2.15rem
	);
	opacity: 0.9;
	content: "";
}
.selection {
	position: absolute;
	z-index: 1;
	left: clamp(2.3rem, 6vw, 3.4rem);
	height: 1.3rem;
	border-radius: 0.18rem;
	background: color-mix(in srgb, var(--highlight) 92%, transparent);
	animation: select-in 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.selection-one { top: clamp(8.5rem, 21vw, 11rem); width: 44%; }
.selection-two { top: clamp(10.6rem, 23.4vw, 13.2rem); width: 56%; animation-delay: 90ms; }
.selection-three { top: clamp(12.7rem, 25.8vw, 15.4rem); width: 34%; animation-delay: 180ms; }
@keyframes select-in {
	from { transform: scaleX(0); opacity: 0; transform-origin: left; }
	to { transform: scaleX(1); opacity: 1; }
}

.context-menu {
	position: absolute;
	z-index: 2;
	right: clamp(1.3rem, 4vw, 2.3rem);
	top: clamp(6rem, 15vw, 7.5rem);
	width: min(17rem, 64%);
	overflow: hidden;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-md);
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	animation: menu-in 420ms cubic-bezier(0.2, 0.7, 0.2, 1) 300ms both;
}
@keyframes menu-in {
	from { transform: translateY(0.6rem) scale(0.97); opacity: 0; }
	to { transform: translateY(0) scale(1); opacity: 1; }
}
.menu-brand {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.8rem 0.95rem;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--text);
}
.menu-brand img { border-radius: 6px; }
.context-menu span:not(.menu-brand) {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.62rem 0.95rem;
	border-top: 1px solid var(--border);
	font-size: 0.85rem;
	color: var(--muted);
	transition: background 140ms ease, color 140ms ease, opacity 260ms ease, transform 260ms ease;
}
.context-menu span:not(.menu-brand).is-fading {
	opacity: 0;
	transform: translateY(-2px);
}
.context-menu span:not(.menu-brand)::before {
	width: 0.85rem;
	height: 0.85rem;
	border-radius: 4px;
	background: var(--accent-soft);
	content: "";
}
.context-menu span.is-hot {
	background: var(--accent-soft);
	color: var(--text);
	font-weight: 600;
}

/* Typewriter cursor shared by the hero menu option and the model chip */
.type-cursor {
	display: inline-block;
	width: 1px;
	height: 0.95em;
	margin-left: 2px;
	background: currentColor;
	vertical-align: -0.1em;
	animation: caret-blink 900ms step-end infinite;
}
@keyframes caret-blink {
	50% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.type-cursor { animation: none; opacity: 0; }
}

/* Floating "Ready" status pill — same component as the side panel */
.hero-chip {
	position: absolute;
	z-index: 3;
	left: clamp(1.3rem, 4vw, 2.3rem);
	bottom: clamp(1.2rem, 3.5vw, 2rem);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: var(--pill);
	background: var(--success-soft);
	border: 1px solid var(--success-border);
	color: var(--success);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	box-shadow: var(--shadow-md);
	animation: menu-in 420ms cubic-bezier(0.2, 0.7, 0.2, 1) 520ms both;
}
.hero-chip::before {
	width: 7px;
	height: 7px;
	border-radius: var(--pill);
	background: currentColor;
	content: "";
}
/* Monospace model string — mirrors the side panel's provider/model row */
.hero-chip em {
	margin-left: 2px;
	padding: 2px 7px;
	border-radius: var(--pill);
	background: var(--surface);
	border: 1px solid var(--success-border);
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 0.66rem;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

/* ─── Section base ─── */

.section { padding-block: var(--space-2xl); }
.section-intro {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.section-intro p:not(.eyebrow) {
	margin: 0;
	color: var(--muted);
	font-size: 1.08rem;
	max-width: 60ch;
}

/* ─── Benefits ─── */

.benefit-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-lg);
}
.benefit-card {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: clamp(1.4rem, 2.4vw, 1.9rem);
	border-radius: var(--radius-md);
	background: transparent;
	transition: background 220ms ease, transform 220ms ease;
}
.benefit-card:hover {
	background: var(--surface-muted);
	transform: translateY(-2px);
}
.benefit-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 0.35rem;
	border-radius: 12px;
	background: var(--accent-soft);
	color: var(--accent-strong);
}
.benefit-icon svg { width: 20px; height: 20px; }
.benefit-card h3 { font-size: 1.08rem; }
.benefit-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ─── Use cases ───
   Deliberately not a uniform grid: the first case is called out wider so
   the eye has one clear entry point instead of six equal-weight boxes. */

.usecase-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: 1fr;
	gap: var(--space-xl);
}
.usecase-card {
	padding: clamp(1.75rem, 2.8vw, 2.35rem);
	border-radius: var(--radius-md);
	background: var(--surface-muted);
	transition: background 220ms ease, transform 220ms ease;
}
.usecase-card:hover { background: var(--surface-strong); transform: translateY(-2px); }
.usecase-grid .usecase-card:first-child {
	grid-column: span 2;
	background: var(--accent-soft);
}
.usecase-grid .usecase-card:first-child:hover {
	background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface-strong));
}
.usecase-grid .usecase-card:first-child h3 { max-width: 34ch; font-size: 1.3rem; }
.usecase-tag {
	margin: 0 0 1.15rem;
	color: var(--accent-strong);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.usecase-card h3 { margin-bottom: 1rem; font-size: 1.08rem; line-height: 1.35; }
.usecase-card p:not(.usecase-tag) { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

/* Custom prompt library */

.prompt-library-header {
	display: grid;
	grid-template-columns: 1.25fr 0.75fr;
	gap: var(--space-xl);
	align-items: end;
	margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
}
.prompt-library-intro {
	display: grid;
	gap: var(--space-lg);
	justify-items: start;
}
.prompt-library-intro > p {
	margin: 0;
	max-width: 38ch;
	color: var(--muted);
}
.prompt-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-lg);
}
.js .prompt-grid:not(.is-expanded) .prompt-sheet:nth-child(n + 7) { display: none; }
.prompt-sheet {
	position: relative;
	display: grid;
	grid-template-rows: auto auto auto 1fr auto;
	min-height: 21rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface-muted);
	box-shadow: var(--shadow-sm);
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.prompt-sheet:hover {
	transform: translateY(-2px);
	border-color: var(--border-strong);
	box-shadow: var(--shadow-md);
}
.prompt-grid.is-expanding .prompt-sheet:nth-child(n + 7) { animation: prompt-sheet-reveal 360ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.prompt-grid.is-expanding .prompt-sheet:nth-child(3n + 2) { animation-delay: 45ms; }
.prompt-grid.is-expanding .prompt-sheet:nth-child(3n) { animation-delay: 90ms; }
@keyframes prompt-sheet-reveal {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}
.prompt-sheet:nth-child(4n + 1) { background: var(--accent-soft); }
.prompt-sheet-number {
	justify-self: end;
	color: var(--subtle);
	font-family: var(--font-mono);
	font-size: 0.76rem;
}
.prompt-sheet-tag {
	margin: 0 0 0.8rem;
	color: var(--accent-strong);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.prompt-sheet h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.prompt-sheet-copy {
	margin: 1.25rem 0 2rem;
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.7;
}
.prompt-copy {
	justify-self: start;
	padding: 0.15rem 0;
	border: 0;
	border-bottom: 1px solid var(--border-strong);
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
}
.prompt-copy:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.prompt-copy:active { transform: translateY(1px); }
.prompt-copy.is-copied { color: var(--success); border-color: var(--success); }
.prompt-library-action { display: flex; justify-content: center; margin-top: var(--space-xl); }
.prompt-toggle { display: none; min-width: 12rem; }
.js .prompt-toggle { display: inline-flex; }

/* ─── Workflow steps — a small bento mosaic, each tile demonstrating
   its own step with a tiny looping scene instead of just describing it. ─── */

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-areas: "select menu result";
	align-items: start;
	gap: var(--space-lg);
	margin: 0;
	padding: 0;
	list-style: none;
}
.step-card {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	padding: clamp(1.5rem, 2.2vw, 2rem);
	border-radius: var(--radius-md);
	background: var(--surface-muted);
	border: 1px solid var(--border);
	transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.step-card:hover {
	background: var(--surface-strong);
	border-color: var(--border-strong);
	transform: translateY(-2px);
}
.step-card-select { grid-area: select; }
.step-card-menu { grid-area: menu; }
.step-card-result { grid-area: result; }

.step-badge {
	display: grid;
	place-items: center;
	width: 1.85rem;
	height: 1.85rem;
	flex: none;
	border-radius: 50%;
	background: var(--accent-strong);
	color: var(--on-ink);
	font-family: var(--font-mono);
	font-size: 0.86rem;
	font-weight: 700;
}
.step-badge-icon svg { width: 0.95rem; height: 0.95rem; }
.steps h3 { margin: 0.15rem 0 0.15rem; }
.steps p { margin: 0; max-width: 34ch; color: var(--muted); }
.step-alternative {
	display: grid;
	gap: 0.6rem;
	margin-top: auto;
	padding-top: 0.9rem;
	border-top: 1px solid var(--border);
}
.step-alternative strong { color: var(--text); }

/* Demo scenes: small, self-contained, endlessly looping so the card teaches
   the step at a glance. Killed entirely under prefers-reduced-motion via the
   global animation-duration override further down. */
.step-demo {
	padding-top: 0.6rem;
}
.step-demo-select {
	display: grid;
	gap: 0.5rem;
	padding-top: 1.4rem;
}
.demo-line {
	height: 0.65rem;
	border-radius: 3px;
	background: var(--surface-strong);
}
.demo-line-wide { width: 78%; }
.demo-line-short { width: 52%; }
.demo-line-select-track {
	position: relative;
	width: 88%;
	overflow: hidden;
	background: var(--surface-strong);
}
.demo-line-select-fill {
	position: absolute;
	inset: 0;
	transform-origin: left;
	transform: scaleX(0);
	background: color-mix(in srgb, var(--highlight) 92%, transparent);
	animation: demo-select 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes demo-select {
	0%, 6% { transform: scaleX(0); }
	32%, 72% { transform: scaleX(1); }
	92%, 100% { transform: scaleX(0); }
}

.step-demo-menu {
	display: grid;
	gap: 2px;
	padding-top: 0.5rem;
	border-radius: var(--radius-sm);
	overflow: hidden;
	border: 1px solid var(--border);
	background: var(--surface);
}
.demo-menu-item {
	padding: 0.55rem 0.75rem;
	font-size: 0.82rem;
	color: var(--muted);
	background: transparent;
	animation: demo-menu-cycle 3.6s ease-in-out infinite;
}
.demo-menu-item:nth-child(1) { animation-delay: 0s; }
.demo-menu-item:nth-child(2) { animation-delay: 1.2s; }
.demo-menu-item:nth-child(3) { animation-delay: 2.4s; }
@keyframes demo-menu-cycle {
	0%, 4% { background: transparent; color: var(--muted); font-weight: 400; }
	9%, 27% { background: var(--accent-soft); color: var(--text); font-weight: 600; }
	32%, 100% { background: transparent; color: var(--muted); font-weight: 400; }
}

.step-demo-result {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding-top: 0.5rem;
}
.demo-field {
	display: inline-flex;
	align-items: center;
	height: 2.15rem;
	padding: 0 0.75rem;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-strong);
	background: var(--surface);
}
.demo-field-text {
	display: inline-block;
	overflow: hidden;
	width: 0;
	border-right: 2px solid var(--accent);
	white-space: nowrap;
	font-size: 0.8rem;
	color: var(--text);
	animation: demo-type 3.6s steps(13, end) infinite;
}
@keyframes demo-type {
	0%, 8% { width: 0; }
	48%, 74% { width: 6.5em; }
	94%, 100% { width: 0; }
}
.demo-check {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	color: var(--success);
	font-size: 0.78rem;
	font-weight: 700;
	opacity: 0;
	transform: translateY(3px);
	animation: demo-check-fade 3.6s ease-in-out infinite;
}
.demo-check svg { width: 15px; height: 15px; }
@keyframes demo-check-fade {
	0%, 50% { opacity: 0; transform: translateY(3px); }
	60%, 82% { opacity: 1; transform: translateY(0); }
	94%, 100% { opacity: 0; transform: translateY(3px); }
}

.step-demo-shortcut {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	padding-top: 0.5rem;
}
.demo-kbd-row { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--subtle); }
.demo-kbd {
	min-width: 1.9rem;
	padding: 0.3rem 0.5rem;
	font-size: 0.72rem;
	animation: demo-kbd-press 3.6s ease-in-out infinite;
}
.demo-kbd-row kbd:nth-child(1) { animation-delay: 0s; }
.demo-kbd-row kbd:nth-child(3) { animation-delay: 0.08s; }
.demo-kbd-row kbd:nth-child(5) { animation-delay: 0.16s; }
@keyframes demo-kbd-press {
	0%, 14% { transform: translateY(0); box-shadow: inset 0 -2px 0 rgba(20, 33, 61, 0.12); }
	20%, 26% { transform: translateY(2px); box-shadow: inset 0 0 0 rgba(20, 33, 61, 0.12); background: var(--accent-soft); border-color: var(--accent); }
	34%, 100% { transform: translateY(0); box-shadow: inset 0 -2px 0 rgba(20, 33, 61, 0.12); }
}
.step-demo-shortcut .demo-check { animation-delay: 0.1s; }

/* ─── Feature showcase (shortcuts) ─── */

.feature-showcase {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(2rem, 7vw, 6rem);
	align-items: center;
}
.feature-showcase h2 { max-width: 13ch; }
.shortcut-copy > p:not(.eyebrow):not(.detail) {
	max-width: 44ch;
	margin: var(--space-lg) 0 var(--space-md);
	color: var(--muted);
}
.detail { margin: 0; font-size: 0.9rem; color: var(--subtle); }
.shortcut-board {
	display: grid;
	gap: 0.3rem;
	padding: 0.9rem 1.5rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
}
.shortcut-board div {
	display: grid;
	grid-template-columns: auto auto auto auto auto 1fr;
	align-items: center;
	gap: 0.6rem;
	padding: 1.35rem 0.6rem;
	border-radius: var(--radius-sm);
	transition: background 160ms ease, transform 160ms ease;
}
.shortcut-board div:not(:last-child) { border-bottom: 1px solid var(--border); }
.shortcut-board div:hover {
	background: var(--surface-muted);
	transform: translateX(4px);
}
.shortcut-board > div > span { color: var(--subtle); font-size: 0.9rem; }
.shortcut-board em {
	justify-self: end;
	padding-left: 0.75rem;
	color: var(--muted);
	font-size: 0.92rem;
	font-weight: 600;
	font-style: normal;
}
/* Extension-faithful key caps (inset bottom shadow) */
kbd {
	display: inline-grid;
	min-width: 2.2rem;
	place-items: center;
	padding: 0.36rem 0.6rem;
	border-radius: 8px;
	background: var(--surface-strong);
	border: 1px solid var(--border-strong);
	box-shadow: inset 0 -2px 0 rgba(20, 33, 61, 0.12);
	color: var(--text);
	font: 700 0.84rem/1 var(--font-mono);
}

/* ─── Split feature (screenshot + copy) ─── */

.split-feature {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: clamp(2rem, 7vw, 5.5rem);
	align-items: center;
}
.product-shot {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-lg);
}
.product-shot img { display: block; width: 100%; height: auto; }
.split-copy > p:not(.eyebrow) { max-width: 46ch; color: var(--muted); font-size: 1.06rem; }
.check-list {
	display: grid;
	gap: 1.1rem;
	margin: var(--space-xl) 0 0;
	padding: 0;
	list-style: none;
}
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text); }
.check-list li svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--success); }

.provider-strip { margin: var(--space-xl) 0 0; }
.provider-strip-label {
	margin: 0 0 0.6rem;
	color: var(--subtle);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.provider-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.provider-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.9rem 0.4rem 0.4rem;
	border-radius: var(--pill);
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
	color: var(--text);
	font-size: 0.86rem;
	font-weight: 600;
}
.provider-icon {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #fff;
}
.provider-icon img { display: block; width: 15px; height: 15px; }
.provider-chip-soon {
	background: transparent;
	border-style: dashed;
	color: var(--subtle);
	font-weight: 500;
	font-style: italic;
	box-shadow: none;
}

/* ─── Hero "works with" strip ─── */

.hero-providers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 1.1rem 0 0;
	animation: rise 560ms cubic-bezier(0.2, 0.7, 0.2, 1) 460ms both;
}
.hero-providers-label {
	color: var(--subtle);
	font-size: 0.78rem;
	font-weight: 600;
}
.provider-chip-sm {
	gap: 0.35rem;
	padding: 0.22rem 0.65rem 0.22rem 0.22rem;
	font-size: 0.78rem;
}
.provider-chip-sm .provider-icon { width: 19px; height: 19px; }
.provider-chip-sm .provider-icon img { width: 11px; height: 11px; }
.hero-providers-more {
	color: var(--subtle);
	font-size: 0.78rem;
	font-style: italic;
}

/* ─── Privacy section ─── */

.privacy-section {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: var(--space-xl);
	padding-block: var(--space-2xl);
}
.privacy-body { display: grid; gap: var(--space-lg); }
.privacy-body > p { max-width: 52ch; margin: 0; color: var(--muted); font-size: 1.06rem; }
.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	width: fit-content;
	color: var(--text);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid var(--accent);
	padding-bottom: 0.1rem;
	transition: gap 160ms ease, border-color 160ms ease;
}
.text-link:hover { gap: 0.6rem; border-color: var(--accent-strong); }

/* ─── FAQ ─── */

.faq {
	display: grid;
	grid-template-columns: 0.8fr 1.2fr;
	gap: var(--space-xl);
	align-items: start;
}
.faq-intro h2 { position: sticky; top: 6rem; }
.faq-list { display: grid; }
.faq-item {
	border-bottom: 1px solid var(--border);
	transition: background 160ms ease;
}
.faq-list .faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item:hover { background: var(--surface-muted); }
.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.65rem 0.5rem;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 650;
	color: var(--text);
	cursor: pointer;
	list-style: none;
}
.faq-item[open] summary { color: var(--accent-strong); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: -2px;
	border-radius: var(--radius-sm);
}
.faq-marker {
	position: relative;
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
}
.faq-marker::before,
.faq-marker::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 1rem;
	height: 2px;
	border-radius: 2px;
	background: var(--subtle);
	transform: translate(-50%, -50%);
	transition: transform 220ms ease, background 160ms ease;
	content: "";
}
.faq-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-marker::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item[open] .faq-marker::before,
.faq-item[open] .faq-marker::after { background: var(--accent-strong); }
.faq-item p {
	margin: 0;
	padding: 0 0.5rem 1.65rem;
	max-width: 60ch;
	color: var(--muted);
}
.faq-item p a,
.privacy-body a {
	color: var(--text);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-underline-offset: 3px;
}
.faq-item p a:hover { text-decoration-color: var(--accent-strong); }

/* ─── Support (Buy Me a Coffee) ─── */

.support {
	display: grid;
	grid-template-columns: auto 1.3fr auto;
	gap: clamp(1.25rem, 3vw, 2.25rem);
	align-items: center;
	padding: clamp(2.5rem, 5vw, 3.5rem);
	border-radius: var(--radius);
	background:
		radial-gradient(140% 160% at 0% 0%, color-mix(in srgb, #ffdd00 10%, transparent), transparent 55%),
		var(--surface-muted);
}
.support-icon {
	display: grid;
	place-items: center;
	width: 4.25rem;
	height: 4.25rem;
	border-radius: 50%;
	background: #ffdd00;
	color: #55480a;
	box-shadow: 0 0.6rem 1.6rem rgba(255, 221, 0, 0.3);
}
.support-icon svg { width: 30px; height: 30px; }
.support-icon .steam {
	opacity: 0.55;
	transform-origin: bottom;
	animation: steam-rise 3.2s ease-in-out infinite;
}
.support-icon .steam-2 { animation-delay: 0.6s; }
@keyframes steam-rise {
	0%, 100% { opacity: 0; transform: translateY(0) scaleY(0.8); }
	40% { opacity: 0.6; }
	80% { opacity: 0; transform: translateY(-3px) scaleY(1.1); }
}
.support h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); max-width: 22ch; }
.support-copy p:not(.eyebrow) { margin: var(--space-md) 0 0; color: var(--muted); max-width: 48ch; }
.support-cta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.6rem;
	text-align: right;
}
.support-note { margin: 0; color: var(--subtle); font-size: 0.78rem; }

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

.closing {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: var(--space-lg);
	margin-block: 0 var(--space-2xl);
	padding: clamp(3.25rem, 7.5vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
	background: var(--surface-muted);
	border-radius: var(--radius);
}
.closing h2 { max-width: 20ch; }
.closing .eyebrow { margin-bottom: 0; }
.closing .store-note { margin: 0; }
.closing .hero-actions { justify-content: center; margin-top: 0.5rem; }

/* ─── Footer ─── */

.site-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-lg);
	padding-block: 2.5rem;
	color: var(--muted);
	font-size: 0.85rem;
}
.site-footer .footer-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-coffee { display: inline-flex; align-items: center; gap: 0.35rem; }
.footer-coffee svg { width: 16px; height: 16px; }

/* ─── Policy page ─── */

.policy-page {
	width: min(760px, calc(100% - 3rem));
	padding-block: clamp(3rem, 9vw, 6rem);
}
.policy-heading {
	padding-bottom: clamp(2rem, 6vw, 3.5rem);
}
.policy-heading h1 { max-width: none; font-size: clamp(2.75rem, 8vw, 5rem); }
.policy-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.policy-content { padding-top: clamp(2rem, 6vw, 3.5rem); }
.policy-lede {
	margin-top: 0;
	color: var(--text);
	font-size: clamp(1.2rem, 2.4vw, 1.55rem);
	line-height: 1.4;
	font-family: var(--font-display);
	letter-spacing: -0.015em;
}
.policy-content h2 {
	max-width: none;
	margin: 2.75rem 0 0.85rem;
	font-size: clamp(1.5rem, 3vw, 2.1rem);
}
.policy-content p,
.policy-content li { color: var(--muted); }
.policy-content ul { padding-left: 1.15rem; }
.policy-content li { margin-bottom: 0.4rem; }
.policy-content a {
	color: var(--text);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-underline-offset: 3px;
}
.policy-content a:hover { text-decoration-color: var(--accent-strong); }

/* ─── Focus ─── */

a:focus-visible,
.button:focus-visible,
.cws-badge:focus-visible,
.bmc-button:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 4px;
	border-radius: 0.4rem;
}
.prompt-toggle:focus-visible,
.prompt-copy:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 4px;
}

/* ─── Scroll reveal ─── */

.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: var(--reveal-delay, 0ms);
	will-change: opacity, transform;
}
.reveal-delay-1 { --reveal-delay: 80ms; }
.reveal-delay-2 { --reveal-delay: 160ms; }
.reveal-delay-3 { --reveal-delay: 210ms; }
.reveal-delay-4 { --reveal-delay: 240ms; }
.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ─── Motion preferences ─── */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

/* ─── Responsive ─── */

@media (max-width: 900px) {
	.prompt-library-header { grid-template-columns: 1fr; }
	.prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero,
	.feature-showcase,
	.split-feature,
	.privacy-section,
	.faq,
	.support { grid-template-columns: 1fr; }
	.faq-intro h2 { position: static; }
	.hero { gap: var(--space-2xl); }
	.split-feature .product-shot { order: 2; }
	.steps {
		grid-template-columns: 1fr;
		grid-template-areas: "select" "menu" "result";
	}
	.benefit-grid { grid-template-columns: repeat(2, 1fr); }
	.usecase-grid { grid-template-columns: repeat(2, 1fr); }
	.usecase-grid .usecase-card:first-child { grid-column: auto; }
	.support { grid-template-columns: auto 1fr; }
	.support-icon { grid-row: span 2; }
	.support-cta { align-items: flex-start; }
}

@media (max-width: 640px) {
	/* The signature hero card uses vw-scaled clamp() offsets that assume a wide
	   viewport; below ~640px they shrink faster than the menu's fixed row
	   heights, so the context menu overflowed the card and got clipped. Switch
	   to fixed offsets tuned for a taller card at this width instead. */
	.hero-visual { aspect-ratio: 4 / 4.5; }
	.hero-visual-inner { padding: 1.35rem; }
	.selection-one { top: 6.6rem; left: 1.35rem; width: 46%; }
	.selection-two { top: 8.3rem; left: 1.35rem; width: 58%; }
	.selection-three { top: 10rem; left: 1.35rem; width: 36%; }
	.context-menu { top: 4.4rem; right: 1.1rem; width: 74%; }
	.menu-brand { padding: 0.65rem 0.8rem; font-size: 0.85rem; }
	.context-menu span:not(.menu-brand) { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
	.hero-chip { left: 1.1rem; bottom: 1.1rem; max-width: calc(100% - 2.2rem); }
	.hero-chip em { display: inline-block; max-width: 10.5rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; vertical-align: middle; }
}

@media (max-width: 560px) {
	.prompt-grid { grid-template-columns: 1fr; }
	.prompt-sheet { min-height: 0; }
	.brand span { font-size: 1rem; }
	nav { gap: 0.85rem; }
	nav a:not(.nav-store):not(.nav-back) { display: none; }
	.hero-actions .button,
	.hero-actions .cws-badge { flex: 1 1 auto; justify-content: center; }

	/* Six cards in a single column is a lot of vertical scroll on a phone;
	   scroll-snap the use-case cards into a horizontal carousel that peeks
	   the next card instead. */
	.usecase-grid {
		display: flex;
		grid-template-columns: none;
		gap: var(--space-md);
		margin-inline: -1.5rem;
		padding: 0.15rem 1.5rem 0.6rem;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.usecase-grid::-webkit-scrollbar { display: none; }
	.usecase-card {
		flex: 0 0 82%;
		scroll-snap-align: start;
	}
	.benefit-grid { grid-template-columns: 1fr; }

	.support { grid-template-columns: 1fr; text-align: left; }
	.support-icon { grid-row: auto; }
	.support-cta { align-items: flex-start; text-align: left; width: 100%; }
	.bmc-button { width: 100%; justify-content: center; }
	.shortcut-board { padding: 0.6rem 1rem; }
	.shortcut-board div { grid-template-columns: auto auto auto auto auto; padding-block: 1.15rem; }
	.shortcut-board em { grid-column: 1 / -1; justify-self: start; padding-left: 0; margin-top: 0.4rem; }
	.site-footer { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
}
