@font-face {
	font-family: "Geist";
	src: url("/assets/fonts/geist.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Caveat";
	src: url("/assets/fonts/caveat.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: "Geist Mono";
	src: url("/assets/fonts/geist-mono.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	color-scheme: light;
	--bg: #f6f4ef;
	--bg-raised: #ffffff;
	--bg-panel: #efece5;
	--bg-input: #ffffff;
	--bg-ink: #16211c;
	--line: #e4e0d7;
	--line-strong: #c8c2b5;
	--text: #1d2220;
	--text-dim: #575e5a;
	--accent: #0b6e45;
	--accent-strong: #085a38;
	--accent-ink: #ffffff;
	--accent-soft: rgba(11, 110, 69, 0.09);
	--accent-tint: #e4f0e9;
	--tint: rgba(29, 34, 32, 0.045);
	--danger: #b42a1f;
	--danger-soft: rgba(180, 42, 31, 0.08);
	--info: #1d5f9e;
	--warn: #8a5a00;
	--shadow-sm: 0 1px 2px rgba(52, 44, 26, 0.06), 0 2px 6px rgba(52, 44, 26, 0.04);
	--shadow-md: 0 1px 2px rgba(52, 44, 26, 0.05), 0 12px 32px -14px rgba(52, 44, 26, 0.28);
	--shadow-lg: 0 30px 60px -28px rgba(22, 33, 28, 0.45);
	--radius: 14px;
	--radius-small: 8px;
	--font: "Geist", "Segoe UI", sans-serif;
	--mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--ease: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
	--wrap: 1280px;
	--z-sticky: 20;
	--z-menu: 30;
	--z-drawer: 40;
}

/* Category tones: muted, one per category, cycled by id */
.cat-0 { --tone: #4d7457; --tone-bg: #e4eee5; }
.cat-1 { --tone: #48678c; --tone-bg: #e3eaf3; }
.cat-2 { --tone: #a05a40; --tone-bg: #f5e6de; }
.cat-3 { --tone: #8c6d1f; --tone-bg: #f3ebd5; }
.cat-4 { --tone: #745379; --tone-bg: #efe5f0; }
.cat-5 { --tone: #2f7472; --tone-bg: #ddeeed; }
.cat-6 { --tone: #9c4757; --tone-bg: #f5e2e5; }
.cat-7 { --tone: #66702e; --tone-bg: #ebedd6; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
}
main { flex: 1; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
h1 { font-size: 32px; }
h2, .h2 { font-size: 28px; }
h3, .h3 { font-size: 22px; }
h4, .h4 { font-size: 18px; }
p { margin: 0 0 1em; max-width: 70ch; text-wrap: pretty; }
a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: min(var(--wrap), 92vw); margin: 0 auto; }
.narrow { max-width: 640px; }
.prose h2 { margin-top: 32px; scroll-margin-top: 96px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.page-pad { padding: 32px 0 56px; }
.lead { font-size: 18px; color: var(--text-dim); }
.muted { color: var(--text-dim); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; margin-bottom: 8px; }
.eyebrow a { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: var(--radius-small); }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 9px 20px;
	border: 1px solid var(--accent);
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font: 600 16px/1.2 var(--font);
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 160ms var(--ease), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.btn:hover { color: var(--accent-ink); background: var(--accent-strong); border-color: var(--accent-strong); }
.btn:active { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; }
.btn-ghost { background: var(--bg-raised); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--text); background: var(--bg-raised); border-color: var(--text); }
.btn-light { background: #fff; border-color: #fff; color: var(--bg-ink); }
.btn-light:hover { background: var(--accent-tint); border-color: var(--accent-tint); color: var(--bg-ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { color: var(--accent-ink); background: var(--danger); border-color: var(--danger); }
.btn-small { min-height: 36px; padding: 6px 16px; font-size: 16px; }
.btn-large { min-height: 50px; padding: 12px 24px; width: 100%; font-size: 17px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; color: var(--accent); text-decoration: none; }
.text-link:hover { color: var(--accent-strong); text-decoration: underline; }
.text-link .icon { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* Pills (purchase type, demo) */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 6px; font-size: 14px; font-weight: 550; line-height: 1.5; white-space: nowrap; }
.pill-own { background: var(--accent-tint); color: var(--accent-strong); }
.pill-sub { background: #e6ebf3; color: #3c5679; }
.pill-demo { background: var(--bg-panel); color: var(--text-dim); }
.card-type { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 14px; font-weight: 550; color: #3c5679; background: #e6ebf3; vertical-align: middle; }

/* Header: full-width white bar; floats as a rounded island over the dark hero on the home page */
.topbar { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--bg-raised); border-bottom: 1px solid var(--line); }
.topbar-bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -0.03em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-mark { font: 700 19px var(--mono); letter-spacing: -0.06em; color: var(--accent); }
.footer .brand-mark { color: #7fd1a8; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav > a, .menu-cats > summary { display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; list-style: none; transition: color 200ms ease, background-color 200ms ease; }
.menu-cats > summary::-webkit-details-marker { display: none; }
.nav > a:hover, .menu-cats > summary:hover, .menu-cats[open] > summary { color: var(--accent-strong); background: var(--tint); }
.nav > a[aria-current="page"] { color: var(--accent-strong); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
.menu-cats > summary .icon { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.menu-cats[open] > summary .icon { transform: rotate(180deg); }
.top-search { position: relative; display: flex; align-items: center; flex: 0 1 340px; min-width: 180px; margin-left: auto; background: var(--bg-raised); border: 1.5px solid var(--line-strong); border-radius: 999px; transition: border-color 200ms ease, box-shadow 200ms ease; }
.top-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.top-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 16px var(--font); color: var(--text); padding: 8px 4px 8px 18px; outline: none; }
.top-search input::placeholder { color: #7a807c; }
.top-search-go { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 0; border-radius: 999px; background: none; color: var(--text); cursor: pointer; transition: color 150ms ease, transform 160ms var(--ease); }
.top-search-go:hover { color: var(--accent); }
.top-search-go:active { transform: scale(0.94); }
.top-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav:has(.top-search) + .top-actions { margin-left: 0; }
.top-login { padding: 8px 12px; border-radius: 8px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.top-login:hover { background: var(--tint); }
.top-icon { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 12px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 500; cursor: pointer; list-style: none; transition: background-color 200ms ease; }
.top-icon::-webkit-details-marker { display: none; }
.top-icon:hover, .top-icon[aria-current="page"], .menu[open] > .top-icon { background: var(--tint); color: var(--text); }
.top-signup { min-height: 42px; padding: 8px 22px; border-radius: 10px; }

.home .topbar { position: sticky; background: transparent; border: 0; padding: 14px 0; }
.home .topbar-bar { padding: 0 14px 0 22px; background: var(--bg-raised); border-radius: 12px; box-shadow: 0 10px 34px -12px rgba(6, 20, 14, 0.45); }

.menu { position: relative; }
.menu-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: var(--z-menu); min-width: 220px; display: flex; flex-direction: column; padding: 8px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); transform-origin: top right; animation: menu-in 180ms var(--ease); }
.menu-panel a, .menu-panel .linklike { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; text-align: left; width: 100%; }
.menu-panel a:hover, .menu-panel .linklike:hover { background: var(--tint); color: var(--text); }
.menu-panel form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.menu-panel-cats { left: 0; right: auto; transform-origin: top left; display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 2px; padding: 10px; }
.menu-all { grid-column: 1 / -1; justify-content: space-between; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px !important; font-weight: 600; color: var(--accent) !important; }
@keyframes menu-in { from { opacity: 0; transform: scale(0.97) translateY(-4px); } }
.cat-dot { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--tone-bg); color: var(--tone); }
.cat-dot .icon { width: 19px; height: 19px; }

.cat-strip { display: none; }

.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-left: 4px; background: none; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); transition: transform 250ms var(--ease), top 250ms var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 20.5px; transform: rotate(-45deg); }

@media (max-width: 1180px) {
	.topbar-bar { flex-wrap: wrap; gap: 0 12px; min-height: 64px; }
	.home .topbar-bar { padding: 0 10px 0 16px; }
	.brand { font-size: 19px; min-height: 64px; }
	.top-icon span { display: none; }
	.top-icon { padding: 10px; }
	.nav-toggle { display: block; }
	.nav { order: 3; flex: 0 0 100%; display: none; flex-direction: column; align-items: stretch; padding: 8px 0 14px; border-top: 1px solid var(--line); }
	.nav.is-open { display: flex; }
	.nav > a, .menu-cats > summary { padding: 12px; font-size: 17px; }
	.nav > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); border-radius: 0 8px 8px 0; }
	.menu-cats { display: none; }
	.top-search { order: -1; flex: none; margin: 4px 0 10px; }
	.menu-panel { right: 0; }
	.cat-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 10px 4vw; background: var(--bg-raised); border-bottom: 1px solid var(--line); scrollbar-width: none; }
	.cat-strip::-webkit-scrollbar { display: none; }
	.cat-strip a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); font-weight: 500; text-decoration: none; white-space: nowrap; scroll-snap-align: start; }
	.cat-strip .cat-dot { width: 30px; height: 30px; border-radius: 999px; }
	.cat-strip .cat-dot .icon { width: 17px; height: 17px; }
}
@media (max-width: 420px) {
	.topbar-bar { gap: 0 4px; }
	.home .topbar-bar { padding: 0 8px 0 12px; }
	.brand { font-size: 17px; gap: 6px; }
	.brand-mark { font-size: 16px; }
	.top-actions { gap: 2px; }
	.top-signup { min-height: 40px; padding: 8px 12px; }
	.top-login { padding: 8px 6px; }
	.nav-toggle { width: 42px; height: 42px; margin-left: 2px; }
	.nav-toggle span:nth-child(1) { top: 15px; }
	.nav-toggle span:nth-child(2) { top: 24px; }
	.nav-toggle[aria-expanded="true"] span:nth-child(1), .nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 19.5px; }
}

/* Flash messages */
.flash { margin: 16px 0; padding: 12px 16px; border-radius: var(--radius-small); border: 1px solid var(--line-strong); background: var(--bg-raised); }
.flash-success { border-color: var(--accent); background: var(--accent-tint); }
.flash-error { border-color: var(--danger); background: #fbecea; }
.flash-info { border-color: #9db8d6; background: #edf3fa; }
.preview-banner a { margin-left: 8px; }
.preview-banner form { display: inline; margin-left: 8px; }

/* Section heads */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--text-dim); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; color: var(--accent); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; color: var(--accent-strong); }
.more .icon { width: 16px; height: 16px; }

/* Product card */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--bg-raised);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.card-cover { display: block; position: relative; aspect-ratio: 16 / 10; margin: 8px 8px 0; border-radius: 10px; overflow: hidden; background: var(--bg-ink); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 500ms var(--ease); }
.cover-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.6), transparent 60%), var(--tone-bg); color: var(--tone); }
.cover-empty span { font-size: 52px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.cover-empty small { font-size: 14px; opacity: 0.8; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.card-cat { margin: 0; font-size: 14px; color: var(--text-dim); }
.card-title { font-size: 18px; margin: 0; letter-spacing: -0.015em; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-tagline { margin: 0; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-seller { margin: 2px 0 0; font-size: 14px; color: var(--text-dim); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.card-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.card-savings { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--line-strong); font-size: 14px; color: var(--accent-strong); }
.price { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-unit { margin-left: 3px; font-size: 14px; font-weight: 500; color: var(--text-dim); letter-spacing: 0; }
.price-from { font-size: 14px; font-weight: 400; color: var(--text-dim); }
@media (hover: hover) {
	.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
	.card:hover .card-cover img { transform: scale(1.03); }
}

/* Save button */
.fav-form { margin: 0; }
.fav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 8px 18px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--bg-raised);
	color: var(--text);
	font: 550 16px var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: transform 160ms var(--ease), border-color 200ms ease, color 200ms ease;
}
.fav:hover { border-color: var(--text); color: var(--text); }
.fav:active { transform: scale(0.95); }
.fav .icon { width: 19px; height: 19px; transition: fill 200ms ease, transform 250ms var(--ease); }
.fav.is-saved { color: #b23a4a; border-color: #e3b6bd; }
.fav.is-saved .icon { fill: currentColor; transform: scale(1.08); }
.card .fav-form, .card > a.fav { position: absolute; top: 16px; right: 16px; z-index: 2; }
.fav-compact { width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; background: rgba(255, 255, 255, 0.94); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.fav-compact .fav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 8px 0; }
.chips li { padding: 3px 11px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--mono); font-size: 14px; color: var(--text-dim); background: var(--bg-raised); }

/* Empty states */
.empty { padding: 44px 28px; text-align: center; background: var(--bg-raised); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-dim); }
.empty p { margin-left: auto; margin-right: auto; }
.empty h2, .empty h3 { color: var(--text); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 18px; }
.form-section { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; background: var(--bg-raised); display: flex; flex-direction: column; gap: 14px; }
.form-section legend { color: var(--accent); padding: 0 8px; font-size: 14px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend, .field .label { font-weight: 550; font-size: 16px; padding: 0; }
.optional { font-size: 14px; color: var(--text-dim); font-weight: 400; margin-left: 4px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="search"]), select, textarea {
	width: 100%;
	min-height: 40px;
	padding: 8px 12px;
	background: var(--bg-input);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius-small);
	color: var(--text);
	font: 16px var(--font);
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
input[type="file"] { color: var(--text-dim); font: 16px var(--font); }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg-panel); color: var(--text); font: 500 16px var(--font); cursor: pointer; }
.help { font-size: 14px; color: var(--text-dim); margin: 0; }
.field-error { color: var(--danger); font-size: 14px; margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 72px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--text-dim); font: 500 14px var(--font); padding: 6px 8px; cursor: pointer; }
.pw-toggle:hover { color: var(--accent); }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--radius-small) 0 0 var(--radius-small); font-family: var(--mono); color: var(--text-dim); background: var(--bg-panel); }
.input-prefix input { border-radius: 0 var(--radius-small) var(--radius-small) 0 !important; font-family: var(--mono) !important; }

.chip-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-pick input { position: absolute; opacity: 0; }
.chip-pick span { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; transition: all 0.2s var(--ease); }
.chip-pick input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0; }

.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.shot { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--radius-small); padding: 6px; background: var(--bg-panel); cursor: pointer; }
.shot img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
.shot span { font-size: 14px; display: flex; gap: 6px; align-items: center; }
.shot:has(input:checked) { border-color: var(--danger); opacity: 0.6; }
.profile-image-current { max-width: 240px; }

.steps { padding-left: 22px; }
.steps li { margin-bottom: 8px; }


/* Dashboard and admin */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 32px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-small); }
.stat-label { font-size: 14px; color: var(--text-dim); }
.stat-value { font: 650 28px var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-note { font-size: 14px; color: var(--text-dim); }
.stats-muted .stat { border-style: dashed; }
.stats-muted .stat-value { color: var(--line-strong); }
.stat-big { font: 650 32px var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 0; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.panel { padding: 18px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font: 600 14px var(--font); color: var(--text-dim); background: var(--bg-panel); }
.table tbody tr:nth-child(even) { background: var(--tint); }
.table tbody tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.reason { margin: 6px 0 0; font-size: 14px; color: var(--text-dim); }
.reason span { color: var(--danger); font-weight: 600; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 550 14px var(--font); border: 1px solid var(--line-strong); color: var(--text-dim); white-space: nowrap; }
.badge-approved { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.badge-pending { color: var(--warn); border-color: var(--warn); }
.badge-rejected { color: var(--danger); border-color: var(--danger); }
.badge-hidden { color: var(--info); border-color: var(--info); }

.subnav { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 24px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 10px 14px; text-decoration: none; color: var(--text-dim); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.inline-filter { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.inline-filter select { width: auto; }

.review-list { display: flex; flex-direction: column; gap: 16px; }
.review-item { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding: 20px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.review-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 14px; color: var(--text-dim); }
.review-actions { display: flex; flex-direction: column; gap: 16px; }
.review-actions .btn { width: 100%; }
.reject-form { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.reject-form label { font-size: 14px; color: var(--text-dim); }
.facts-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin: 12px 0; }
.facts-inline dt { font: 550 14px var(--font); color: var(--text-dim); }
.facts-inline dd { margin: 0; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; font-family: var(--mono); font-size: 14px; }
.checks li { padding: 2px 0; }
.check-pass::before { content: "[ok] "; color: var(--accent); }
.check-fail::before { content: "[!!] "; color: var(--danger); }
.check-fail { color: var(--danger); }
.check-later { color: var(--text-dim); }
.check-later::before { content: "[--] "; }
@media (max-width: 860px) { .review-item { grid-template-columns: 1fr; } }

.inline-action summary { cursor: pointer; color: var(--danger); font-size: 16px; }
.inline-action form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; min-width: 240px; }
.inline-action label { font-size: 14px; color: var(--text-dim); }

.catalog-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.catalog-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 2fr) 90px auto; gap: 12px; align-items: end; padding: 12px 14px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius-small); }
.catalog-row:not(:has(.field-wide)) { grid-template-columns: minmax(180px, 1fr) 90px auto; }
.catalog-row.is-off { opacity: 0.6; }
.catalog-new { border-style: dashed; }
.catalog-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 860px) {
	.catalog-row, .catalog-row:not(:has(.field-wide)) { grid-template-columns: 1fr; }
}


/* Browse */
.browse-hero { position: relative; isolation: isolate; padding: 64px 0 0; background: #0d2219; color: #d5e2da; }
.browse-hero-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.browse-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 34, 25, 0.95) 28%, rgba(13, 34, 25, 0.7) 58%, rgba(13, 34, 25, 0.4)); }
.browse-hero .eyebrow, .browse-hero .eyebrow a { color: #8fe3a9; }
.browse-hero-title { max-width: 17ch; margin: 0 0 14px; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.04em; color: #fff; font-weight: 650; text-wrap: balance; }
.browse-hero .lead { max-width: 54ch; margin-bottom: 0; color: #d5e2da; }
.browse-search { position: relative; display: flex; align-items: center; gap: 8px; max-width: 780px; margin-top: 32px; padding: 8px 8px 8px 56px; background: var(--bg-raised); border-radius: 16px; box-shadow: 0 22px 44px -18px rgba(6, 20, 14, 0.55); transform: translateY(50%); }
.browse-search:focus-within { box-shadow: 0 22px 44px -18px rgba(6, 20, 14, 0.55), 0 0 0 4px var(--accent-soft); }
.browse-search > .icon { position: absolute; left: 20px; width: 22px; height: 22px; color: var(--text-dim); }
.browse-search input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: transparent; font: 18px var(--font); color: var(--text); outline: none; }
.browse-search .btn { min-height: 52px; padding: 0 30px; border-radius: 12px; }
.browse-body { padding-top: 76px; }
.browse-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { min-width: 0; }
.filters-top { display: none; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filter-card { display: flex; flex-direction: column; gap: 18px; min-width: 0; margin: 0; padding: 18px; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 16px; }
.filter-form .filter-card-title { float: left; width: 100%; margin: 0; padding: 0; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.opt-count { margin-left: auto; font-size: 14px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.filters-top h2 { margin: 0; }
.filters-close, .filters-open, .filters-backdrop { display: none; }
.filter-form { display: flex; flex-direction: column; gap: 16px; }
.filter-form legend { font-weight: 600; margin-bottom: 6px; }
.opt-list { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; }
.opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; transition: background-color 150ms ease; }
.opt:hover { background: var(--tint); }
.opt-list .opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-list .opt:has(input:checked) { background: var(--accent-tint); font-weight: 600; color: var(--accent-strong); }
.opt-list .opt:has(input:focus-visible) { outline: 2px solid var(--accent); }
.opt .cat-dot { width: 28px; height: 28px; border-radius: 7px; }
.opt .cat-dot .icon { width: 16px; height: 16px; }
.opt-check { margin: 0 -8px; }
.opt-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; background: var(--bg-panel); border-radius: 10px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 7px 4px; text-align: center; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text-dim); transition: background-color 150ms ease, color 150ms ease; }
.seg input:checked + span { background: var(--bg-raised); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.filter-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.price-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.results-head { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; padding: 0 0 22px; border-bottom: 1px solid var(--line-strong); }
.results-ico { width: 56px; height: 56px; border-radius: 16px; }
.results-ico .icon { width: 28px; height: 28px; }
.results-head-text { flex: 1; min-width: 0; }
.results-head .eyebrow { margin: 0 0 2px; color: var(--tone, var(--accent)); }
.results-title { margin: 0; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.results-desc { max-width: 62ch; margin: 6px 0 0; color: var(--text-dim); text-wrap: pretty; }
.results-photo { flex: none; width: 200px; height: 112px; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow-sm); }
.results-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.result-count { margin: 0 auto 0 0; color: var(--text-dim); }
.result-count strong { color: var(--text); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-dim); white-space: nowrap; }
.sort select { width: auto; min-height: 38px; }
.active-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; }
.active-chips a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 14px; border-radius: 999px; background: var(--bg-ink); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; transition: transform 160ms var(--ease); }
.active-chips a:active { transform: scale(0.97); }
.active-chips .icon { width: 15px; height: 15px; opacity: 0.8; }
.active-chips .chips-clear { background: transparent; color: var(--accent); text-decoration: underline; padding-left: 4px; }
.grid-browse { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }
@media (max-width: 960px) {
	.browse-layout { grid-template-columns: minmax(0, 1fr); }
	.js .filters-open { display: inline-flex; }
	.js .filters { position: fixed; z-index: var(--z-drawer); top: 0; bottom: 0; left: 0; width: min(380px, 88vw); max-height: none; border-radius: 0 18px 18px 0; padding: 20px; transform: translateX(-104%); visibility: hidden; transition: transform 380ms var(--ease-drawer), visibility 0s linear 380ms; }
	.js .filters.is-open { transform: none; visibility: visible; transition: transform 380ms var(--ease-drawer); }
	.js .filters { background: var(--bg-raised); }
	.js .filters-top { display: flex; }
	.js .filter-card { padding: 0; border: 0; }
	.js h2.filter-card-title { display: none; }
	.result-count { white-space: nowrap; }
	.browse-hero { padding-top: 40px; }
	.results-photo { display: none; }
	.results-head { align-items: flex-start; gap: 14px; }
	.results-ico { width: 48px; height: 48px; border-radius: 14px; margin-top: 4px; }
	.browse-search { padding-left: 46px; }
	.browse-search > .icon { left: 16px; }
	.browse-search input { font-size: 16px; }
	.browse-search .btn { padding: 0 18px; }
	.filters-close { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 999px; background: none; color: var(--text); cursor: pointer; }
	.filters-backdrop { display: block; position: fixed; inset: 0; z-index: var(--z-drawer); background: rgba(22, 33, 28, 0.5); opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
	.filters-shown .filters-backdrop { opacity: 1; pointer-events: auto; }
	.filters-shown { overflow: hidden; }
	.sort span { display: none; }
	.results-bar { flex-wrap: nowrap; }
	.sort select { max-width: 150px; }
}
@media (max-width: 520px) {
	.grid-browse { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.grid-browse .card-cover { margin: 4px 4px 0; border-radius: 8px; }
	.grid-browse .card-body { padding: 10px 10px 12px; }
	.grid-browse .card-title { font-size: 16px; }
	.grid-browse .card-tagline, .grid-browse .card-seller, .grid-browse .card-savings, .grid-browse .pill-demo { display: none; }
	.grid-browse .price { font-size: 17px; }
	.grid-browse .fav-compact { width: 34px; height: 34px; }
	.grid-browse .fav-form, .grid-browse > .card > a.fav { top: 10px; right: 10px; }
}

/* Product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "crumbs crumbs" "media buy" "body buy"; gap: 20px 40px; align-items: start; }
.crumbs { grid-area: crumbs; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; color: var(--text-dim); }
.crumbs a { color: var(--text-dim); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs .icon { width: 14px; height: 14px; transform: rotate(-90deg); }
.crumbs .back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 550; }
.crumbs .back-link .icon { width: 16px; height: 16px; transform: rotate(180deg); transition: transform 200ms var(--ease); }
.crumbs .back-link:hover .icon { transform: rotate(180deg) translateX(3px); }
.product-media { grid-area: media; min-width: 0; }
.product-media:has(.thumbs) { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; }
.product-media > .video { grid-column: 2; grid-row: 1; }
.video { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--bg-ink); position: relative; box-shadow: var(--shadow-md); padding: 0; border: 0; }
.video iframe { width: 100%; height: 100%; border: 0; }
.video img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.video.gallery-item { cursor: zoom-in; }
.video-link .btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.video-empty { display: grid; place-content: center; justify-items: center; gap: 8px; background: var(--tone-bg); color: var(--text-dim); box-shadow: none; }
.video-empty span { font-size: 72px; font-weight: 700; color: var(--tone); line-height: 1; }
.thumbs { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; }
.thumbs .gallery-item[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.gallery-item { padding: 0; border: 1.5px solid var(--line); border-radius: var(--radius-small); overflow: hidden; cursor: zoom-in; background: var(--bg-ink); transition: border-color 150ms ease, transform 160ms var(--ease); }
.gallery-item:active { transform: scale(0.97); }
.thumbs img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; width: 100%; }
@media (hover: hover) { .thumbs .gallery-item:hover { border-color: var(--accent); } }

.product-buy { grid-area: buy; position: sticky; top: 136px; display: flex; flex-direction: column; gap: 6px; background: var(--bg-raised); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-md); }
.product-buy h1 { font-size: 32px; letter-spacing: -0.025em; margin: 0; }
.product-buy .lead { font-size: 18px; margin: 0; }
.pill-type { align-self: center; padding: 4px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-strong); font-size: 14px; font-weight: 600; }
.built-by { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; transition: border-color 150ms ease; }
.built-by:hover { border-color: var(--accent); color: var(--text); }
.built-by .avatar { width: 44px; height: 44px; font-size: 18px; }
.built-by-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.built-by .more { display: inline-flex; margin-top: 2px; align-items: center; gap: 4px; color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap; }
.built-by .more .icon { width: 15px; height: 15px; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.product-price .price { font-size: 34px; letter-spacing: -0.02em; }
.replaces-line { margin: 0; font-size: 15px; color: var(--text-dim); }
.replaces-line strong { color: var(--accent); font-weight: 600; }
.buy-actions { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 6px; }
.buy-actions .btn, .buy-actions form .btn { width: 100%; justify-content: center; }
.buy-actions .fav { justify-content: center; }
.buy-actions .fav-form .fav { width: 100%; }
.before-buy { list-style: none; padding: 14px 0 0; margin: 4px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text-dim); }
.before-buy li { display: flex; gap: 10px; align-items: flex-start; }
.before-buy .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.before-buy strong { color: var(--text); font-weight: 600; }

.product-body { grid-area: body; min-width: 0; }
.section-nav { position: sticky; top: 68px; z-index: 3; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; margin-bottom: 4px; background: var(--bg); border-bottom: 1px solid var(--line-strong); }
.section-nav a { flex: none; padding: 10px 16px; margin-bottom: -9px; border-bottom: 2px solid transparent; color: var(--text-dim); font-weight: 600; text-decoration: none; transition: border-color 150ms ease, color 150ms ease; }
.section-nav a:hover { border-bottom-color: var(--accent); color: var(--text); }
.product-body [id] { scroll-margin-top: 180px; }
.block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block h2 { font-size: 24px; letter-spacing: -0.02em; }
.block p { max-width: 70ch; }
.block-accent { border-left: 3px solid var(--accent); padding: 24px 20px; margin-top: 20px; border-bottom: 0; background: linear-gradient(90deg, var(--accent-soft), transparent 75%); border-radius: 0 var(--radius-small) var(--radius-small) 0; }
.cost-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.cost-col { display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: var(--radius); background: var(--bg-raised); border: 1px solid var(--line-strong); }
.cost-col strong { font-size: 30px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cost-col > span:last-child { color: var(--text-dim); font-size: 15px; }
.cost-label { font-weight: 600; color: var(--text-dim); }
.cost-own { background: var(--accent-tint); border-color: var(--accent); }
.cost-own strong { color: var(--accent-strong); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.facts h3 { font-size: 18px; }
.lightbox { max-width: 94vw; max-height: 92vh; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); }
.lightbox::backdrop { background: rgba(18, 24, 22, 0.85); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; }
.lightbox-close { position: absolute; top: 8px; right: 8px; background: var(--bg-raised); color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; cursor: pointer; font: 500 14px var(--font); }
.buy-bar { display: none; }

.seller-card { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 12px; background: var(--bg-raised); border: 1px solid var(--line-strong); border-radius: var(--radius); text-decoration: none; transition: border-color 150ms ease; }
.seller-card:hover { border-color: var(--accent); color: var(--text); }
.seller-card > span:nth-child(2) { display: flex; flex-direction: column; }
.seller-card .more { margin-left: auto; }
.seller-card-name { font-weight: 600; }
.avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent); font: 650 18px var(--font); }
.avatar-large { width: 104px; height: 104px; font-size: 38px; letter-spacing: -0.02em; border: 4px solid var(--bg); background: var(--tone-bg, var(--accent-soft)); color: var(--tone, var(--accent)); box-shadow: var(--shadow-sm); }
.store-banner { display: block; width: 100%; height: 260px; object-fit: cover; border-radius: 20px; background: var(--bg-ink); }
.store-head { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding: 0 32px; margin-bottom: 28px; }
.store-head .avatar-large { margin-top: -56px; width: 128px; height: 128px; font-size: 46px; border-width: 5px; }
.avatar-img { padding: 0; overflow: hidden; background: var(--bg-raised); }
.avatar-img img { width: 100%; height: 100%; object-fit: cover; }
.store-id { flex: 1; min-width: 200px; padding-top: 18px; }
.store-id .eyebrow { margin: 0 0 4px; }
.store-id h1 { margin: 0; font-size: clamp(30px, 3.2vw, 40px); letter-spacing: -0.03em; }
.store-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 8px 0 0; color: var(--text-dim); }
.store-meta span { display: inline-flex; align-items: center; gap: 6px; }
.store-meta svg { width: 18px; height: 18px; color: var(--accent); }
.store-head .btn { margin-top: 30px; }
.store-section { padding-top: 32px; scroll-margin-top: 130px; }
.store-section > h2 { margin: 0 0 18px; }
.store-about { max-width: 760px; padding-bottom: 24px; }
.seller-bio { white-space: normal; max-width: 70ch; font-size: 18px; margin-top: 0; }
.store-label { font-size: 16px; margin: 18px 0 8px; }

@media (max-width: 960px) {
	.product { grid-template-columns: minmax(0, 1fr); grid-template-areas: "crumbs" "media" "buy" "body"; gap: 16px; }
	.product-buy { position: static; padding: 20px; }
	.section-nav { top: 0; }
	.product-media:has(.thumbs) { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.product-media > .video, .thumbs { grid-column: 1; grid-row: auto; }
	.thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
	.product-body [id] { scroll-margin-top: 70px; }
	.buy-bar { position: fixed; z-index: var(--z-sticky); left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg-raised); border-top: 1px solid var(--line-strong); box-shadow: 0 -10px 30px -18px rgba(22, 33, 28, 0.4); }
	.buy-bar-price { color: var(--text-dim); font-size: 15px; }
	.buy-bar-price strong { font-size: 20px; color: var(--text); }
	body:has(.buy-bar) .footer { padding-bottom: 90px; }
}
@media (max-width: 600px) {
	.store-banner { height: 150px; border-radius: 14px; }
	.store-head { padding: 0 12px; gap: 6px 16px; }
	.store-head .avatar-large { margin-top: -44px; width: 92px; height: 92px; font-size: 32px; border-width: 4px; }
	.store-id { padding-top: 6px; min-width: 0; flex-basis: 100%; }
	.store-section { scroll-margin-top: 60px; }
	.store-head .btn { margin-top: 0; }
	.avatar-large { width: 84px; height: 84px; font-size: 30px; }
	.seller-card { flex-wrap: wrap; }
	.seller-card .more { margin-left: 56px; }
	.product-buy h1 { font-size: 28px; }
}

/* Confirm popup */
.confirm { max-width: 440px; width: 92vw; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); color: var(--text); box-shadow: var(--shadow-lg); }
.confirm::backdrop { background: rgba(22, 33, 28, 0.55); }
.confirm-text { font-size: 18px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Footer */
.footer { margin-top: 64px; background: var(--bg-ink); color: #c9d2cd; padding: 48px 0 28px; }
.footer a { color: #e7ece9; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-inner { display: grid; grid-template-columns: minmax(240px, 1.4fr) repeat(5, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1100px) { .footer-inner { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 34ch; }
.footer-col h2 { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.footer-col a { display: block; padding: 4px 0; }
.footer-col p { font-size: 16px; }
.footer-copy { grid-column: 1 / -1; max-width: none; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: #9aa59f; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Entry motion */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
.inline-form { display: inline-flex; }
.form-delete { margin-top: 24px; }

/* Homepage */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(11, 110, 69, 0.13), transparent 70%), radial-gradient(ellipse 40% 50% at 10% 100%, rgba(160, 90, 64, 0.08), transparent 70%), var(--bg); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; margin-bottom: 18px; max-width: 14ch; }
.hero .lead { max-width: 52ch; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }


.section { padding: 52px 0 8px; }

/* Home hero: dark green with a photo fading in from the right */
.hero-home { --hero-bg: #0d2219; margin-top: -96px; padding: 96px 0 0; background: var(--hero-bg); color: #d5e2da; isolation: isolate; }
.hero-photo { position: absolute; inset: 0 0 0 auto; z-index: -2; width: 64%; height: 100%; object-fit: cover; object-position: 38% 30%; }
.hero-home::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--hero-bg) 34%, rgba(13, 34, 25, 0.82) 48%, rgba(13, 34, 25, 0.4) 70%, rgba(13, 34, 25, 0.3)), linear-gradient(0deg, rgba(13, 34, 25, 0.92), transparent 38%); }
.hero-home .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); grid-template-areas: "flash flash" "copy note" "points points"; gap: 0 32px; align-items: center; padding-top: 56px; }
.hero-home .hero-inner > .wrap { grid-area: flash; width: auto; }
.hero-home .hero-copy { grid-area: copy; }
.hero-home h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; color: #fff; margin: 0 0 22px; max-width: none; text-wrap: initial; }
.hero-home h1 span { color: #8fe3a9; }
.hero-home .lead { max-width: 46ch; margin-bottom: 30px; font-size: 19px; color: #d5e2da; }
.hero-home .hero-actions { gap: 14px; }
.btn-pill { min-height: 52px; padding: 12px 28px; border-radius: 999px; font-size: 17px; }
.btn-mint { background: #8fe3a9; border-color: #8fe3a9; color: #0b2318; }
.btn-mint:hover { background: #b2efc4; border-color: #b2efc4; color: #0b2318; }
.btn-mint .icon { transition: transform 200ms var(--ease); }
.btn-mint:hover .icon { transform: translateX(3px); }
.btn-outline-light { background: rgba(13, 34, 25, 0.35); border: 1.5px solid rgba(255, 255, 255, 0.75); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.hero-note { grid-area: note; justify-self: center; align-self: start; margin: 70px 0 0; font: 500 34px/1.05 "Caveat", var(--font); color: #fff; transform: rotate(-9deg); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); }
.hero-note svg { display: block; width: 150px; height: 20px; margin: 4px 0 0 34px; fill: none; stroke: #8fe3a9; stroke-width: 3.5; stroke-linecap: round; }
.hero-points { grid-area: points; list-style: none; margin: 56px 0 0; padding: 0 0 104px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; max-width: 980px; }
.hero-points li { display: flex; align-items: flex-start; gap: 14px; }
.hero-point-icon { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(143, 227, 169, 0.55); background: rgba(143, 227, 169, 0.08); color: #8fe3a9; }
.hero-point-icon .icon { width: 24px; height: 24px; }
.hero-points span:last-child { display: flex; flex-direction: column; font-size: 16px; color: #b9cbc0; }
.hero-points strong { color: #fff; font-size: 18px; font-weight: 600; }

/* Home category tiles: photo, overlapping icon badge, label */
.cat-panel { position: relative; margin-top: -56px; padding: 36px 32px 32px; background: var(--bg-raised); border-radius: 20px; box-shadow: var(--shadow-md); }
.cat-panel .section-head h2 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -0.03em; }
.cat-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.cat-photo-tile { position: relative; display: flex; flex-direction: column; border-radius: 12px; background: var(--bg-raised); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); overflow: hidden; color: var(--text); text-decoration: none; transition: transform 250ms var(--ease), box-shadow 250ms var(--ease); }
.cat-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 60%), var(--tone-bg); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.cat-badge { display: grid; place-items: center; width: 50px; height: 50px; margin: -25px 0 0 16px; position: relative; border-radius: 50%; background: var(--bg-raised); color: var(--accent); box-shadow: 0 0 0 1px var(--line), 0 4px 12px -4px rgba(22, 33, 28, 0.3); }
.cat-badge .icon { width: 24px; height: 24px; }
.cat-photo-name { padding: 10px 16px 18px; font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.cat-photo-name span { white-space: nowrap; }
.cat-photo-name .icon { width: 16px; height: 16px; vertical-align: -2px; transition: transform 200ms var(--ease); }
.cat-photo-tile:hover { color: var(--text); }
@media (hover: hover) {
	.cat-photo-tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
	.cat-photo-tile:hover img { transform: scale(1.05); }
	.cat-photo-tile:hover .cat-photo-name span { white-space: nowrap; }
.cat-photo-name .icon { transform: translateX(3px); }
}
@media (max-width: 1180px) {
	.hero-home { margin-top: -92px; padding-top: 92px; }
}
@media (max-width: 860px) {
	.hero-photo { width: 100%; opacity: 0.45; object-position: 45% 30%; }
	.hero-home::before { background: linear-gradient(180deg, rgba(13, 34, 25, 0.55), var(--hero-bg) 85%); }
	.hero-home .hero-inner { grid-template-columns: 1fr; grid-template-areas: "flash" "copy" "points"; padding-top: 36px; }
	.hero-note { display: none; }
	.hero-points { grid-template-columns: 1fr; margin-top: 40px; }
	.cat-panel { margin-top: -40px; padding: 24px 14px 18px; border-radius: 16px; }
	.hero-points { padding-bottom: 80px; }
	.cat-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
.industry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.industry-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--bg-raised); text-decoration: none; color: var(--text); --tone: var(--accent); transition: transform 250ms var(--ease), border-color 250ms var(--ease); }
.industry-tile:hover { color: var(--text); border-color: var(--accent); }
.industry-name { font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.chips a { color: inherit; text-decoration: none; }
.chips a:hover { color: var(--accent); }
@media (hover: hover) {
	.industry-tile:hover { transform: translateY(-3px); }
}
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.band { margin-top: 56px; padding: 56px 0; background: linear-gradient(180deg, var(--accent-tint), #eef4ef); border-top: 1px solid #d3e4d9; border-bottom: 1px solid #d3e4d9; }
.band-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.band h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.03em; }
.band .lead { margin-bottom: 24px; }
.own-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.own-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 18px 10px 10px; background: var(--bg-raised); border-radius: var(--radius); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text); transition: transform 250ms var(--ease), box-shadow 250ms var(--ease); }
.own-item:hover { color: var(--text); }
.own-item img, .own-thumb { width: 120px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 9px; background: var(--bg-ink); }
.own-thumb { display: grid; place-items: center; background: var(--tone-bg); color: var(--tone); font-size: 28px; font-weight: 700; }
.own-text { display: flex; flex-direction: column; min-width: 0; color: var(--text-dim); }
.own-text strong { color: var(--text); font-size: 17px; }
.own-text > span:not(.own-cost) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.own-cost { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; color: var(--text); }
.own-cost .icon { width: 16px; height: 16px; color: var(--accent); }
@media (hover: hover) {
	.own-item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
}

.compare-wrap { overflow-x: auto; background: var(--bg-raised); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 14px; font-weight: 600; color: var(--text-dim); background: var(--bg-panel); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody th { font-weight: 650; }
.compare tbody th a { text-decoration: none; }
.compare .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare td strong { color: var(--accent-strong); }
.compare td:last-child { color: var(--text-dim); text-decoration: line-through; text-decoration-color: rgba(180, 42, 31, 0.5); }
.note { margin-top: 12px; font-size: 14px; color: var(--text-dim); }

.builders { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: center; padding: 48px; border-radius: 22px; background: radial-gradient(ellipse 70% 90% at 100% 0%, rgba(46, 160, 110, 0.35), transparent 60%), var(--bg-ink); color: #c9d2cd; }
.builders h2 { color: #fff; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.03em; }
.builders .eyebrow { color: #7fd1a8; }
.builders .lead { color: #c9d2cd; }
.builders .text-link { color: #a8e3c4; }
.builders .text-link:hover { color: #fff; }
.builders-points { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 8px; }
.builders-points li { display: flex; gap: 10px; align-items: flex-start; }
.builders-points .icon { color: #7fd1a8; margin-top: 2px; }
.builders-preview { position: relative; padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); transform: rotate(1.5deg); }
.preview-tag { position: absolute; top: -12px; right: 16px; padding: 2px 10px; border-radius: 6px; background: #fff; color: var(--bg-ink); font-size: 14px; font-weight: 600; }
.preview-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.15); font-variant-numeric: tabular-nums; }
.preview-row strong { color: #fff; }
.preview-total { border-bottom: 0; padding-top: 14px; }
.preview-total strong { color: #7fd1a8; font-size: 20px; }

/* Sell page */
.sell-preview { position: relative; max-width: 420px; justify-self: center; width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--bg-raised); box-shadow: var(--shadow-lg); border: 5px solid #fff; transform: rotate(1.5deg); }
.sell-preview .preview-tag { top: 12px; z-index: 1; background: var(--bg-ink); color: #fff; }
.sell-preview-cover { display: grid; place-items: center; aspect-ratio: 16 / 10; background: repeating-linear-gradient(135deg, var(--accent-tint) 0 14px, var(--bg-panel) 14px 28px); color: var(--accent-strong); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.sell-preview-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.sell-preview-body strong { font-size: 18px; }
.sell-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sell-step { position: relative; padding: 22px; border-radius: var(--radius); background: var(--bg-raised); box-shadow: var(--shadow-sm); }
.sell-step > .icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 12px; }
.sell-step h3 { font-size: 18px; margin-bottom: 6px; }
.sell-step p { margin: 0; color: var(--text-dim); }
.step-num { position: absolute; top: 18px; right: 20px; font: 600 14px var(--mono); color: var(--text-dim); }
.own-static { grid-template-columns: minmax(0, 1fr); padding: 14px 18px; }
.own-static .own-text > span { white-space: normal; }
.fees { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
.fee-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fee-list li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fee-list li:last-child { border-bottom: 0; }
.fee-list strong { font-size: 20px; letter-spacing: -0.01em; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.fee-list span { color: var(--text-dim); }
.fee-example { background: var(--bg-ink); color: #c9d2cd; border: 0; box-shadow: var(--shadow-md); }
.sell-cta { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; margin-bottom: 40px; }
.sell-cta .hero-actions { justify-content: center; }

@media (max-width: 960px) {
	.hero { padding: 32px 0 40px; }
	.hero-home { padding: 92px 0 0; }
	.hero-inner, .band-inner, .builders, .fees { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.sell-preview { transform: none; }
	.sell-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.builders { padding: 32px 24px; }
	.builders-preview { transform: none; }
}
@media (max-width: 600px) {
	.own-item { grid-template-columns: 88px minmax(0, 1fr); }
	.own-item img, .own-thumb { width: 88px; }
	.own-item .price { grid-column: 2; }
	.own-static { grid-template-columns: minmax(0, 1fr); }
	.fee-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.sell-steps { grid-template-columns: minmax(0, 1fr); }
	.section-head { flex-direction: column; align-items: flex-start; }
	.grid-4 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -4vw; padding: 4px 4vw 12px; scroll-padding: 0 4vw; scrollbar-width: none; }
	.grid-4::-webkit-scrollbar { display: none; }
	.grid-4 > .card { scroll-snap-align: start; }
}

/* Log in and sign up */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px; align-items: start; max-width: 1040px; }
.auth-card { padding: 32px; border-radius: var(--radius); background: var(--bg-raised); box-shadow: var(--shadow-md); }
.auth-side { padding: 32px; border-radius: var(--radius); background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(46, 160, 110, 0.3), transparent 65%), var(--bg-ink); color: #c9d2cd; }
.auth-side h2 { color: #fff; font-size: 22px; margin-bottom: 20px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.auth-points li { display: flex; gap: 14px; align-items: flex-start; }
.auth-points .icon { width: 22px; height: 22px; color: #7fd1a8; margin-top: 2px; flex: none; }
.auth-points span { display: flex; flex-direction: column; }
.auth-points strong { color: #fff; }
.auth-points a { color: #a8e3c4; }
@media (max-width: 860px) {
	.auth { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.auth-card, .auth-side { padding: 22px; }
}
